diff --git a/.DS_Store b/.DS_Store index f8d0fe7360..f6e15a7981 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/267.0a5b814d.async.js b/267.0a5b814d.async.js deleted file mode 100644 index f9acb425ca..0000000000 --- a/267.0a5b814d.async.js +++ /dev/null @@ -1,18 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[267],{"++4Y":function(m,b,t){var c=t("eRwv");m.exports=!c(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,b,t){var c=t("11yv"),f=c("match");m.exports=function(p){var g=/./;try{"/./"[p](g)}catch(y){try{return g[f]=!1,"/./"[p](g)}catch(j){}}return!1}},"/pbl":function(m,b,t){var c=t("eE3R");m.exports=/web0s(?!.*chrome)/i.test(c)},"0B/8":function(m,b,t){"use strict";t.d(b,"a",function(){return N});/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var c=function(C,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,ee){T.__proto__=ee}||function(T,ee){for(var re in ee)Object.prototype.hasOwnProperty.call(ee,re)&&(T[re]=ee[re])})(C,U)};function f(S,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function U(){this.constructor=S}c(S,C),S.prototype=C===null?Object.create(C):(U.prototype=C.prototype,new U)}function p(S){var C="";Array.isArray(S)||(S=[S]);for(var U=0;US.phi1&&(S.phi2-=2*j),S.sweepFlag===1&&S.phi2T)return[];if(T===0)return[[S*U/(S*S+C*C),C*U/(S*S+C*C)]];var ee=Math.sqrt(T);return[[(S*U+C*ee)/(S*S+C*C),(C*U-S*ee)/(S*S+C*C)],[(S*U-C*ee)/(S*S+C*C),(C*U+S*ee)/(S*S+C*C)]]}var M,w=Math.PI/180;function F(S,C,U){return(1-U)*S+U*C}function I(S,C,U,T){return S+Math.cos(T/180*j)*C+Math.sin(T/180*j)*U}function B(S,C,U,T){var ee=1e-6,re=C-S,q=U-C,E=3*re+3*(T-U)-6*q,V=6*(q-re),O=3*re;return Math.abs(E)ge&&(W.sweepFlag=+!W.sweepFlag),W})}function q(){return function(E){var V={};for(var O in E)V[O]=E[O];return V}}S.ROUND=function(E){function V(O){return Math.round(O*E)/E}return E===void 0&&(E=1e13),y(E),function(O){return O.x1!==void 0&&(O.x1=V(O.x1)),O.y1!==void 0&&(O.y1=V(O.y1)),O.x2!==void 0&&(O.x2=V(O.x2)),O.y2!==void 0&&(O.y2=V(O.y2)),O.x!==void 0&&(O.x=V(O.x)),O.y!==void 0&&(O.y=V(O.y)),O.rX!==void 0&&(O.rX=V(O.rX)),O.rY!==void 0&&(O.rY=V(O.rY)),O}},S.TO_ABS=C,S.TO_REL=function(){return ee(function(E,V,O){return E.relative||(E.x1!==void 0&&(E.x1-=V),E.y1!==void 0&&(E.y1-=O),E.x2!==void 0&&(E.x2-=V),E.y2!==void 0&&(E.y2-=O),E.x!==void 0&&(E.x-=V),E.y!==void 0&&(E.y-=O),E.relative=!0),E})},S.NORMALIZE_HVZ=function(E,V,O){return E===void 0&&(E=!0),V===void 0&&(V=!0),O===void 0&&(O=!0),ee(function(P,H,L,W,J){if(isNaN(W)&&!(P.type&N.MOVE_TO))throw new Error("path must start with moveto");return V&&P.type&N.HORIZ_LINE_TO&&(P.type=N.LINE_TO,P.y=P.relative?0:L),O&&P.type&N.VERT_LINE_TO&&(P.type=N.LINE_TO,P.x=P.relative?0:H),E&&P.type&N.CLOSE_PATH&&(P.type=N.LINE_TO,P.x=P.relative?W-H:W,P.y=P.relative?J-L:J),P.type&N.ARC&&(P.rX===0||P.rY===0)&&(P.type=N.LINE_TO,delete P.rX,delete P.rY,delete P.xRot,delete P.lArcFlag,delete P.sweepFlag),P})},S.NORMALIZE_ST=U,S.QT_TO_C=T,S.INFO=ee,S.SANITIZE=function(E){E===void 0&&(E=0),y(E);var V=NaN,O=NaN,P=NaN,H=NaN;return ee(function(L,W,J,K,X){var Q=Math.abs,ie=!1,ce=0,se=0;if(L.type&N.SMOOTH_CURVE_TO&&(ce=isNaN(V)?0:W-V,se=isNaN(O)?0:J-O),L.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(V=L.relative?W+L.x2:L.x2,O=L.relative?J+L.y2:L.y2):(V=NaN,O=NaN),L.type&N.SMOOTH_QUAD_TO?(P=isNaN(P)?W:2*W-P,H=isNaN(H)?J:2*J-H):L.type&N.QUAD_TO?(P=L.relative?W+L.x1:L.x1,H=L.relative?J+L.y1:L.y2):(P=NaN,H=NaN),L.type&N.LINE_COMMANDS||L.type&N.ARC&&(L.rX===0||L.rY===0||!L.lArcFlag)||L.type&N.CURVE_TO||L.type&N.SMOOTH_CURVE_TO||L.type&N.QUAD_TO||L.type&N.SMOOTH_QUAD_TO){var Ce=L.x===void 0?0:L.relative?L.x:L.x-W,ve=L.y===void 0?0:L.relative?L.y:L.y-J;ce=isNaN(P)?L.x1===void 0?ce:L.relative?L.x:L.x1-W:P-W,se=isNaN(H)?L.y1===void 0?se:L.relative?L.y:L.y1-J:H-J;var ge=L.x2===void 0?0:L.relative?L.x:L.x2-W,Te=L.y2===void 0?0:L.relative?L.y:L.y2-J;Q(Ce)<=E&&Q(ve)<=E&&Q(ce)<=E&&Q(se)<=E&&Q(ge)<=E&&Q(Te)<=E&&(ie=!0)}return L.type&N.CLOSE_PATH&&Q(W-K)<=E&&Q(J-X)<=E&&(ie=!0),ie?[]:L})},S.MATRIX=re,S.ROTATE=function(E,V,O){V===void 0&&(V=0),O===void 0&&(O=0),y(E,V,O);var P=Math.sin(E),H=Math.cos(E);return re(H,P,-P,H,V-V*H+O*P,O-V*P-O*H)},S.TRANSLATE=function(E,V){return V===void 0&&(V=0),y(E,V),re(1,0,0,1,E,V)},S.SCALE=function(E,V){return V===void 0&&(V=E),y(E,V),re(E,0,0,V,0,0)},S.SKEW_X=function(E){return y(E),re(1,0,Math.atan(E),1,0,0)},S.SKEW_Y=function(E){return y(E),re(1,Math.atan(E),0,1,0,0)},S.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),re(-1,0,0,1,E,0)},S.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),re(1,0,0,-1,0,E)},S.A_TO_C=function(){return ee(function(E,V,O){return N.ARC===E.type?function(P,H,L){var W,J,K,X;P.cX||A(P,H,L);for(var Q=Math.min(P.phi1,P.phi2),ie=Math.max(P.phi1,P.phi2)-Q,ce=Math.ceil(ie/90),se=new Array(ce),Ce=H,ve=L,ge=0;geH.maxX&&(H.maxX=Se),SeH.maxY&&(H.maxY=Se),SePe&&X(z(W,K.x1,K.x2,K.x,Pe));for(var se=0,Ce=B(J,K.y1,K.y2,K.y);sePe&&Q(z(J,K.y1,K.y2,K.y,Pe))}if(K.type&N.ARC){X(K.x),Q(K.y),A(K,W,J);for(var ve=K.xRot/180*Math.PI,ge=Math.cos(ve)*K.rX,Te=Math.sin(ve)*K.rX,Me=-Math.sin(ve)*K.rY,Ae=Math.cos(ve)*K.rY,Re=K.phi1K.phi2?[K.phi2+360,K.phi1+360]:[K.phi2,K.phi1],je=Re[0],Ie=Re[1],we=function(Oe){var ze=Oe[0],qe=Oe[1],Ge=180*Math.atan2(qe,ze)/Math.PI;return Geje&&Peje&&PeP)throw new SyntaxError('Expected positive number, got "'+P+'" at index "'+q+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+q+'"')}this.curArgs.push(P),this.curArgs.length===le[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?re({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:P}):N.VERT_LINE_TO===this.curCommandType?re({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:P}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(re({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?re({type:N.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===N.SMOOTH_CURVE_TO?re({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?re({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&re({type:N.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!Z(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(O)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+q+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+q+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+q+".");this.curCommandType=N.ARC,this.curCommandRelative=E==="a"}else T.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return T},C.prototype.transform=function(U){return Object.create(this,{parse:{value:function(ee,re){re===void 0&&(re=[]);for(var q=0,E=Object.getPrototypeOf(this).parse.call(this,ee);q0&&arguments[0]!==void 0?arguments[0]:{},u=h.DOMParser,r={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,createCanvas:function(e,o){return new OffscreenCanvas(e,o)},createImage:function(e){return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,fetch(e);case 2:return n=d.sent,d.next=5,n.blob();case 5:return i=d.sent,d.next=8,createImageBitmap(i);case 8:return s=d.sent,d.abrupt("return",s);case 10:case"end":return d.stop()}},o)}))()}};return(typeof DOMParser!="undefined"||typeof u=="undefined")&&Reflect.deleteProperty(r,"DOMParser"),r}function Be(h){var u=h.DOMParser,r=h.canvas,a=h.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:u,fetch:a,createCanvas:r.createCanvas,createImage:r.loadImage}}var Ue=Object.freeze({__proto__:null,offscreen:Ne,node:Be});function De(h){return h.replace(/(?!\u3000)\s+/gm," ")}function Pe(h){return h.replace(/^[\n \t]+/,"")}function Se(h){return h.replace(/[\n \t]+$/,"")}function Oe(h){var u=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return u.map(parseFloat)}var ze=/^[A-Z-]+$/;function qe(h){return ze.test(h)?h.toLowerCase():h}function Ge(h){var u=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return u[2]||u[3]||u[4]}function _e(h){if(!h.startsWith("rgb"))return h;var u=3,r=h.replace(/\d+(\.\d+)?/g,function(a,e){return u--&&e?String(Math.round(parseFloat(a))):a});return r}var it=/(\[[^\]]+\])/g,st=/(#[^\s+>~.[:]+)/g,ht=/(\.[^\s+>~.[:]+)/g,gt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,at=/(:[\w-]+\([^)]*\))/gi,tt=/(:[^\s+>~.[:]+)/g,nt=/([^\s+>~.[:]+)/g;function Ye(h,u){var r=u.exec(h);return r?[h.replace(u," "),r.length]:[h,0]}function te(h){var u=[0,0,0],r=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=Ye(r,it),o=Object(ie.a)(e,2);r=o[0],a=o[1],u[1]+=a;var n=Ye(r,st),i=Object(ie.a)(n,2);r=i[0],a=i[1],u[0]+=a;var s=Ye(r,ht),l=Object(ie.a)(s,2);r=l[0],a=l[1],u[1]+=a;var d=Ye(r,gt),v=Object(ie.a)(d,2);r=v[0],a=v[1],u[2]+=a;var x=Ye(r,at),D=Object(ie.a)(x,2);r=D[0],a=D[1],u[1]+=a;var $=Ye(r,tt),ne=Object(ie.a)($,2);r=ne[0],a=ne[1],u[1]+=a,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var oe=Ye(r,nt),ae=Object(ie.a)(oe,2);return r=ae[0],a=ae[1],u[2]+=a,u.join("")}var de=1e-8;function pe(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function ye(h,u){return(h[0]*u[0]+h[1]*u[1])/(pe(h)*pe(u))}function Ee(h,u){return(h[0]*u[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return De(this.getString()).trim().split(r).map(function(o){return new h(a,e,o)})}},{key:"hasValue",value:function(r){var a=this.value;return a!==null&&a!==""&&(r||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(r){var a=this.value,e=typeof a=="string";return!e||!r?e:r.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}},{key:"setValue",value:function(r){return this.value=r,this}},{key:"getValue",value:function(r){return typeof r=="undefined"||this.hasValue()?this.value:r}},{key:"getNumber",value:function(r){if(!this.hasValue())return typeof r=="undefined"?0:parseFloat(r);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(r){return typeof r=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(r)}},{key:"getColor",value:function(r){var a=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=_e(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof r=="boolean"?[void 0,r]:[r],o=Object(ie.a)(e,2),n=o[0],i=o[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&i):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(n);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(n):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var r=this.getString(),a=/#([^)'"]+)/.exec(r);return a&&(a=a[1]),a||(a=r),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(r,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,r,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var o=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),o.hasValue()&&e.getAttribute("patternTransform",!0).setValue(o.value)}return e.createPattern(this.document.ctx,r,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?h.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(r){for(var a=this.getColor(),e=a.length,o=0,n=0;n1&&arguments[1]!==void 0?arguments[1]:0,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?a:s;return new h(i,l)}},{key:"parseScale",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Oe(r),o=Object(ie.a)(e,2),n=o[0],i=n===void 0?a:n,s=o[1],l=s===void 0?i:s;return new h(i,l)}},{key:"parsePath",value:function(r){for(var a=Oe(r),e=a.length,o=[],n=0;n0}},{key:"runEvents",value:function(){if(!this.working)return;var r=this.screen,a=this.events,e=this.eventElements,o=r.ctx.canvas.style;o&&(o.cursor=""),a.forEach(function(n,i){for(var s=n.run,l=e[i];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInPath&&a.isPointInPath(s,l)&&(o[i]=r)})}},{key:"checkBoundingBox",value:function(r,a){if(!this.working||!a)return;var e=this.events,o=this.eventElements;e.forEach(function(n,i){var s=n.x,l=n.y;!o[i]&&a.isPointInBox(s,l)&&(o[i]=r)})}},{key:"mapXY",value:function(r,a){for(var e=this.screen,o=e.window,n=e.ctx,i=new We(r,a),s=n.canvas;s;)i.x-=s.offsetLeft,i.y-=s.offsetTop,s=s.offsetParent;return o.scrollX&&(i.x+=o.scrollX),o.scrollY&&(i.y+=o.scrollY),i}},{key:"onClick",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onclick",x:e,y:o,run:function(i){i.onClick&&i.onClick()}})}},{key:"onMouseMove",value:function(r){var a=this.mapXY(r.clientX,r.clientY),e=a.x,o=a.y;this.events.push({type:"onmousemove",x:e,y:o,run:function(i){i.onMouseMove&&i.onMouseMove()}})}}]),h}(),Ct=typeof window!="undefined"?window:null,Mt=typeof fetch!="undefined"?fetch.bind(void 0):null,He=function(){function h(u){Object(X.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.fetch,e=a===void 0?Mt:a,o=r.window,n=o===void 0?Ct:o;this.ctx=u,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new yt,this.mouse=new Ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=n,this.fetch=e}return Object(Q.a)(h,[{key:"wait",value:function(r){this.waits.push(r)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var r=this.waits.every(function(a){return a()});return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}},{key:"setDefaults",value:function(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}},{key:"setViewBox",value:function(r){var a=r.document,e=r.ctx,o=r.aspectRatio,n=r.width,i=r.desiredWidth,s=r.height,l=r.desiredHeight,d=r.minX,v=d===void 0?0:d,x=r.minY,D=x===void 0?0:x,$=r.refX,ne=r.refY,oe=r.clip,ae=oe===void 0?!1:oe,xe=r.clipX,fe=xe===void 0?0:xe,ue=r.clipY,me=ue===void 0?0:ue,Le=De(o).replace(/^defer\s/,""),Ve=Le.split(" "),Ze=Object(ie.a)(Ve,2),dt=Ze[0],ft=Ze[1],ot=dt||"xMidYMid",rt=ft||"meet",ut=n/i,Et=s/l,et=Math.min(ut,Et),Tt=Math.max(ut,Et),Vt=i,Bt=l;rt==="meet"&&(Vt*=et,Bt*=et),rt==="slice"&&(Vt*=Tt,Bt*=Tt);var Bn=new he(a,"refX",$),Fn=new he(a,"refY",ne),Wn=Bn.hasValue()&&Fn.hasValue();if(Wn&&e.translate(-et*Bn.getPixels("x"),-et*Fn.getPixels("y")),ae){var Gn=et*fe,kn=et*me;e.beginPath(),e.moveTo(Gn,kn),e.lineTo(n,kn),e.lineTo(n,s),e.lineTo(Gn,s),e.closePath(),e.clip()}if(!Wn){var zn=rt==="meet"&&et===Et,Hn=rt==="slice"&&Tt===Et,Kn=rt==="meet"&&et===ut,Yn=rt==="slice"&&Tt===ut;ot.startsWith("xMid")&&(zn||Hn)&&e.translate(n/2-Vt/2,0),ot.endsWith("YMid")&&(Kn||Yn)&&e.translate(0,s/2-Bt/2),ot.startsWith("xMax")&&(zn||Hn)&&e.translate(n-Vt,0),ot.endsWith("YMax")&&(Kn||Yn)&&e.translate(0,s-Bt)}switch(!0){case ot==="none":e.scale(ut,Et);break;case rt==="meet":e.scale(et,et);break;case rt==="slice":e.scale(Tt,Tt);break}e.translate(-v,-D)}},{key:"start",value:function(r){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=e.enableRedraw,n=o===void 0?!1:o,i=e.ignoreMouse,s=i===void 0?!1:i,l=e.ignoreAnimation,d=l===void 0?!1:l,v=e.ignoreDimensions,x=v===void 0?!1:v,D=e.ignoreClear,$=D===void 0?!1:D,ne=e.forceRedraw,oe=e.scaleWidth,ae=e.scaleHeight,xe=e.offsetX,fe=e.offsetY,ue=this.FRAMERATE,me=this.mouse,Le=1e3/ue;if(this.frameDuration=Le,this.readyPromise=new Promise(function(ot){a.resolveReady=ot}),this.isReady()&&this.render(r,x,$,oe,ae,xe,fe),!n)return;var Ve=Date.now(),Ze=Ve,dt=0,ft=function ot(){Ve=Date.now(),dt=Ve-Ze,dt>=Le&&(Ze=Ve-dt%Le,a.shouldUpdate(d,ne)&&(a.render(r,x,$,oe,ae,xe,fe),me.runEvents())),a.intervalId=Ae()(ot)};s||me.start(),this.intervalId=Ae()(ft)}},{key:"stop",value:function(){this.intervalId&&(Ae.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(r,a){if(!r){var e=this.frameDuration,o=this.animations.reduce(function(n,i){return i.update(e)||n},!1);if(o)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(r,a,e,o,n,i,s){var l=this.CLIENT_WIDTH,d=this.CLIENT_HEIGHT,v=this.viewPort,x=this.ctx,D=this.isFirstRender,$=x.canvas;v.clear(),$.width&&$.height?v.setCurrent($.width,$.height):v.setCurrent(l,d);var ne=r.getStyle("width"),oe=r.getStyle("height");!a&&(D||typeof o!="number"&&typeof n!="number")&&(ne.hasValue()&&($.width=ne.getPixels("x"),$.style&&($.style.width="".concat($.width,"px"))),oe.hasValue()&&($.height=oe.getPixels("y"),$.style&&($.style.height="".concat($.height,"px"))));var ae=$.clientWidth||$.width,xe=$.clientHeight||$.height;if(a&&ne.hasValue()&&oe.hasValue()&&(ae=ne.getPixels("x"),xe=oe.getPixels("y")),v.setCurrent(ae,xe),typeof i=="number"&&r.getAttribute("x",!0).setValue(i),typeof s=="number"&&r.getAttribute("y",!0).setValue(s),typeof o=="number"||typeof n=="number"){var fe=Oe(r.getAttribute("viewBox").getString()),ue=0,me=0;if(typeof o=="number"){var Le=r.getStyle("width");Le.hasValue()?ue=Le.getPixels("x")/o:isNaN(fe[2])||(ue=fe[2]/o)}if(typeof n=="number"){var Ve=r.getStyle("height");Ve.hasValue()?me=Ve.getPixels("y")/n:isNaN(fe[3])||(me=fe[3]/n)}ue||(ue=me),me||(me=ue),r.getAttribute("width",!0).setValue(o),r.getAttribute("height",!0).setValue(n);var Ze=r.getStyle("transform",!0,!0);Ze.setValue("".concat(Ze.getString()," scale(").concat(1/ue,", ").concat(1/me,")"))}e||x.clearRect(0,0,ae,xe),r.render(x),D&&(this.isFirstRender=!1)}}]),h}();He.defaultWindow=Ct,He.defaultFetch=Mt;var $n=He.defaultFetch,Xn=typeof DOMParser!="undefined"?DOMParser:null,It=function(){function h(){Object(X.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=u.fetch,a=r===void 0?$n:r,e=u.DOMParser,o=e===void 0?Xn:e;this.fetch=a,this.DOMParser=o}return Object(Q.a)(h,[{key:"parse",value:function(r){var a=this;return ve()(se.a.mark(function e(){return se.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!r.startsWith("<")){n.next=2;break}return n.abrupt("return",a.parseFromString(r));case 2:return n.abrupt("return",a.load(r));case 3:case"end":return n.stop()}},e)}))()}},{key:"parseFromString",value:function(r){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(r,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(r,"text/xml"))}}},{key:"checkDocument",value:function(r){var a=r.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return r}},{key:"load",value:function(r){var a=this;return ve()(se.a.mark(function e(){var o,n;return se.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(r);case 2:return o=s.sent,s.next=5,o.text();case 5:return n=s.sent,s.abrupt("return",a.parseFromString(n));case 7:case"end":return s.stop()}},e)}))()}}]),h}(),Zt=function(){function h(u,r){Object(X.a)(this,h),this.type="translate",this.point=null,this.point=We.parse(r)}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(e||0,o||0)}},{key:"unapply",value:function(r){var a=this.point,e=a.x,o=a.y;r.translate(-1*e||0,-1*o||0)}},{key:"applyToPoint",value:function(r){var a=this.point,e=a.x,o=a.y;r.applyTransform([1,0,0,1,e||0,o||0])}}]),h}(),qt=function(){function h(u,r,a){Object(X.a)(this,h),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Oe(r);this.angle=new he(u,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(i.getRadians()),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.cx,e=this.cy,o=this.originX,n=this.originY,i=this.angle,s=a+o.getPixels("x"),l=e+n.getPixels("y");r.translate(s,l),r.rotate(-1*i.getRadians()),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.cx,e=this.cy,o=this.angle,n=o.getRadians();r.applyTransform([1,0,0,1,a||0,e||0]),r.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),r.applyTransform([1,0,0,1,-a||0,-e||0])}}]),h}(),_t=function(){function h(u,r,a){Object(X.a)(this,h),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=We.parseScale(r);(e.x===0||e.y===0)&&(e.x=de,e.y=de),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(e,o||e),r.translate(-s,-l)}},{key:"unapply",value:function(r){var a=this.scale,e=a.x,o=a.y,n=this.originX,i=this.originY,s=n.getPixels("x"),l=i.getPixels("y");r.translate(s,l),r.scale(1/e,1/o||e),r.translate(-s,-l)}},{key:"applyToPoint",value:function(r){var a=this.scale,e=a.x,o=a.y;r.applyTransform([e||0,0,0,o||0,0,0])}}]),h}(),Ft=function(){function h(u,r,a){Object(X.a)(this,h),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Oe(r),this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=a.getPixels("x"),i=e.getPixels("y");r.translate(n,i),r.transform(o[0],o[1],o[2],o[3],o[4],o[5]),r.translate(-n,-i)}},{key:"unapply",value:function(r){var a=this.originX,e=this.originY,o=this.matrix,n=o[0],i=o[2],s=o[4],l=o[1],d=o[3],v=o[5],x=0,D=0,$=1,ne=1/(n*(d*$-v*D)-i*(l*$-v*x)+s*(l*D-d*x)),oe=a.getPixels("x"),ae=e.getPixels("y");r.translate(oe,ae),r.transform(ne*(d*$-v*D),ne*(v*x-l*$),ne*(s*D-i*$),ne*(n*$-s*x),ne*(i*v-s*d),ne*(s*l-n*v)),r.translate(-oe,-ae)}},{key:"applyToPoint",value:function(r){r.applyTransform(this.matrix)}}]),h}(),Wt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skew",n.angle=null,n.angle=new he(a,"angle",e),n}return Object(Q.a)(r)}(Ft),en=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skewX",n.matrix=[1,0,Math.tan(n.angle.getRadians()),1,0,0],n}return Object(Q.a)(r)}(Wt),tn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="skewY",n.matrix=[1,Math.tan(n.angle.getRadians()),0,1,0,0],n}return Object(Q.a)(r)}(Wt);function Qn(h){return De(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Jn(h){var u=h.split("("),r=Object(ie.a)(u,2),a=r[0],e=r[1];return[a.trim(),e.trim().replace(")","")]}var At=function(){function h(u,r,a){var e=this;Object(X.a)(this,h),this.document=u,this.transforms=[];var o=Qn(r);o.forEach(function(n){if(n==="none")return;var i=Jn(n),s=Object(ie.a)(i,2),l=s[0],d=s[1],v=h.transformTypes[l];typeof v!="undefined"&&e.transforms.push(new v(e.document,d,a))})}return Object(Q.a)(h,[{key:"apply",value:function(r){for(var a=this.transforms,e=a.length,o=0;o=0;o--)a[o].unapply(r)}},{key:"applyToPoint",value:function(r){for(var a=this.transforms,e=a.length,o=0;o2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=u,this.node=r,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!r||r.nodeType!==1)return;if(Array.from(r.attributes).forEach(function(s){var l=qe(s.nodeName);a.attributes[l]=new he(u,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var o=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});o.forEach(function(s){if(!s)return;var l=s.split(":").map(function(D){return D.trim()}),d=Object(ie.a)(l,2),v=d[0],x=d[1];a.styles[v]=new he(u,v,x)})}var n=u.definitions,i=this.getAttribute("id");i.hasValue()&&(n[i.getString()]||(n[i.getString()]=this)),Array.from(r.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=u.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(Q.a)(h,[{key:"getAttribute",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[r];if(!e&&a){var o=new he(this.document,r,"");return this.attributes[r]=o,o}return e||he.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return he.empty(this.document)}},{key:"getStyle",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.styles[r];if(o)return o;var n=this.getAttribute(r);if(n!=null&&n.hasValue())return this.styles[r]=n,n;if(!e){var i=this.parent;if(i){var s=i.getStyle(r);if(s!=null&&s.hasValue())return s}}if(a){var l=new he(this.document,r,"");return this.styles[r]=l,l}return o||he.empty(this.document)}},{key:"render",value:function(r){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(r.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(r),e.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}},{key:"setContext",value:function(r){}},{key:"applyEffects",value:function(r){var a=At.fromElement(this.document,this);a&&a.apply(r);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var o=e.getDefinition();o&&o.apply(r)}}},{key:"clearContext",value:function(r){}},{key:"renderChildren",value:function(r){this.children.forEach(function(a){a.render(r)})}},{key:"addChild",value:function(r){var a=r instanceof h?r:this.document.createElement(r);a.parent=this,h.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(r){var a=this.node;if(typeof a.matches=="function")return a.matches(r);var e=a.getAttribute("class");return!e||e===""?!1:e.split(" ").some(function(o){return".".concat(o)===r})}},{key:"addStylesFromStyleDefinition",value:function(){var r=this.document,a=r.styles,e=r.stylesSpecificity;for(var o in a)if(!o.startsWith("@")&&this.matchesSelector(o)){var n=a[o],i=e[o];if(n)for(var s in n){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),i>=l&&(this.styles[s]=n[s],this.stylesSpecificity[s]=i)}}}},{key:"removeStyles",value:function(r,a){var e=a.reduce(function(o,n){var i=r.getStyle(n);if(!i.hasValue())return o;var s=i.getString();return i.setValue(""),[].concat(Object(W.a)(o),[[n,s]])},[]);return e}},{key:"restoreStyles",value:function(r,a){a.forEach(function(e){var o=Object(ie.a)(e,2),n=o[0],i=o[1];r.getStyle(n,!0).setValue(i)})}}]),h}();ke.ignoreChildTypes=["title"];var nn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){return Object(X.a)(this,r),u.call(this,a,e,o)}return Object(Q.a)(r)}(ke);function Zn(h){var u=h.trim();return/^('|")/.test(u)?u:'"'.concat(u,'"')}function qn(h){return typeof c=="undefined"?h:h.trim().split(",").map(Zn).join(",")}function _n(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return u;default:return/^oblique\s+(-|)\d+deg$/.test(u)?u:""}}function er(h){if(!h)return"";var u=h.trim().toLowerCase();switch(u){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return u;default:return/^[\d.]+$/.test(u)?u:""}}var mt=function(){function h(u,r,a,e,o,n){Object(X.a)(this,h);var i=n?typeof n=="string"?h.parse(n):n:{};this.fontFamily=o||i.fontFamily,this.fontSize=e||i.fontSize,this.fontStyle=u||i.fontStyle,this.fontWeight=a||i.fontWeight,this.fontVariant=r||i.fontVariant}return Object(Q.a)(h,[{key:"toString",value:function(){return[_n(this.fontStyle),this.fontVariant,er(this.fontWeight),this.fontSize,qn(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",o="",n="",i="",s="",l=De(r).trim().split(" "),d={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(v){switch(!0){case(!d.fontStyle&&h.styles.includes(v)):v!=="inherit"&&(e=v),d.fontStyle=!0;break;case(!d.fontVariant&&h.variants.includes(v)):v!=="inherit"&&(o=v),d.fontStyle=!0,d.fontVariant=!0;break;case(!d.fontWeight&&h.weights.includes(v)):v!=="inherit"&&(n=v),d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0;break;case!d.fontSize:if(v!=="inherit"){var x=v.split("/"),D=Object(ie.a)(x,1);i=D[0]}d.fontStyle=!0,d.fontVariant=!0,d.fontWeight=!0,d.fontSize=!0;break;default:v!=="inherit"&&(s+=v)}}),new h(e,o,n,i,s,a)}}]),h}();mt.styles="normal|italic|oblique|inherit",mt.variants="normal|small-caps|inherit",mt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ct=function(){function h(){Object(X.a)(this,h);var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=u,this.y1=r,this.x2=a,this.y2=e,this.addPoint(u,r),this.addPoint(a,e)}return Object(Q.a)(h,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(r,a){typeof r!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=r,this.x2=r),rthis.x2&&(this.x2=r)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(r){this.addPoint(r,null)}},{key:"addY",value:function(r){this.addPoint(null,r)}},{key:"addBoundingBox",value:function(r){if(!r)return;var a=r.x1,e=r.y1,o=r.x2,n=r.y2;this.addPoint(a,e),this.addPoint(o,n)}},{key:"sumCubic",value:function(r,a,e,o,n){return Math.pow(1-r,3)*a+3*Math.pow(1-r,2)*r*e+3*(1-r)*Math.pow(r,2)*o+Math.pow(r,3)*n}},{key:"bezierCurveAdd",value:function(r,a,e,o,n){var i=6*a-12*e+6*o,s=-3*a+9*e-9*o+3*n,l=3*e-3*a;if(s===0){if(i===0)return;var d=-l/i;0=o.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",n=new We(this.command[e],this.command[o]);return this.makeAbsolute(n)}},{key:"getAsControlPoint",value:function(e,o){var n=this.getPoint(e,o);return this.control=n,n}},{key:"getAsCurrentPoint",value:function(e,o){var n=this.getPoint(e,o);return this.current=n,n}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Ie.a.CURVE_TO&&e!==Ie.a.SMOOTH_CURVE_TO&&e!==Ie.a.QUAD_TO&&e!==Ie.a.SMOOTH_QUAD_TO)return this.current;var o=this.current,n=o.x,i=o.y,s=this.control,l=s.x,d=s.y,v=new We(2*n-l,2*i-d);return v}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var o=this.current,n=o.x,i=o.y;e.x+=n,e.y+=i}return e}},{key:"addMarker",value:function(e,o,n){var i=this.points,s=this.angles;n&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=i[i.length-1].angleTo(n)),this.addMarkerAngle(e,o?o.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,o){this.points.push(e),this.angles.push(o)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,o=e.length,n=0;n1&&arguments[1]!==void 0?arguments[1]:!1;if(!o){var n=this.getStyle("fill"),i=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(n.isUrlDefinition()){var d=n.getFillStyleDefinition(this,i);d&&(e.fillStyle=d)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var v=n.getColor();v!=="inherit"&&(e.fillStyle=v==="none"?"rgba(0,0,0,0)":v)}if(i.hasValue()){var x=new he(this.document,"fill",e.fillStyle).addOpacity(i).getColor();e.fillStyle=x}if(s.isUrlDefinition()){var D=s.getFillStyleDefinition(this,l);D&&(e.strokeStyle=D)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var $=s.getString();$!=="inherit"&&(e.strokeStyle=$==="none"?"rgba(0,0,0,0)":$)}if(l.hasValue()){var ne=new he(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=ne}var oe=this.getStyle("stroke-width");if(oe.hasValue()){var ae=oe.getPixels();e.lineWidth=ae||de}var xe=this.getStyle("stroke-linecap"),fe=this.getStyle("stroke-linejoin"),ue=this.getStyle("stroke-miterlimit"),me=this.getStyle("stroke-dasharray"),Le=this.getStyle("stroke-dashoffset");if(xe.hasValue()&&(e.lineCap=xe.getString()),fe.hasValue()&&(e.lineJoin=fe.getString()),ue.hasValue()&&(e.miterLimit=ue.getNumber()),me.hasValue()&&me.getString()!=="none"){var Ve=Oe(me.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ve):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ve:typeof e.mozDash!="undefined"&&!(Ve.length===1&&Ve[0]===0)&&(e.mozDash=Ve);var Ze=Le.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=Ze:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=Ze:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=Ze)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var dt=this.getStyle("font"),ft=this.getStyle("font-style"),ot=this.getStyle("font-variant"),rt=this.getStyle("font-weight"),ut=this.getStyle("font-size"),Et=this.getStyle("font-family"),et=new mt(ft.getString(),ot.getString(),rt.getString(),ut.hasValue()?"".concat(ut.getPixels(!0),"px"):"",Et.getString(),mt.parse(dt.getString(),e.font));ft.setValue(et.fontStyle),ot.setValue(et.fontVariant),rt.setValue(et.fontWeight),ut.setValue(et.fontSize),Et.setValue(et.fontFamily),e.font=et.toString(),ut.isPixels()&&(this.document.emSize=ut.getPixels(),this.modifiedEmSizeStack=!0)}o||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(H.a)(Object(L.a)(r.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),r}(ke),Qe=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="path",n.pathParser=null,n.pathParser=new be(n.getAttribute("d").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.pathParser,n=new ct;for(o.reset(),e&&e.beginPath();!o.isEnd();)switch(o.next().type){case be.MOVE_TO:this.pathM(e,n);break;case be.LINE_TO:this.pathL(e,n);break;case be.HORIZ_LINE_TO:this.pathH(e,n);break;case be.VERT_LINE_TO:this.pathV(e,n);break;case be.CURVE_TO:this.pathC(e,n);break;case be.SMOOTH_CURVE_TO:this.pathS(e,n);break;case be.QUAD_TO:this.pathQ(e,n);break;case be.SMOOTH_QUAD_TO:this.pathT(e,n);break;case be.ARC:this.pathA(e,n);break;case be.CLOSE_PATH:this.pathZ(e,n);break}return n}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,o=e.getMarkerPoints(),n=e.getMarkerAngles(),i=o.map(function(s,l){return[s,n[l]]});return i}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var o=this.getStyle("fill-rule");e.fillStyle!==""&&(o.getString("inherit")!=="inherit"?e.fill(o.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var n=this.getMarkers();if(n){var i=n.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),d=this.getStyle("marker-end");if(s.isUrlDefinition()){var v=s.getDefinition(),x=Object(ie.a)(n[0],2),D=x[0],$=x[1];v.render(e,D,$)}if(l.isUrlDefinition())for(var ne=l.getDefinition(),oe=1;oed?l:d,ue=l>d?1:l/d,me=l>d?d/l:1;e.translate(D.x,D.y),e.rotate(x),e.scale(ue,me),e.arc(0,0,fe,$,$+ne,Boolean(1-v)),e.scale(1/ue,1/me),e.rotate(-x),e.translate(-D.x,-D.y)}}},{key:"pathZ",value:function(e,o){r.pathZ(this.pathParser),e&&(o.x1!==o.x2&&o.y1!==o.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var o=e.getAsCurrentPoint();return e.start=e.current,{point:o}}},{key:"pathL",value:function(e){var o=e.current,n=e.getAsCurrentPoint();return{current:o,point:n}}},{key:"pathH",value:function(e){var o=e.current,n=e.command,i=new We((n.relative?o.x:0)+n.x,o.y);return e.current=i,{current:o,point:i}}},{key:"pathV",value:function(e){var o=e.current,n=e.command,i=new We(o.x,(n.relative?o.y:0)+n.y);return e.current=i,{current:o,point:i}}},{key:"pathC",value:function(e){var o=e.current,n=e.getPoint("x1","y1"),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathS",value:function(e){var o=e.current,n=e.getReflectedControlPoint(),i=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:o,point:n,controlPoint:i,currentPoint:s}}},{key:"pathQ",value:function(e){var o=e.current,n=e.getAsControlPoint("x1","y1"),i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathT",value:function(e){var o=e.current,n=e.getReflectedControlPoint();e.control=n;var i=e.getAsCurrentPoint();return{current:o,controlPoint:n,currentPoint:i}}},{key:"pathA",value:function(e){var o=e.current,n=e.command,i=n.rX,s=n.rY,l=n.xRot,d=n.lArcFlag,v=n.sweepFlag,x=l*(Math.PI/180),D=e.getAsCurrentPoint(),$=new We(Math.cos(x)*(o.x-D.x)/2+Math.sin(x)*(o.y-D.y)/2,-Math.sin(x)*(o.x-D.x)/2+Math.cos(x)*(o.y-D.y)/2),ne=Math.pow($.x,2)/Math.pow(i,2)+Math.pow($.y,2)/Math.pow(s,2);ne>1&&(i*=Math.sqrt(ne),s*=Math.sqrt(ne));var oe=(d===v?-1:1)*Math.sqrt((Math.pow(i,2)*Math.pow(s,2)-Math.pow(i,2)*Math.pow($.y,2)-Math.pow(s,2)*Math.pow($.x,2))/(Math.pow(i,2)*Math.pow($.y,2)+Math.pow(s,2)*Math.pow($.x,2)));isNaN(oe)&&(oe=0);var ae=new We(oe*i*$.y/s,oe*-s*$.x/i),xe=new We((o.x+D.x)/2+Math.cos(x)*ae.x-Math.sin(x)*ae.y,(o.y+D.y)/2+Math.sin(x)*ae.x+Math.cos(x)*ae.y),fe=Ee([1,0],[($.x-ae.x)/i,($.y-ae.y)/s]),ue=[($.x-ae.x)/i,($.y-ae.y)/s],me=[(-$.x-ae.x)/i,(-$.y-ae.y)/s],Le=Ee(ue,me);return ye(ue,me)<=-1&&(Le=Math.PI),ye(ue,me)>=1&&(Le=0),{currentPoint:D,rX:i,rY:s,sweepFlag:v,xAxisRotation:x,centp:xe,a1:fe,ad:Le}}},{key:"pathZ",value:function(e){e.current=e.start}}]),r}(bt),Gt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="glyph",n.horizAdvX=n.getAttribute("horiz-adv-x").getNumber(),n.unicode=n.getAttribute("unicode").getString(),n.arabicForm=n.getAttribute("arabic-form").getString(),n}return Object(Q.a)(r)}(Qe),jt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,new.target===r?!0:o),n.type="text",n.x=0,n.y=0,n.measureCache=-1,n}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(H.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e,o);var n=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();n&&(e.textBaseline=n)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var o=this.getAttribute("dx"),n=this.getAttribute("dy");o.hasValue()&&(this.x+=o.getPixels("x")),n.hasValue()&&(this.y+=n.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var o=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var n=null;return this.children.forEach(function(i,s){var l=o.getChildBoundingBox(e,o,o,s);n?n.addBoundingBox(l):n=l}),n}},{key:"getFontSize",value:function(){var e=this.document,o=this.parent,n=mt.parse(e.ctx.font).fontSize,i=o.getStyle("font-size").getNumber(n);return i}},{key:"getTElementBoundingBox",value:function(e){var o=this.getFontSize();return new ct(this.x,this.y-o,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,o,n){var i=o[n],s=null;if(e.isArabic){var l=o.length,d=o[n-1],v=o[n+1],x="isolated";if((n===0||d===" ")&&n0&&d!==" "&&n0&&d!==" "&&(n===l-1||v===" ")&&(x="initial"),typeof e.glyphs[i]!="undefined"){var D=e.glyphs[i];s=D instanceof Gt?D:D[x]}}else s=e.glyphs[i];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var o=e||this.node,n=Array.from(o.parentNode.childNodes),i=n.indexOf(o),s=n.length-1,l=De(o.textContent||"");return i===0&&(l=Pe(l)),i===s&&(l=Se(l)),l}},{key:"renderChildren",value:function(e){var o=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach(function(i,s){o.renderChild(e,o,o,s)});var n=this.document.screen.mouse;n.isWorking()&&n.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var o=this.document,n=this.parent,i=this.getText(),s=n.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,d=mt.parse(o.ctx.font),v=n.getStyle("font-size").getNumber(d.fontSize),x=n.getStyle("font-style").getString(d.fontStyle),D=v/l,$=s.isRTL?i.split("").reverse().join(""):i,ne=Oe(n.getAttribute("dx").getString()),oe=$.length,ae=0;aen&&d.getAttribute("x").hasValue()||d.getAttribute("text-anchor").hasValue());x++)v+=d.measureTextRecursive(e);return-1*(i==="end"?v:v/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,o,n,i){var s=n.children[i];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),d=s.getAttribute("y"),v=s.getAttribute("dx"),x=s.getAttribute("dy"),D=s.getAttribute("text-anchor").getString("start");if(i===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(o.getAttribute("x").getValue("0")),d.hasValue()||d.setValue(o.getAttribute("y").getValue("0")),v.hasValue()||v.setValue(o.getAttribute("dx").getValue("0")),x.hasValue()||x.setValue(o.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+o.getAnchorDelta(e,n,i),D!=="start"){var $=s.measureTextRecursive(e);s.x+=-1*(D==="end"?$:$/2)}v.hasValue()&&(s.x+=v.getPixels("x"))}else{if(D!=="start"){var ne=s.measureTextRecursive(e);o.x+=-1*(D==="end"?ne:ne/2)}v.hasValue()&&(o.x+=v.getPixels("x")),s.x=o.x}return o.x=s.x+s.measureText(e),d.hasValue()?(s.y=d.getPixels("y"),x.hasValue()&&(s.y+=x.getPixels("y"))):(x.hasValue()&&(o.y+=x.getPixels("y")),s.y=o.y),o.y=s.y,s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(d,v){var x=o.getChildBoundingBox(e,o,s,v);l.addBoundingBox(x)}),l):null}},{key:"renderChild",value:function(e,o,n,i){var s=this.adjustChildCoordinates(e,o,n,i);s.render(e),s.children.forEach(function(l,d){o.renderChild(e,o,s,d)})}},{key:"measureTextRecursive",value:function(e){var o=this.children.reduce(function(n,i){return n+i.measureTextRecursive(e)},this.measureText(e));return o}},{key:"measureText",value:function(e){var o=this.measureCache;if(~o)return o;var n=this.getText(),i=this.measureTargetText(e,n);return this.measureCache=i,i}},{key:"measureTargetText",value:function(e,o){if(!o.length)return 0;var n=this.parent,i=n.getStyle("font-family").getDefinition();if(i){for(var s=this.getFontSize(),l=i.isRTL?o.split("").reverse().join(""):o,d=Oe(n.getAttribute("dx").getString()),v=l.length,x=0,D=0;D0?"":n.getTextFromNode(),n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}}]),r}(jt),tr=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="textNode",a}return Object(Q.a)(r)}(kt),Pt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(Q.a)(r,[{key:"setContext",value:function(e){var o,n=this.document,i=n.screen,s=n.window,l=e.canvas;if(i.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var d=new he(n,"fontSize",mt.parse(e.font).fontSize);d.hasValue()&&(n.rootEmSize=d.getPixels("y"),n.emSize=n.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var v=i.viewPort,x=v.width,D=v.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var $=this.getAttribute("refX"),ne=this.getAttribute("refY"),oe=this.getAttribute("viewBox"),ae=oe.hasValue()?Oe(oe.getString()):null,xe=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",fe=0,ue=0,me=0,Le=0;ae&&(fe=ae[0],ue=ae[1]),this.root||(x=this.getStyle("width").getPixels("x"),D=this.getStyle("height").getPixels("y"),this.type==="marker"&&(me=fe,Le=ue,fe=0,ue=0)),i.viewPort.setCurrent(x,D),this.node&&(!this.parent||((o=this.node.parentNode)===null||o===void 0?void 0:o.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(H.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(x=ae[2],D=ae[3]),n.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:i.viewPort.width,desiredWidth:x,height:i.viewPort.height,desiredHeight:D,minX:fe,minY:ue,refX:$.getValue(),refY:ne.getValue(),clip:xe,clipX:me,clipY:Le}),ae&&(i.viewPort.removeCurrent(),i.viewPort.setCurrent(x,D))}},{key:"clearContext",value:function(e){Object(H.a)(Object(L.a)(r.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),d=this.getAttribute("style"),v=i.getNumber(0),x=s.getNumber(0);if(n)if(typeof n=="string")this.getAttribute("preserveAspectRatio",!0).setValue(n);else{var D=this.getAttribute("preserveAspectRatio");D.hasValue()&&D.setValue(D.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(i.setValue(e),s.setValue(o),l.hasValue()||l.setValue("0 0 ".concat(v||e," ").concat(x||o)),d.hasValue()){var $=this.getStyle("width"),ne=this.getStyle("height");$.hasValue()&&$.setValue("".concat(e,"px")),ne.hasValue()&&ne.setValue("".concat(o,"px"))}}}]),r}(bt),zt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="rect",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("x").getPixels("x"),n=this.getAttribute("y").getPixels("y"),i=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),d=this.getAttribute("ry"),v=l.getPixels("x"),x=d.getPixels("y");if(l.hasValue()&&!d.hasValue()&&(x=v),d.hasValue()&&!l.hasValue()&&(v=x),v=Math.min(v,i/2),x=Math.min(x,s/2),e){var D=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&i>0&&(e.moveTo(o+v,n),e.lineTo(o+i-v,n),e.bezierCurveTo(o+i-v+D*v,n,o+i,n+x-D*x,o+i,n+x),e.lineTo(o+i,n+s-x),e.bezierCurveTo(o+i,n+s-x+D*x,o+i-v+D*v,n+s,o+i-v,n+s),e.lineTo(o+v,n+s),e.bezierCurveTo(o+v-D*v,n+s,o,n+s-x+D*x,o,n+s-x),e.lineTo(o,n+x),e.bezierCurveTo(o,n+x-D*x,o+v-D*v,n,o+v,n),e.closePath())}return new ct(o,n,o+i,n+s)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),rn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="circle",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.getAttribute("cx").getPixels("x"),n=this.getAttribute("cy").getPixels("y"),i=this.getAttribute("r").getPixels();return e&&i>0&&(e.beginPath(),e.arc(o,n,i,0,Math.PI*2,!1),e.closePath()),new ct(o-i,n-i,o+i,n+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),an=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="ellipse",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=4*((Math.sqrt(2)-1)/3),n=this.getAttribute("rx").getPixels("x"),i=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&n>0&&i>0&&(e.beginPath(),e.moveTo(s+n,l),e.bezierCurveTo(s+n,l+o*i,s+o*n,l+i,s,l+i),e.bezierCurveTo(s-o*n,l+i,s-n,l+o*i,s-n,l),e.bezierCurveTo(s-n,l-o*i,s-o*n,l-i,s,l-i),e.bezierCurveTo(s+o*n,l-i,s+n,l-o*i,s+n,l),e.closePath()),new ct(s-n,l-i,s+n,l+i)}},{key:"getMarkers",value:function(){return null}}]),r}(Qe),on=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="line",a}return Object(Q.a)(r,[{key:"getPoints",value:function(){return[new We(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new We(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var o=this.getPoints(),n=Object(ie.a)(o,2),i=n[0],s=i.x,l=i.y,d=n[1],v=d.x,x=d.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(v,x)),new ct(s,l,v,x)}},{key:"getMarkers",value:function(){var e=this.getPoints(),o=Object(ie.a)(e,2),n=o[0],i=o[1],s=n.angleTo(i);return[[n,s],[i,s]]}}]),r}(Qe),Ht=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="polyline",n.points=[],n.points=We.parsePath(n.getAttribute("points").getString()),n}return Object(Q.a)(r,[{key:"path",value:function(e){var o=this.points,n=Object(ie.a)(o,1),i=n[0],s=i.x,l=i.y,d=new ct(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),o.forEach(function(v){var x=v.x,D=v.y;d.addPoint(x,D),e&&e.lineTo(x,D)}),d}},{key:"getMarkers",value:function(){var e=this.points,o=e.length-1,n=[];return e.forEach(function(i,s){if(s===o)return;n.push([i,i.angleTo(e[s+1])])}),n.length>0&&n.push([e[e.length-1],n[n.length-1][1]]),n}}]),r}(Qe),sn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="polygon",a}return Object(Q.a)(r,[{key:"path",value:function(e){var o=Object(H.a)(Object(L.a)(r.prototype),"path",this).call(this,e),n=Object(ie.a)(this.points,1),i=n[0],s=i.x,l=i.y;return e&&(e.lineTo(s,l),e.closePath()),o}}]),r}(Ht),ln=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="pattern",a}return Object(Q.a)(r,[{key:"createPattern",value:function(e,o,n){var i=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Pt(this.document,null);l.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new he(this.document,"width","".concat(i,"px")),l.attributes.height=new he(this.document,"height","".concat(s,"px")),l.attributes.transform=new he(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var d=this.document.createCanvas(i,s),v=d.getContext("2d"),x=this.getAttribute("x"),D=this.getAttribute("y");x.hasValue()&&D.hasValue()&&v.translate(x.getPixels("x",!0),D.getPixels("y",!0)),n.hasValue()?this.styles["fill-opacity"]=n:Reflect.deleteProperty(this.styles,"fill-opacity");for(var $=-1;$<=1;$++)for(var ne=-1;ne<=1;ne++)v.save(),l.attributes.x=new he(this.document,"x",$*d.width),l.attributes.y=new he(this.document,"y",ne*d.height),l.render(v),v.restore();var oe=e.createPattern(d,"repeat");return oe}}]),r}(ke),un=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="marker",a}return Object(Q.a)(r,[{key:"render",value:function(e,o,n){if(!o)return;var i=o.x,s=o.y,l=this.getAttribute("orient").getString("auto"),d=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(i,s),l==="auto"&&e.rotate(n),d==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var v=new Pt(this.document,null);v.type=this.type,v.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),v.attributes.refX=new he(this.document,"refX",this.getAttribute("refX").getValue()),v.attributes.refY=new he(this.document,"refY",this.getAttribute("refY").getValue()),v.attributes.width=new he(this.document,"width",this.getAttribute("markerWidth").getValue()),v.attributes.height=new he(this.document,"height",this.getAttribute("markerHeight").getValue()),v.attributes.overflow=new he(this.document,"overflow",this.getAttribute("overflow").getValue()),v.attributes.fill=new he(this.document,"fill",this.getAttribute("fill").getColor("black")),v.attributes.stroke=new he(this.document,"stroke",this.getAttribute("stroke").getValue("none")),v.children=this.children,v.render(e),e.restore(),d==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-n),e.translate(-i,-s)}}]),r}(ke),cn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="defs",a}return Object(Q.a)(r,[{key:"render",value:function(){}}]),r}(ke),Nt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="g",a}return Object(Q.a)(r,[{key:"getBoundingBox",value:function(e){var o=new ct;return this.children.forEach(function(n){o.addBoundingBox(n.getBoundingBox(e))}),o}}]),r}(bt),Kt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.attributesToInherit=["gradientUnits"],n.stops=[];var i=Object(P.a)(n),s=i.stops,l=i.children;return l.forEach(function(d){d.type==="stop"&&s.push(d)}),n}return Object(Q.a)(r,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,o,n){var i=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,d=l.stops,v=this.getGradient(e,o);if(!v)return this.addParentOpacity(n,d[d.length-1].color);if(d.forEach(function(Ve){v.addColorStop(Ve.offset,i.addParentOpacity(n,Ve.color))}),this.getAttribute("gradientTransform").hasValue()){var x=this.document,D=x.screen,$=D.MAX_VIRTUAL_PIXELS,ne=D.viewPort,oe=Object(ie.a)(ne.viewPorts,1),ae=oe[0],xe=new zt(x,null);xe.attributes.x=new he(x,"x",-$/3),xe.attributes.y=new he(x,"y",-$/3),xe.attributes.width=new he(x,"width",$),xe.attributes.height=new he(x,"height",$);var fe=new Nt(x,null);fe.attributes.transform=new he(x,"transform",this.getAttribute("gradientTransform").getValue()),fe.children=[xe];var ue=new Pt(x,null);ue.attributes.x=new he(x,"x",0),ue.attributes.y=new he(x,"y",0),ue.attributes.width=new he(x,"width",ae.width),ue.attributes.height=new he(x,"height",ae.height),ue.children=[fe];var me=x.createCanvas(ae.width,ae.height),Le=me.getContext("2d");return Le.fillStyle=v,ue.render(Le),Le.createPattern(me,"no-repeat")}return v}},{key:"inheritStopContainer",value:function(e){var o=this;this.attributesToInherit.forEach(function(n){!o.getAttribute(n).hasValue()&&e.getAttribute(n).hasValue()&&o.getAttribute(n,!0).setValue(e.getAttribute(n).getValue())})}},{key:"addParentOpacity",value:function(e,o){if(e.hasValue()){var n=new he(this.document,"color",o);return n.addOpacity(e).getColor()}return o}}]),r}(ke),dn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="linearGradient",n.attributesToInherit.push("x1","y1","x2","y2"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=n?o.getBoundingBox(e):null;if(n&&!i)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=n?i.x+i.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=n?i.y+i.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),d=n?i.x+i.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),v=n?i.y+i.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===d&&l===v?null:e.createLinearGradient(s,l,d,v)}}]),r}(Kt),fn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;return Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="radialGradient",n.attributesToInherit.push("cx","cy","r","fx","fy","fr"),n}return Object(Q.a)(r,[{key:"getGradient",value:function(e,o){var n=this.getGradientUnits()==="objectBoundingBox",i=o.getBoundingBox(e);if(n&&!i)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=n?i.x+i.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=n?i.y+i.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),d=s,v=l;this.getAttribute("fx").hasValue()&&(d=n?i.x+i.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(v=n?i.y+i.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var x=n?(i.width+i.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),D=this.getAttribute("fr").getPixels();return e.createRadialGradient(d,v,D,s,l,x)}}]),r}(Kt),hn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="stop";var i=Math.max(0,Math.min(1,n.getAttribute("offset").getNumber())),s=n.getStyle("stop-opacity"),l=n.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),n.offset=i,n.color=l.getColor(),n}return Object(Q.a)(r)}(ke),Dt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="animate",n.duration=0,n.initialValue=null,n.initialUnits="",n.removed=!1,n.frozen=!1,a.screen.animations.push(Object(P.a)(n)),n.begin=n.getAttribute("begin").getMilliseconds(),n.maxDuration=n.begin+n.getAttribute("dur").getMilliseconds(),n.from=n.getAttribute("from"),n.to=n.getAttribute("to"),n.values=new he(a,"values",null);var i=n.getAttribute("values");return i.hasValue()&&n.values.setValue(i.getString().split(";")),n}return Object(Q.a)(r,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),o=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(o,!0):this.parent.getAttribute(o,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,o=this.getProgress(),n=o.progress,i=o.from,s=o.to,l=i.getNumber()+(s.getNumber()-i.getNumber())*n;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var o=this.parent,n=this.getProperty();if(this.initialValue||(this.initialValue=n.getString(),this.initialUnits=n.getUnits()),this.duration>this.maxDuration){var i=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(i==="freeze"&&!this.frozen)this.frozen=!0,o.animationFrozen=!0,o.animationFrozenValue=n.getString();else if(i==="remove"&&!this.removed)return this.removed=!0,n.setValue(o.animationFrozen?o.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(i).every(function(d){return d.nodeType===3});return n.hasText=l,n.text=l?n.getTextFromNode(s):"",n}return Object(Q.a)(r,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(H.a)(Object(L.a)(r.prototype),"renderChildren",this).call(this,e);var o=this.document,n=this.x,i=this.y,s=o.screen.mouse,l=new he(o,"fontSize",mt.parse(o.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ct(n,i-l.getPixels("y"),n+this.measureText(e),i))}else if(this.children.length>0){var d=new Nt(this.document,null);d.children=this.children,d.parent=this,d.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),r}(jt);function En(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function wt(h){for(var u=1;uD?x:D,fe=x>D?1:x/D,ue=x>D?D/x:1;e&&(e.translate(d,v),e.rotate(oe),e.scale(fe,ue),e.arc(0,0,xe,$,$+ne,Boolean(1-ae)),e.scale(1/fe,1/ue),e.rotate(-oe),e.translate(-d,-v));break}case be.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var o=this.parent.getStyle("text-decoration").getString(),n=this.getFontSize(),i=this.glyphInfo,s=e.fillStyle;o==="underline"&&e.beginPath(),i.forEach(function(l,d){var v=l.p0,x=l.p1,D=l.rotation,$=l.text;e.save(),e.translate(v.x,v.y),e.rotate(D),e.fillStyle&&e.fillText($,0,0),e.strokeStyle&&e.strokeText($,0,0),e.restore(),o==="underline"&&(d===0&&e.moveTo(v.x,v.y+n/8),e.lineTo(x.x,x.y+n/5))}),o==="underline"&&(e.lineWidth=n/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,o,n,i,s,l,d,v,x){var D=l,$=this.measureText(e,v);v===" "&&o==="justify"&&n-1&&(D+=this.getLetterSpacingAt(x));var ne=this.textHeight/20,oe=this.getEquidistantPointOnPath(D,ne,0),ae=this.getEquidistantPointOnPath(D+$,ne,0),xe={p0:oe,p1:ae},fe=oe&&ae?Math.atan2(ae.y-oe.y,ae.x-oe.x):0;if(d){var ue=Math.cos(Math.PI/2+fe)*d,me=Math.cos(-fe)*d;xe.p0=wt(wt({},oe),{},{x:oe.x+ue,y:oe.y+me}),xe.p1=wt(wt({},ae),{},{x:ae.x+ue,y:ae.y+me})}return D+=$,{offset:D,segment:xe,rotation:fe}}},{key:"measureText",value:function(e,o){var n=this.measuresCache,i=o||this.getText();if(n.has(i))return n.get(i);var s=this.measureTargetText(e,i);return n.set(i,s),s}},{key:"setTextData",value:function(e){var o=this;if(this.glyphInfo)return;var n=this.getText(),i=n.split(""),s=n.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Ze){return Ze.getPixels("x")}),d=this.parent.getAttribute("dy").getPixels("y"),v=this.parent.getStyle("text-anchor").getString("start"),x=this.getStyle("letter-spacing"),D=this.parent.getStyle("letter-spacing"),$=0;!x.hasValue()||x.getValue()==="inherit"?$=D.getPixels():x.hasValue()&&(x.getValue()!=="initial"&&x.getValue()!=="unset"&&($=x.getPixels()));var ne=[],oe=n.length;this.letterSpacingCache=ne;for(var ae=0;ae0&&(x-=2*Math.PI),s===1&&x<0&&(x+=2*Math.PI),[d.x,d.y,n,i,v,x,l,s]}},{key:"calcLength",value:function(e,o,n,i){var s=0,l=null,d=null,v=0;switch(n){case be.LINE_TO:return this.getLineLength(e,o,i[0],i[1]);case be.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),v=.01;v<=1;v+=.01)d=this.getPointOnCubicBezier(v,e,o,i[0],i[1],i[2],i[3],i[4],i[5]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case be.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,o,i[0],i[1],i[2],i[3]),v=.01;v<=1;v+=.01)d=this.getPointOnQuadraticBezier(v,e,o,i[0],i[1],i[2],i[3]),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return s;case be.ARC:{s=0;var x=i[4],D=i[5],$=i[4]+D,ne=Math.PI/180;if(Math.abs(x-$)$;v-=ne)d=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],v,0),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;else for(v=x+ne;v<$;v+=ne)d=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],v,0),s+=this.getLineLength(l.x,l.y,d.x,d.y),l=d;return d=this.getPointOnEllipticalArc(i[0],i[1],i[2],i[3],$,0),s+=this.getLineLength(l.x,l.y,d.x,d.y),s}}return 0}},{key:"getPointOnLine",value:function(e,o,n,i,s){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:o,d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:n,v=(s-n)/(i-o+de),x=Math.sqrt(e*e/(1+v*v));io)return null;var s=this.dataArray,l=Object(O.a)(s),d;try{for(l.s();!(d=l.n()).done;){var v=d.value;if(v&&(v.pathLength<5e-5||n+v.pathLength+5e-5=0&&D>oe)break;i=this.getPointOnEllipticalArc(v.points[0],v.points[1],v.points[2],v.points[3],D,v.points[6]);break}case be.CURVE_TO:D=x/v.pathLength,D>1&&(D=1),i=this.getPointOnCubicBezier(D,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3],v.points[4],v.points[5]);break;case be.QUAD_TO:D=x/v.pathLength,D>1&&(D=1),i=this.getPointOnQuadraticBezier(D,v.start.x,v.start.y,v.points[0],v.points[1],v.points[2],v.points[3]);break}if(i)return i;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,o,n,i){return Math.sqrt((n-e)*(n-e)+(i-o)*(i-o))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,o){return o.pathLength>0?e+o.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,o,n,i,s,l,d,v,x){var D=v*Fe(e)+l*Je(e)+i*$e(e)+o*Xe(e),$=x*Fe(e)+d*Je(e)+s*$e(e)+n*Xe(e);return{x:D,y:$}}},{key:"getPointOnQuadraticBezier",value:function(e,o,n,i,s,l,d){var v=l*vt(e)+i*lt(e)+o*pt(e),x=d*vt(e)+s*lt(e)+n*pt(e);return{x:v,y:x}}},{key:"getPointOnEllipticalArc",value:function(e,o,n,i,s,l){var d=Math.cos(l),v=Math.sin(l),x={x:n*Math.cos(s),y:i*Math.sin(s)};return{x:e+(x.x*d-x.y*v),y:o+(x.x*v+x.y*d)}}},{key:"buildEquidistantCache",value:function(e,o){var n=this.getPathLength(),i=o||.25,s=e||n/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==i){this.equidistantCache={step:s,precision:i,points:[]};for(var l=0,d=0;d<=n;d+=i){var v=this.getPointOnPath(d),x=this.getPointOnPath(d+i);if(!v||!x)continue;l+=this.getLineLength(v.x,v.y,x.x,x.y),l>=s&&(this.equidistantCache.points.push({x:v.x,y:v.y,distance:d}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,o,n){if(this.buildEquidistantCache(o,n),e<0||e-this.getPathLength()>5e-5)return null;var i=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[i]||null}}]),r}(jt),nr=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Cn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="image",n.loaded=!1;var i=n.getHrefAttribute().getString();if(!i)return Object(V.a)(n);var s=i.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(i);return a.images.push(Object(P.a)(n)),s?void n.loadSvg(i):void n.loadImage(i),n.isSvg=s,n}return Object(Q.a)(r,[{key:"loadImage",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i;return se.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,o.document.createImage(e);case 3:i=l.sent,o.image=i,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:o.loaded=!0;case 11:case"end":return l.stop()}},n,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var o=this;return ve()(se.a.mark(function n(){var i,s,l,d;return se.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(i=nr.exec(e),!i){x.next=6;break}s=i[5],i[4]==="base64"?o.image=atob(s):o.image=decodeURIComponent(s),x.next=19;break;case 6:return x.prev=6,x.next=9,o.document.fetch(e);case 9:return l=x.sent,x.next=12,l.text();case 12:d=x.sent,o.image=d,x.next=19;break;case 16:x.prev=16,x.t0=x.catch(6),console.error('Error while loading image "'.concat(e,'":'),x.t0);case 19:o.loaded=!0;case 20:case"end":return x.stop()}},n,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var o=this.document,n=this.image,i=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),d=this.getStyle("width").getPixels("x"),v=this.getStyle("height").getPixels("y");if(!i||!n||!d||!v)return;if(e.save(),e.translate(s,l),this.isSvg){var x=o.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:d,scaleHeight:v});x.document.documentElement.parent=this,void x.render()}else{var D=this.image;o.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:d,desiredWidth:D.width,height:v,desiredHeight:D.height}),this.loaded&&((typeof D.complete=="undefined"||D.complete)&&e.drawImage(D,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),n=this.getStyle("width").getPixels("x"),i=this.getStyle("height").getPixels("y");return new ct(e,o,e+n,o+i)}}]),r}(bt),Sn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="symbol",a}return Object(Q.a)(r,[{key:"render",value:function(e){}}]),r}(bt),Mn=function(){function h(u){Object(X.a)(this,h),this.document=u,this.loaded=!1,u.fonts.push(this)}return Object(Q.a)(h,[{key:"load",value:function(r,a){var e=this;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.prev=0,n=e.document,d.next=4,n.canvg.parser.load(a);case 4:i=d.sent,s=i.getElementsByTagName("font"),Array.from(s).forEach(function(v){var x=n.createElement(v);n.definitions[r]=x}),d.next=12;break;case 9:d.prev=9,d.t0=d.catch(0),console.error('Error while loading font "'.concat(a,'":'),d.t0);case 12:e.loaded=!0;case 13:case"end":return d.stop()}},o,null,[[0,9]])}))()}}]),h}(),Yt=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="style";var i=De(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=i.split("}");return s.forEach(function(l){var d=l.trim();if(!d)return;var v=d.split("{"),x=v[0].split(","),D=v[1].split(";");x.forEach(function($){var ne=$.trim();if(!ne)return;var oe=a.styles[ne]||{};if(D.forEach(function(fe){var ue=fe.indexOf(":"),me=fe.substr(0,ue).trim(),Le=fe.substr(ue+1,fe.length-ue).trim();me&&Le&&(oe[me]=new he(a,me,Le))}),a.styles[ne]=oe,a.stylesSpecificity[ne]=te(ne),ne==="@font-face"){var ae=oe["font-family"].getString().replace(/"|'/g,""),xe=oe.src.getString().split(",");xe.forEach(function(fe){if(fe.indexOf('format("svg")')>0){var ue=Ge(fe);ue&&void new Mn(a).load(ae,ue)}})}})}),n}return Object(Q.a)(r)}(ke);Yt.parseExternalUrl=Ge;var jn=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(){var a;return Object(X.a)(this,r),a=u.apply(this,arguments),a.type="use",a}return Object(Q.a)(r,[{key:"setContext",value:function(e){Object(H.a)(Object(L.a)(r.prototype),"setContext",this).call(this,e);var o=this.getAttribute("x"),n=this.getAttribute("y");o.hasValue()&&e.translate(o.getPixels("x"),0),n.hasValue()&&e.translate(0,n.getPixels("y"))}},{key:"path",value:function(e){var o=this.element;o&&o.path(e)}},{key:"renderChildren",value:function(e){var o=this.document,n=this.element;if(n){var i=n;if(n.type==="symbol"&&(i=new Pt(o,null),i.attributes.viewBox=new he(o,"viewBox",n.getAttribute("viewBox").getString()),i.attributes.preserveAspectRatio=new he(o,"preserveAspectRatio",n.getAttribute("preserveAspectRatio").getString()),i.attributes.overflow=new he(o,"overflow",n.getAttribute("overflow").getString()),i.children=n.children,n.styles.opacity=new he(o,"opacity",this.calculateOpacity())),i.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(i.attributes.width=new he(o,"width",s.getString())),l.hasValue()&&(i.attributes.height=new he(o,"height",l.getString()))}var d=i.parent;i.parent=this,i.render(e),i.parent=d}}},{key:"getBoundingBox",value:function(e){var o=this.element;return o?o.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,o=this.element;return At.fromElement(e,o)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),r}(bt);function Lt(h,u,r,a,e,o){return h[r*a*4+u*4+o]}function Ut(h,u,r,a,e,o,n){h[r*a*4+u*4+o]=n}function Ke(h,u,r){var a=h[u];return a*r}function xt(h,u,r,a){return u+Math.cos(h)*r+Math.sin(h)*a}var $t=function(h){Object(J.a)(r,h);var u=Object(K.a)(r);function r(a,e,o){var n;Object(X.a)(this,r),n=u.call(this,a,e,o),n.type="feColorMatrix";var i=Oe(n.getAttribute("values").getString());switch(n.getAttribute("type").getString("matrix")){case"saturate":{var s=i[0];i=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=i[0]*Math.PI/180;i=[xt(l,.213,.787,-.213),xt(l,.715,-.715,-.715),xt(l,.072,-.072,.928),0,0,xt(l,.213,-.213,.143),xt(l,.715,.285,.14),xt(l,.072,-.072,-.283),0,0,xt(l,.213,-.213,-.787),xt(l,.715,-.715,.715),xt(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return n.matrix=i,n.includeOpacity=n.getAttribute("includeOpacity").hasValue(),n}return Object(Q.a)(r,[{key:"apply",value:function(e,o,n,i,s){for(var l=this.includeOpacity,d=this.matrix,v=e.getImageData(0,0,i,s),x=0;x1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),r&&(a.crossOrigin="Anonymous"),n.abrupt("return",new Promise(function(i,s){a.onload=function(){i(a)},a.onerror=function(l,d,v,x,D){s(D)},a.src=u}));case 4:case"end":return n.stop()}},h)})),Jt.apply(this,arguments)}var Rt=function(){function h(u){Object(X.a)(this,h);var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.rootEmSize,e=a===void 0?12:a,o=r.emSize,n=o===void 0?12:o,i=r.createCanvas,s=i===void 0?h.createCanvas:i,l=r.createImage,d=l===void 0?h.createImage:l,v=r.anonymousCrossOrigin;this.canvg=u,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=u.screen,this.rootEmSize=e,this.emSize=n,this.createCanvas=s,this.createImage=this.bindCreateImage(d,v),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(Q.a)(h,[{key:"bindCreateImage",value:function(r,a){return typeof a=="boolean"?function(e,o){return r(e,typeof o=="boolean"?o:a)}:r}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var r=this.emSizeStack;return r[r.length-1]},set:function(r){var a=this.emSizeStack;a.push(r)}},{key:"popEmSize",value:function(){var r=this.emSizeStack;r.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(r){return r.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(r){return r.loaded})}},{key:"createDocumentElement",value:function(r){var a=this.createElement(r.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(r){var a=r.nodeName.replace(/^[^:]+:/,""),e=h.elementTypes[a];return typeof e!="undefined"?new e(this,r):new nn(this,r)}},{key:"createTextNode",value:function(r){return new tr(this,r)}},{key:"setViewBox",value:function(r){this.screen.setViewBox(ar({document:this},r))}}]),h}();Rt.createCanvas=or,Rt.createImage=ir,Rt.elementTypes=rr;function Un(h,u){var r=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);u&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),r.push.apply(r,a)}return r}function St(h){for(var u=1;u2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new It(a),this.screen=new He(u,a),this.options=a;var e=new Rt(this,a),o=e.createDocumentElement(r);this.document=e,this.documentElement=o}return Object(Q.a)(h,[{key:"fork",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.from(r,a,St(St({},this.options),e))}},{key:"forkString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.fromString(r,a,St(St({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var r=arguments,a=this;return ve()(se.a.mark(function e(){var o;return se.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=r.length>0&&r[0]!==void 0?r[0]:{},a.start(St({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},o)),i.next=4,a.ready();case 4:a.stop();case 5:case"end":return i.stop()}},e)}))()}},{key:"start",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,o=this.options;e.start(a,St(St({enableRedraw:!0},o),r))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(r,a,e)}}],[{key:"from",value:function(r,a){var e=arguments;return ve()(se.a.mark(function o(){var n,i,s;return se.a.wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return n=e.length>2&&e[2]!==void 0?e[2]:{},i=new It(n),d.next=4,i.parse(a);case 4:return s=d.sent,d.abrupt("return",new h(r,s,n));case 6:case"end":return d.stop()}},o)}))()}},{key:"fromString",value:function(r,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=new It(e),n=o.parseFromString(a);return new h(r,n,e)}}]),h}();b.default=Vn}.call(this,t("Q2Ig"))},Dk1u:function(m,b,t){var c=t("Ks5W"),f=t("4YbN"),p=t("IL+x"),g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not a constructor")}},ENhe:function(m,b){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},FjAG:function(m,b,t){var c=t("Ks5W"),f=t("8HiI"),p=t("721z"),g=t("p5Ma"),y=t("tMNq"),j=c.TypeError,A=function(R){return function(M,w,F,I){f(w);var B=p(M),z=g(B),k=y(B),Y=R?k-1:0,Z=R?-1:1;if(F<2)for(;;){if(Y in z){I=z[Y],Y+=Z;break}if(Y+=Z,R?Y<0:k<=Y)throw j("Reduce of empty array with no initial value")}for(;R?Y>=0:k>Y;Y+=Z)Y in z&&(I=w(I,z[Y],Y,B));return I}};m.exports={left:A(!1),right:A(!0)}},FkIU:function(m,b,t){var c=t("++4Y"),f=t("eRwv");m.exports=c&&f(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,b,t){var c=t("Ks5W"),f=t("++4Y"),p=t("pVCk"),g=t("FkIU"),y=t("WxoH"),j=t("GTqx"),A=c.TypeError,R=Object.defineProperty,M=Object.getOwnPropertyDescriptor,w="enumerable",F="configurable",I="writable";b.f=f?g?function(z,k,Y){if(y(z),k=j(k),y(Y),typeof z=="function"&&k==="prototype"&&"value"in Y&&I in Y&&!Y[I]){var Z=M(z,k);Z&&Z[I]&&(z[k]=Y.value,Y={configurable:F in Y?Y[F]:Z[F],enumerable:w in Y?Y[w]:Z[w],writable:!1})}return R(z,k,Y)}:R:function(z,k,Y){if(y(z),k=j(k),y(Y),p)try{return R(z,k,Y)}catch(Z){}if("get"in Y||"set"in Y)throw A("Accessors not supported");return"value"in Y&&(z[k]=Y.value),z}},FqHY:function(m,b,t){var c=t("eE3R"),f=t("Ks5W");m.exports=/ipad|iphone|ipod/i.test(c)&&f.Pebble!==void 0},G5Kn:function(m,b,t){var c=t("11yv"),f=t("XFuk"),p=t("FlRv"),g=c("unscopables"),y=Array.prototype;y[g]==null&&p.f(y,g,{configurable:!0,value:f(null)}),m.exports=function(j){y[g][j]=!0}},GI0h:function(m,b,t){var c=t("me6S"),f=c("span").classList,p=f&&f.constructor&&f.constructor.prototype;m.exports=p===Object.prototype?void 0:p},GTqx:function(m,b,t){var c=t("ms20"),f=t("bT0D");m.exports=function(p){var g=c(p,"string");return f(g)?g:g+""}},GVkW:function(m,b,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),A=t("XaNE"),R=t("/TZh"),M=t("jybJ"),w=f("".endsWith),F=f("".slice),I=Math.min,B=R("endsWith"),z=!M&&!B&&!!function(){var k=p(String.prototype,"endsWith");return k&&!k.writable}();c({target:"String",proto:!0,forced:!z&&!B},{endsWith:function(Y){var Z=y(A(this));j(Y);var G=arguments.length>1?arguments[1]:void 0,_=Z.length,N=G===void 0?_:I(g(G),_),le=y(Y);return w?w(Z,le,N):F(Z,N-le.length,N)===le}})},GgKt:function(m,b,t){var c=t("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(c)},Gywb:function(m,b,t){var c=t("eRwv");m.exports=!c(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},"HTC/":function(m,b,t){"use strict";var c=t("WxoH");m.exports=function(){var f=c(this),p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),f.dotAll&&(p+="s"),f.unicode&&(p+="u"),f.sticky&&(p+="y"),p}},IGIO:function(m,b,t){var c=t("ba8b"),f=t("Ks5W");m.exports=c(f.process)=="process"},"IL+x":function(m,b,t){var c=t("Ks5W"),f=c.String;m.exports=function(p){try{return f(p)}catch(g){return"Object"}}},JHvW:function(m,b,t){var c=t("aLaa"),f=t("WxoH"),p=t("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},j;try{j=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),j(y,[]),g=y instanceof Array}catch(A){}return function(R,M){return f(R),p(M),g?j(R,M):R.__proto__=M,R}}():void 0)},JTf3:function(m,b){m.exports=function(t){return typeof t=="function"}},KKe4:function(m,b,t){"use strict";var c=t("m7zg"),f=t("WONN"),p=t("WxoH"),g=t("c3MK"),y=t("qzpy"),j=t("XaNE"),A=t("oK8H"),R=t("M/+V"),M=t("3fk+");f("match",function(w,F,I){return[function(z){var k=j(this),Y=z==null?void 0:A(z,w);return Y?c(Y,z,k):new RegExp(z)[w](y(k))},function(B){var z=p(this),k=y(B),Y=I(F,z,k);if(Y.done)return Y.value;if(!z.global)return M(z,k);var Z=z.unicode;z.lastIndex=0;for(var G=[],_=0,N;(N=M(z,k))!==null;){var le=y(N[0]);G[_]=le,le===""&&(z.lastIndex=R(k,g(z.lastIndex),Z)),_++}return _===0?null:G}]})},KLN8:function(m,b,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("fKql").f,g=t("c3MK"),y=t("qzpy"),j=t("OU4x"),A=t("XaNE"),R=t("/TZh"),M=t("jybJ"),w=f("".startsWith),F=f("".slice),I=Math.min,B=R("startsWith"),z=!M&&!B&&!!function(){var k=p(String.prototype,"startsWith");return k&&!k.writable}();c({target:"String",proto:!0,forced:!z&&!B},{startsWith:function(Y){var Z=y(A(this));j(Y);var G=g(I(arguments.length>1?arguments[1]:void 0,Z.length)),_=y(Y);return w?w(Z,_,G):F(Z,G,G+_.length)===_}})},Ks5W:function(m,b,t){(function(c){var f=function(p){return p&&p.Math==Math&&p};m.exports=f(typeof globalThis=="object"&&globalThis)||f(typeof window=="object"&&window)||f(typeof self=="object"&&self)||f(typeof c=="object"&&c)||function(){return this}()||Function("return this")()}).call(this,t("yLpj"))},LOfi:function(m,b,t){var c=t("WrAw");m.exports=function(f,p,g){for(var y in p)c(f,y,p[y],g);return f}},Lltv:function(m,b,t){"use strict";var c=t("vkZI"),f=t("G5Kn"),p=t("AoAp"),g=t("UQ6y"),y=t("FlRv").f,j=t("jgt4"),A=t("jybJ"),R=t("++4Y"),M="Array Iterator",w=g.set,F=g.getterFor(M);m.exports=j(Array,"Array",function(B,z){w(this,{type:M,target:c(B),index:0,kind:z})},function(){var B=F(this),z=B.target,k=B.kind,Y=B.index++;return!z||Y>=z.length?(B.target=void 0,{value:void 0,done:!0}):k=="keys"?{value:Y,done:!1}:k=="values"?{value:z[Y],done:!1}:{value:[Y,z[Y]],done:!1}},"values");var I=p.Arguments=p.Array;if(f("keys"),f("values"),f("entries"),!A&&R&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(B){}},"M/+V":function(m,b,t){"use strict";var c=t("ymN0").charAt;m.exports=function(f,p,g){return p+(g?c(f,p).length:1)}},MNKV:function(m,b,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("OU4x"),g=t("XaNE"),y=t("qzpy"),j=t("/TZh"),A=f("".indexOf);c({target:"String",proto:!0,forced:!j("includes")},{includes:function(M){return!!~A(y(g(this)),y(p(M)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,b,t){var c=t("aLaa"),f=0,p=Math.random(),g=c(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++f+p,36)}},N6FT:function(m,b,t){var c=t("++4Y"),f=t("YELS"),p=Function.prototype,g=c&&Object.getOwnPropertyDescriptor,y=f(p,"name"),j=y&&function(){}.name==="something",A=y&&(!c||c&&g(p,"name").configurable);m.exports={EXISTS:y,PROPER:j,CONFIGURABLE:A}},NCkV:function(m,b,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("COGW"),j=t("WxoH"),A=t("XaNE"),R=t("NudO"),M=t("M/+V"),w=t("c3MK"),F=t("qzpy"),I=t("oK8H"),B=t("8Ys4"),z=t("3fk+"),k=t("WMbf"),Y=t("RhGR"),Z=t("eRwv"),G=Y.UNSUPPORTED_Y,_=4294967295,N=Math.min,le=[].push,S=p(/./.exec),C=p(le),U=p("".slice),T=!Z(function(){var ee=/(?:)/,re=ee.exec;ee.exec=function(){return re.apply(this,arguments)};var q="ab".split(ee);return q.length!==2||q[0]!=="a"||q[1]!=="b"});g("split",function(ee,re,q){var E;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(V,O){var P=F(A(this)),H=O===void 0?_:O>>>0;if(H===0)return[];if(V===void 0)return[P];if(!y(V))return f(re,P,V,H);for(var L=[],W=(V.ignoreCase?"i":"")+(V.multiline?"m":"")+(V.unicode?"u":"")+(V.sticky?"y":""),J=0,K=new RegExp(V.source,W+"g"),X,Q,ie;(X=f(k,K,P))&&!(Q=K.lastIndex,Q>J&&(C(L,U(P,J,X.index)),X.length>1&&X.index=H));)K.lastIndex===X.index&&K.lastIndex++;return J===P.length?(ie||!S(K,""))&&C(L,""):C(L,U(P,J)),L.length>H?B(L,0,H):L}:"0".split(void 0,0).length?E=function(V,O){return V===void 0&&O===0?[]:f(re,this,V,O)}:E=re,[function(O,P){var H=A(this),L=O==null?void 0:I(O,ee);return L?f(L,O,H,P):f(E,F(H),O,P)},function(V,O){var P=j(this),H=F(V),L=q(E,P,H,O,E!==re);if(L.done)return L.value;var W=R(P,RegExp),J=P.unicode,K=(P.ignoreCase?"i":"")+(P.multiline?"m":"")+(P.unicode?"u":"")+(G?"g":"y"),X=new W(G?"^(?:"+P.source+")":P,K),Q=O===void 0?_:O>>>0;if(Q===0)return[];if(H.length===0)return z(X,H)===null?[H]:[];for(var ie=0,ce=0,se=[];ce]*>)/g,R=/\$([$&'`]|\d{1,2})/g;m.exports=function(M,w,F,I,B,z){var k=F+M.length,Y=I.length,Z=R;return B!==void 0&&(B=f(B),Z=A),y(z,Z,function(G,_){var N;switch(g(_,0)){case"$":return"$";case"&":return M;case"`":return j(w,0,F);case"'":return j(w,k);case"<":N=B[j(_,1,-1)];break;default:var le=+_;if(le===0)return G;if(le>Y){var S=p(le/10);return S===0?G:S<=Y?I[S-1]===void 0?g(_,1):I[S-1]+g(_,1):G}N=I[le-1]}return N===void 0?"":N})}},NudO:function(m,b,t){var c=t("WxoH"),f=t("Dk1u"),p=t("11yv"),g=p("species");m.exports=function(y,j){var A=c(y).constructor,R;return A===void 0||(R=c(A)[g])==null?j:f(R)}},Nybj:function(m,b,t){var c=t("vkZI"),f=t("n6S8"),p=t("tMNq"),g=function(y){return function(j,A,R){var M=c(j),w=p(M),F=f(R,w),I;if(y&&A!=A){for(;w>F;)if(I=M[F++],I!=I)return!0}else for(;w>F;F++)if((y||F in M)&&M[F]===A)return y||F||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,b,t){var c=t("Ks5W"),f=t("COGW"),p=c.TypeError;m.exports=function(g){if(f(g))throw p("The method doesn't accept regular expressions");return g}},Ppro:function(m,b,t){"use strict";var c=t("nCzB"),f=t("WMbf");c({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},QELg:function(m,b,t){"use strict";var c=t("eRwv");m.exports=function(f,p){var g=[][f];return!!g&&c(function(){g.call(null,p||function(){throw 1},1)})}},QrM1:function(m,b,t){var c=t("ZpKI"),f=t("Yzn+"),p=f.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(y){return c(y,p)}},"RXj+":function(m,b,t){var c=t("aLaa"),f=t("XaNE"),p=t("qzpy"),g=t("noWC"),y=c("".replace),j="["+g+"]",A=RegExp("^"+j+j+"*"),R=RegExp(j+j+"*$"),M=function(w){return function(F){var I=p(f(F));return w&1&&(I=y(I,A,"")),w&2&&(I=y(I,R,"")),I}};m.exports={start:M(1),end:M(2),trim:M(3)}},RYfq:function(m,b,t){var c=t("Ks5W"),f=t("JTf3"),p=function(g){return f(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?p(c[g]):c[g]&&c[g][y]}},RhGR:function(m,b,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp,g=c(function(){var A=p("a","y");return A.lastIndex=2,A.exec("abcd")!=null}),y=g||c(function(){return!p("a","y").sticky}),j=g||c(function(){var A=p("^r","gy");return A.lastIndex=2,A.exec("str")!=null});m.exports={BROKEN_CARET:j,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,b,t){var c=t("Ks5W"),f=t("JTf3"),p=t("sNJV"),g=c.WeakMap;m.exports=f(g)&&/native code/.test(p(g))},SN6V:function(m,b){var t=Math.ceil,c=Math.floor;m.exports=function(f){var p=+f;return p!==p||p===0?0:(p>0?c:t)(p)}},"ST+I":function(m,b,t){var c=t("aNr2"),f=t("MURR"),p=c("keys");m.exports=function(g){return p[g]||(p[g]=f(g))}},SkNP:function(m,b){m.exports={}},SwuV:function(m,b,t){var c=t("JTf3");m.exports=function(f){return typeof f=="object"?f!==null:c(f)}},TRzv:function(m,b,t){var c=t("WxoH"),f=t("SwuV"),p=t("zFjv");m.exports=function(g,y){if(c(g),f(y)&&y.constructor===g)return y;var j=p.f(g),A=j.resolve;return A(y),j.promise}},Ttl4:function(m,b,t){var c=t("YELS"),f=t("x1+7"),p=t("fKql"),g=t("FlRv");m.exports=function(y,j,A){for(var R=f(j),M=g.f,w=p.f,F=0;F0&&(!U.multiline||U.multiline&&z(ee,U.lastIndex-1)!==` -`)&&(X="(?: "+X+")",ie=" "+ie,Q++),E=new RegExp("^(?:"+X+")",K)),N&&(E=new RegExp("^"+X+"$(?!\\s)",K)),G&&(V=U.lastIndex),O=c(I,J?E:U,ie),J?O?(O.input=Z(O.input,Q),O[0]=Z(O[0],Q),O.index=U.lastIndex,U.lastIndex+=O[0].length):U.lastIndex=0:G&&O&&(U.lastIndex=U.global?O.index+O[0].length:V),N&&O&&O.length>1&&c(F,O[0],E,function(){for(P=1;P3&&(this.alpha=A[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var R=this.r.toString(16),M=this.g.toString(16),w=this.b.toString(16);return R.length==1&&(R="0"+R),M.length==1&&(M="0"+M),w.length==1&&(w="0"+w),"#"+R+M+w},this.getHelpXML=function(){for(var R=new Array,M=0;M "+k.toRGB()+" -> "+k.toHex());z.appendChild(Y),z.appendChild(Z),B.appendChild(z)}catch(_){}return B}}},WONN:function(m,b,t){"use strict";t("Ppro");var c=t("aLaa"),f=t("WrAw"),p=t("WMbf"),g=t("eRwv"),y=t("11yv"),j=t("8ODz"),A=y("species"),R=RegExp.prototype;m.exports=function(M,w,F,I){var B=y(M),z=!g(function(){var G={};return G[B]=function(){return 7},""[M](G)!=7}),k=z&&!g(function(){var G=!1,_=/a/;return M==="split"&&(_={},_.constructor={},_.constructor[A]=function(){return _},_.flags="",_[B]=/./[B]),_.exec=function(){return G=!0,null},_[B](""),!G});if(!z||!k||F){var Y=c(/./[B]),Z=w(B,""[M],function(G,_,N,le,S){var C=c(G),U=_.exec;return U===p||U===R.exec?z&&!S?{done:!0,value:Y(_,N,le)}:{done:!0,value:C(N,_,le)}:{done:!1}});f(String.prototype,M,Z[0]),f(R,B,Z[1])}I&&j(R[B],"sham",!0)}},WrAw:function(m,b,t){var c=t("Ks5W"),f=t("JTf3"),p=t("YELS"),g=t("8ODz"),y=t("nATg"),j=t("sNJV"),A=t("UQ6y"),R=t("N6FT").CONFIGURABLE,M=A.get,w=A.enforce,F=String(String).split("String");(m.exports=function(I,B,z,k){var Y=k?!!k.unsafe:!1,Z=k?!!k.enumerable:!1,G=k?!!k.noTargetGet:!1,_=k&&k.name!==void 0?k.name:B,N;if(f(z)&&(String(_).slice(0,7)==="Symbol("&&(_="["+String(_).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!p(z,"name")||R&&z.name!==_)&&g(z,"name",_),N=w(z),N.source||(N.source=F.join(typeof _=="string"?_:""))),I===c){Z?I[B]=z:y(B,z);return}else Y?!G&&I[B]&&(Z=!0):delete I[B];Z?I[B]=z:g(I,B,z)})(Function.prototype,"toString",function(){return f(this)&&M(this).source||j(this)})},WxoH:function(m,b,t){var c=t("Ks5W"),f=t("SwuV"),p=c.String,g=c.TypeError;m.exports=function(y){if(f(y))return y;throw g(p(y)+" is not an object")}},"X/EZ":function(m,b,t){var c=t("11yv"),f=c("iterator"),p=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){p=!0}};y[f]=function(){return this},Array.from(y,function(){throw 2})}catch(j){}m.exports=function(j,A){if(!A&&!p)return!1;var R=!1;try{var M={};M[f]=function(){return{next:function(){return{done:R=!0}}}},j(M)}catch(w){}return R}},XFuk:function(m,b,t){var c=t("WxoH"),f=t("oR5W"),p=t("Yzn+"),g=t("SkNP"),y=t("bUA4"),j=t("me6S"),A=t("ST+I"),R=">",M="<",w="prototype",F="script",I=A("IE_PROTO"),B=function(){},z=function(_){return M+F+R+_+M+"/"+F+R},k=function(_){_.write(z("")),_.close();var N=_.parentWindow.Object;return _=null,N},Y=function(){var _=j("iframe"),N="java"+F+":",le;return _.style.display="none",y.appendChild(_),_.src=String(N),le=_.contentWindow.document,le.open(),le.write(z("document.F=Object")),le.close(),le.F},Z,G=function(){try{Z=new ActiveXObject("htmlfile")}catch(N){}G=typeof document!="undefined"?document.domain&&Z?k(Z):Y():k(Z);for(var _=p.length;_--;)delete G[w][p[_]];return G()};g[I]=!0,m.exports=Object.create||function(N,le){var S;return N!==null?(B[w]=c(N),S=new B,B[w]=null,S[I]=N):S=G(),le===void 0?S:f.f(S,le)}},XTcp:function(m,b,t){var c=t("Ks5W"),f=t("1mOU"),p=t("mcoe"),g=t("JTf3"),y=t("YELS"),j=t("eRwv"),A=t("bUA4"),R=t("0r2v"),M=t("me6S"),w=t("GgKt"),F=t("IGIO"),I=c.setImmediate,B=c.clearImmediate,z=c.process,k=c.Dispatch,Y=c.Function,Z=c.MessageChannel,G=c.String,_=0,N={},le="onreadystatechange",S,C,U,T;try{S=c.location}catch(V){}var ee=function(V){if(y(N,V)){var O=N[V];delete N[V],O()}},re=function(V){return function(){ee(V)}},q=function(V){ee(V.data)},E=function(V){c.postMessage(G(V),S.protocol+"//"+S.host)};(!I||!B)&&(I=function(O){var P=R(arguments,1);return N[++_]=function(){f(g(O)?O:Y(O),void 0,P)},C(_),_},B=function(O){delete N[O]},F?C=function(V){z.nextTick(re(V))}:k&&k.now?C=function(V){k.now(re(V))}:Z&&!w?(U=new Z,T=U.port2,U.port1.onmessage=q,C=p(T.postMessage,T)):c.addEventListener&&g(c.postMessage)&&!c.importScripts&&S&&S.protocol!=="file:"&&!j(E)?(C=E,c.addEventListener("message",q,!1)):le in M("script")?C=function(V){A.appendChild(M("script"))[le]=function(){A.removeChild(this),ee(V)}}:C=function(V){setTimeout(re(V),0)}),m.exports={set:I,clear:B}},XaNE:function(m,b,t){var c=t("Ks5W"),f=c.TypeError;m.exports=function(p){if(p==null)throw f("Can't call method on "+p);return p}},Xp4B:function(m,b,t){"use strict";t.d(b,"a",function(){return A});function c(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?c=function(z){return typeof z}:c=function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},c(I)}function f(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}var p=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],g=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(I,B,z,k,Y,Z){if(typeof I=="string"&&(I=document.getElementById(I)),!I||!("naturalWidth"in I))return;var G=Y?"offset":"natural",_=I[G+"Width"],N=I[G+"Height"];if(typeof B=="string"&&(B=document.getElementById(B)),!B||!("getContext"in B))return;Z||(B.style.width=_+"px",B.style.height=N+"px"),B.width=_,B.height=N;var le=B.getContext("2d");if(le.clearRect(0,0,_,N),le.drawImage(I,0,0,I.naturalWidth,I.naturalHeight,0,0,_,N),isNaN(z)||z<1)return;k?A(B,0,0,_,N,z):M(B,0,0,_,N,z)}function j(I,B,z,k,Y){if(typeof I=="string"&&(I=document.getElementById(I)),!I||c(I)!=="object"||!("getContext"in I))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var Z=I.getContext("2d");try{return Z.getImageData(B,z,k,Y)}catch(G){throw new Error("unable to access image data: "+G)}}function A(I,B,z,k,Y,Z){if(isNaN(Z)||Z<1)return;Z|=0;var G=j(I,B,z,k,Y);G=R(G,B,z,k,Y,Z),I.getContext("2d").putImageData(G,B,z)}function R(I,B,z,k,Y,Z){for(var G=I.data,_=2*Z+1,N=k-1,le=Y-1,S=Z+1,C=S*(S+1)/2,U=new F,T=U,ee,re=1;re<_;re++)T=T.next=new F,re===S&&(ee=T);T.next=U;for(var q=null,E=null,V=0,O=0,P=p[Z],H=g[Z],L=0;L>H;if(G[O+3]=ze,ze!==0){var qe=255/ze;G[O]=(Ae*P>>H)*qe,G[O+1]=(Re*P>>H)*qe,G[O+2]=(je*P>>H)*qe}else G[O]=G[O+1]=G[O+2]=0;Ae-=ve,Re-=ge,je-=Te,Ie-=Me,ve-=q.r,ge-=q.g,Te-=q.b,Me-=q.a;var Ge=Oe+Z+1;Ge=V+(Ge>H,te>0?(te=255/te,G[He]=(Fe*P>>H)*te,G[He+1]=(Je*P>>H)*te,G[He+2]=($e*P>>H)*te):G[He]=G[He+1]=G[He+2]=0,Fe-=de,Je-=pe,$e-=ye,Xe-=Ee,de-=q.r,pe-=q.g,ye-=q.b,Ee-=q.a,He=at+((He=Mt+S)>O,G[W+1]=ve*V>>O,G[W+2]=ge*V>>O,Ce-=ie,ve-=ce,ge-=se,ie-=q.r,ce-=q.g,se-=q.b,P=L+((P=Ie+Z+1)>O,G[P+1]=ze*V>>O,G[P+2]=qe*V>>O,Oe-=De,ze-=Pe,qe-=Se,De-=q.r,Pe-=q.g,Se-=q.b,P=we+((P=at+S)w;)f(M,I=R[w++])&&(~g(F,I)||j(F,I));return F}},a9Cf:function(m,b,t){var c=t("11yv"),f=c("toStringTag"),p={};p[f]="z",m.exports=String(p)==="[object z]"},aLaa:function(m,b){var t=Function.prototype,c=t.bind,f=t.call,p=c&&c.bind(f,f);m.exports=c?function(g){return g&&p(g)}:function(g){return g&&function(){return f.apply(g,arguments)}}},aNIs:function(m,b,t){var c=t("Ks5W"),f=t("eE3R"),p=c.process,g=c.Deno,y=p&&p.versions||g&&g.version,j=y&&y.v8,A,R;j&&(A=j.split("."),R=A[0]>0&&A[0]<4?1:+(A[0]+A[1])),!R&&f&&(A=f.match(/Edge\/(\d+)/),(!A||A[1]>=74)&&(A=f.match(/Chrome\/(\d+)/),A&&(R=+A[1]))),m.exports=R},aNr2:function(m,b,t){var c=t("jybJ"),f=t("4gdG");(m.exports=function(p,g){return f[p]||(f[p]=g!==void 0?g:{})})("versions",[]).push({version:"3.20.2",mode:c?"pure":"global",copyright:"\xA9 2022 Denis Pushkarev (zloirock.ru)"})},bT0D:function(m,b,t){var c=t("Ks5W"),f=t("RYfq"),p=t("JTf3"),g=t("3Xd8"),y=t("1Sr1"),j=c.Object;m.exports=y?function(A){return typeof A=="symbol"}:function(A){var R=f("Symbol");return p(R)&&g(R.prototype,j(A))}},bUA4:function(m,b,t){var c=t("RYfq");m.exports=c("document","documentElement")},ba8b:function(m,b,t){var c=t("aLaa"),f=c({}.toString),p=c("".slice);m.exports=function(g){return p(f(g),8,-1)}},c3MK:function(m,b,t){var c=t("SN6V"),f=Math.min;m.exports=function(p){return p>0?f(c(p),9007199254740991):0}},c55Z:function(m,b,t){var c=t("eRwv"),f=t("Ks5W"),p=f.RegExp;m.exports=c(function(){var g=p("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},eE3R:function(m,b,t){var c=t("RYfq");m.exports=c("navigator","userAgent")||""},eRwv:function(m,b){m.exports=function(t){try{return!!t()}catch(c){return!0}}},fKql:function(m,b,t){var c=t("++4Y"),f=t("m7zg"),p=t("5r2E"),g=t("4uGi"),y=t("vkZI"),j=t("GTqx"),A=t("YELS"),R=t("pVCk"),M=Object.getOwnPropertyDescriptor;b.f=c?M:function(F,I){if(F=y(F),I=j(I),R)try{return M(F,I)}catch(B){}if(A(F,I))return g(!f(p.f,F,I),F[I])}},"g8+u":function(m,b,t){var c=t("Ks5W"),f=t("a9Cf"),p=t("JTf3"),g=t("ba8b"),y=t("11yv"),j=y("toStringTag"),A=c.Object,R=g(function(){return arguments}())=="Arguments",M=function(w,F){try{return w[F]}catch(I){}};m.exports=f?g:function(w){var F,I,B;return w===void 0?"Undefined":w===null?"Null":typeof(I=M(F=A(w),j))=="string"?I:R?g(F):(B=g(F))=="Object"&&p(F.callee)?"Arguments":B}},g9jQ:function(m,b,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("Nybj").indexOf,g=t("QELg"),y=f([].indexOf),j=!!y&&1/y([1],1,-0)<0,A=g("indexOf");c({target:"Array",proto:!0,forced:j||!A},{indexOf:function(M){var w=arguments.length>1?arguments[1]:void 0;return j?y(this,M,w)||0:p(this,M,w)}})},gzPo:function(m,b,t){var c=t("Ks5W"),f=t("mcoe"),p=t("fKql").f,g=t("XTcp").set,y=t("GgKt"),j=t("FqHY"),A=t("/pbl"),R=t("IGIO"),M=c.MutationObserver||c.WebKitMutationObserver,w=c.document,F=c.process,I=c.Promise,B=p(c,"queueMicrotask"),z=B&&B.value,k,Y,Z,G,_,N,le,S;z||(k=function(){var C,U;for(R&&(C=F.domain)&&C.exit();Y;){U=Y.fn,Y=Y.next;try{U()}catch(T){throw Y?G():Z=void 0,T}}Z=void 0,C&&C.enter()},!y&&!R&&!A&&M&&w?(_=!0,N=w.createTextNode(""),new M(k).observe(N,{characterData:!0}),G=function(){N.data=_=!_}):!j&&I&&I.resolve?(le=I.resolve(void 0),le.constructor=I,S=f(le.then,le),G=function(){S(k)}):R?G=function(){F.nextTick(k)}:(g=f(g,c),G=function(){g(k)})),m.exports=z||function(C){var U={fn:C,next:void 0};Z&&(Z.next=U),Y||(Y=U,G()),Z=U}},hIaP:function(m,b,t){var c=t("Ks5W"),f=t("m7zg"),p=t("8HiI"),g=t("WxoH"),y=t("IL+x"),j=t("ltkU"),A=c.TypeError;m.exports=function(R,M){var w=arguments.length<2?j(R):M;if(p(w))return g(f(w,R));throw A(y(R)+" is not iterable")}},"iBj/":function(m,b,t){var c=t("m7zg"),f=t("WxoH"),p=t("oK8H");m.exports=function(g,y,j){var A,R;f(g);try{if(A=p(g,"return"),!A){if(y==="throw")throw j;return j}A=c(A,g)}catch(M){R=!0,A=M}if(y==="throw")throw j;if(R)throw A;return f(A),j}},iWRt:function(m,b,t){"use strict";var c=t("nCzB"),f=t("aLaa"),p=t("uZ/K"),g=f([].reverse),y=[1,2];c({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return p(this)&&(this.length=this.length),g(this)}})},jgt4:function(m,b,t){"use strict";var c=t("nCzB"),f=t("m7zg"),p=t("jybJ"),g=t("N6FT"),y=t("JTf3"),j=t("3agc"),A=t("WLJ+"),R=t("JHvW"),M=t("ueY1"),w=t("8ODz"),F=t("WrAw"),I=t("11yv"),B=t("AoAp"),z=t("qjFr"),k=g.PROPER,Y=g.CONFIGURABLE,Z=z.IteratorPrototype,G=z.BUGGY_SAFARI_ITERATORS,_=I("iterator"),N="keys",le="values",S="entries",C=function(){return this};m.exports=function(U,T,ee,re,q,E,V){j(ee,T,re);var O=function(ce){if(ce===q&&J)return J;if(!G&&ce in L)return L[ce];switch(ce){case N:return function(){return new ee(this,ce)};case le:return function(){return new ee(this,ce)};case S:return function(){return new ee(this,ce)}}return function(){return new ee(this)}},P=T+" Iterator",H=!1,L=U.prototype,W=L[_]||L["@@iterator"]||q&&L[q],J=!G&&W||O(q),K=T=="Array"&&L.entries||W,X,Q,ie;if(K&&(X=A(K.call(new U)),X!==Object.prototype&&X.next&&(!p&&A(X)!==Z&&(R?R(X,Z):y(X[_])||F(X,_,C)),M(X,P,!0,!0),p&&(B[P]=C))),k&&q==le&&W&&W.name!==le&&(!p&&Y?w(L,"name",le):(H=!0,J=function(){return f(W,this)})),q)if(Q={values:O(le),keys:E?J:O(N),entries:O(S)},V)for(ie in Q)(G||H||!(ie in L))&&F(L,ie,Q[ie]);else c({target:T,proto:!0,forced:G||H},Q);return(!p||V)&&L[_]!==J&&F(L,_,J,{name:q}),B[T]=J,Q}},jybJ:function(m,b){m.exports=!1},lAFk:function(m,b,t){var c=t("Ks5W");m.exports=function(f,p){var g=c.console;g&&g.error&&(arguments.length==1?g.error(f):g.error(f,p))}},ltkU:function(m,b,t){var c=t("g8+u"),f=t("oK8H"),p=t("AoAp"),g=t("11yv"),y=g("iterator");m.exports=function(j){if(j!=null)return f(j,y)||f(j,"@@iterator")||p[c(j)]}},m7zg:function(m,b){var t=Function.prototype.call;m.exports=t.bind?t.bind(t):function(){return t.apply(t,arguments)}},"mGb/":function(m,b,t){var c=t("eRwv"),f=t("JTf3"),p=/#|\.prototype\./,g=function(M,w){var F=j[y(M)];return F==R?!0:F==A?!1:f(w)?c(w):!!w},y=g.normalize=function(M){return String(M).replace(p,".").toLowerCase()},j=g.data={},A=g.NATIVE="N",R=g.POLYFILL="P";m.exports=g},mcoe:function(m,b,t){var c=t("aLaa"),f=t("8HiI"),p=c(c.bind);m.exports=function(g,y){return f(g),y===void 0?g:p?p(g,y):function(){return g.apply(y,arguments)}}},mdxj:function(m,b,t){"use strict";var c=t("nCzB"),f=t("FjAG").left,p=t("QELg"),g=t("aNIs"),y=t("IGIO"),j=p("reduce"),A=!y&&g>79&&g<83;c({target:"Array",proto:!0,forced:!j||A},{reduce:function(M){var w=arguments.length;return f(this,M,w,w>1?arguments[1]:void 0)}})},me6S:function(m,b,t){var c=t("Ks5W"),f=t("SwuV"),p=c.document,g=f(p)&&f(p.createElement);m.exports=function(y){return g?p.createElement(y):{}}},ms20:function(m,b,t){var c=t("Ks5W"),f=t("m7zg"),p=t("SwuV"),g=t("bT0D"),y=t("oK8H"),j=t("2lHc"),A=t("11yv"),R=c.TypeError,M=A("toPrimitive");m.exports=function(w,F){if(!p(w)||g(w))return w;var I=y(w,M),B;if(I){if(F===void 0&&(F="default"),B=f(I,w,F),!p(B)||g(B))return B;throw R("Can't convert object to primitive value")}return F===void 0&&(F="number"),j(w,F)}},n6S8:function(m,b,t){var c=t("SN6V"),f=Math.max,p=Math.min;m.exports=function(g,y){var j=c(g);return j<0?f(j+y,0):p(j,y)}},nATg:function(m,b,t){var c=t("Ks5W"),f=Object.defineProperty;m.exports=function(p,g){try{f(c,p,{value:g,configurable:!0,writable:!0})}catch(y){c[p]=g}return g}},nCzB:function(m,b,t){var c=t("Ks5W"),f=t("fKql").f,p=t("8ODz"),g=t("WrAw"),y=t("nATg"),j=t("Ttl4"),A=t("mGb/");m.exports=function(R,M){var w=R.target,F=R.global,I=R.stat,B,z,k,Y,Z,G;if(F?z=c:I?z=c[w]||y(w,{}):z=(c[w]||{}).prototype,z)for(k in M){if(Z=M[k],R.noTargetGet?(G=f(z,k),Y=G&&G.value):Y=z[k],B=A(F?k:w+(I?".":"#")+k,R.forced),!B&&Y!==void 0){if(typeof Z==typeof Y)continue;j(Z,Y)}(R.sham||Y&&Y.sham)&&p(Z,"sham",!0),g(z,k,Z,R)}}},noWC:function(m,b){m.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,b,t){var c=t("Ks5W"),f=t("mcoe"),p=t("m7zg"),g=t("WxoH"),y=t("IL+x"),j=t("3n0U"),A=t("tMNq"),R=t("3Xd8"),M=t("hIaP"),w=t("ltkU"),F=t("iBj/"),I=c.TypeError,B=function(k,Y){this.stopped=k,this.result=Y},z=B.prototype;m.exports=function(k,Y,Z){var G=Z&&Z.that,_=!!(Z&&Z.AS_ENTRIES),N=!!(Z&&Z.IS_ITERATOR),le=!!(Z&&Z.INTERRUPTED),S=f(Y,G),C,U,T,ee,re,q,E,V=function(P){return C&&F(C,"normal",P),new B(!0,P)},O=function(P){return _?(g(P),le?S(P[0],P[1],V):S(P[0],P[1])):le?S(P,V):S(P)};if(N)C=k;else{if(U=w(k),!U)throw I(y(k)+" is not iterable");if(j(U)){for(T=0,ee=A(k);ee>T;T++)if(re=O(k[T]),re&&R(z,re))return re;return new B(!1)}C=M(k,U)}for(q=C.next;!(E=p(q,C)).done;){try{re=O(E.value)}catch(P){F(C,"throw",P)}if(typeof re=="object"&&re&&R(z,re))return re}return new B(!1)}},oK8H:function(m,b,t){var c=t("8HiI");m.exports=function(f,p){var g=f[p];return g==null?void 0:c(g)}},oR5W:function(m,b,t){var c=t("++4Y"),f=t("FkIU"),p=t("FlRv"),g=t("WxoH"),y=t("vkZI"),j=t("Ai06");b.f=c&&!f?Object.defineProperties:function(R,M){g(R);for(var w=y(M),F=j(M),I=F.length,B=0,z;I>B;)p.f(R,z=F[B++],w[z]);return R}},oauk:function(m,b,t){"use strict";var c=t("GTqx"),f=t("FlRv"),p=t("4uGi");m.exports=function(g,y,j){var A=c(y);A in g?f.f(g,A,p(0,j)):g[A]=j}},p5Ma:function(m,b,t){var c=t("Ks5W"),f=t("aLaa"),p=t("eRwv"),g=t("ba8b"),y=c.Object,j=f("".split);m.exports=p(function(){return!y("z").propertyIsEnumerable(0)})?function(A){return g(A)=="String"?j(A,""):y(A)}:y},pVCk:function(m,b,t){var c=t("++4Y"),f=t("eRwv"),p=t("me6S");m.exports=!c&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,b,t){var c=t("aNIs"),f=t("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!f(function(){var p=Symbol();return!String(p)||!(Object(p)instanceof Symbol)||!Symbol.sham&&c&&c<41})},qJvV:function(m,b,t){var c=t("Ks5W"),f=t("ENhe"),p=t("GI0h"),g=t("Lltv"),y=t("8ODz"),j=t("11yv"),A=j("iterator"),R=j("toStringTag"),M=g.values,w=function(I,B){if(I){if(I[A]!==M)try{y(I,A,M)}catch(k){I[A]=M}if(I[R]||y(I,R,B),f[B]){for(var z in g)if(I[z]!==g[z])try{y(I,z,g[z])}catch(k){I[z]=g[z]}}}};for(var F in f)w(c[F]&&c[F].prototype,F);w(p,"DOMTokenList")},qjFr:function(m,b,t){"use strict";var c=t("eRwv"),f=t("JTf3"),p=t("XFuk"),g=t("WLJ+"),y=t("WrAw"),j=t("11yv"),A=t("jybJ"),R=j("iterator"),M=!1,w,F,I;[].keys&&(I=[].keys(),"next"in I?(F=g(g(I)),F!==Object.prototype&&(w=F)):M=!0);var B=w==null||c(function(){var z={};return w[R].call(z)!==z});B?w={}:A&&(w=p(w)),f(w[R])||y(w,R,function(){return this}),m.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:M}},qzpy:function(m,b,t){var c=t("Ks5W"),f=t("g8+u"),p=c.String;m.exports=function(g){if(f(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return p(g)}},sNJV:function(m,b,t){var c=t("aLaa"),f=t("JTf3"),p=t("4gdG"),g=c(Function.toString);f(p.inspectSource)||(p.inspectSource=function(y){return g(y)}),m.exports=p.inspectSource},tMNq:function(m,b,t){var c=t("c3MK");m.exports=function(f){return c(f.length)}},"uZ/K":function(m,b,t){var c=t("ba8b");m.exports=Array.isArray||function(p){return c(p)=="Array"}},ueY1:function(m,b,t){var c=t("FlRv").f,f=t("YELS"),p=t("11yv"),g=p("toStringTag");m.exports=function(y,j,A){y&&!A&&(y=y.prototype),y&&!f(y,g)&&c(y,g,{configurable:!0,value:j})}},uoua:function(m,b,t){var c=t("Ks5W"),f=t("3Xd8"),p=c.TypeError;m.exports=function(g,y){if(f(y,g))return g;throw p("Incorrect invocation")}},vTDQ:function(m,b){m.exports=typeof window=="object"},vkZI:function(m,b,t){var c=t("p5Ma"),f=t("XaNE");m.exports=function(p){return c(f(p))}},vrKp:function(m,b,t){"use strict";var c=t("nCzB"),f=t("jybJ"),p=t("Ks5W"),g=t("RYfq"),y=t("m7zg"),j=t("BDtL"),A=t("WrAw"),R=t("LOfi"),M=t("JHvW"),w=t("ueY1"),F=t("9Bi7"),I=t("8HiI"),B=t("JTf3"),z=t("SwuV"),k=t("uoua"),Y=t("sNJV"),Z=t("nvEG"),G=t("X/EZ"),_=t("NudO"),N=t("XTcp").set,le=t("gzPo"),S=t("TRzv"),C=t("lAFk"),U=t("zFjv"),T=t("8xe4"),ee=t("zUnQ"),re=t("UQ6y"),q=t("mGb/"),E=t("11yv"),V=t("vTDQ"),O=t("IGIO"),P=t("aNIs"),H=E("species"),L="Promise",W=re.getterFor(L),J=re.set,K=re.getterFor(L),X=j&&j.prototype,Q=j,ie=X,ce=p.TypeError,se=p.document,Ce=p.process,ve=U.f,ge=ve,Te=!!(se&&se.createEvent&&p.dispatchEvent),Me=B(p.PromiseRejectionEvent),Ae="unhandledrejection",Re="rejectionhandled",je=0,Ie=1,we=2,Ne=1,Be=2,Ue=!1,De,Pe,Se,Oe,ze=q(L,function(){var te=Y(Q),de=te!==String(Q);if(!de&&P===66)return!0;if(f&&!ie.finally)return!0;if(P>=51&&/native code/.test(te))return!1;var pe=new Q(function(Fe){Fe(1)}),ye=function(Fe){Fe(function(){},function(){})},Ee=pe.constructor={};return Ee[H]=ye,Ue=pe.then(function(){})instanceof ye,Ue?!de&&V&&!Me:!0}),qe=ze||!G(function(te){Q.all(te).catch(function(){})}),Ge=function(te){var de;return z(te)&&B(de=te.then)?de:!1},_e=function(te,de){var pe=de.value,ye=de.state==Ie,Ee=ye?te.ok:te.fail,Fe=te.resolve,Je=te.reject,$e=te.domain,Xe,vt,lt;try{Ee?(ye||(de.rejection===Be&&at(de),de.rejection=Ne),Ee===!0?Xe=pe:($e&&$e.enter(),Xe=Ee(pe),$e&&($e.exit(),lt=!0)),Xe===te.promise?Je(ce("Promise-chain cycle")):(vt=Ge(Xe))?y(vt,Xe,Fe,Je):Fe(Xe)):Je(pe)}catch(pt){$e&&!lt&&$e.exit(),Je(pt)}},it=function(te,de){if(te.notified)return;te.notified=!0,le(function(){for(var pe=te.reactions,ye;ye=pe.get();)_e(ye,te);te.notified=!1,de&&!te.rejection&&ht(te)})},st=function(te,de,pe){var ye,Ee;Te?(ye=se.createEvent("Event"),ye.promise=de,ye.reason=pe,ye.initEvent(te,!1,!0),p.dispatchEvent(ye)):ye={promise:de,reason:pe},!Me&&(Ee=p["on"+te])?Ee(ye):te===Ae&&C("Unhandled promise rejection",pe)},ht=function(te){y(N,p,function(){var de=te.facade,pe=te.value,ye=gt(te),Ee;if(ye&&(Ee=T(function(){O?Ce.emit("unhandledRejection",pe,de):st(Ae,de,pe)}),te.rejection=O||gt(te)?Be:Ne,Ee.error))throw Ee.value})},gt=function(te){return te.rejection!==Ne&&!te.parent},at=function(te){y(N,p,function(){var de=te.facade;O?Ce.emit("rejectionHandled",de):st(Re,de,te.value)})},tt=function(te,de,pe){return function(ye){te(de,ye,pe)}},nt=function(te,de,pe){if(te.done)return;te.done=!0,pe&&(te=pe),te.value=de,te.state=we,it(te,!0)},Ye=function(te,de,pe){if(te.done)return;te.done=!0,pe&&(te=pe);try{if(te.facade===de)throw ce("Promise can't be resolved itself");var ye=Ge(de);ye?le(function(){var Ee={done:!1};try{y(ye,de,tt(Ye,Ee,te),tt(nt,Ee,te))}catch(Fe){nt(Ee,Fe,te)}}):(te.value=de,te.state=Ie,it(te,!1))}catch(Ee){nt({done:!1},Ee,te)}};if(ze&&(Q=function(de){k(this,ie),I(de),y(De,this);var pe=W(this);try{de(tt(Ye,pe),tt(nt,pe))}catch(ye){nt(pe,ye)}},ie=Q.prototype,De=function(de){J(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new ee,rejection:!1,state:je,value:void 0})},De.prototype=R(ie,{then:function(de,pe){var ye=K(this),Ee=ve(_(this,Q));return ye.parent=!0,Ee.ok=B(de)?de:!0,Ee.fail=B(pe)&&pe,Ee.domain=O?Ce.domain:void 0,ye.state==je?ye.reactions.add(Ee):le(function(){_e(Ee,ye)}),Ee.promise},catch:function(te){return this.then(void 0,te)}}),Pe=function(){var te=new De,de=W(te);this.promise=te,this.resolve=tt(Ye,de),this.reject=tt(nt,de)},U.f=ve=function(te){return te===Q||te===Se?new Pe(te):ge(te)},!f&&B(j)&&X!==Object.prototype)){Oe=X.then,Ue||(A(X,"then",function(de,pe){var ye=this;return new Q(function(Ee,Fe){y(Oe,ye,Ee,Fe)}).then(de,pe)},{unsafe:!0}),A(X,"catch",ie.catch,{unsafe:!0}));try{delete X.constructor}catch(te){}M&&M(X,ie)}c({global:!0,wrap:!0,forced:ze},{Promise:Q}),w(Q,L,!1,!0),F(L),Se=g(L),c({target:L,stat:!0,forced:ze},{reject:function(de){var pe=ve(this);return y(pe.reject,void 0,de),pe.promise}}),c({target:L,stat:!0,forced:f||ze},{resolve:function(de){return S(f&&this===Se?Q:this,de)}}),c({target:L,stat:!0,forced:qe},{all:function(de){var pe=this,ye=ve(pe),Ee=ye.resolve,Fe=ye.reject,Je=T(function(){var $e=I(pe.resolve),Xe=[],vt=0,lt=1;Z(de,function(pt){var he=vt++,yt=!1;lt++,y($e,pe,pt).then(function(We){if(yt)return;yt=!0,Xe[he]=We,--lt||Ee(Xe)},Fe)}),--lt||Ee(Xe)});return Je.error&&Fe(Je.value),ye.promise},race:function(de){var pe=this,ye=ve(pe),Ee=ye.reject,Fe=T(function(){var Je=I(pe.resolve);Z(de,function($e){y(Je,pe,$e).then(ye.resolve,Ee)})});return Fe.error&&Ee(Fe.value),ye.promise}})},wOD2:function(m,b,t){"use strict";var c=t("nCzB"),f=t("RXj+").trim,p=t("5JCY");c({target:"String",proto:!0,forced:p("trim")},{trim:function(){return f(this)}})},"x1+7":function(m,b,t){var c=t("RYfq"),f=t("aLaa"),p=t("QrM1"),g=t("UCFi"),y=t("WxoH"),j=f([].concat);m.exports=c("Reflect","ownKeys")||function(R){var M=p.f(y(R)),w=g.f;return w?j(M,w(R)):M}},x8x8:function(m,b,t){"use strict";var c=t("1mOU"),f=t("m7zg"),p=t("aLaa"),g=t("WONN"),y=t("eRwv"),j=t("WxoH"),A=t("JTf3"),R=t("SN6V"),M=t("c3MK"),w=t("qzpy"),F=t("XaNE"),I=t("M/+V"),B=t("oK8H"),z=t("Ne/+"),k=t("3fk+"),Y=t("11yv"),Z=Y("replace"),G=Math.max,_=Math.min,N=p([].concat),le=p([].push),S=p("".indexOf),C=p("".slice),U=function(q){return q===void 0?q:String(q)},T=function(){return"a".replace(/./,"$0")==="$0"}(),ee=function(){return/./[Z]?/./[Z]("a","$0")==="":!1}(),re=!y(function(){var q=/./;return q.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(q,"$")!=="7"});g("replace",function(q,E,V){var O=ee?"$":"$0";return[function(H,L){var W=F(this),J=H==null?void 0:B(H,Z);return J?f(J,H,W,L):f(E,w(W),H,L)},function(P,H){var L=j(this),W=w(P);if(typeof H=="string"&&S(H,O)===-1&&S(H,"$<")===-1){var J=V(E,L,W,H);if(J.done)return J.value}var K=A(H);K||(H=w(H));var X=L.global;if(X){var Q=L.unicode;L.lastIndex=0}for(var ie=[];;){var ce=k(L,W);if(ce===null)break;if(le(ie,ce),!X)break;var se=w(ce[0]);se===""&&(L.lastIndex=I(W,M(L.lastIndex),Q))}for(var Ce="",ve=0,ge=0;ge=ve&&(Ce+=C(W,ve,Me)+we,ve=Me+Te.length)}return Ce+C(W,ve)}]},!re||!T||ee)},yD9w:function(m,b,t){"use strict";var c=t("aLaa"),f=t("N6FT").PROPER,p=t("WrAw"),g=t("WxoH"),y=t("3Xd8"),j=t("qzpy"),A=t("eRwv"),R=t("HTC/"),M="toString",w=RegExp.prototype,F=w[M],I=c(R),B=A(function(){return F.call({source:"a",flags:"b"})!="/a/b"}),z=f&&F.name!=M;(B||z)&&p(RegExp.prototype,M,function(){var Y=g(this),Z=j(Y.source),G=Y.flags,_=j(G===void 0&&y(w,Y)&&!("flags"in w)?I(Y):G);return"/"+Z+"/"+_},{unsafe:!0})},yXPU:function(m,b){function t(f,p,g,y,j,A,R){try{var M=f[A](R),w=M.value}catch(F){g(F);return}M.done?p(w):Promise.resolve(w).then(y,j)}function c(f){return function(){var p=this,g=arguments;return new Promise(function(y,j){var A=f.apply(p,g);function R(w){t(A,y,j,R,M,"next",w)}function M(w){t(A,y,j,R,M,"throw",w)}R(void 0)})}}m.exports=c,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,b,t){var c=t("aLaa"),f=t("SN6V"),p=t("qzpy"),g=t("XaNE"),y=c("".charAt),j=c("".charCodeAt),A=c("".slice),R=function(M){return function(w,F){var I=p(g(w)),B=f(F),z=I.length,k,Y;return B<0||B>=z?M?"":void 0:(k=j(I,B),k<55296||k>56319||B+1===z||(Y=j(I,B+1))<56320||Y>57343?M?y(I,B):k:M?A(I,B,B+2):(k-55296<<10)+(Y-56320)+65536)}};m.exports={codeAt:R(!1),charAt:R(!0)}},zFjv:function(m,b,t){"use strict";var c=t("8HiI"),f=function(p){var g,y;this.promise=new p(function(j,A){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=j,y=A}),this.resolve=c(g),this.reject=c(y)};m.exports.f=function(p){return new f(p)}},zUnQ:function(m,b){var t=function(){this.head=null,this.tail=null};t.prototype={add:function(c){var f={item:c,next:null};this.head?this.tail.next=f:this.head=f,this.tail=f},get:function(){var c=this.head;if(c)return this.head=c.next,this.tail===c&&(this.tail=null),c.item}},m.exports=t}}]); diff --git a/267.700152b6.async.js b/267.700152b6.async.js new file mode 100644 index 0000000000..d5f6982763 --- /dev/null +++ b/267.700152b6.async.js @@ -0,0 +1,18 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[267],{"/GqU":function(m,b,t){var u=t("RK3t"),d=t("HYAF");m.exports=function(v){return u(d(v))}},"/OPJ":function(m,b,t){var u=t("0Dky"),d=t("2oRo"),v=d.RegExp;m.exports=u(function(){var g=v(".","s");return!(g.dotAll&&g.exec(` +`)&&g.flags==="s")})},"/b8u":function(m,b,t){var u=t("STAE");m.exports=u&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"/byt":function(m,b){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"/qmn":function(m,b,t){var u=t("2oRo");m.exports=u.Promise},"0B/8":function(m,b,t){"use strict";t.d(b,"a",function(){return N});/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var u=function(M,D){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(j,_){j.__proto__=_}||function(j,_){for(var ne in _)Object.prototype.hasOwnProperty.call(_,ne)&&(j[ne]=_[ne])})(M,D)};function d(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");function D(){this.constructor=C}u(C,M),C.prototype=M===null?Object.create(M):(D.prototype=M.prototype,new D)}function v(C){var M="";Array.isArray(C)||(C=[C]);for(var D=0;DC.phi1&&(C.phi2-=2*S),C.sweepFlag===1&&C.phi2j)return[];if(j===0)return[[C*D/(C*C+M*M),M*D/(C*C+M*M)]];var _=Math.sqrt(j);return[[(C*D+M*_)/(C*C+M*M),(M*D-C*_)/(C*C+M*M)],[(C*D-M*_)/(C*C+M*M),(M*D+C*_)/(C*C+M*M)]]}var P,B=Math.PI/180;function V(C,M,D){return(1-D)*C+D*M}function I(C,M,D,j){return C+Math.cos(j/180*S)*M+Math.sin(j/180*S)*D}function U(C,M,D,j){var _=1e-6,ne=M-C,q=D-M,E=3*ne+3*(j-D)-6*q,H=6*(q-ne),O=3*ne;return Math.abs(E)<_?[-O/H]:function(A,W,w){w===void 0&&(w=1e-6);var k=A*A/4-W;if(k<-w)return[];if(k<=w)return[-A/2];var Z=Math.sqrt(k);return[-A/2-Z,-A/2+Z]}(H/E,O/E,_)}function G(C,M,D,j,_){var ne=1-_;return C*(ne*ne*ne)+M*(3*ne*ne*_)+D*(3*ne*_*_)+j*(_*_*_)}!function(C){function M(){return _(function(E,H,O){return E.relative&&(E.x1!==void 0&&(E.x1+=H),E.y1!==void 0&&(E.y1+=O),E.x2!==void 0&&(E.x2+=H),E.y2!==void 0&&(E.y2+=O),E.x!==void 0&&(E.x+=H),E.y!==void 0&&(E.y+=O),E.relative=!1),E})}function D(){var E=NaN,H=NaN,O=NaN,A=NaN;return _(function(W,w,k){return W.type&N.SMOOTH_CURVE_TO&&(W.type=N.CURVE_TO,E=isNaN(E)?w:E,H=isNaN(H)?k:H,W.x1=W.relative?w-E:2*w-E,W.y1=W.relative?k-H:2*k-H),W.type&N.CURVE_TO?(E=W.relative?w+W.x2:W.x2,H=W.relative?k+W.y2:W.y2):(E=NaN,H=NaN),W.type&N.SMOOTH_QUAD_TO&&(W.type=N.QUAD_TO,O=isNaN(O)?w:O,A=isNaN(A)?k:A,W.x1=W.relative?w-O:2*w-O,W.y1=W.relative?k-A:2*k-A),W.type&N.QUAD_TO?(O=W.relative?w+W.x1:W.x1,A=W.relative?k+W.y1:W.y1):(O=NaN,A=NaN),W})}function j(){var E=NaN,H=NaN;return _(function(O,A,W){if(O.type&N.SMOOTH_QUAD_TO&&(O.type=N.QUAD_TO,E=isNaN(E)?A:E,H=isNaN(H)?W:H,O.x1=O.relative?A-E:2*A-E,O.y1=O.relative?W-H:2*W-H),O.type&N.QUAD_TO){E=O.relative?A+O.x1:O.x1,H=O.relative?W+O.y1:O.y1;var w=O.x1,k=O.y1;O.type=N.CURVE_TO,O.x1=((O.relative?0:A)+2*w)/3,O.y1=((O.relative?0:W)+2*k)/3,O.x2=(O.x+2*w)/3,O.y2=(O.y+2*k)/3}else E=NaN,H=NaN;return O})}function _(E){var H=0,O=0,A=NaN,W=NaN;return function(w){if(isNaN(A)&&!(w.type&N.MOVE_TO))throw new Error("path must start with moveto");var k=E(w,H,O,A,W);return w.type&N.CLOSE_PATH&&(H=A,O=W),w.x!==void 0&&(H=w.relative?H+w.x:w.x),w.y!==void 0&&(O=w.relative?O+w.y:w.y),w.type&N.MOVE_TO&&(A=H,W=O),k}}function ne(E,H,O,A,W,w){return y(E,H,O,A,W,w),_(function(k,Z,Y,X){var Q=k.x1,oe=k.x2,ce=k.relative&&!isNaN(X),se=k.x!==void 0?k.x:ce?0:Z,Me=k.y!==void 0?k.y:ce?0:Y;function pe(ze){return ze*ze}k.type&N.HORIZ_LINE_TO&&H!==0&&(k.type=N.LINE_TO,k.y=k.relative?0:Y),k.type&N.VERT_LINE_TO&&O!==0&&(k.type=N.LINE_TO,k.x=k.relative?0:Z),k.x!==void 0&&(k.x=k.x*E+Me*O+(ce?0:W)),k.y!==void 0&&(k.y=se*H+k.y*A+(ce?0:w)),k.x1!==void 0&&(k.x1=k.x1*E+k.y1*O+(ce?0:W)),k.y1!==void 0&&(k.y1=Q*H+k.y1*A+(ce?0:w)),k.x2!==void 0&&(k.x2=k.x2*E+k.y2*O+(ce?0:W)),k.y2!==void 0&&(k.y2=oe*H+k.y2*A+(ce?0:w));var ge=E*A-H*O;if(k.xRot!==void 0&&(E!==1||H!==0||O!==0||A!==1))if(ge===0)delete k.rX,delete k.rY,delete k.xRot,delete k.lArcFlag,delete k.sweepFlag,k.type=N.LINE_TO;else{var je=k.xRot*Math.PI/180,Se=Math.sin(je),Te=Math.cos(je),Re=1/pe(k.rX),Pe=1/pe(k.rY),Ie=pe(Te)*Re+pe(Se)*Pe,we=2*Se*Te*(Re-Pe),Ne=pe(Se)*Re+pe(Te)*Pe,Ve=Ie*A*A-we*H*A+Ne*H*H,Be=we*(E*A+H*O)-2*(Ie*O*A+Ne*E*H),De=Ie*O*O-we*E*O+Ne*E*E,Ae=(Math.atan2(Be,Ve-De)+Math.PI)%Math.PI/2,Ce=Math.sin(Ae),Oe=Math.cos(Ae);k.rX=Math.abs(ge)/Math.sqrt(Ve*pe(Oe)+Be*Ce*Oe+De*pe(Ce)),k.rY=Math.abs(ge)/Math.sqrt(Ve*pe(Ce)-Be*Ce*Oe+De*pe(Oe)),k.xRot=180*Ae/Math.PI}return k.sweepFlag!==void 0&&0>ge&&(k.sweepFlag=+!k.sweepFlag),k})}function q(){return function(E){var H={};for(var O in E)H[O]=E[O];return H}}C.ROUND=function(E){function H(O){return Math.round(O*E)/E}return E===void 0&&(E=1e13),y(E),function(O){return O.x1!==void 0&&(O.x1=H(O.x1)),O.y1!==void 0&&(O.y1=H(O.y1)),O.x2!==void 0&&(O.x2=H(O.x2)),O.y2!==void 0&&(O.y2=H(O.y2)),O.x!==void 0&&(O.x=H(O.x)),O.y!==void 0&&(O.y=H(O.y)),O.rX!==void 0&&(O.rX=H(O.rX)),O.rY!==void 0&&(O.rY=H(O.rY)),O}},C.TO_ABS=M,C.TO_REL=function(){return _(function(E,H,O){return E.relative||(E.x1!==void 0&&(E.x1-=H),E.y1!==void 0&&(E.y1-=O),E.x2!==void 0&&(E.x2-=H),E.y2!==void 0&&(E.y2-=O),E.x!==void 0&&(E.x-=H),E.y!==void 0&&(E.y-=O),E.relative=!0),E})},C.NORMALIZE_HVZ=function(E,H,O){return E===void 0&&(E=!0),H===void 0&&(H=!0),O===void 0&&(O=!0),_(function(A,W,w,k,Z){if(isNaN(k)&&!(A.type&N.MOVE_TO))throw new Error("path must start with moveto");return H&&A.type&N.HORIZ_LINE_TO&&(A.type=N.LINE_TO,A.y=A.relative?0:w),O&&A.type&N.VERT_LINE_TO&&(A.type=N.LINE_TO,A.x=A.relative?0:W),E&&A.type&N.CLOSE_PATH&&(A.type=N.LINE_TO,A.x=A.relative?k-W:k,A.y=A.relative?Z-w:Z),A.type&N.ARC&&(A.rX===0||A.rY===0)&&(A.type=N.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A})},C.NORMALIZE_ST=D,C.QT_TO_C=j,C.INFO=_,C.SANITIZE=function(E){E===void 0&&(E=0),y(E);var H=NaN,O=NaN,A=NaN,W=NaN;return _(function(w,k,Z,Y,X){var Q=Math.abs,oe=!1,ce=0,se=0;if(w.type&N.SMOOTH_CURVE_TO&&(ce=isNaN(H)?0:k-H,se=isNaN(O)?0:Z-O),w.type&(N.CURVE_TO|N.SMOOTH_CURVE_TO)?(H=w.relative?k+w.x2:w.x2,O=w.relative?Z+w.y2:w.y2):(H=NaN,O=NaN),w.type&N.SMOOTH_QUAD_TO?(A=isNaN(A)?k:2*k-A,W=isNaN(W)?Z:2*Z-W):w.type&N.QUAD_TO?(A=w.relative?k+w.x1:w.x1,W=w.relative?Z+w.y1:w.y2):(A=NaN,W=NaN),w.type&N.LINE_COMMANDS||w.type&N.ARC&&(w.rX===0||w.rY===0||!w.lArcFlag)||w.type&N.CURVE_TO||w.type&N.SMOOTH_CURVE_TO||w.type&N.QUAD_TO||w.type&N.SMOOTH_QUAD_TO){var Me=w.x===void 0?0:w.relative?w.x:w.x-k,pe=w.y===void 0?0:w.relative?w.y:w.y-Z;ce=isNaN(A)?w.x1===void 0?ce:w.relative?w.x:w.x1-k:A-k,se=isNaN(W)?w.y1===void 0?se:w.relative?w.y:w.y1-Z:W-Z;var ge=w.x2===void 0?0:w.relative?w.x:w.x2-k,je=w.y2===void 0?0:w.relative?w.y:w.y2-Z;Q(Me)<=E&&Q(pe)<=E&&Q(ce)<=E&&Q(se)<=E&&Q(ge)<=E&&Q(je)<=E&&(oe=!0)}return w.type&N.CLOSE_PATH&&Q(k-Y)<=E&&Q(Z-X)<=E&&(oe=!0),oe?[]:w})},C.MATRIX=ne,C.ROTATE=function(E,H,O){H===void 0&&(H=0),O===void 0&&(O=0),y(E,H,O);var A=Math.sin(E),W=Math.cos(E);return ne(W,A,-A,W,H-H*W+O*A,O-H*A-O*W)},C.TRANSLATE=function(E,H){return H===void 0&&(H=0),y(E,H),ne(1,0,0,1,E,H)},C.SCALE=function(E,H){return H===void 0&&(H=E),y(E,H),ne(E,0,0,H,0,0)},C.SKEW_X=function(E){return y(E),ne(1,0,Math.atan(E),1,0,0)},C.SKEW_Y=function(E){return y(E),ne(1,Math.atan(E),0,1,0,0)},C.X_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ne(-1,0,0,1,E,0)},C.Y_AXIS_SYMMETRY=function(E){return E===void 0&&(E=0),y(E),ne(1,0,0,-1,0,E)},C.A_TO_C=function(){return _(function(E,H,O){return N.ARC===E.type?function(A,W,w){var k,Z,Y,X;A.cX||T(A,W,w);for(var Q=Math.min(A.phi1,A.phi2),oe=Math.max(A.phi1,A.phi2)-Q,ce=Math.ceil(oe/90),se=new Array(ce),Me=W,pe=w,ge=0;geW.maxX&&(W.maxX=Ce),CeW.maxY&&(W.maxY=Ce),CeAe&&X(G(k,Y.x1,Y.x2,Y.x,Ae));for(var se=0,Me=U(Z,Y.y1,Y.y2,Y.y);seAe&&Q(G(Z,Y.y1,Y.y2,Y.y,Ae))}if(Y.type&N.ARC){X(Y.x),Q(Y.y),T(Y,k,Z);for(var pe=Y.xRot/180*Math.PI,ge=Math.cos(pe)*Y.rX,je=Math.sin(pe)*Y.rX,Se=-Math.sin(pe)*Y.rY,Te=Math.cos(pe)*Y.rY,Re=Y.phi1Y.phi2?[Y.phi2+360,Y.phi1+360]:[Y.phi2,Y.phi1],Pe=Re[0],Ie=Re[1],we=function(Oe){var ze=Oe[0],qe=Oe[1],Ge=180*Math.atan2(qe,ze)/Math.PI;return GePe&&AePe&&AeA)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+q+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+q+'"')}this.curArgs.push(A),this.curArgs.length===le[this.curCommandType]&&(N.HORIZ_LINE_TO===this.curCommandType?ne({type:N.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):N.VERT_LINE_TO===this.curCommandType?ne({type:N.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===N.MOVE_TO||this.curCommandType===N.LINE_TO||this.curCommandType===N.SMOOTH_QUAD_TO?(ne({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),N.MOVE_TO===this.curCommandType&&(this.curCommandType=N.LINE_TO)):this.curCommandType===N.CURVE_TO?ne({type:N.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===N.SMOOTH_CURVE_TO?ne({type:N.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.QUAD_TO?ne({type:N.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===N.ARC&&ne({type:N.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!J(E))if(E===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(E!=="+"&&E!=="-"&&E!==".")if(O)this.curNumber=E,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+q+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+E+'" at index '+q+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,E!=="z"&&E!=="Z")if(E==="h"||E==="H")this.curCommandType=N.HORIZ_LINE_TO,this.curCommandRelative=E==="h";else if(E==="v"||E==="V")this.curCommandType=N.VERT_LINE_TO,this.curCommandRelative=E==="v";else if(E==="m"||E==="M")this.curCommandType=N.MOVE_TO,this.curCommandRelative=E==="m";else if(E==="l"||E==="L")this.curCommandType=N.LINE_TO,this.curCommandRelative=E==="l";else if(E==="c"||E==="C")this.curCommandType=N.CURVE_TO,this.curCommandRelative=E==="c";else if(E==="s"||E==="S")this.curCommandType=N.SMOOTH_CURVE_TO,this.curCommandRelative=E==="s";else if(E==="q"||E==="Q")this.curCommandType=N.QUAD_TO,this.curCommandRelative=E==="q";else if(E==="t"||E==="T")this.curCommandType=N.SMOOTH_QUAD_TO,this.curCommandRelative=E==="t";else{if(E!=="a"&&E!=="A")throw new SyntaxError('Unexpected character "'+E+'" at index '+q+".");this.curCommandType=N.ARC,this.curCommandRelative=E==="a"}else j.push({type:N.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=E,this.curNumberHasDecimal=E==="."}else this.curNumber+=E,this.curNumberHasDecimal=!0;else this.curNumber+=E;else this.curNumber+=E,this.curNumberHasExp=!0;else this.curNumber+=E,this.curNumberHasExpDigits=this.curNumberHasExp}return j},M.prototype.transform=function(D){return Object.create(this,{parse:{value:function(_,ne){ne===void 0&&(ne=[]);for(var q=0,E=Object.getPrototypeOf(this).parse.call(this,_);q=0:z>$;$+=J)$ in G&&(I=B(I,G[$],$,U));return I}};m.exports={left:T(!1),right:T(!0)}},"1tal":function(m,b,t){var u=t("2oRo"),d=u.TypeError;m.exports=function(v,g){if(v=G.length?(U.target=void 0,{value:void 0,done:!0}):z=="keys"?{value:$,done:!1}:z=="values"?{value:G[$],done:!1}:{value:[$,G[$]],done:!1}},"values");var I=v.Arguments=v.Array;if(d("keys"),d("values"),d("entries"),!T&&R&&I.name!=="values")try{y(I,"name",{value:"values"})}catch(U){}},"4syw":function(m,b,t){var u=t("busE");m.exports=function(d,v,g){for(var y in v)u(d,y,v[y],g);return d}},"4zBA":function(m,b,t){var u=t("QNWe"),d=Function.prototype,v=d.bind,g=d.call,y=u&&v.bind(g,g);m.exports=u?function(S){return S&&y(S)}:function(S){return S&&function(){return g.apply(S,arguments)}}},"5mdu":function(m,b){m.exports=function(t){try{return{error:!1,value:t()}}catch(u){return{error:!0,value:u}}}},"5s+n":function(m,b,t){"use strict";var u=t("I+eb"),d=t("xDBR"),v=t("2oRo"),g=t("0GbY"),y=t("xluM"),S=t("/qmn"),T=t("busE"),R=t("4syw"),P=t("0rvr"),B=t("1E5z"),V=t("JiZb"),I=t("We1y"),U=t("Fib7"),G=t("hh1v"),z=t("GarU"),$=t("iSVu"),J=t("ImZN"),F=t("HH4o"),ee=t("SEBh"),N=t("LPSS").set,le=t("tXUg"),C=t("zfnd"),M=t("RN6c"),D=t("8GlL"),j=t("5mdu"),_=t("AbTg"),ne=t("afO8"),q=t("lMq5"),E=t("tiKp"),H=t("YGnB"),O=t("YF1G"),A=t("LQDL"),W=E("species"),w="Promise",k=ne.getterFor(w),Z=ne.set,Y=ne.getterFor(w),X=S&&S.prototype,Q=S,oe=X,ce=v.TypeError,se=v.document,Me=v.process,pe=D.f,ge=pe,je=!!(se&&se.createEvent&&v.dispatchEvent),Se=U(v.PromiseRejectionEvent),Te="unhandledrejection",Re="rejectionhandled",Pe=0,Ie=1,we=2,Ne=1,Ve=2,Be=!1,De,Ae,Ce,Oe,ze=q(w,function(){var te=$(Q),de=te!==String(Q);if(!de&&A===66)return!0;if(d&&!oe.finally)return!0;if(A>=51&&/native code/.test(te))return!1;var ve=new Q(function(Fe){Fe(1)}),ye=function(Fe){Fe(function(){},function(){})},Ee=ve.constructor={};return Ee[W]=ye,Be=ve.then(function(){})instanceof ye,Be?!de&&H&&!Se:!0}),qe=ze||!F(function(te){Q.all(te).catch(function(){})}),Ge=function(te){var de;return G(te)&&U(de=te.then)?de:!1},_e=function(te,de){var ve=de.value,ye=de.state==Ie,Ee=ye?te.ok:te.fail,Fe=te.resolve,Ze=te.reject,Ke=te.domain,Xe,pt,lt;try{Ee?(ye||(de.rejection===Ve&&at(de),de.rejection=Ne),Ee===!0?Xe=ve:(Ke&&Ke.enter(),Xe=Ee(ve),Ke&&(Ke.exit(),lt=!0)),Xe===te.promise?Ze(ce("Promise-chain cycle")):(pt=Ge(Xe))?y(pt,Xe,Fe,Ze):Fe(Xe)):Ze(ve)}catch(vt){Ke&&!lt&&Ke.exit(),Ze(vt)}},ot=function(te,de){if(te.notified)return;te.notified=!0,le(function(){for(var ve=te.reactions,ye;ye=ve.get();)_e(ye,te);te.notified=!1,de&&!te.rejection&&ht(te)})},st=function(te,de,ve){var ye,Ee;je?(ye=se.createEvent("Event"),ye.promise=de,ye.reason=ve,ye.initEvent(te,!1,!0),v.dispatchEvent(ye)):ye={promise:de,reason:ve},!Se&&(Ee=v["on"+te])?Ee(ye):te===Te&&M("Unhandled promise rejection",ve)},ht=function(te){y(N,v,function(){var de=te.facade,ve=te.value,ye=gt(te),Ee;if(ye&&(Ee=j(function(){O?Me.emit("unhandledRejection",ve,de):st(Te,de,ve)}),te.rejection=O||gt(te)?Ve:Ne,Ee.error))throw Ee.value})},gt=function(te){return te.rejection!==Ne&&!te.parent},at=function(te){y(N,v,function(){var de=te.facade;O?Me.emit("rejectionHandled",de):st(Re,de,te.value)})},tt=function(te,de,ve){return function(ye){te(de,ye,ve)}},rt=function(te,de,ve){if(te.done)return;te.done=!0,ve&&(te=ve),te.value=de,te.state=we,ot(te,!0)},$e=function(te,de,ve){if(te.done)return;te.done=!0,ve&&(te=ve);try{if(te.facade===de)throw ce("Promise can't be resolved itself");var ye=Ge(de);ye?le(function(){var Ee={done:!1};try{y(ye,de,tt($e,Ee,te),tt(rt,Ee,te))}catch(Fe){rt(Ee,Fe,te)}}):(te.value=de,te.state=Ie,ot(te,!1))}catch(Ee){rt({done:!1},Ee,te)}};if(ze&&(Q=function(de){z(this,oe),I(de),y(De,this);var ve=k(this);try{de(tt($e,ve),tt(rt,ve))}catch(ye){rt(ve,ye)}},oe=Q.prototype,De=function(de){Z(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new _,rejection:!1,state:Pe,value:void 0})},De.prototype=R(oe,{then:function(de,ve){var ye=Y(this),Ee=pe(ee(this,Q));return ye.parent=!0,Ee.ok=U(de)?de:!0,Ee.fail=U(ve)&&ve,Ee.domain=O?Me.domain:void 0,ye.state==Pe?ye.reactions.add(Ee):le(function(){_e(Ee,ye)}),Ee.promise},catch:function(te){return this.then(void 0,te)}}),Ae=function(){var te=new De,de=k(te);this.promise=te,this.resolve=tt($e,de),this.reject=tt(rt,de)},D.f=pe=function(te){return te===Q||te===Ce?new Ae(te):ge(te)},!d&&U(S)&&X!==Object.prototype)){Oe=X.then,Be||(T(X,"then",function(de,ve){var ye=this;return new Q(function(Ee,Fe){y(Oe,ye,Ee,Fe)}).then(de,ve)},{unsafe:!0}),T(X,"catch",oe.catch,{unsafe:!0}));try{delete X.constructor}catch(te){}P&&P(X,oe)}u({global:!0,wrap:!0,forced:ze},{Promise:Q}),B(Q,w,!1,!0),V(w),Ce=g(w),u({target:w,stat:!0,forced:ze},{reject:function(de){var ve=pe(this);return y(ve.reject,void 0,de),ve.promise}}),u({target:w,stat:!0,forced:d||ze},{resolve:function(de){return C(d&&this===Ce?Q:this,de)}}),u({target:w,stat:!0,forced:qe},{all:function(de){var ve=this,ye=pe(ve),Ee=ye.resolve,Fe=ye.reject,Ze=j(function(){var Ke=I(ve.resolve),Xe=[],pt=0,lt=1;J(de,function(vt){var he=pt++,yt=!1;lt++,y(Ke,ve,vt).then(function(ke){if(yt)return;yt=!0,Xe[he]=ke,--lt||Ee(Xe)},Fe)}),--lt||Ee(Xe)});return Ze.error&&Fe(Ze.value),ye.promise},race:function(de){var ve=this,ye=pe(ve),Ee=ye.reject,Fe=j(function(){var Ze=I(ve.resolve);J(de,function(Ke){y(Ze,ve,Ke).then(ye.resolve,Ee)})});return Fe.error&&Ee(Fe.value),ye.promise}})},"6JNq":function(m,b,t){var u=t("Gi26"),d=t("Vu81"),v=t("Bs8V"),g=t("m/L8");m.exports=function(y,S,T){for(var R=d(S),P=g.f,B=v.f,V=0;V]*>)/g,R=/\$([$&'`]|\d{1,2})/g;m.exports=function(P,B,V,I,U,G){var z=V+P.length,$=I.length,J=R;return U!==void 0&&(U=d(U),J=T),y(G,J,function(F,ee){var N;switch(g(ee,0)){case"$":return"$";case"&":return P;case"`":return S(B,0,V);case"'":return S(B,z);case"<":N=U[S(ee,1,-1)];break;default:var le=+ee;if(le===0)return F;if(le>$){var C=v(le/10);return C===0?F:C<=$?I[C-1]===void 0?g(ee,1):I[C-1]+g(ee,1):F}N=I[le-1]}return N===void 0?"":N})}},DPsx:function(m,b,t){var u=t("g6v/"),d=t("0Dky"),v=t("zBJ4");m.exports=!u&&!d(function(){return Object.defineProperty(v("div"),"a",{get:function(){return 7}}).a!=7})},DVFp:function(m,b,t){var u=t("2oRo"),d=u.String;m.exports=function(v){try{return d(v)}catch(g){return"Object"}}},DXPr:function(m,b,t){"use strict";t.r(b),function(u){t.d(b,"AElement",function(){return br}),t.d(b,"AnimateColorElement",function(){return hr}),t.d(b,"AnimateElement",function(){return Dt}),t.d(b,"AnimateTransformElement",function(){return pr}),t.d(b,"BoundingBox",function(){return ct}),t.d(b,"CB1",function(){return Fe}),t.d(b,"CB2",function(){return Ze}),t.d(b,"CB3",function(){return Ke}),t.d(b,"CB4",function(){return Xe}),t.d(b,"Canvg",function(){return Br}),t.d(b,"CircleElement",function(){return nr}),t.d(b,"ClipPathElement",function(){return Ar}),t.d(b,"DefsElement",function(){return ur}),t.d(b,"DescElement",function(){return Dr}),t.d(b,"Document",function(){return Rt}),t.d(b,"Element",function(){return We}),t.d(b,"EllipseElement",function(){return ar}),t.d(b,"FeColorMatrixElement",function(){return Kt}),t.d(b,"FeCompositeElement",function(){return Rr}),t.d(b,"FeDropShadowElement",function(){return jr}),t.d(b,"FeGaussianBlurElement",function(){return Ir}),t.d(b,"FeMorphologyElement",function(){return Tr}),t.d(b,"FilterElement",function(){return Qt}),t.d(b,"Font",function(){return mt}),t.d(b,"FontElement",function(){return vr}),t.d(b,"FontFaceElement",function(){return gr}),t.d(b,"GElement",function(){return Nt}),t.d(b,"GlyphElement",function(){return Gt}),t.d(b,"GradientElement",function(){return Yt}),t.d(b,"ImageElement",function(){return Or}),t.d(b,"LineElement",function(){return ir}),t.d(b,"LinearGradientElement",function(){return cr}),t.d(b,"MarkerElement",function(){return lr}),t.d(b,"MaskElement",function(){return Xt}),t.d(b,"Matrix",function(){return Ft}),t.d(b,"MissingGlyphElement",function(){return mr}),t.d(b,"Mouse",function(){return Ot}),t.d(b,"PSEUDO_ZERO",function(){return de}),t.d(b,"Parser",function(){return It}),t.d(b,"PathElement",function(){return Qe}),t.d(b,"PathParser",function(){return xe}),t.d(b,"PatternElement",function(){return sr}),t.d(b,"Point",function(){return ke}),t.d(b,"PolygonElement",function(){return or}),t.d(b,"PolylineElement",function(){return Ht}),t.d(b,"Property",function(){return he}),t.d(b,"QB1",function(){return pt}),t.d(b,"QB2",function(){return lt}),t.d(b,"QB3",function(){return vt}),t.d(b,"RadialGradientElement",function(){return dr}),t.d(b,"RectElement",function(){return zt}),t.d(b,"RenderedElement",function(){return xt}),t.d(b,"Rotate",function(){return qt}),t.d(b,"SVGElement",function(){return At}),t.d(b,"SVGFontLoader",function(){return Cr}),t.d(b,"Scale",function(){return _t}),t.d(b,"Screen",function(){return He}),t.d(b,"Skew",function(){return kt}),t.d(b,"SkewX",function(){return er}),t.d(b,"SkewY",function(){return tr}),t.d(b,"StopElement",function(){return fr}),t.d(b,"StyleElement",function(){return $t}),t.d(b,"SymbolElement",function(){return Mr}),t.d(b,"TRefElement",function(){return yr}),t.d(b,"TSpanElement",function(){return Wt}),t.d(b,"TextElement",function(){return Pt}),t.d(b,"TextPathElement",function(){return Er}),t.d(b,"TitleElement",function(){return Nr}),t.d(b,"Transform",function(){return Tt}),t.d(b,"Translate",function(){return Jt}),t.d(b,"UnknownElement",function(){return rr}),t.d(b,"UseElement",function(){return Sr}),t.d(b,"ViewPort",function(){return yt}),t.d(b,"compressSpaces",function(){return De}),t.d(b,"getSelectorSpecificity",function(){return te}),t.d(b,"normalizeAttributeName",function(){return qe}),t.d(b,"normalizeColor",function(){return _e}),t.d(b,"parseExternalUrl",function(){return Ge}),t.d(b,"presets",function(){return Be}),t.d(b,"toNumbers",function(){return Oe}),t.d(b,"trimLeft",function(){return Ae}),t.d(b,"trimRight",function(){return Ce}),t.d(b,"vectorMagnitude",function(){return ve}),t.d(b,"vectorsAngle",function(){return Ee}),t.d(b,"vectorsRatio",function(){return ye});var d=t("yXV3"),v=t.n(d),g=t("4mDm"),y=t.n(g),S=t("E9XD"),T=t.n(S),R=t("Junv"),P=t.n(R),B=t("5s+n"),V=t.n(B),I=t("JfAA"),U=t.n(I),G=t("inlA"),z=t.n(G),$=t("JTJg"),J=t.n($),F=t("Rm1S"),ee=t.n(F),N=t("UxlC"),le=t.n(N),C=t("EnZy"),M=t.n(C),D=t("LKBx"),j=t.n(D),_=t("SYor"),ne=t.n(_),q=t("3bBZ"),E=t.n(q),H=t("Nsem"),O=t("rAM+"),A=t("tS8v"),W=t("w4Tj"),w=t("oZsa"),k=t("oBTY"),Z=t("yKVA"),Y=t("879j"),X=t("fWQN"),Q=t("mtLc"),oe=t("tJVT"),ce=t("WmNS"),se=t.n(ce),Me=t("yXPU"),pe=t.n(Me),ge=t("lSNA"),je=t.n(ge),Se=t("xEkU"),Te=t.n(Se),Re=t("WOGj"),Pe=t.n(Re),Ie=t("0B/8"),we=t("Xp4B");function Ne(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=h.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:c,createCanvas:function(e,i){return new OffscreenCanvas(e,i)},createImage:function(e){return pe()(se.a.mark(function i(){var r,o,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,fetch(e);case 2:return r=f.sent,f.next=5,r.blob();case 5:return o=f.sent,f.next=8,createImageBitmap(o);case 8:return s=f.sent,f.abrupt("return",s);case 10:case"end":return f.stop()}},i)}))()}};return(typeof DOMParser!="undefined"||typeof c=="undefined")&&Reflect.deleteProperty(n,"DOMParser"),n}function Ve(h){var c=h.DOMParser,n=h.canvas,a=h.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:c,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Be=Object.freeze({__proto__:null,offscreen:Ne,node:Ve});function De(h){return h.replace(/(?!\u3000)\s+/gm," ")}function Ae(h){return h.replace(/^[\n \t]+/,"")}function Ce(h){return h.replace(/[\n \t]+$/,"")}function Oe(h){var c=(h||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return c.map(parseFloat)}var ze=/^[A-Z-]+$/;function qe(h){return ze.test(h)?h.toLowerCase():h}function Ge(h){var c=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(h)||[];return c[2]||c[3]||c[4]}function _e(h){if(!h.startsWith("rgb"))return h;var c=3,n=h.replace(/\d+(\.\d+)?/g,function(a,e){return c--&&e?String(Math.round(parseFloat(a))):a});return n}var ot=/(\[[^\]]+\])/g,st=/(#[^\s+>~.[:]+)/g,ht=/(\.[^\s+>~.[:]+)/g,gt=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,at=/(:[\w-]+\([^)]*\))/gi,tt=/(:[^\s+>~.[:]+)/g,rt=/([^\s+>~.[:]+)/g;function $e(h,c){var n=c.exec(h);return n?[h.replace(c," "),n.length]:[h,0]}function te(h){var c=[0,0,0],n=h.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,e=$e(n,ot),i=Object(oe.a)(e,2);n=i[0],a=i[1],c[1]+=a;var r=$e(n,st),o=Object(oe.a)(r,2);n=o[0],a=o[1],c[0]+=a;var s=$e(n,ht),l=Object(oe.a)(s,2);n=l[0],a=l[1],c[1]+=a;var f=$e(n,gt),p=Object(oe.a)(f,2);n=p[0],a=p[1],c[2]+=a;var x=$e(n,at),L=Object(oe.a)(x,2);n=L[0],a=L[1],c[1]+=a;var K=$e(n,tt),re=Object(oe.a)(K,2);n=re[0],a=re[1],c[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var ie=$e(n,rt),ae=Object(oe.a)(ie,2);return n=ae[0],a=ae[1],c[2]+=a,c.join("")}var de=1e-8;function ve(h){return Math.sqrt(Math.pow(h[0],2)+Math.pow(h[1],2))}function ye(h,c){return(h[0]*c[0]+h[1]*c[1])/(ve(h)*ve(c))}function Ee(h,c){return(h[0]*c[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,e=this.name;return De(this.getString()).trim().split(n).map(function(i){return new h(a,e,i)})}},{key:"hasValue",value:function(n){var a=this.value;return a!==null&&a!==""&&(n||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(n){var a=this.value,e=typeof a=="string";return!e||!n?e:n.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var n=this.getString();switch(!0){case n.endsWith("px"):case/^[0-9]+$/.test(n):return!0;default:return!1}}},{key:"setValue",value:function(n){return this.value=n,this}},{key:"getValue",value:function(n){return typeof n=="undefined"||this.hasValue()?this.value:n}},{key:"getNumber",value:function(n){if(!this.hasValue())return typeof n=="undefined"?0:parseFloat(n);var a=this.value,e=parseFloat(a);return this.isString(/%$/)&&(e/=100),e}},{key:"getString",value:function(n){return typeof n=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(n)}},{key:"getColor",value:function(n){var a=this.getString(n);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=_e(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var e=typeof n=="boolean"?[void 0,n]:[n],i=Object(oe.a)(e,2),r=i[0],o=i[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(r):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var n=this.getString(),a=/#([^)'"]+)/.exec(n);return a&&(a=a[1]),a||(a=n),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(n,a){var e=this.getDefinition();if(!e)return null;if(typeof e.createGradient=="function")return e.createGradient(this.document.ctx,n,a);if(typeof e.createPattern=="function"){if(e.getHrefAttribute().hasValue()){var i=e.getAttribute("patternTransform");e=e.getHrefAttribute().getDefinition(),i.hasValue()&&e.getAttribute("patternTransform",!0).setValue(i.value)}return e.createPattern(this.document.ctx,n,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?h.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var a=this.getColor(),e=a.length,i=0,r=0;r1&&arguments[1]!==void 0?arguments[1]:0,e=Oe(n),i=Object(oe.a)(e,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new h(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=Oe(n),i=Object(oe.a)(e,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new h(o,l)}},{key:"parsePath",value:function(n){for(var a=Oe(n),e=a.length,i=[],r=0;r0}},{key:"runEvents",value:function(){if(!this.working)return;var n=this.screen,a=this.events,e=this.eventElements,i=n.ctx.canvas.style;i&&(i.cursor=""),a.forEach(function(r,o){for(var s=r.run,l=e[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(n,a){if(!this.working||!a)return;var e=this.events,i=this.eventElements;e.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInPath&&a.isPointInPath(s,l)&&(i[o]=n)})}},{key:"checkBoundingBox",value:function(n,a){if(!this.working||!a)return;var e=this.events,i=this.eventElements;e.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInBox(s,l)&&(i[o]=n)})}},{key:"mapXY",value:function(n,a){for(var e=this.screen,i=e.window,r=e.ctx,o=new ke(n,a),s=r.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(o.x+=i.scrollX),i.scrollY&&(o.y+=i.scrollY),o}},{key:"onClick",value:function(n){var a=this.mapXY(n.clientX,n.clientY),e=a.x,i=a.y;this.events.push({type:"onclick",x:e,y:i,run:function(o){o.onClick&&o.onClick()}})}},{key:"onMouseMove",value:function(n){var a=this.mapXY(n.clientX,n.clientY),e=a.x,i=a.y;this.events.push({type:"onmousemove",x:e,y:i,run:function(o){o.onMouseMove&&o.onMouseMove()}})}}]),h}(),Mt=typeof window!="undefined"?window:null,St=typeof fetch!="undefined"?fetch.bind(void 0):null,He=function(){function h(c){Object(X.a)(this,h);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,e=a===void 0?St:a,i=n.window,r=i===void 0?Mt:i;this.ctx=c,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new yt,this.mouse=new Ot(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=e}return Object(Q.a)(h,[{key:"wait",value:function(n){this.waits.push(n)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var n=this.waits.every(function(a){return a()});return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(n){n.strokeStyle="rgba(0,0,0,0)",n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4}},{key:"setViewBox",value:function(n){var a=n.document,e=n.ctx,i=n.aspectRatio,r=n.width,o=n.desiredWidth,s=n.height,l=n.desiredHeight,f=n.minX,p=f===void 0?0:f,x=n.minY,L=x===void 0?0:x,K=n.refX,re=n.refY,ie=n.clip,ae=ie===void 0?!1:ie,be=n.clipX,fe=be===void 0?0:be,ue=n.clipY,me=ue===void 0?0:ue,Le=De(i).replace(/^defer\s/,""),Ue=Le.split(" "),Je=Object(oe.a)(Ue,2),dt=Je[0],ft=Je[1],it=dt||"xMidYMid",nt=ft||"meet",ut=r/o,Et=s/l,et=Math.min(ut,Et),jt=Math.max(ut,Et),Ut=o,Vt=l;nt==="meet"&&(Ut*=et,Vt*=et),nt==="slice"&&(Ut*=jt,Vt*=jt);var Ur=new he(a,"refX",K),Vr=new he(a,"refY",re),Fr=Ur.hasValue()&&Vr.hasValue();if(Fr&&e.translate(-et*Ur.getPixels("x"),-et*Vr.getPixels("y")),ae){var kr=et*fe,Gr=et*me;e.beginPath(),e.moveTo(kr,Gr),e.lineTo(r,Gr),e.lineTo(r,s),e.lineTo(kr,s),e.closePath(),e.clip()}if(!Fr){var Wr=nt==="meet"&&et===Et,zr=nt==="slice"&&jt===Et,Hr=nt==="meet"&&et===ut,Yr=nt==="slice"&&jt===ut;it.startsWith("xMid")&&(Wr||zr)&&e.translate(r/2-Ut/2,0),it.endsWith("YMid")&&(Hr||Yr)&&e.translate(0,s/2-Vt/2),it.startsWith("xMax")&&(Wr||zr)&&e.translate(r-Ut,0),it.endsWith("YMax")&&(Hr||Yr)&&e.translate(0,s-Vt)}switch(!0){case it==="none":e.scale(ut,Et);break;case nt==="meet":e.scale(et,et);break;case nt==="slice":e.scale(jt,jt);break}e.translate(-p,-L)}},{key:"start",value:function(n){var a=this,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.enableRedraw,r=i===void 0?!1:i,o=e.ignoreMouse,s=o===void 0?!1:o,l=e.ignoreAnimation,f=l===void 0?!1:l,p=e.ignoreDimensions,x=p===void 0?!1:p,L=e.ignoreClear,K=L===void 0?!1:L,re=e.forceRedraw,ie=e.scaleWidth,ae=e.scaleHeight,be=e.offsetX,fe=e.offsetY,ue=this.FRAMERATE,me=this.mouse,Le=1e3/ue;if(this.frameDuration=Le,this.readyPromise=new Promise(function(it){a.resolveReady=it}),this.isReady()&&this.render(n,x,K,ie,ae,be,fe),!r)return;var Ue=Date.now(),Je=Ue,dt=0,ft=function it(){Ue=Date.now(),dt=Ue-Je,dt>=Le&&(Je=Ue-dt%Le,a.shouldUpdate(f,re)&&(a.render(n,x,K,ie,ae,be,fe),me.runEvents())),a.intervalId=Te()(it)};s||me.start(),this.intervalId=Te()(ft)}},{key:"stop",value:function(){this.intervalId&&(Te.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(n,a){if(!n){var e=this.frameDuration,i=this.animations.reduce(function(r,o){return o.update(e)||r},!1);if(i)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(n,a,e,i,r,o,s){var l=this.CLIENT_WIDTH,f=this.CLIENT_HEIGHT,p=this.viewPort,x=this.ctx,L=this.isFirstRender,K=x.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,f);var re=n.getStyle("width"),ie=n.getStyle("height");!a&&(L||typeof i!="number"&&typeof r!="number")&&(re.hasValue()&&(K.width=re.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),ie.hasValue()&&(K.height=ie.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var ae=K.clientWidth||K.width,be=K.clientHeight||K.height;if(a&&re.hasValue()&&ie.hasValue()&&(ae=re.getPixels("x"),be=ie.getPixels("y")),p.setCurrent(ae,be),typeof o=="number"&&n.getAttribute("x",!0).setValue(o),typeof s=="number"&&n.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof r=="number"){var fe=Oe(n.getAttribute("viewBox").getString()),ue=0,me=0;if(typeof i=="number"){var Le=n.getStyle("width");Le.hasValue()?ue=Le.getPixels("x")/i:isNaN(fe[2])||(ue=fe[2]/i)}if(typeof r=="number"){var Ue=n.getStyle("height");Ue.hasValue()?me=Ue.getPixels("y")/r:isNaN(fe[3])||(me=fe[3]/r)}ue||(ue=me),me||(me=ue),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Je=n.getStyle("transform",!0,!0);Je.setValue("".concat(Je.getString()," scale(").concat(1/ue,", ").concat(1/me,")"))}e||x.clearRect(0,0,ae,be),n.render(x),L&&(this.isFirstRender=!1)}}]),h}();He.defaultWindow=Mt,He.defaultFetch=St;var $r=He.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,It=function(){function h(){Object(X.a)(this,h);var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=c.fetch,a=n===void 0?$r:n,e=c.DOMParser,i=e===void 0?Kr:e;this.fetch=a,this.DOMParser=i}return Object(Q.a)(h,[{key:"parse",value:function(n){var a=this;return pe()(se.a.mark(function e(){return se.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.startsWith("<")){r.next=2;break}return r.abrupt("return",a.parseFromString(n));case 2:return r.abrupt("return",a.load(n));case 3:case"end":return r.stop()}},e)}))()}},{key:"parseFromString",value:function(n){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(n,"image/svg+xml"))}catch(e){return this.checkDocument(a.parseFromString(n,"text/xml"))}}},{key:"checkDocument",value:function(n){var a=n.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return n}},{key:"load",value:function(n){var a=this;return pe()(se.a.mark(function e(){var i,r;return se.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(n);case 2:return i=s.sent,s.next=5,i.text();case 5:return r=s.sent,s.abrupt("return",a.parseFromString(r));case 7:case"end":return s.stop()}},e)}))()}}]),h}(),Jt=function(){function h(c,n){Object(X.a)(this,h),this.type="translate",this.point=null,this.point=ke.parse(n)}return Object(Q.a)(h,[{key:"apply",value:function(n){var a=this.point,e=a.x,i=a.y;n.translate(e||0,i||0)}},{key:"unapply",value:function(n){var a=this.point,e=a.x,i=a.y;n.translate(-1*e||0,-1*i||0)}},{key:"applyToPoint",value:function(n){var a=this.point,e=a.x,i=a.y;n.applyTransform([1,0,0,1,e||0,i||0])}}]),h}(),qt=function(){function h(c,n,a){Object(X.a)(this,h),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var e=Oe(n);this.angle=new he(c,"angle",e[0]),this.originX=a[0],this.originY=a[1],this.cx=e[1]||0,this.cy=e[2]||0}return Object(Q.a)(h,[{key:"apply",value:function(n){var a=this.cx,e=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=e+r.getPixels("y");n.translate(s,l),n.rotate(o.getRadians()),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.cx,e=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=e+r.getPixels("y");n.translate(s,l),n.rotate(-1*o.getRadians()),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.cx,e=this.cy,i=this.angle,r=i.getRadians();n.applyTransform([1,0,0,1,a||0,e||0]),n.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),n.applyTransform([1,0,0,1,-a||0,-e||0])}}]),h}(),_t=function(){function h(c,n,a){Object(X.a)(this,h),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var e=ke.parseScale(n);(e.x===0||e.y===0)&&(e.x=de,e.y=de),this.scale=e,this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(n){var a=this.scale,e=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(e,i||e),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.scale,e=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(1/e,1/i||e),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.scale,e=a.x,i=a.y;n.applyTransform([e||0,0,0,i||0,0,0])}}]),h}(),Ft=function(){function h(c,n,a){Object(X.a)(this,h),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Oe(n),this.originX=a[0],this.originY=a[1]}return Object(Q.a)(h,[{key:"apply",value:function(n){var a=this.originX,e=this.originY,i=this.matrix,r=a.getPixels("x"),o=e.getPixels("y");n.translate(r,o),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.translate(-r,-o)}},{key:"unapply",value:function(n){var a=this.originX,e=this.originY,i=this.matrix,r=i[0],o=i[2],s=i[4],l=i[1],f=i[3],p=i[5],x=0,L=0,K=1,re=1/(r*(f*K-p*L)-o*(l*K-p*x)+s*(l*L-f*x)),ie=a.getPixels("x"),ae=e.getPixels("y");n.translate(ie,ae),n.transform(re*(f*K-p*L),re*(p*x-l*K),re*(s*L-o*K),re*(r*K-s*x),re*(o*p-s*f),re*(s*l-r*p)),n.translate(-ie,-ae)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),h}(),kt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="skew",r.angle=null,r.angle=new he(a,"angle",e),r}return Object(Q.a)(n)}(Ft),er=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return Object(Q.a)(n)}(kt),tr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return Object(Q.a)(n)}(kt);function Xr(h){return De(h).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Qr(h){var c=h.split("("),n=Object(oe.a)(c,2),a=n[0],e=n[1];return[a.trim(),e.trim().replace(")","")]}var Tt=function(){function h(c,n,a){var e=this;Object(X.a)(this,h),this.document=c,this.transforms=[];var i=Xr(n);i.forEach(function(r){if(r==="none")return;var o=Qr(r),s=Object(oe.a)(o,2),l=s[0],f=s[1],p=h.transformTypes[l];typeof p!="undefined"&&e.transforms.push(new p(e.document,f,a))})}return Object(Q.a)(h,[{key:"apply",value:function(n){for(var a=this.transforms,e=a.length,i=0;i=0;i--)a[i].unapply(n)}},{key:"applyToPoint",value:function(n){for(var a=this.transforms,e=a.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=c,this.node=n,this.captureTextNodes=e,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!n||n.nodeType!==1)return;if(Array.from(n.attributes).forEach(function(s){var l=qe(s.nodeName);a.attributes[l]=new he(c,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});i.forEach(function(s){if(!s)return;var l=s.split(":").map(function(L){return L.trim()}),f=Object(oe.a)(l,2),p=f[0],x=f[1];a.styles[p]=new he(c,p,x)})}var r=c.definitions,o=this.getAttribute("id");o.hasValue()&&(r[o.getString()]||(r[o.getString()]=this)),Array.from(n.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(e&&(s.nodeType===3||s.nodeType===4)){var l=c.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(Q.a)(h,[{key:"getAttribute",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=this.attributes[n];if(!e&&a){var i=new he(this.document,n,"");return this.attributes[n]=i,i}return e||he.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return he.empty(this.document)}},{key:"getStyle",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[n];if(i)return i;var r=this.getAttribute(n);if(r!=null&&r.hasValue())return this.styles[n]=r,r;if(!e){var o=this.parent;if(o){var s=o.getStyle(n);if(s!=null&&s.hasValue())return s}}if(a){var l=new he(this.document,n,"");return this.styles[n]=l,l}return i||he.empty(this.document)}},{key:"render",value:function(n){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(n.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(n),a.apply(n,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var e=this.getStyle("filter").getDefinition();e&&(this.applyEffects(n),e.apply(n,this))}else this.setContext(n),this.renderChildren(n),this.clearContext(n);n.restore()}},{key:"setContext",value:function(n){}},{key:"applyEffects",value:function(n){var a=Tt.fromElement(this.document,this);a&&a.apply(n);var e=this.getStyle("clip-path",!1,!0);if(e.hasValue()){var i=e.getDefinition();i&&i.apply(n)}}},{key:"clearContext",value:function(n){}},{key:"renderChildren",value:function(n){this.children.forEach(function(a){a.render(n)})}},{key:"addChild",value:function(n){var a=n instanceof h?n:this.document.createElement(n);a.parent=this,h.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a=this.node;if(typeof a.matches=="function")return a.matches(n);var e=a.getAttribute("class");return!e||e===""?!1:e.split(" ").some(function(i){return".".concat(i)===n})}},{key:"addStylesFromStyleDefinition",value:function(){var n=this.document,a=n.styles,e=n.stylesSpecificity;for(var i in a)if(!i.startsWith("@")&&this.matchesSelector(i)){var r=a[i],o=e[i];if(r)for(var s in r){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),o>=l&&(this.styles[s]=r[s],this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(n,a){var e=a.reduce(function(i,r){var o=n.getStyle(r);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[].concat(Object(k.a)(i),[[r,s]])},[]);return e}},{key:"restoreStyles",value:function(n,a){a.forEach(function(e){var i=Object(oe.a)(e,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}}]),h}();We.ignoreChildTypes=["title"];var rr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){return Object(X.a)(this,n),c.call(this,a,e,i)}return Object(Q.a)(n)}(We);function Zr(h){var c=h.trim();return/^('|")/.test(c)?c:'"'.concat(c,'"')}function Jr(h){return typeof u=="undefined"?h:h.trim().split(",").map(Zr).join(",")}function qr(h){if(!h)return"";var c=h.trim().toLowerCase();switch(c){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return c;default:return/^oblique\s+(-|)\d+deg$/.test(c)?c:""}}function _r(h){if(!h)return"";var c=h.trim().toLowerCase();switch(c){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return c;default:return/^[\d.]+$/.test(c)?c:""}}var mt=function(){function h(c,n,a,e,i,r){Object(X.a)(this,h);var o=r?typeof r=="string"?h.parse(r):r:{};this.fontFamily=i||o.fontFamily,this.fontSize=e||o.fontSize,this.fontStyle=c||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=n||o.fontVariant}return Object(Q.a)(h,[{key:"toString",value:function(){return[qr(this.fontStyle),this.fontVariant,_r(this.fontWeight),this.fontSize,Jr(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,e="",i="",r="",o="",s="",l=De(n).trim().split(" "),f={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!f.fontStyle&&h.styles.includes(p)):p!=="inherit"&&(e=p),f.fontStyle=!0;break;case(!f.fontVariant&&h.variants.includes(p)):p!=="inherit"&&(i=p),f.fontStyle=!0,f.fontVariant=!0;break;case(!f.fontWeight&&h.weights.includes(p)):p!=="inherit"&&(r=p),f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0;break;case!f.fontSize:if(p!=="inherit"){var x=p.split("/"),L=Object(oe.a)(x,1);o=L[0]}f.fontStyle=!0,f.fontVariant=!0,f.fontWeight=!0,f.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new h(e,i,r,o,s,a)}}]),h}();mt.styles="normal|italic|oblique|inherit",mt.variants="normal|small-caps|inherit",mt.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ct=function(){function h(){Object(X.a)(this,h);var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=c,this.y1=n,this.x2=a,this.y2=e,this.addPoint(c,n),this.addPoint(a,e)}return Object(Q.a)(h,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(n,a){typeof n!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=n,this.x2=n),nthis.x2&&(this.x2=n)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(n){this.addPoint(n,null)}},{key:"addY",value:function(n){this.addPoint(null,n)}},{key:"addBoundingBox",value:function(n){if(!n)return;var a=n.x1,e=n.y1,i=n.x2,r=n.y2;this.addPoint(a,e),this.addPoint(i,r)}},{key:"sumCubic",value:function(n,a,e,i,r){return Math.pow(1-n,3)*a+3*Math.pow(1-n,2)*n*e+3*(1-n)*Math.pow(n,2)*i+Math.pow(n,3)*r}},{key:"bezierCurveAdd",value:function(n,a,e,i,r){var o=6*a-12*e+6*i,s=-3*a+9*e-9*i+3*r,l=3*e-3*a;if(s===0){if(o===0)return;var f=-l/o;0=i.length-1}},{key:"next",value:function(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}},{key:"getPoint",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new ke(this.command[e],this.command[i]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(e,i){var r=this.getPoint(e,i);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(e,i){var r=this.getPoint(e,i);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var e=this.previousCommand.type;if(e!==Ie.a.CURVE_TO&&e!==Ie.a.SMOOTH_CURVE_TO&&e!==Ie.a.QUAD_TO&&e!==Ie.a.SMOOTH_QUAD_TO)return this.current;var i=this.current,r=i.x,o=i.y,s=this.control,l=s.x,f=s.y,p=new ke(2*r-l,2*o-f);return p}},{key:"makeAbsolute",value:function(e){if(this.command.relative){var i=this.current,r=i.x,o=i.y;e.x+=r,e.y+=o}return e}},{key:"addMarker",value:function(e,i,r){var o=this.points,s=this.angles;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=o[o.length-1].angleTo(r)),this.addMarkerAngle(e,i?i.angleTo(e):null)}},{key:"addMarkerAngle",value:function(e,i){this.points.push(e),this.angles.push(i)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var e=this.angles,i=e.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!i){var r=this.getStyle("fill"),o=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var f=r.getFillStyleDefinition(this,o);f&&(e.fillStyle=f)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var p=r.getColor();p!=="inherit"&&(e.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var x=new he(this.document,"fill",e.fillStyle).addOpacity(o).getColor();e.fillStyle=x}if(s.isUrlDefinition()){var L=s.getFillStyleDefinition(this,l);L&&(e.strokeStyle=L)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var K=s.getString();K!=="inherit"&&(e.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var re=new he(this.document,"stroke",e.strokeStyle).addOpacity(l).getString();e.strokeStyle=re}var ie=this.getStyle("stroke-width");if(ie.hasValue()){var ae=ie.getPixels();e.lineWidth=ae||de}var be=this.getStyle("stroke-linecap"),fe=this.getStyle("stroke-linejoin"),ue=this.getStyle("stroke-miterlimit"),me=this.getStyle("stroke-dasharray"),Le=this.getStyle("stroke-dashoffset");if(be.hasValue()&&(e.lineCap=be.getString()),fe.hasValue()&&(e.lineJoin=fe.getString()),ue.hasValue()&&(e.miterLimit=ue.getNumber()),me.hasValue()&&me.getString()!=="none"){var Ue=Oe(me.getString());typeof e.setLineDash!="undefined"?e.setLineDash(Ue):typeof e.webkitLineDash!="undefined"?e.webkitLineDash=Ue:typeof e.mozDash!="undefined"&&!(Ue.length===1&&Ue[0]===0)&&(e.mozDash=Ue);var Je=Le.getPixels();typeof e.lineDashOffset!="undefined"?e.lineDashOffset=Je:typeof e.webkitLineDashOffset!="undefined"?e.webkitLineDashOffset=Je:typeof e.mozDashOffset!="undefined"&&(e.mozDashOffset=Je)}}if(this.modifiedEmSizeStack=!1,typeof e.font!="undefined"){var dt=this.getStyle("font"),ft=this.getStyle("font-style"),it=this.getStyle("font-variant"),nt=this.getStyle("font-weight"),ut=this.getStyle("font-size"),Et=this.getStyle("font-family"),et=new mt(ft.getString(),it.getString(),nt.getString(),ut.hasValue()?"".concat(ut.getPixels(!0),"px"):"",Et.getString(),mt.parse(dt.getString(),e.font));ft.setValue(et.fontStyle),it.setValue(et.fontVariant),nt.setValue(et.fontWeight),ut.setValue(et.fontSize),Et.setValue(et.fontFamily),e.font=et.toString(),ut.isPixels()&&(this.document.emSize=ut.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(e){Object(W.a)(Object(w.a)(n.prototype),"clearContext",this).call(this,e),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(We),Qe=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="path",r.pathParser=null,r.pathParser=new xe(r.getAttribute("d").getString()),r}return Object(Q.a)(n,[{key:"path",value:function(e){var i=this.pathParser,r=new ct;for(i.reset(),e&&e.beginPath();!i.isEnd();)switch(i.next().type){case xe.MOVE_TO:this.pathM(e,r);break;case xe.LINE_TO:this.pathL(e,r);break;case xe.HORIZ_LINE_TO:this.pathH(e,r);break;case xe.VERT_LINE_TO:this.pathV(e,r);break;case xe.CURVE_TO:this.pathC(e,r);break;case xe.SMOOTH_CURVE_TO:this.pathS(e,r);break;case xe.QUAD_TO:this.pathQ(e,r);break;case xe.SMOOTH_QUAD_TO:this.pathT(e,r);break;case xe.ARC:this.pathA(e,r);break;case xe.CLOSE_PATH:this.pathZ(e,r);break}return r}},{key:"getBoundingBox",value:function(e){return this.path()}},{key:"getMarkers",value:function(){var e=this.pathParser,i=e.getMarkerPoints(),r=e.getMarkerAngles(),o=i.map(function(s,l){return[s,r[l]]});return o}},{key:"renderChildren",value:function(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var i=this.getStyle("fill-rule");e.fillStyle!==""&&(i.getString("inherit")!=="inherit"?e.fill(i.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var r=this.getMarkers();if(r){var o=r.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),f=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),x=Object(oe.a)(r[0],2),L=x[0],K=x[1];p.render(e,L,K)}if(l.isUrlDefinition())for(var re=l.getDefinition(),ie=1;ief?l:f,ue=l>f?1:l/f,me=l>f?f/l:1;e.translate(L.x,L.y),e.rotate(x),e.scale(ue,me),e.arc(0,0,fe,K,K+re,Boolean(1-p)),e.scale(1/ue,1/me),e.rotate(-x),e.translate(-L.x,-L.y)}}},{key:"pathZ",value:function(e,i){n.pathZ(this.pathParser),e&&(i.x1!==i.x2&&i.y1!==i.y2&&e.closePath())}}],[{key:"pathM",value:function(e){var i=e.getAsCurrentPoint();return e.start=e.current,{point:i}}},{key:"pathL",value:function(e){var i=e.current,r=e.getAsCurrentPoint();return{current:i,point:r}}},{key:"pathH",value:function(e){var i=e.current,r=e.command,o=new ke((r.relative?i.x:0)+r.x,i.y);return e.current=o,{current:i,point:o}}},{key:"pathV",value:function(e){var i=e.current,r=e.command,o=new ke(i.x,(r.relative?i.y:0)+r.y);return e.current=o,{current:i,point:o}}},{key:"pathC",value:function(e){var i=e.current,r=e.getPoint("x1","y1"),o=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathS",value:function(e){var i=e.current,r=e.getReflectedControlPoint(),o=e.getAsControlPoint("x2","y2"),s=e.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathQ",value:function(e){var i=e.current,r=e.getAsControlPoint("x1","y1"),o=e.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathT",value:function(e){var i=e.current,r=e.getReflectedControlPoint();e.control=r;var o=e.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathA",value:function(e){var i=e.current,r=e.command,o=r.rX,s=r.rY,l=r.xRot,f=r.lArcFlag,p=r.sweepFlag,x=l*(Math.PI/180),L=e.getAsCurrentPoint(),K=new ke(Math.cos(x)*(i.x-L.x)/2+Math.sin(x)*(i.y-L.y)/2,-Math.sin(x)*(i.x-L.x)/2+Math.cos(x)*(i.y-L.y)/2),re=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);re>1&&(o*=Math.sqrt(re),s*=Math.sqrt(re));var ie=(f===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(ie)&&(ie=0);var ae=new ke(ie*o*K.y/s,ie*-s*K.x/o),be=new ke((i.x+L.x)/2+Math.cos(x)*ae.x-Math.sin(x)*ae.y,(i.y+L.y)/2+Math.sin(x)*ae.x+Math.cos(x)*ae.y),fe=Ee([1,0],[(K.x-ae.x)/o,(K.y-ae.y)/s]),ue=[(K.x-ae.x)/o,(K.y-ae.y)/s],me=[(-K.x-ae.x)/o,(-K.y-ae.y)/s],Le=Ee(ue,me);return ye(ue,me)<=-1&&(Le=Math.PI),ye(ue,me)>=1&&(Le=0),{currentPoint:L,rX:o,rY:s,sweepFlag:p,xAxisRotation:x,centp:be,a1:fe,ad:Le}}},{key:"pathZ",value:function(e){e.current=e.start}}]),n}(xt),Gt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return Object(Q.a)(n)}(Qe),Pt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,new.target===n?!0:i),r.type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Object(Q.a)(n,[{key:"setContext",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(W.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e,i);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(e.textBaseline=r)}},{key:"initializeCoordinates",value:function(e){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var i=this.getAttribute("dx"),r=this.getAttribute("dy");i.hasValue()&&(this.x+=i.getPixels("x")),r.hasValue()&&(this.y+=r.getPixels("y")),this.x+=this.getAnchorDelta(e,this,0)}},{key:"getBoundingBox",value:function(e){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(e);var r=null;return this.children.forEach(function(o,s){var l=i.getChildBoundingBox(e,i,i,s);r?r.addBoundingBox(l):r=l}),r}},{key:"getFontSize",value:function(){var e=this.document,i=this.parent,r=mt.parse(e.ctx.font).fontSize,o=i.getStyle("font-size").getNumber(r);return o}},{key:"getTElementBoundingBox",value:function(e){var i=this.getFontSize();return new ct(this.x,this.y-i,this.x+this.measureText(e),this.y)}},{key:"getGlyph",value:function(e,i,r){var o=i[r],s=null;if(e.isArabic){var l=i.length,f=i[r-1],p=i[r+1],x="isolated";if((r===0||f===" ")&&r0&&f!==" "&&r0&&f!==" "&&(r===l-1||p===" ")&&(x="initial"),typeof e.glyphs[o]!="undefined"){var L=e.glyphs[o];s=L instanceof Gt?L:L[x]}}else s=e.glyphs[o];return s||(s=e.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(e){var i=e||this.node,r=Array.from(i.parentNode.childNodes),o=r.indexOf(i),s=r.length-1,l=De(i.textContent||"");return o===0&&(l=Ae(l)),o===s&&(l=Ce(l)),l}},{key:"renderChildren",value:function(e){var i=this;if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(e),this.children.forEach(function(o,s){i.renderChild(e,i,i,s)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}},{key:"renderTElementChildren",value:function(e){var i=this.document,r=this.parent,o=this.getText(),s=r.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,f=mt.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(f.fontSize),x=r.getStyle("font-style").getString(f.fontStyle),L=p/l,K=s.isRTL?o.split("").reverse().join(""):o,re=Oe(r.getAttribute("dx").getString()),ie=K.length,ae=0;aer&&f.getAttribute("x").hasValue()||f.getAttribute("text-anchor").hasValue());x++)p+=f.measureTextRecursive(e);return-1*(o==="end"?p:p/2)}return 0}},{key:"adjustChildCoordinates",value:function(e,i,r,o){var s=r.children[o];if(typeof s.measureText!="function")return s;e.save(),s.setContext(e,!0);var l=s.getAttribute("x"),f=s.getAttribute("y"),p=s.getAttribute("dx"),x=s.getAttribute("dy"),L=s.getAttribute("text-anchor").getString("start");if(o===0&&s.type!=="textNode"&&(l.hasValue()||l.setValue(i.getAttribute("x").getValue("0")),f.hasValue()||f.setValue(i.getAttribute("y").getValue("0")),p.hasValue()||p.setValue(i.getAttribute("dx").getValue("0")),x.hasValue()||x.setValue(i.getAttribute("dy").getValue("0"))),l.hasValue()){if(s.x=l.getPixels("x")+i.getAnchorDelta(e,r,o),L!=="start"){var K=s.measureTextRecursive(e);s.x+=-1*(L==="end"?K:K/2)}p.hasValue()&&(s.x+=p.getPixels("x"))}else{if(L!=="start"){var re=s.measureTextRecursive(e);i.x+=-1*(L==="end"?re:re/2)}p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x}return i.x=s.x+s.measureText(e),f.hasValue()?(s.y=f.getPixels("y"),x.hasValue()&&(s.y+=x.getPixels("y"))):(x.hasValue()&&(i.y+=x.getPixels("y")),s.y=i.y),i.y=s.y,s.clearContext(e),e.restore(),s}},{key:"getChildBoundingBox",value:function(e,i,r,o){var s=this.adjustChildCoordinates(e,i,r,o);if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(e);return l?(s.children.forEach(function(f,p){var x=i.getChildBoundingBox(e,i,s,p);l.addBoundingBox(x)}),l):null}},{key:"renderChild",value:function(e,i,r,o){var s=this.adjustChildCoordinates(e,i,r,o);s.render(e),s.children.forEach(function(l,f){i.renderChild(e,i,s,f)})}},{key:"measureTextRecursive",value:function(e){var i=this.children.reduce(function(r,o){return r+o.measureTextRecursive(e)},this.measureText(e));return i}},{key:"measureText",value:function(e){var i=this.measureCache;if(~i)return i;var r=this.getText(),o=this.measureTargetText(e,r);return this.measureCache=o,o}},{key:"measureTargetText",value:function(e,i){if(!i.length)return 0;var r=this.parent,o=r.getStyle("font-family").getDefinition();if(o){for(var s=this.getFontSize(),l=o.isRTL?i.split("").reverse().join(""):i,f=Oe(r.getAttribute("dx").getString()),p=l.length,x=0,L=0;L0?"":r.getTextFromNode(),r}return Object(Q.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(Pt),en=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="textNode",a}return Object(Q.a)(n)}(Wt),At=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(Q.a)(n,[{key:"setContext",value:function(e){var i,r=this.document,o=r.screen,s=r.window,l=e.canvas;if(o.setDefaults(e),l.style&&typeof e.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){e.font=s.getComputedStyle(l).getPropertyValue("font");var f=new he(r,"fontSize",mt.parse(e.font).fontSize);f.hasValue()&&(r.rootEmSize=f.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=o.viewPort,x=p.width,L=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var K=this.getAttribute("refX"),re=this.getAttribute("refY"),ie=this.getAttribute("viewBox"),ae=ie.hasValue()?Oe(ie.getString()):null,be=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",fe=0,ue=0,me=0,Le=0;ae&&(fe=ae[0],ue=ae[1]),this.root||(x=this.getStyle("width").getPixels("x"),L=this.getStyle("height").getPixels("y"),this.type==="marker"&&(me=fe,Le=ue,fe=0,ue=0)),o.viewPort.setCurrent(x,L),this.node&&(!this.parent||((i=this.node.parentNode)===null||i===void 0?void 0:i.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(W.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),ae&&(x=ae[2],L=ae[3]),r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:x,height:o.viewPort.height,desiredHeight:L,minX:fe,minY:ue,refX:K.getValue(),refY:re.getValue(),clip:be,clipX:me,clipY:Le}),ae&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(x,L))}},{key:"clearContext",value:function(e){Object(W.a)(Object(w.a)(n.prototype),"clearContext",this).call(this,e),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(e){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),f=this.getAttribute("style"),p=o.getNumber(0),x=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var L=this.getAttribute("preserveAspectRatio");L.hasValue()&&L.setValue(L.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(e),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||e," ").concat(x||i)),f.hasValue()){var K=this.getStyle("width"),re=this.getStyle("height");K.hasValue()&&K.setValue("".concat(e,"px")),re.hasValue()&&re.setValue("".concat(i,"px"))}}}]),n}(xt),zt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="rect",a}return Object(Q.a)(n,[{key:"path",value:function(e){var i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),f=this.getAttribute("ry"),p=l.getPixels("x"),x=f.getPixels("y");if(l.hasValue()&&!f.hasValue()&&(x=p),f.hasValue()&&!l.hasValue()&&(p=x),p=Math.min(p,o/2),x=Math.min(x,s/2),e){var L=4*((Math.sqrt(2)-1)/3);e.beginPath(),s>0&&o>0&&(e.moveTo(i+p,r),e.lineTo(i+o-p,r),e.bezierCurveTo(i+o-p+L*p,r,i+o,r+x-L*x,i+o,r+x),e.lineTo(i+o,r+s-x),e.bezierCurveTo(i+o,r+s-x+L*x,i+o-p+L*p,r+s,i+o-p,r+s),e.lineTo(i+p,r+s),e.bezierCurveTo(i+p-L*p,r+s,i,r+s-x+L*x,i,r+s-x),e.lineTo(i,r+x),e.bezierCurveTo(i,r+x-L*x,i+p-L*p,r,i+p,r),e.closePath())}return new ct(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(Qe),nr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="circle",a}return Object(Q.a)(n,[{key:"path",value:function(e){var i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return e&&o>0&&(e.beginPath(),e.arc(i,r,o,0,Math.PI*2,!1),e.closePath()),new ct(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(Qe),ar=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="ellipse",a}return Object(Q.a)(n,[{key:"path",value:function(e){var i=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return e&&r>0&&o>0&&(e.beginPath(),e.moveTo(s+r,l),e.bezierCurveTo(s+r,l+i*o,s+i*r,l+o,s,l+o),e.bezierCurveTo(s-i*r,l+o,s-r,l+i*o,s-r,l),e.bezierCurveTo(s-r,l-i*o,s-i*r,l-o,s,l-o),e.bezierCurveTo(s+i*r,l-o,s+r,l-i*o,s+r,l),e.closePath()),new ct(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(Qe),ir=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="line",a}return Object(Q.a)(n,[{key:"getPoints",value:function(){return[new ke(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new ke(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(e){var i=this.getPoints(),r=Object(oe.a)(i,2),o=r[0],s=o.x,l=o.y,f=r[1],p=f.x,x=f.y;return e&&(e.beginPath(),e.moveTo(s,l),e.lineTo(p,x)),new ct(s,l,p,x)}},{key:"getMarkers",value:function(){var e=this.getPoints(),i=Object(oe.a)(e,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(Qe),Ht=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="polyline",r.points=[],r.points=ke.parsePath(r.getAttribute("points").getString()),r}return Object(Q.a)(n,[{key:"path",value:function(e){var i=this.points,r=Object(oe.a)(i,1),o=r[0],s=o.x,l=o.y,f=new ct(s,l);return e&&(e.beginPath(),e.moveTo(s,l)),i.forEach(function(p){var x=p.x,L=p.y;f.addPoint(x,L),e&&e.lineTo(x,L)}),f}},{key:"getMarkers",value:function(){var e=this.points,i=e.length-1,r=[];return e.forEach(function(o,s){if(s===i)return;r.push([o,o.angleTo(e[s+1])])}),r.length>0&&r.push([e[e.length-1],r[r.length-1][1]]),r}}]),n}(Qe),or=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="polygon",a}return Object(Q.a)(n,[{key:"path",value:function(e){var i=Object(W.a)(Object(w.a)(n.prototype),"path",this).call(this,e),r=Object(oe.a)(this.points,1),o=r[0],s=o.x,l=o.y;return e&&(e.lineTo(s,l),e.closePath()),i}}]),n}(Ht),sr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="pattern",a}return Object(Q.a)(n,[{key:"createPattern",value:function(e,i,r){var o=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new At(this.document,null);l.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new he(this.document,"width","".concat(o,"px")),l.attributes.height=new he(this.document,"height","".concat(s,"px")),l.attributes.transform=new he(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var f=this.document.createCanvas(o,s),p=f.getContext("2d"),x=this.getAttribute("x"),L=this.getAttribute("y");x.hasValue()&&L.hasValue()&&p.translate(x.getPixels("x",!0),L.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var re=-1;re<=1;re++)p.save(),l.attributes.x=new he(this.document,"x",K*f.width),l.attributes.y=new he(this.document,"y",re*f.height),l.render(p),p.restore();var ie=e.createPattern(f,"repeat");return ie}}]),n}(We),lr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="marker",a}return Object(Q.a)(n,[{key:"render",value:function(e,i,r){if(!i)return;var o=i.x,s=i.y,l=this.getAttribute("orient").getString("auto"),f=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(o,s),l==="auto"&&e.rotate(r),f==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var p=new At(this.document,null);p.type=this.type,p.attributes.viewBox=new he(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new he(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new he(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new he(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new he(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new he(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new he(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new he(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(e),e.restore(),f==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),l==="auto"&&e.rotate(-r),e.translate(-o,-s)}}]),n}(We),ur=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="defs",a}return Object(Q.a)(n,[{key:"render",value:function(){}}]),n}(We),Nt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="g",a}return Object(Q.a)(n,[{key:"getBoundingBox",value:function(e){var i=new ct;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(e))}),i}}]),n}(xt),Yt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(A.a)(r),s=o.stops,l=o.children;return l.forEach(function(f){f.type==="stop"&&s.push(f)}),r}return Object(Q.a)(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(e,i,r){var o=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,f=l.stops,p=this.getGradient(e,i);if(!p)return this.addParentOpacity(r,f[f.length-1].color);if(f.forEach(function(Ue){p.addColorStop(Ue.offset,o.addParentOpacity(r,Ue.color))}),this.getAttribute("gradientTransform").hasValue()){var x=this.document,L=x.screen,K=L.MAX_VIRTUAL_PIXELS,re=L.viewPort,ie=Object(oe.a)(re.viewPorts,1),ae=ie[0],be=new zt(x,null);be.attributes.x=new he(x,"x",-K/3),be.attributes.y=new he(x,"y",-K/3),be.attributes.width=new he(x,"width",K),be.attributes.height=new he(x,"height",K);var fe=new Nt(x,null);fe.attributes.transform=new he(x,"transform",this.getAttribute("gradientTransform").getValue()),fe.children=[be];var ue=new At(x,null);ue.attributes.x=new he(x,"x",0),ue.attributes.y=new he(x,"y",0),ue.attributes.width=new he(x,"width",ae.width),ue.attributes.height=new he(x,"height",ae.height),ue.children=[fe];var me=x.createCanvas(ae.width,ae.height),Le=me.getContext("2d");return Le.fillStyle=p,ue.render(Le),Le.createPattern(me,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(e){var i=this;this.attributesToInherit.forEach(function(r){!i.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&i.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(e,i){if(e.hasValue()){var r=new he(this.document,"color",i);return r.addOpacity(e).getColor()}return i}}]),n}(We),cr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(Q.a)(n,[{key:"getGradient",value:function(e,i){var r=this.getGradientUnits()==="objectBoundingBox",o=r?i.getBoundingBox(e):null;if(r&&!o)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=r?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=r?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),f=r?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===f&&l===p?null:e.createLinearGradient(s,l,f,p)}}]),n}(Yt),dr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;return Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Object(Q.a)(n,[{key:"getGradient",value:function(e,i){var r=this.getGradientUnits()==="objectBoundingBox",o=i.getBoundingBox(e);if(r&&!o)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=r?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=r?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),f=s,p=l;this.getAttribute("fx").hasValue()&&(f=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var x=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),L=this.getAttribute("fr").getPixels();return e.createRadialGradient(f,p,L,s,l,x)}}]),n}(Yt),fr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="stop";var o=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),s=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),r.offset=o,r.color=l.getColor(),r}return Object(Q.a)(n)}(We),Dt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,a.screen.animations.push(Object(A.a)(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new he(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(Q.a)(n,[{key:"getProperty",value:function(){var e=this.getAttribute("attributeType").getString(),i=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(i,!0):this.parent.getAttribute(i,!0)}},{key:"calcValue",value:function(){var e=this.initialUnits,i=this.getProgress(),r=i.progress,o=i.from,s=i.to,l=o.getNumber()+(s.getNumber()-o.getNumber())*r;return e==="%"&&(l*=100),"".concat(l).concat(e)}},{key:"update",value:function(e){var i=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,i.animationFrozen=!0,i.animationFrozenValue=r.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,r.setValue(i.animationFrozen?i.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var s=!1;if(this.begin0&&Array.from(o).every(function(f){return f.nodeType===3});return r.hasText=l,r.text=l?r.getTextFromNode(s):"",r}return Object(Q.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(e){if(this.hasText){Object(W.a)(Object(w.a)(n.prototype),"renderChildren",this).call(this,e);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new he(i,"fontSize",mt.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ct(r,o-l.getPixels("y"),r+this.measureText(e),o))}else if(this.children.length>0){var f=new Nt(this.document,null);f.children=this.children,f.parent=this,f.render(e)}}},{key:"onClick",value:function(){var e=this.document.window;e&&e.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}}]),n}(Pt);function xr(h,c){var n=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);c&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),n.push.apply(n,a)}return n}function wt(h){for(var c=1;cL?x:L,fe=x>L?1:x/L,ue=x>L?L/x:1;e&&(e.translate(f,p),e.rotate(ie),e.scale(fe,ue),e.arc(0,0,be,K,K+re,Boolean(1-ae)),e.scale(1/fe,1/ue),e.rotate(-ie),e.translate(-f,-p));break}case xe.CLOSE_PATH:e&&e.closePath();break}})}},{key:"renderChildren",value:function(e){this.setTextData(e),e.save();var i=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),o=this.glyphInfo,s=e.fillStyle;i==="underline"&&e.beginPath(),o.forEach(function(l,f){var p=l.p0,x=l.p1,L=l.rotation,K=l.text;e.save(),e.translate(p.x,p.y),e.rotate(L),e.fillStyle&&e.fillText(K,0,0),e.strokeStyle&&e.strokeText(K,0,0),e.restore(),i==="underline"&&(f===0&&e.moveTo(p.x,p.y+r/8),e.lineTo(x.x,x.y+r/5))}),i==="underline"&&(e.lineWidth=r/20,e.strokeStyle=s,e.stroke(),e.closePath()),e.restore()}},{key:"getLetterSpacingAt",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}},{key:"findSegmentToFitChar",value:function(e,i,r,o,s,l,f,p,x){var L=l,K=this.measureText(e,p);p===" "&&i==="justify"&&r-1&&(L+=this.getLetterSpacingAt(x));var re=this.textHeight/20,ie=this.getEquidistantPointOnPath(L,re,0),ae=this.getEquidistantPointOnPath(L+K,re,0),be={p0:ie,p1:ae},fe=ie&&ae?Math.atan2(ae.y-ie.y,ae.x-ie.x):0;if(f){var ue=Math.cos(Math.PI/2+fe)*f,me=Math.cos(-fe)*f;be.p0=wt(wt({},ie),{},{x:ie.x+ue,y:ie.y+me}),be.p1=wt(wt({},ae),{},{x:ae.x+ue,y:ae.y+me})}return L+=K,{offset:L,segment:be,rotation:fe}}},{key:"measureText",value:function(e,i){var r=this.measuresCache,o=i||this.getText();if(r.has(o))return r.get(o);var s=this.measureTargetText(e,o);return r.set(o,s),s}},{key:"setTextData",value:function(e){var i=this;if(this.glyphInfo)return;var r=this.getText(),o=r.split(""),s=r.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Je){return Je.getPixels("x")}),f=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),x=this.getStyle("letter-spacing"),L=this.parent.getStyle("letter-spacing"),K=0;!x.hasValue()||x.getValue()==="inherit"?K=L.getPixels():x.hasValue()&&(x.getValue()!=="initial"&&x.getValue()!=="unset"&&(K=x.getPixels()));var re=[],ie=r.length;this.letterSpacingCache=re;for(var ae=0;ae0&&(x-=2*Math.PI),s===1&&x<0&&(x+=2*Math.PI),[f.x,f.y,r,o,p,x,l,s]}},{key:"calcLength",value:function(e,i,r,o){var s=0,l=null,f=null,p=0;switch(r){case xe.LINE_TO:return this.getLineLength(e,i,o[0],o[1]);case xe.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,e,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)f=this.getPointOnCubicBezier(p,e,i,o[0],o[1],o[2],o[3],o[4],o[5]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case xe.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,e,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)f=this.getPointOnQuadraticBezier(p,e,i,o[0],o[1],o[2],o[3]),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;return s;case xe.ARC:{s=0;var x=o[4],L=o[5],K=o[4]+L,re=Math.PI/180;if(Math.abs(x-K)K;p-=re)f=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,f.x,f.y),l=f;else for(p=x+re;p5&&arguments[5]!==void 0?arguments[5]:i,f=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+de),x=Math.sqrt(e*e/(1+p*p));oi)return null;var s=this.dataArray,l=Object(O.a)(s),f;try{for(l.s();!(f=l.n()).done;){var p=f.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5=0&&L>ie)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],L,p.points[6]);break}case xe.CURVE_TO:L=x/p.pathLength,L>1&&(L=1),o=this.getPointOnCubicBezier(L,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case xe.QUAD_TO:L=x/p.pathLength,L>1&&(L=1),o=this.getPointOnQuadraticBezier(L,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(o)return o;break}}catch(ae){l.e(ae)}finally{l.f()}return null}},{key:"getLineLength",value:function(e,i,r,o){return Math.sqrt((r-e)*(r-e)+(o-i)*(o-i))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(e,i){return i.pathLength>0?e+i.pathLength:e},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(e,i,r,o,s,l,f,p,x){var L=p*Fe(e)+l*Ze(e)+o*Ke(e)+i*Xe(e),K=x*Fe(e)+f*Ze(e)+s*Ke(e)+r*Xe(e);return{x:L,y:K}}},{key:"getPointOnQuadraticBezier",value:function(e,i,r,o,s,l,f){var p=l*pt(e)+o*lt(e)+i*vt(e),x=f*pt(e)+s*lt(e)+r*vt(e);return{x:p,y:x}}},{key:"getPointOnEllipticalArc",value:function(e,i,r,o,s,l){var f=Math.cos(l),p=Math.sin(l),x={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:e+(x.x*f-x.y*p),y:i+(x.x*p+x.y*f)}}},{key:"buildEquidistantCache",value:function(e,i){var r=this.getPathLength(),o=i||.25,s=e||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==o){this.equidistantCache={step:s,precision:o,points:[]};for(var l=0,f=0;f<=r;f+=o){var p=this.getPointOnPath(f),x=this.getPointOnPath(f+o);if(!p||!x)continue;l+=this.getLineLength(p.x,p.y,x.x,x.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:f}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(e,i,r){if(this.buildEquidistantCache(i,r),e<0||e-this.getPathLength()>5e-5)return null;var o=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}]),n}(Pt),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Or=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="image",r.loaded=!1;var o=r.getHrefAttribute().getString();if(!o)return Object(H.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(A.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(Q.a)(n,[{key:"loadImage",value:function(e){var i=this;return pe()(se.a.mark(function r(){var o;return se.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,i.document.createImage(e);case 3:o=l.sent,i.image=o,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(e,'":'),l.t0);case 10:i.loaded=!0;case 11:case"end":return l.stop()}},r,null,[[0,7]])}))()}},{key:"loadSvg",value:function(e){var i=this;return pe()(se.a.mark(function r(){var o,s,l,f;return se.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(o=tn.exec(e),!o){x.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),x.next=19;break;case 6:return x.prev=6,x.next=9,i.document.fetch(e);case 9:return l=x.sent,x.next=12,l.text();case 12:f=x.sent,i.image=f,x.next=19;break;case 16:x.prev=16,x.t0=x.catch(6),console.error('Error while loading image "'.concat(e,'":'),x.t0);case 19:i.loaded=!0;case 20:case"end":return x.stop()}},r,null,[[6,16]])}))()}},{key:"renderChildren",value:function(e){var i=this.document,r=this.image,o=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),f=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!o||!r||!f||!p)return;if(e.save(),e.translate(s,l),this.isSvg){var x=i.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:f,scaleHeight:p});x.document.documentElement.parent=this,void x.render()}else{var L=this.image;i.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:f,desiredWidth:L.width,height:p,desiredHeight:L.height}),this.loaded&&((typeof L.complete=="undefined"||L.complete)&&e.drawImage(L,0,0))}e.restore()}},{key:"getBoundingBox",value:function(){var e=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new ct(e,i,e+r,i+o)}}]),n}(xt),Mr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="symbol",a}return Object(Q.a)(n,[{key:"render",value:function(e){}}]),n}(xt),Cr=function(){function h(c){Object(X.a)(this,h),this.document=c,this.loaded=!1,c.fonts.push(this)}return Object(Q.a)(h,[{key:"load",value:function(n,a){var e=this;return pe()(se.a.mark(function i(){var r,o,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,r=e.document,f.next=4,r.canvg.parser.load(a);case 4:o=f.sent,s=o.getElementsByTagName("font"),Array.from(s).forEach(function(p){var x=r.createElement(p);r.definitions[n]=x}),f.next=12;break;case 9:f.prev=9,f.t0=f.catch(0),console.error('Error while loading font "'.concat(a,'":'),f.t0);case 12:e.loaded=!0;case 13:case"end":return f.stop()}},i,null,[[0,9]])}))()}}]),h}(),$t=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="style";var o=De(Array.from(e.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach(function(l){var f=l.trim();if(!f)return;var p=f.split("{"),x=p[0].split(","),L=p[1].split(";");x.forEach(function(K){var re=K.trim();if(!re)return;var ie=a.styles[re]||{};if(L.forEach(function(fe){var ue=fe.indexOf(":"),me=fe.substr(0,ue).trim(),Le=fe.substr(ue+1,fe.length-ue).trim();me&&Le&&(ie[me]=new he(a,me,Le))}),a.styles[re]=ie,a.stylesSpecificity[re]=te(re),re==="@font-face"){var ae=ie["font-family"].getString().replace(/"|'/g,""),be=ie.src.getString().split(",");be.forEach(function(fe){if(fe.indexOf('format("svg")')>0){var ue=Ge(fe);ue&&void new Cr(a).load(ae,ue)}})}})}),r}return Object(Q.a)(n)}(We);$t.parseExternalUrl=Ge;var Sr=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=c.apply(this,arguments),a.type="use",a}return Object(Q.a)(n,[{key:"setContext",value:function(e){Object(W.a)(Object(w.a)(n.prototype),"setContext",this).call(this,e);var i=this.getAttribute("x"),r=this.getAttribute("y");i.hasValue()&&e.translate(i.getPixels("x"),0),r.hasValue()&&e.translate(0,r.getPixels("y"))}},{key:"path",value:function(e){var i=this.element;i&&i.path(e)}},{key:"renderChildren",value:function(e){var i=this.document,r=this.element;if(r){var o=r;if(r.type==="symbol"&&(o=new At(i,null),o.attributes.viewBox=new he(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new he(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new he(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new he(i,"opacity",this.calculateOpacity())),o.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(o.attributes.width=new he(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new he(i,"height",l.getString()))}var f=o.parent;o.parent=this,o.render(e),o.parent=f}}},{key:"getBoundingBox",value:function(e){var i=this.element;return i?i.getBoundingBox(e):null}},{key:"elementTransform",value:function(){var e=this.document,i=this.element;return Tt.fromElement(e,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(xt);function Lt(h,c,n,a,e,i){return h[n*a*4+c*4+i]}function Bt(h,c,n,a,e,i,r){h[n*a*4+c*4+i]=r}function Ye(h,c,n){var a=h[c];return a*n}function bt(h,c,n,a){return c+Math.cos(h)*n+Math.sin(h)*a}var Kt=function(h){Object(Z.a)(n,h);var c=Object(Y.a)(n);function n(a,e,i){var r;Object(X.a)(this,n),r=c.call(this,a,e,i),r.type="feColorMatrix";var o=Oe(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":{var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=o[0]*Math.PI/180;o=[bt(l,.213,.787,-.213),bt(l,.715,-.715,-.715),bt(l,.072,-.072,.928),0,0,bt(l,.213,-.213,.143),bt(l,.715,.285,.14),bt(l,.072,-.072,-.283),0,0,bt(l,.213,-.213,-.787),bt(l,.715,-.715,.715),bt(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return r.matrix=o,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Object(Q.a)(n,[{key:"apply",value:function(e,i,r,o,s){for(var l=this.includeOpacity,f=this.matrix,p=e.getImageData(0,0,o,s),x=0;x1&&e[1]!==void 0?e[1]:!1,a=document.createElement("img"),n&&(a.crossOrigin="Anonymous"),r.abrupt("return",new Promise(function(o,s){a.onload=function(){o(a)},a.onerror=function(l,f,p,x,L){s(L)},a.src=c}));case 4:case"end":return r.stop()}},h)})),Zt.apply(this,arguments)}var Rt=function(){function h(c){Object(X.a)(this,h);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.rootEmSize,e=a===void 0?12:a,i=n.emSize,r=i===void 0?12:i,o=n.createCanvas,s=o===void 0?h.createCanvas:o,l=n.createImage,f=l===void 0?h.createImage:l,p=n.anonymousCrossOrigin;this.canvg=c,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=c.screen,this.rootEmSize=e,this.emSize=r,this.createCanvas=s,this.createImage=this.bindCreateImage(f,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(Q.a)(h,[{key:"bindCreateImage",value:function(n,a){return typeof a=="boolean"?function(e,i){return n(e,typeof i=="boolean"?i:a)}:n}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var n=this.emSizeStack;return n[n.length-1]},set:function(n){var a=this.emSizeStack;a.push(n)}},{key:"popEmSize",value:function(){var n=this.emSizeStack;n.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(n){return n.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(n){return n.loaded})}},{key:"createDocumentElement",value:function(n){var a=this.createElement(n.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(n){var a=n.nodeName.replace(/^[^:]+:/,""),e=h.elementTypes[a];return typeof e!="undefined"?new e(this,n):new rr(this,n)}},{key:"createTextNode",value:function(n){return new en(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(nn({document:this},n))}}]),h}();Rt.createCanvas=an,Rt.createImage=on,Rt.elementTypes=rn;function Lr(h,c){var n=Object.keys(h);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(h);c&&(a=a.filter(function(e){return Object.getOwnPropertyDescriptor(h,e).enumerable})),n.push.apply(n,a)}return n}function Ct(h){for(var c=1;c2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new It(a),this.screen=new He(c,a),this.options=a;var e=new Rt(this,a),i=e.createDocumentElement(n);this.document=e,this.documentElement=i}return Object(Q.a)(h,[{key:"fork",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.from(n,a,Ct(Ct({},this.options),e))}},{key:"forkString",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return h.fromString(n,a,Ct(Ct({},this.options),e))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var n=arguments,a=this;return pe()(se.a.mark(function e(){var i;return se.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ct({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},i)),o.next=4,a.ready();case 4:a.stop();case 5:case"end":return o.stop()}},e)}))()}},{key:"start",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,e=this.screen,i=this.options;e.start(a,Ct(Ct({enableRedraw:!0},i),n))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(n,a,e)}}],[{key:"from",value:function(n,a){var e=arguments;return pe()(se.a.mark(function i(){var r,o,s;return se.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return r=e.length>2&&e[2]!==void 0?e[2]:{},o=new It(r),f.next=4,o.parse(a);case 4:return s=f.sent,f.abrupt("return",new h(n,s,r));case 6:case"end":return f.stop()}},i)}))()}},{key:"fromString",value:function(n,a){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new It(e),r=i.parseFromString(a);return new h(n,r,e)}}]),h}();b.default=Br}.call(this,t("Q2Ig"))},E9XD:function(m,b,t){"use strict";var u=t("I+eb"),d=t("1Y/n").left,v=t("pkCn"),g=t("LQDL"),y=t("YF1G"),S=v("reduce"),T=!y&&g>79&&g<83;u({target:"Array",proto:!0,forced:!S||T},{reduce:function(P){var B=arguments.length;return d(this,P,B,B>1?arguments[1]:void 0)}})},EHx7:function(m,b,t){var u=t("0Dky"),d=t("2oRo"),v=d.RegExp;m.exports=u(function(){var g=v("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},EnZy:function(m,b,t){"use strict";var u=t("K6Rb"),d=t("xluM"),v=t("4zBA"),g=t("14Sl"),y=t("ROdP"),S=t("glrk"),T=t("HYAF"),R=t("SEBh"),P=t("iqWW"),B=t("UMSQ"),V=t("V37c"),I=t("3Eq5"),U=t("Ta7t"),G=t("FMNM"),z=t("kmMV"),$=t("n3/R"),J=t("0Dky"),F=$.UNSUPPORTED_Y,ee=4294967295,N=Math.min,le=[].push,C=v(/./.exec),M=v(le),D=v("".slice),j=!J(function(){var _=/(?:)/,ne=_.exec;_.exec=function(){return ne.apply(this,arguments)};var q="ab".split(_);return q.length!==2||q[0]!=="a"||q[1]!=="b"});g("split",function(_,ne,q){var E;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?E=function(H,O){var A=V(T(this)),W=O===void 0?ee:O>>>0;if(W===0)return[];if(H===void 0)return[A];if(!y(H))return d(ne,A,H,W);for(var w=[],k=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(H.sticky?"y":""),Z=0,Y=new RegExp(H.source,k+"g"),X,Q,oe;(X=d(z,Y,A))&&!(Q=Y.lastIndex,Q>Z&&(M(w,D(A,Z,X.index)),X.length>1&&X.index=W));)Y.lastIndex===X.index&&Y.lastIndex++;return Z===A.length?(oe||!C(Y,""))&&M(w,""):M(w,D(A,Z)),w.length>W?U(w,0,W):w}:"0".split(void 0,0).length?E=function(H,O){return H===void 0&&O===0?[]:d(ne,this,H,O)}:E=ne,[function(O,A){var W=T(this),w=O==null?void 0:I(O,_);return w?d(w,O,W,A):d(E,V(W),O,A)},function(H,O){var A=S(this),W=V(H),w=q(E,A,W,O,E!==ne);if(w.done)return w.value;var k=R(A,RegExp),Z=A.unicode,Y=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(F?"g":"y"),X=new k(F?"^(?:"+A.source+")":A,Y),Q=O===void 0?ee:O>>>0;if(Q===0)return[];if(W.length===0)return G(X,W)===null?[W]:[];for(var oe=0,ce=0,se=[];cej;j++)if(ne=O(z[j]),ne&&R(G,ne))return ne;return new U(!1)}M=P(z,D)}for(q=M.next;!(E=v(q,M)).done;){try{ne=O(E.value)}catch(A){V(M,"throw",A)}if(typeof ne=="object"&&ne&&R(G,ne))return ne}return new U(!1)}},JBy8:function(m,b,t){var u=t("yoRg"),d=t("eDl+"),v=d.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(y){return u(y,v)}},JTJg:function(m,b,t){"use strict";var u=t("I+eb"),d=t("4zBA"),v=t("WjRb"),g=t("HYAF"),y=t("V37c"),S=t("qxPZ"),T=d("".indexOf);u({target:"String",proto:!0,forced:!S("includes")},{includes:function(P){return!!~T(y(g(this)),y(v(P)),arguments.length>1?arguments[1]:void 0)}})},JfAA:function(m,b,t){"use strict";var u=t("4zBA"),d=t("Xnc8").PROPER,v=t("busE"),g=t("glrk"),y=t("OpvP"),S=t("V37c"),T=t("0Dky"),R=t("rW0t"),P="toString",B=RegExp.prototype,V=B[P],I=u(R),U=T(function(){return V.call({source:"a",flags:"b"})!="/a/b"}),G=d&&V.name!=P;(U||G)&&v(RegExp.prototype,P,function(){var $=g(this),J=S($.source),F=$.flags,ee=S(F===void 0&&y(B,$)&&!("flags"in B)?I($):F);return"/"+J+"/"+ee},{unsafe:!0})},JiZb:function(m,b,t){"use strict";var u=t("0GbY"),d=t("m/L8"),v=t("tiKp"),g=t("g6v/"),y=v("species");m.exports=function(S){var T=u(S),R=d.f;g&&T&&!T[y]&&R(T,y,{configurable:!0,get:function(){return this}})}},Junv:function(m,b,t){"use strict";var u=t("I+eb"),d=t("4zBA"),v=t("6LWA"),g=d([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return v(this)&&(this.length=this.length),g(this)}})},K6Rb:function(m,b,t){var u=t("QNWe"),d=Function.prototype,v=d.apply,g=d.call;m.exports=typeof Reflect=="object"&&Reflect.apply||(u?g.bind(v):function(){return g.apply(v,arguments)})},KmKo:function(m,b,t){var u=t("xluM"),d=t("glrk"),v=t("3Eq5");m.exports=function(g,y,S){var T,R;d(g);try{if(T=v(g,"return"),!T){if(y==="throw")throw S;return S}T=u(T,g)}catch(P){R=!0,T=P}if(y==="throw")throw S;if(R)throw T;return d(T),S}},LKBx:function(m,b,t){"use strict";var u=t("I+eb"),d=t("4zBA"),v=t("Bs8V").f,g=t("UMSQ"),y=t("V37c"),S=t("WjRb"),T=t("HYAF"),R=t("qxPZ"),P=t("xDBR"),B=d("".startsWith),V=d("".slice),I=Math.min,U=R("startsWith"),G=!P&&!U&&!!function(){var z=v(String.prototype,"startsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!G&&!U},{startsWith:function($){var J=y(T(this));S($);var F=g(I(arguments.length>1?arguments[1]:void 0,J.length)),ee=y($);return B?B(J,ee,F):V(J,F,F+ee.length)===ee}})},LPSS:function(m,b,t){var u=t("2oRo"),d=t("K6Rb"),v=t("A2ZE"),g=t("Fib7"),y=t("Gi26"),S=t("0Dky"),T=t("G+Rx"),R=t("82ph"),P=t("zBJ4"),B=t("1tal"),V=t("HNyW"),I=t("YF1G"),U=u.setImmediate,G=u.clearImmediate,z=u.process,$=u.Dispatch,J=u.Function,F=u.MessageChannel,ee=u.String,N=0,le={},C="onreadystatechange",M,D,j,_;try{M=u.location}catch(O){}var ne=function(O){if(y(le,O)){var A=le[O];delete le[O],A()}},q=function(O){return function(){ne(O)}},E=function(O){ne(O.data)},H=function(O){u.postMessage(ee(O),M.protocol+"//"+M.host)};(!U||!G)&&(U=function(A){B(arguments.length,1);var W=g(A)?A:J(A),w=R(arguments,1);return le[++N]=function(){d(W,void 0,w)},D(N),N},G=function(A){delete le[A]},I?D=function(O){z.nextTick(q(O))}:$&&$.now?D=function(O){$.now(q(O))}:F&&!V?(j=new F,_=j.port2,j.port1.onmessage=E,D=v(_.postMessage,_)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&M&&M.protocol!=="file:"&&!S(H)?(D=H,u.addEventListener("message",E,!1)):C in P("script")?D=function(O){T.appendChild(P("script"))[C]=function(){T.removeChild(this),ne(O)}}:D=function(O){setTimeout(q(O),0)}),m.exports={set:U,clear:G}},LQDL:function(m,b,t){var u=t("2oRo"),d=t("NC/Y"),v=u.process,g=u.Deno,y=v&&v.versions||g&&g.version,S=y&&y.v8,T,R;S&&(T=S.split("."),R=T[0]>0&&T[0]<4?1:+(T[0]+T[1])),!R&&d&&(T=d.match(/Edge\/(\d+)/),(!T||T[1]>=74)&&(T=d.match(/Chrome\/(\d+)/),T&&(R=+T[1]))),m.exports=R},"N+g0":function(m,b,t){var u=t("g6v/"),d=t("rtlb"),v=t("m/L8"),g=t("glrk"),y=t("/GqU"),S=t("33Wh");b.f=u&&!d?Object.defineProperties:function(R,P){g(R);for(var B=y(P),V=S(P),I=V.length,U=0,G;I>U;)v.f(R,G=V[U++],B[G]);return R}},"NC/Y":function(m,b,t){var u=t("0GbY");m.exports=u("navigator","userAgent")||""},NaFW:function(m,b,t){var u=t("9d/t"),d=t("3Eq5"),v=t("P4y1"),g=t("tiKp"),y=g("iterator");m.exports=function(S){if(S!=null)return d(S,y)||d(S,"@@iterator")||v[u(S)]}},O741:function(m,b,t){var u=t("2oRo"),d=t("Fib7"),v=u.String,g=u.TypeError;m.exports=function(y){if(typeof y=="object"||d(y))return y;throw g("Can't set "+v(y)+" as a prototype")}},OpvP:function(m,b,t){var u=t("4zBA");m.exports=u({}.isPrototypeOf)},P4y1:function(m,b){m.exports={}},QNWe:function(m,b,t){var u=t("0Dky");m.exports=!u(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},RK3t:function(m,b,t){var u=t("2oRo"),d=t("4zBA"),v=t("0Dky"),g=t("xrYK"),y=u.Object,S=d("".split);m.exports=v(function(){return!y("z").propertyIsEnumerable(0)})?function(T){return g(T)=="String"?S(T,""):y(T)}:y},RN6c:function(m,b,t){var u=t("2oRo");m.exports=function(d,v){var g=u.console;g&&g.error&&(arguments.length==1?g.error(d):g.error(d,v))}},RNIs:function(m,b,t){var u=t("tiKp"),d=t("fHMY"),v=t("m/L8"),g=u("unscopables"),y=Array.prototype;y[g]==null&&v.f(y,g,{configurable:!0,value:d(null)}),m.exports=function(S){y[g][S]=!0}},ROdP:function(m,b,t){var u=t("hh1v"),d=t("xrYK"),v=t("tiKp"),g=v("match");m.exports=function(y){var S;return u(y)&&((S=y[g])!==void 0?!!S:d(y)=="RegExp")}},Rm1S:function(m,b,t){"use strict";var u=t("xluM"),d=t("14Sl"),v=t("glrk"),g=t("UMSQ"),y=t("V37c"),S=t("HYAF"),T=t("3Eq5"),R=t("iqWW"),P=t("FMNM");d("match",function(B,V,I){return[function(G){var z=S(this),$=G==null?void 0:T(G,B);return $?u($,G,z):new RegExp(G)[B](y(z))},function(U){var G=v(this),z=y(U),$=I(V,G,z);if($.done)return $.value;if(!G.global)return P(G,z);var J=G.unicode;G.lastIndex=0;for(var F=[],ee=0,N;(N=P(G,z))!==null;){var le=y(N[0]);F[ee]=le,le===""&&(G.lastIndex=R(z,g(G.lastIndex),J)),ee++}return ee===0?null:F}]})},SEBh:function(m,b,t){var u=t("glrk"),d=t("UIe5"),v=t("tiKp"),g=v("species");m.exports=function(y,S){var T=u(y).constructor,R;return T===void 0||(R=u(T)[g])==null?S:d(R)}},SFrS:function(m,b,t){var u=t("2oRo"),d=t("xluM"),v=t("Fib7"),g=t("hh1v"),y=u.TypeError;m.exports=function(S,T){var R,P;if(T==="string"&&v(R=S.toString)&&!g(P=d(R,S)))return P;if(v(R=S.valueOf)&&!g(P=d(R,S)))return P;if(T!=="string"&&v(R=S.toString)&&!g(P=d(R,S)))return P;throw y("Can't convert object to primitive value")}},STAE:function(m,b,t){var u=t("LQDL"),d=t("0Dky");m.exports=!!Object.getOwnPropertySymbols&&!d(function(){var v=Symbol();return!String(v)||!(Object(v)instanceof Symbol)||!Symbol.sham&&u&&u<41})},SYor:function(m,b,t){"use strict";var u=t("I+eb"),d=t("WKiH").trim,v=t("yNLB");u({target:"String",proto:!0,forced:v("trim")},{trim:function(){return d(this)}})},TWQb:function(m,b,t){var u=t("/GqU"),d=t("I8vh"),v=t("B/qT"),g=function(y){return function(S,T,R){var P=u(S),B=v(P),V=d(R,B),I;if(y&&T!=T){for(;B>V;)if(I=P[V++],I!=I)return!0}else for(;B>V;V++)if((y||V in P)&&P[V]===T)return y||V||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},Ta7t:function(m,b,t){var u=t("2oRo"),d=t("I8vh"),v=t("B/qT"),g=t("hBjN"),y=u.Array,S=Math.max;m.exports=function(T,R,P){for(var B=v(T),V=d(R,B),I=d(P===void 0?B:P,B),U=y(S(I-V,0)),G=0;V0?d(u(v),9007199254740991):0}},UxlC:function(m,b,t){"use strict";var u=t("K6Rb"),d=t("xluM"),v=t("4zBA"),g=t("14Sl"),y=t("0Dky"),S=t("glrk"),T=t("Fib7"),R=t("WSbT"),P=t("UMSQ"),B=t("V37c"),V=t("HYAF"),I=t("iqWW"),U=t("3Eq5"),G=t("DLK6"),z=t("FMNM"),$=t("tiKp"),J=$("replace"),F=Math.max,ee=Math.min,N=v([].concat),le=v([].push),C=v("".indexOf),M=v("".slice),D=function(q){return q===void 0?q:String(q)},j=function(){return"a".replace(/./,"$0")==="$0"}(),_=function(){return/./[J]?/./[J]("a","$0")==="":!1}(),ne=!y(function(){var q=/./;return q.exec=function(){var E=[];return E.groups={a:"7"},E},"".replace(q,"$")!=="7"});g("replace",function(q,E,H){var O=_?"$":"$0";return[function(W,w){var k=V(this),Z=W==null?void 0:U(W,J);return Z?d(Z,W,k,w):d(E,B(k),W,w)},function(A,W){var w=S(this),k=B(A);if(typeof W=="string"&&C(W,O)===-1&&C(W,"$<")===-1){var Z=H(E,w,k,W);if(Z.done)return Z.value}var Y=T(W);Y||(W=B(W));var X=w.global;if(X){var Q=w.unicode;w.lastIndex=0}for(var oe=[];;){var ce=z(w,k);if(ce===null)break;if(le(oe,ce),!X)break;var se=B(ce[0]);se===""&&(w.lastIndex=I(k,P(w.lastIndex),Q))}for(var Me="",pe=0,ge=0;ge=pe&&(Me+=M(k,pe,Se)+we,pe=Se+je.length)}return Me+M(k,pe)}]},!ne||!j||_)},V37c:function(m,b,t){var u=t("2oRo"),d=t("9d/t"),v=u.String;m.exports=function(g){if(d(g)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return v(g)}},VpIT:function(m,b,t){var u=t("xDBR"),d=t("xs3f");(m.exports=function(v,g){return d[v]||(d[v]=g!==void 0?g:{})})("versions",[]).push({version:"3.21.1",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},Vu81:function(m,b,t){var u=t("0GbY"),d=t("4zBA"),v=t("JBy8"),g=t("dBg+"),y=t("glrk"),S=d([].concat);m.exports=u("Reflect","ownKeys")||function(R){var P=v.f(y(R)),B=g.f;return B?S(P,B(R)):P}},WJkJ:function(m,b){m.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},WKiH:function(m,b,t){var u=t("4zBA"),d=t("HYAF"),v=t("V37c"),g=t("WJkJ"),y=u("".replace),S="["+g+"]",T=RegExp("^"+S+S+"*"),R=RegExp(S+S+"*$"),P=function(B){return function(V){var I=v(d(V));return B&1&&(I=y(I,T,"")),B&2&&(I=y(I,R,"")),I}};m.exports={start:P(1),end:P(2),trim:P(3)}},WOGj:function(m,b){m.exports=function(t){this.ok=!1,this.alpha=1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var u={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=u[t]||t;for(var d=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(P){return[parseInt(P[1]),parseInt(P[2]),parseInt(P[3]),parseFloat(P[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(P){return[parseInt(P[1]),parseInt(P[2]),parseInt(P[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(P){return[parseInt(P[1],16),parseInt(P[2],16),parseInt(P[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(P){return[parseInt(P[1]+P[1],16),parseInt(P[2]+P[2],16),parseInt(P[3]+P[3],16)]}}],v=0;v3&&(this.alpha=T[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var R=this.r.toString(16),P=this.g.toString(16),B=this.b.toString(16);return R.length==1&&(R="0"+R),P.length==1&&(P="0"+P),B.length==1&&(B="0"+B),"#"+R+P+B},this.getHelpXML=function(){for(var R=new Array,P=0;P "+z.toRGB()+" -> "+z.toHex());G.appendChild($),G.appendChild(J),U.appendChild(G)}catch(ee){}return U}}},WSbT:function(m,b){var t=Math.ceil,u=Math.floor;m.exports=function(d){var v=+d;return v!==v||v===0?0:(v>0?u:t)(v)}},We1y:function(m,b,t){var u=t("2oRo"),d=t("Fib7"),v=t("DVFp"),g=u.TypeError;m.exports=function(y){if(d(y))return y;throw g(v(y)+" is not a function")}},WjRb:function(m,b,t){var u=t("2oRo"),d=t("ROdP"),v=u.TypeError;m.exports=function(g){if(d(g))throw v("The method doesn't accept regular expressions");return g}},XGwC:function(m,b){m.exports=function(t,u){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:u}}},Xnc8:function(m,b,t){var u=t("g6v/"),d=t("Gi26"),v=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=d(v,"name"),S=y&&function(){}.name==="something",T=y&&(!u||u&&g(v,"name").configurable);m.exports={EXISTS:y,PROPER:S,CONFIGURABLE:T}},Xp4B:function(m,b,t){"use strict";t.d(b,"a",function(){return T});function u(I){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(G){return typeof G}:u=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},u(I)}function d(I,U){if(!(I instanceof U))throw new TypeError("Cannot call a class as a function")}var v=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],g=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(I,U,G,z,$,J){if(typeof I=="string"&&(I=document.getElementById(I)),!I||!("naturalWidth"in I))return;var F=$?"offset":"natural",ee=I[F+"Width"],N=I[F+"Height"];if(typeof U=="string"&&(U=document.getElementById(U)),!U||!("getContext"in U))return;J||(U.style.width=ee+"px",U.style.height=N+"px"),U.width=ee,U.height=N;var le=U.getContext("2d");if(le.clearRect(0,0,ee,N),le.drawImage(I,0,0,I.naturalWidth,I.naturalHeight,0,0,ee,N),isNaN(G)||G<1)return;z?T(U,0,0,ee,N,G):P(U,0,0,ee,N,G)}function S(I,U,G,z,$){if(typeof I=="string"&&(I=document.getElementById(I)),!I||u(I)!=="object"||!("getContext"in I))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var J=I.getContext("2d");try{return J.getImageData(U,G,z,$)}catch(F){throw new Error("unable to access image data: "+F)}}function T(I,U,G,z,$,J){if(isNaN(J)||J<1)return;J|=0;var F=S(I,U,G,z,$);F=R(F,U,G,z,$,J),I.getContext("2d").putImageData(F,U,G)}function R(I,U,G,z,$,J){for(var F=I.data,ee=2*J+1,N=z-1,le=$-1,C=J+1,M=C*(C+1)/2,D=new V,j=D,_,ne=1;ne>W;if(F[O+3]=ze,ze!==0){var qe=255/ze;F[O]=(Te*A>>W)*qe,F[O+1]=(Re*A>>W)*qe,F[O+2]=(Pe*A>>W)*qe}else F[O]=F[O+1]=F[O+2]=0;Te-=pe,Re-=ge,Pe-=je,Ie-=Se,pe-=q.r,ge-=q.g,je-=q.b,Se-=q.a;var Ge=Oe+J+1;Ge=H+(Ge>W,te>0?(te=255/te,F[He]=(Fe*A>>W)*te,F[He+1]=(Ze*A>>W)*te,F[He+2]=(Ke*A>>W)*te):F[He]=F[He+1]=F[He+2]=0,Fe-=de,Ze-=ve,Ke-=ye,Xe-=Ee,de-=q.r,ve-=q.g,ye-=q.b,Ee-=q.a,He=at+((He=St+C)>O,F[k+1]=pe*H>>O,F[k+2]=ge*H>>O,Me-=oe,pe-=ce,ge-=se,oe-=q.r,ce-=q.g,se-=q.b,A=w+((A=Ie+J+1)>O,F[A+1]=ze*H>>O,F[A+2]=qe*H>>O,Oe-=De,ze-=Ae,qe-=Ce,De-=q.r,Ae-=q.g,Ce-=q.b,A=we+((A=at+C)=G?P?"":void 0:(z=S(I,U),z<55296||z>56319||U+1===G||($=S(I,U+1))<56320||$>57343?P?y(I,U):z:P?T(I,U,U+2):(z-55296<<10)+($-56320)+65536)}};m.exports={codeAt:R(!1),charAt:R(!0)}},aO6C:function(m,b,t){var u=t("4zBA"),d=t("0Dky"),v=t("Fib7"),g=t("9d/t"),y=t("0GbY"),S=t("iSVu"),T=function(){},R=[],P=y("Reflect","construct"),B=/^\s*(?:class|function)\b/,V=u(B.exec),I=!B.exec(T),U=function($){if(!v($))return!1;try{return P(T,R,$),!0}catch(J){return!1}},G=function($){if(!v($))return!1;switch(g($)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return I||!!V(B,S($))}catch(J){return!0}};G.sham=!0,m.exports=!P||d(function(){var z;return U(U.call)||!U(Object)||!U(function(){z=!0})||z})?G:U},afO8:function(m,b,t){var u=t("f5p1"),d=t("2oRo"),v=t("4zBA"),g=t("hh1v"),y=t("kRJp"),S=t("Gi26"),T=t("xs3f"),R=t("93I0"),P=t("0BK2"),B="Object already initialized",V=d.TypeError,I=d.WeakMap,U,G,z,$=function(M){return z(M)?G(M):U(M,{})},J=function(M){return function(D){var j;if(!g(D)||(j=G(D)).type!==M)throw V("Incompatible receiver, "+M+" required");return j}};if(u||T.state){var F=T.state||(T.state=new I),ee=v(F.get),N=v(F.has),le=v(F.set);U=function(M,D){if(N(F,M))throw new V(B);return D.facade=M,le(F,M,D),D},G=function(M){return ee(F,M)||{}},z=function(M){return N(F,M)}}else{var C=R("state");P[C]=!0,U=function(M,D){if(S(M,C))throw new V(B);return D.facade=M,y(M,C,D),D},G=function(M){return S(M,C)?M[C]:{}},z=function(M){return S(M,C)}}m.exports={set:U,get:G,has:z,enforce:$,getterFor:J}},busE:function(m,b,t){var u=t("2oRo"),d=t("Fib7"),v=t("Gi26"),g=t("kRJp"),y=t("zk60"),S=t("iSVu"),T=t("afO8"),R=t("Xnc8").CONFIGURABLE,P=T.get,B=T.enforce,V=String(String).split("String");(m.exports=function(I,U,G,z){var $=z?!!z.unsafe:!1,J=z?!!z.enumerable:!1,F=z?!!z.noTargetGet:!1,ee=z&&z.name!==void 0?z.name:U,N;if(d(G)&&(String(ee).slice(0,7)==="Symbol("&&(ee="["+String(ee).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!v(G,"name")||R&&G.name!==ee)&&g(G,"name",ee),N=B(G),N.source||(N.source=V.join(typeof ee=="string"?ee:""))),I===u){J?I[U]=G:y(U,G);return}else $?!F&&I[U]&&(J=!0):delete I[U];J?I[U]=G:g(I,U,G)})(Function.prototype,"toString",function(){return d(this)&&P(this).source||S(this)})},"dBg+":function(m,b){b.f=Object.getOwnPropertySymbols},"eDl+":function(m,b){m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},eFrH:function(m,b,t){var u=t("zBJ4"),d=u("span").classList,v=d&&d.constructor&&d.constructor.prototype;m.exports=v===Object.prototype?void 0:v},ewvW:function(m,b,t){var u=t("2oRo"),d=t("HYAF"),v=u.Object;m.exports=function(g){return v(d(g))}},f5p1:function(m,b,t){var u=t("2oRo"),d=t("Fib7"),v=t("iSVu"),g=u.WeakMap;m.exports=d(g)&&/native code/.test(v(g))},fHMY:function(m,b,t){var u=t("glrk"),d=t("N+g0"),v=t("eDl+"),g=t("0BK2"),y=t("G+Rx"),S=t("zBJ4"),T=t("93I0"),R=">",P="<",B="prototype",V="script",I=T("IE_PROTO"),U=function(){},G=function(ee){return P+V+R+ee+P+"/"+V+R},z=function(ee){ee.write(G("")),ee.close();var N=ee.parentWindow.Object;return ee=null,N},$=function(){var ee=S("iframe"),N="java"+V+":",le;return ee.style.display="none",y.appendChild(ee),ee.src=String(N),le=ee.contentWindow.document,le.open(),le.write(G("document.F=Object")),le.close(),le.F},J,F=function(){try{J=new ActiveXObject("htmlfile")}catch(N){}F=typeof document!="undefined"?document.domain&&J?z(J):$():z(J);for(var ee=v.length;ee--;)delete F[B][v[ee]];return F()};g[I]=!0,m.exports=Object.create||function(N,le){var C;return N!==null?(U[B]=u(N),C=new U,U[B]=null,C[I]=N):C=F(),le===void 0?C:d.f(C,le)}},fdAy:function(m,b,t){"use strict";var u=t("I+eb"),d=t("xluM"),v=t("xDBR"),g=t("Xnc8"),y=t("Fib7"),S=t("ntOU"),T=t("4WOD"),R=t("0rvr"),P=t("1E5z"),B=t("kRJp"),V=t("busE"),I=t("tiKp"),U=t("P4y1"),G=t("rpNk"),z=g.PROPER,$=g.CONFIGURABLE,J=G.IteratorPrototype,F=G.BUGGY_SAFARI_ITERATORS,ee=I("iterator"),N="keys",le="values",C="entries",M=function(){return this};m.exports=function(D,j,_,ne,q,E,H){S(_,j,ne);var O=function(ce){if(ce===q&&Z)return Z;if(!F&&ce in w)return w[ce];switch(ce){case N:return function(){return new _(this,ce)};case le:return function(){return new _(this,ce)};case C:return function(){return new _(this,ce)}}return function(){return new _(this)}},A=j+" Iterator",W=!1,w=D.prototype,k=w[ee]||w["@@iterator"]||q&&w[q],Z=!F&&k||O(q),Y=j=="Array"&&w.entries||k,X,Q,oe;if(Y&&(X=T(Y.call(new D)),X!==Object.prototype&&X.next&&(!v&&T(X)!==J&&(R?R(X,J):y(X[ee])||V(X,ee,M)),P(X,A,!0,!0),v&&(U[A]=M))),z&&q==le&&k&&k.name!==le&&(!v&&$?B(w,"name",le):(W=!0,Z=function(){return d(k,this)})),q)if(Q={values:O(le),keys:E?Z:O(N),entries:O(C)},H)for(oe in Q)(F||W||!(oe in w))&&V(w,oe,Q[oe]);else u({target:j,proto:!0,forced:F||W},Q);return(!v||H)&&w[ee]!==Z&&V(w,ee,Z,{name:q}),U[j]=Z,Q}},"g6v/":function(m,b,t){var u=t("0Dky");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},glrk:function(m,b,t){var u=t("2oRo"),d=t("hh1v"),v=u.String,g=u.TypeError;m.exports=function(y){if(d(y))return y;throw g(v(y)+" is not an object")}},hBjN:function(m,b,t){"use strict";var u=t("oEtG"),d=t("m/L8"),v=t("XGwC");m.exports=function(g,y,S){var T=u(y);T in g?d.f(g,T,v(0,S)):g[T]=S}},hh1v:function(m,b,t){var u=t("Fib7");m.exports=function(d){return typeof d=="object"?d!==null:u(d)}},iSVu:function(m,b,t){var u=t("4zBA"),d=t("Fib7"),v=t("xs3f"),g=u(Function.toString);d(v.inspectSource)||(v.inspectSource=function(y){return g(y)}),m.exports=v.inspectSource},inlA:function(m,b,t){"use strict";var u=t("I+eb"),d=t("4zBA"),v=t("Bs8V").f,g=t("UMSQ"),y=t("V37c"),S=t("WjRb"),T=t("HYAF"),R=t("qxPZ"),P=t("xDBR"),B=d("".endsWith),V=d("".slice),I=Math.min,U=R("endsWith"),G=!P&&!U&&!!function(){var z=v(String.prototype,"endsWith");return z&&!z.writable}();u({target:"String",proto:!0,forced:!G&&!U},{endsWith:function($){var J=y(T(this));S($);var F=arguments.length>1?arguments[1]:void 0,ee=J.length,N=F===void 0?ee:I(g(F),ee),le=y($);return B?B(J,le,N):V(J,N-le.length,N)===le}})},iqWW:function(m,b,t){"use strict";var u=t("ZUd8").charAt;m.exports=function(d,v,g){return v+(g?u(d,v).length:1)}},kOOl:function(m,b,t){var u=t("4zBA"),d=0,v=Math.random(),g=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++d+v,36)}},kRJp:function(m,b,t){var u=t("g6v/"),d=t("m/L8"),v=t("XGwC");m.exports=u?function(g,y,S){return d.f(g,y,v(1,S))}:function(g,y,S){return g[y]=S,g}},kmMV:function(m,b,t){"use strict";var u=t("xluM"),d=t("4zBA"),v=t("V37c"),g=t("rW0t"),y=t("n3/R"),S=t("VpIT"),T=t("fHMY"),R=t("afO8").get,P=t("/OPJ"),B=t("EHx7"),V=S("native-string-replace",String.prototype.replace),I=RegExp.prototype.exec,U=I,G=d("".charAt),z=d("".indexOf),$=d("".replace),J=d("".slice),F=function(){var C=/a/,M=/b*/g;return u(I,C,"a"),u(I,M,"a"),C.lastIndex!==0||M.lastIndex!==0}(),ee=y.BROKEN_CARET,N=/()??/.exec("")[1]!==void 0,le=F||N||ee||P||B;le&&(U=function(M){var D=this,j=R(D),_=v(M),ne=j.raw,q,E,H,O,A,W,w;if(ne)return ne.lastIndex=D.lastIndex,q=u(U,ne,_),D.lastIndex=ne.lastIndex,q;var k=j.groups,Z=ee&&D.sticky,Y=u(g,D),X=D.source,Q=0,oe=_;if(Z&&(Y=$(Y,"y",""),z(Y,"g")===-1&&(Y+="g"),oe=J(_,D.lastIndex),D.lastIndex>0&&(!D.multiline||D.multiline&&G(_,D.lastIndex-1)!==` +`)&&(X="(?: "+X+")",oe=" "+oe,Q++),E=new RegExp("^(?:"+X+")",Y)),N&&(E=new RegExp("^"+X+"$(?!\\s)",Y)),F&&(H=D.lastIndex),O=u(I,Z?E:D,oe),Z?O?(O.input=J(O.input,Q),O[0]=J(O[0],Q),O.index=D.lastIndex,D.lastIndex+=O[0].length):D.lastIndex=0:F&&O&&(D.lastIndex=D.global?O.index+O[0].length:H),N&&O&&O.length>1&&u(V,O[0],E,function(){for(A=1;A1?arguments[1]:void 0;return S?y(this,P,B)||0:v(this,P,B)}})},yoRg:function(m,b,t){var u=t("4zBA"),d=t("Gi26"),v=t("/GqU"),g=t("TWQb").indexOf,y=t("0BK2"),S=u([].push);m.exports=function(T,R){var P=v(T),B=0,V=[],I;for(I in P)!d(y,I)&&d(P,I)&&S(V,I);for(;R.length>B;)d(P,I=R[B++])&&(~g(V,I)||S(V,I));return V}},zBJ4:function(m,b,t){var u=t("2oRo"),d=t("hh1v"),v=u.document,g=d(v)&&d(v.createElement);m.exports=function(y){return g?v.createElement(y):{}}},zfnd:function(m,b,t){var u=t("glrk"),d=t("hh1v"),v=t("8GlL");m.exports=function(g,y){if(u(g),d(y)&&y.constructor===g)return y;var S=v.f(g),T=S.resolve;return T(y),S.promise}},zk60:function(m,b,t){var u=t("2oRo"),d=Object.defineProperty;m.exports=function(v,g){try{d(u,v,{value:g,configurable:!0,writable:!0})}catch(y){u[v]=g}return g}}}]); diff --git a/index.html b/index.html index 64c24ff158..df9b192e33 100644 --- a/index.html +++ b/index.html @@ -62,19 +62,19 @@ window.routerBase = "/"; -
+
-
+
+ diff --git a/layouts__ShixunDetail__index.7953922f.async.js b/layouts__ShixunDetail__index.41988657.async.js similarity index 99% rename from layouts__ShixunDetail__index.7953922f.async.js rename to layouts__ShixunDetail__index.41988657.async.js index 5fe08ce2d1..bb1080037a 100644 --- a/layouts__ShixunDetail__index.7953922f.async.js +++ b/layouts__ShixunDetail__index.41988657.async.js @@ -1,3 +1,3 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[28,15],{"4U8T":function(Ge,tt,s){Ge.exports={modal:"modal___1_Lg1",tip:"tip___1bekE"}},E7E6:function(Ge,tt){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},FOrL:function(Ge,tt){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},NRst:function(Ge,tt,s){"use strict";s.r(tt);var pa=s("Q9mQ"),ut=s("diRs"),va=s("P2fV"),Pt=s("NJEC"),ba=s("14J3"),He=s("BMrR"),ga=s("+L6B"),lt=s("2/Rp"),ha=s("jCWc"),pe=s("kPKH"),Aa=s("sRBo"),Ne=s("kaz8"),Ra=s("5Dmo"),$=s("3S7+"),Ot=s("c1Ei"),d=s.n(Ot),Ca=s("miYZ"),q=s("tsqr"),ee=s("XEnU"),N=s("5Tp6"),Ua=s("2qtc"),we=s("kLXV"),h=s("k16G"),pt=s("SIvP"),Fa=s("B9cy"),at=s("Ol7k"),ya=s("lUTK"),jt=s("BvKs"),Pa=s("Znn+"),vt=s("ZTPi"),r=s("q1tI"),e=s.n(r),re=s("9kvl"),Ie=s("uYtH"),We=s("VTBJ"),Lt=s("rePB"),Dt=s("Ff2n"),wt=s("TSYQ"),bt=s.n(wt),St=s("Pw59"),rt=s("Qi1f"),Bt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],gt=r.forwardRef(function(E,i){var m=E.className,A=E.component,U=E.viewBox,T=E.spin,v=E.rotate,F=E.tabIndex,I=E.onClick,O=E.children,oe=Object(Dt.a)(E,Bt);Object(rt.g)(Boolean(A||O),"Should have `component` prop or `children`."),Object(rt.f)();var V=r.useContext(St.a),j=V.prefixCls,b=j===void 0?"anticon":j,Q=bt()(b,m),y=bt()(Object(Lt.a)({},"".concat(b,"-spin"),!!T)),_=v?{msTransform:"rotate(".concat(v,"deg)"),transform:"rotate(".concat(v,"deg)")}:void 0,t=Object(We.a)(Object(We.a)({},rt.e),{},{className:y,style:_,viewBox:U});U||delete t.viewBox;var L=function(){return A?r.createElement(A,Object(We.a)({},t),O):O?(Object(rt.g)(Boolean(U)||r.Children.count(O)===1&&r.isValidElement(O)&&r.Children.only(O).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",Object(We.a)(Object(We.a)({},t),{},{viewBox:U}),O)):null},f=F;return f===void 0&&I&&(f=-1),r.createElement("span",Object(We.a)(Object(We.a)({role:"img"},oe),{},{ref:i,tabIndex:f,onClick:I,className:Q}),L())});gt.displayName="AntdIcon";var ct=gt,ht=s("RCxd"),kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},xt=kt,Tt=s("6VBw"),At=function(i,m){return r.createElement(Tt.a,Object(We.a)(Object(We.a)({},i),{},{ref:m,icon:xt}))};At.displayName="SettingOutlined";var Mt=r.forwardRef(At),Nt=function(){return e.a.createElement("svg",{width:"16px",height:"14px",viewBox:"0 0 16 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-338.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-30",transform:"translate(192.000000, 0.000000)"},e.a.createElement("g",{id:"\u5B66\u751F\u5907\u4EFD"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("g",{id:"\u7F16\u7EC4-2",transform:"translate(1.484375, 1.000000)",stroke:"#FFFFFF",strokeWidth:"1.125"},e.a.createElement("circle",{id:"\u692D\u5706\u5F62",cx:"4.81535885",cy:"2.703125",r:"2.140625"}),e.a.createElement("line",{x1:"8.8671875",y1:"2.6984375",x2:"12.9921875",y2:"2.6984375",id:"\u8DEF\u5F84-2",strokeLinecap:"round"}),e.a.createElement("line",{x1:"10.971875",y1:"0.59375",x2:"10.971875",y2:"4.71875",id:"\u8DEF\u5F84-2",strokeLinecap:"round"}),e.a.createElement("path",{d:"M11.6602343,8.9375 L1.29500865,8.9375 L1.38655479,13.4113249 L12.0600577,12.9156417 L11.6602343,8.9375 Z",id:"\u77E9\u5F62"}),e.a.createElement("path",{d:"M4.86223385,5.96875 C3.87558231,5.96875 2.9371147,6.20325603 2.04650583,6.67093558 C1.74891831,6.82720575 1.54974161,7.12252446 1.51637951,7.45698927 L1.37142475,8.90960803 L8.34040708,8.90960803 L8.20397832,7.46013637 C8.17226298,7.12318034 7.97226424,6.8251326 7.67247653,6.66805836 C6.7835034,6.2022899 5.84686059,5.96875 4.86223385,5.96875 Z",id:"\u77E9\u5F62"}),e.a.createElement("line",{x1:"-8.22401229e-17",y1:"8.9171875",x2:"13.078125",y2:"8.9171875",id:"\u8DEF\u5F84-3",strokeLinecap:"round"})))))))))},It=function(){return e.a.createElement("svg",{width:"16px",height:"14px",viewBox:"0 0 16 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-1229.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-34",transform:"translate(1147.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-25",transform:"translate(82.000000, 0.000000)"},e.a.createElement("g",{id:"\u5B66\u751F"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("g",{id:"\u7F16\u7EC4-2",transform:"translate(1.484375, 1.000000)",stroke:"#FFFFFF",strokeWidth:"1.125"},e.a.createElement("circle",{id:"\u692D\u5706\u5F62",cx:"6.515625",cy:"2.703125",r:"2.140625"}),e.a.createElement("path",{d:"M11.6602343,8.9375 L1.29500865,8.9375 L1.38655479,13.4113249 L12.0600577,12.9156417 L11.6602343,8.9375 Z",id:"\u77E9\u5F62"}),e.a.createElement("path",{d:"M6.5625,5.96875 C5.57584846,5.96875 4.63738085,6.20325603 3.74677198,6.67093558 C3.44918446,6.82720575 3.25000776,7.12252446 3.21664566,7.45698927 L3.07169091,8.90960803 L10.0406732,8.90960803 L9.90424448,7.46013637 C9.87252913,7.12318034 9.67253039,6.8251326 9.37274268,6.66805836 C8.48376955,6.2022899 7.54712675,5.96875 6.5625,5.96875 Z",id:"\u77E9\u5F62"}),e.a.createElement("line",{x1:"-8.22401229e-17",y1:"8.9171875",x2:"13.078125",y2:"8.9171875",id:"\u8DEF\u5F84-3",strokeLinecap:"round"})))))))))},Xt=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-1148.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-34",transform:"translate(1147.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-27"},e.a.createElement("g",{id:"\u7F16\u7EC4-2"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M14.5,1 C14.7761424,1 15,1.22385763 15,1.5 L15,10.515625 C15,10.7917674 14.7761424,11.015625 14.5,11.015625 L12.984,11.015 L12.984,9.89 L13.875,9.890625 L13.875,2.125 L2.125,2.125 L2.125,9.890625 L3.031,9.89 L3.031,11.015 L1.5,11.015625 C1.22385763,11.015625 1,10.7917674 1,10.515625 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("path",{d:"M7.953125,3.953125 C7.36200773,3.953125 6.82685148,4.19272261 6.43947455,4.58009955 C6.05209761,4.96747648 5.8125,5.50263273 5.8125,6.09375 C5.8125,6.68486727 6.05209761,7.22002352 6.43947455,7.60740045 C6.82685148,7.99477739 7.36200773,8.234375 7.953125,8.234375 C8.54424227,8.234375 9.07939852,7.99477739 9.46677545,7.60740045 C9.85415239,7.22002352 10.09375,6.68486727 10.09375,6.09375 C10.09375,5.50263273 9.85415239,4.96747648 9.46677545,4.58009955 C9.07939852,4.19272261 8.54424227,3.953125 7.953125,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M8,9.359375 C7.02926405,9.359375 6.10515185,9.58634117 5.22738617,10.0391208 C4.91256494,10.2015156 4.70715311,10.5183474 4.68737612,10.8720323 L4.48804974,14.4375 L11.5073586,14.4375 L11.3117934,10.8726264 C11.2923657,10.5184864 11.086806,10.201135 10.7715768,10.038586 C9.89413176,9.58616432 8.97035946,9.359375 8,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}))))))))},Oa=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-243.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-29",transform:"translate(96.000000, 0.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-2\u5907\u4EFD-2"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M15,1.5 L15,8.796 L13.875,8.796 L13.875,2.125 L2.125,2.125 L2.125,3.937 L1,3.937 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 C14.7761424,1 15,1.22385763 15,1.5 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("line",{x1:"10.3515625",y1:"12.4484375",x2:"14.4765625",y2:"12.4484375",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"12.45625",y1:"10.34375",x2:"12.45625",y2:"14.46875",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("path",{d:"M5.05989997,3.953125 C4.4687827,3.953125 3.93362645,4.19272261 3.54624952,4.58009955 C3.15887258,4.96747648 2.91927497,5.50263273 2.91927497,6.09375 C2.91927497,6.68486727 3.15887258,7.22002352 3.54624952,7.60740045 C3.93362645,7.99477739 4.4687827,8.234375 5.05989997,8.234375 C5.65101724,8.234375 6.18617349,7.99477739 6.57355042,7.60740045 C6.96092735,7.22002352 7.20052497,6.68486727 7.20052497,6.09375 C7.20052497,5.50263273 6.96092735,4.96747648 6.57355042,4.58009955 C6.18617349,4.19272261 5.65101724,3.953125 5.05989997,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M5.10677497,9.359375 C4.1360377,9.359375 3.2119243,9.58634179 2.33415756,10.0391226 C2.02878012,10.1966463 1.82634563,10.4994802 1.79642938,10.840309 L2.04994602,14.4002361 L8.58736721,13.9495882 L8.41856837,10.8726264 C8.39914062,10.5184864 8.193581,10.201135 7.87835181,10.038586 C7.00090673,9.58616432 6.07713443,9.359375 5.10677497,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("line",{x1:"9.421875",y1:"4.0109375",x2:"12.421875",y2:"4.0109375",id:"\u8DEF\u5F84-3",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"9.421875",y1:"6.1359375",x2:"10.921875",y2:"6.1359375",id:"\u8DEF\u5F84-3\u5907\u4EFD",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}))))))))},ja=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-147.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-28"},e.a.createElement("g",{id:"\u7F16\u7EC4-2\u5907\u4EFD"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M15,1.5 L15,8.796 L13.875,8.796 L13.875,2.125 L2.125,2.125 L2.125,3.937 L1,3.937 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 C14.7761424,1 15,1.22385763 15,1.5 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("line",{x1:"10.3515625",y1:"12.4484375",x2:"14.4765625",y2:"12.4484375",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"12.45625",y1:"10.34375",x2:"12.45625",y2:"14.46875",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("path",{d:"M5.05989997,3.953125 C4.4687827,3.953125 3.93362645,4.19272261 3.54624952,4.58009955 C3.15887258,4.96747648 2.91927497,5.50263273 2.91927497,6.09375 C2.91927497,6.68486727 3.15887258,7.22002352 3.54624952,7.60740045 C3.93362645,7.99477739 4.4687827,8.234375 5.05989997,8.234375 C5.65101724,8.234375 6.18617349,7.99477739 6.57355042,7.60740045 C6.96092735,7.22002352 7.20052497,6.68486727 7.20052497,6.09375 C7.20052497,5.50263273 6.96092735,4.96747648 6.57355042,4.58009955 C6.18617349,4.19272261 5.65101724,3.953125 5.05989997,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M5.10677497,9.359375 C4.1360377,9.359375 3.2119243,9.58634179 2.33415756,10.0391226 C2.02878012,10.1966463 1.82634563,10.4994802 1.79642938,10.840309 L2.04994602,14.4002361 L8.58736721,13.9495882 L8.41856837,10.8726264 C8.39914062,10.5184864 8.193581,10.201135 7.87835181,10.038586 C7.00090673,9.58616432 6.07713443,9.359375 5.10677497,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}))))))))},ie=s("oUNq"),$e=s("ErOA"),La=s("5NDa"),Xe=s("5rEg"),dt=s("v7Ap"),Da=s("y8nQ"),k=s("Vl3Y"),wa=s("nRaC"),Rt=s("5RzL"),Se=s("WHYC"),_t=Rt.a.TreeNode,Vt=function(i){var m,A,U,T,v,F,I,O,oe,V,j,b,Q,y,_,t,L,f,S,x,g=i.classroomList,G=i.loading,ae=i.dispatch,X=Object(Se.m)(),R=Object(Se.l)(),D=Object(r.useState)(!1),he=Object(h.a)(D,2),de=he[0],Ue=he[1],Ae=Object(r.useState)(),Be=Object(h.a)(Ae,2),Ce=Be[0],H=Be[1],Ee=g.actionTabs,Me=k.a.useForm(),De=Object(h.a)(Me,1),_e=De[0];return Object(r.useEffect)(function(){g.actionTabs.key=="\u6DFB\u52A0\u76EE\u5F55"&&_e.resetFields()},[g.actionTabs.key]),g.actionTabs.key!=="\u6DFB\u52A0\u76EE\u5F55"?null:e.a.createElement(we.a,{centered:!0,title:"\u65B0\u5EFA\u76EE\u5F55",visible:g.actionTabs.key==="\u6DFB\u52A0\u76EE\u5F55",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:de,onOk:Object(N.a)(d.a.mark(function se(){var ve,Ve,Fe,ye,Re,K,be,B;return d.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,_e.validateFields();case 2:ve=_e.getFieldValue(),Ue(!0),Ve="/api/course_modules/".concat(g.actionTabs.selectArrs.category_id,"/add_second_category.json"),a.t0=g.actionTabs.selectArrs.type,a.next=a.t0==="board"?8:10;break;case 8:return Ve="/api/courses/".concat(X.coursesId,"/boards.json"),a.abrupt("break",10);case 10:return a.next=12,Object($e.a)(Ve,{method:"post",body:Object(ee.a)({parent_id:Ce||g.actionTabs.selectArrs.parent_id},ve)});case 12:Fe=a.sent,Fe.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),ae({type:"classroomList/setActionTabs",payload:{}}),ae({type:"classroomList/getClassroomLeftMenus",payload:{id:X.coursesId}}),Re=g.actionTabs.selectArrs.type,K=(Fe==null?void 0:Fe.category_id)||0,be=(ye=R.pathname)===null||ye===void 0?void 0:ye.split("/"),be[4]=K,be[3]=Re||be[3],B=be==null?void 0:be.join("/"),re.c.push(B),Ee.cb&&Ee.cb()),Ue(!1);case 15:case"end":return a.stop()}},se)})),onCancel:function(){ae({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement(k.a,{form:_e,initialValues:Object(dt.a)({},"name","")},(((m=g.actionTabs.selectArrs)===null||m===void 0||((A=m.nodeModules)===null||A===void 0)?void 0:A.type)==="attachment"||((U=g.actionTabs.selectArrs)===null||U===void 0||((T=U.nodeModules)===null||T===void 0)?void 0:T.category_type)==="attachment")&&e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,{flex:"80px"},"\u4E0A\u7EA7\u76EE\u5F55\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Rt.a,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeDefaultExpandAll:!0,size:"large",defaultValue:((v=g.actionTabs.selectArrs)===null||v===void 0?void 0:v.parent_id)===""?(F=g.actionTabs.selectArrs)===null||F===void 0?void 0:F.category_id:(I=g.actionTabs.selectArrs)===null||I===void 0?void 0:I.parent_id,disabled:!(((O=g.actionTabs.selectArrs)===null||O===void 0?void 0:O.parent_id)===""),onChange:function(ve){H(ve)}},((oe=g.actionTabs.selectArrs)===null||oe===void 0?void 0:oe.parent_id)===""&&e.a.createElement(_t,{value:(V=g.actionTabs.selectArrs)===null||V===void 0?void 0:V.category_id,title:((j=g.actionTabs.selectArrs)===null||j===void 0||((b=j.nodeModules)===null||b===void 0)?void 0:b.name)+"(\u6839\u76EE\u5F55)"},(Q=g.actionTabs.selectArrs)===null||Q===void 0||((y=Q.nodeModules)===null||y===void 0||((_=y.second_category)===null||_===void 0))?void 0:_.map(function(se,ve){return e.a.createElement(_t,{value:se.category_id,title:se.category_name})})),((t=g.actionTabs.selectArrs)===null||t===void 0?void 0:t.parent_id)!==""&&e.a.createElement(_t,{value:(L=g.actionTabs.selectArrs)===null||L===void 0||((f=L.nodeModules)===null||f===void 0)?void 0:f.category_id,title:(S=g.actionTabs.selectArrs)===null||S===void 0||((x=S.nodeModules)===null||x===void 0)?void 0:x.category_name})))),e.a.createElement(k.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26 ",maxLength:60})))))))},Qt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Vt),Ht=s("wd/R"),Ke=s.n(Ht),zt=function(i){var m,A,U,T,v,F=i.classroomList,I=i.loading,O=i.dispatch,oe=Object(Se.m)(),V=Object(Se.l)(),j=Object(r.useState)(!1),b=Object(h.a)(j,2),Q=b[0],y=b[1],_=F.actionTabs,t=k.a.useForm(),L=Object(h.a)(t,1),f=L[0],S=Object(r.useState)({name:"string"}),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=function(R){return R&&R0&&w[0]!==void 0?w[0]:!1,!((a||y)&&!f)){ue.next=11;break}return c=G.getFieldValue(),S(!0),Ae(a?1:Ue+1),ue.next=7,Object(ie.tb)({page:a?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:c==null?void 0:c.school_name,keyword:c==null?void 0:c.keyword});case 7:u=ue.sent,D(a?Object(je.a)(u.users):[].concat(Object(je.a)(R),Object(je.a)(u.users))),S(!1),((o=u.users)===null||o===void 0?void 0:o.length)<10&&_(!1);case 11:case"end":return ue.stop()}},n)}));return function(){return B.apply(this,arguments)}}(),K=function(){var B=Object(N.a)(d.a.mark(function n(){var a;return d.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(H=="")){c.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),c.next=8;break;case 4:return c.next=6,Object(ie.b)(Object(ee.a)(Object(ee.a)({},F),{},{role:2,user_list:H.map(function(u){return{user_id:u}})}));case 6:a=c.sent,a.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/teachers")));case 8:case"end":return c.stop()}},n)}));return function(){return B.apply(this,arguments)}}(),be=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(n,a){return e.a.createElement(Ne.a,{value:a.numid,checked:H.includes(String(a.numid)),disabled:!!n})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(n,a){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(a.login),target:"_blank"},n||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(n){return n?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,Ke()(n).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(n){if(n===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u8001\u5E08",visible:U.actionTabs.key==="\u6DFB\u52A0\u8001\u5E08",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function B(){return d.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:K();case 1:case"end":return a.stop()}},B)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(n,a){return a.value.toUpperCase().indexOf(n.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Fe()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:be})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(n){Re()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:be,onRow:function(n){return{onClick:function(o){o.currentTarget.querySelector("input").disabled||ye(o.currentTarget.querySelector("input").value)}}}})))))},Kt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Gt),Yt=function(i){var m,A,U=i.classroomList,T=i.loading,v=i.dispatch,F=Object(Se.m)(),I=U.actionTabs,O=Object(r.useState)([]),oe=Object(h.a)(O,2),V=oe[0],j=oe[1],b=Object(r.useState)(!0),Q=Object(h.a)(b,2),y=Q[0],_=Q[1],t=Object(r.useState)(!1),L=Object(h.a)(t,2),f=L[0],S=L[1],x=k.a.useForm(),g=Object(h.a)(x,1),G=g[0],ae=Object(r.useState)([]),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)([]),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!0),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=Object(r.useRef)(),Ve=function(a){return a&&a0&&Y[0]!==void 0?Y[0]:!1,!(y&&!f)){fe.next=11;break}return u=G.getFieldValue(),S(!0),Ae(o?1:Ue+1),fe.next=7,Object(ie.tb)({page:o?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:u==null?void 0:u.school_name,keyword:u==null?void 0:u.keyword});case 7:w=fe.sent,S(!1),D(o?Object(je.a)(w.users):[].concat(Object(je.a)(R),Object(je.a)(w.users))),((c=w.users)===null||c===void 0?void 0:c.length)<10&&_(!1);case 11:case"end":return fe.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),be=function(){var n=Object(N.a)(d.a.mark(function a(){var o;return d.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(H=="")){u.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),u.next=8;break;case 4:return u.next=6,Object(ie.b)(Object(ee.a)(Object(ee.a)({},F),{},{role:3,user_list:H.map(function(w){return{user_id:w}})}));case 6:o=u.sent,o.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/teachers")));case 8:case"end":return u.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),B=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(a,o){return e.a.createElement(Ne.a,{value:o.numid,checked:H.includes(String(o.numid)),disabled:!!a})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(a,o){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(o.login),target:"_blank"},a||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(a){return a?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,Ke()(a).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(a){if(a===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u52A9\u6559",visible:U.actionTabs.key==="\u6DFB\u52A0\u52A9\u6559",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,style:{zIndex:"99999"},bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function n(){return d.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:be();case 1:case"end":return o.stop()}},n)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(a,o){return o.value.toUpperCase().indexOf(a.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return ye()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:B})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){K()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:B,onRow:function(a){return{onClick:function(c){c.currentTarget.querySelector("input").disabled||Re(c.currentTarget.querySelector("input").value)}}}})))))},Jt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Yt),qt=function(i){var m,A,U=i.classroomList,T=i.loading,v=i.dispatch,F=Object(Se.m)(),I=U.actionTabs,O=Object(r.useState)([]),oe=Object(h.a)(O,2),V=oe[0],j=oe[1],b=Object(r.useState)(!0),Q=Object(h.a)(b,2),y=Q[0],_=Q[1],t=Object(r.useState)(!1),L=Object(h.a)(t,2),f=L[0],S=L[1],x=k.a.useForm(),g=Object(h.a)(x,1),G=g[0],ae=Object(r.useState)([]),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)([]),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!0),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=Object(r.useRef)(),Ve=function(a){return a&&a0&&Y[0]!==void 0?Y[0]:!1,!(y&&!f)){fe.next=11;break}return u=G.getFieldValue(),S(!0),Ae(o?1:Ue+1),fe.next=7,Object(ie.tb)({page:o?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:u==null?void 0:u.school_name,keyword:u==null?void 0:u.keyword,role:4});case 7:w=fe.sent,D(o?Object(je.a)(w.users):[].concat(Object(je.a)(R),Object(je.a)(w.users))),S(!1),((c=w.users)===null||c===void 0?void 0:c.length)<10&&_(!1);case 11:case"end":return fe.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),be=function(){var n=Object(N.a)(d.a.mark(function a(){var o;return d.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(H=="")){u.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),u.next=8;break;case 4:return u.next=6,Object(ie.a)(Object(ee.a)(Object(ee.a)({},F),{},{course_group_id:0,user_ids:H}));case 6:o=u.sent,o.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getStudentsList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/students")));case 8:case"end":return u.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),B=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(a,o){return e.a.createElement(Ne.a,{value:o.numid,checked:H.includes(String(o.numid)),disabled:!!a})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(a,o){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(o.login),target:"_blank"},a||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(a){return a?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,Ke()(a).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(a){if(a===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u5B66\u751F",visible:U.actionTabs.key==="\u6DFB\u52A0\u5B66\u751F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function n(){return d.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:be();case 1:case"end":return o.stop()}},n)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(a,o){return o.value.toUpperCase().indexOf(a.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return ye()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:B})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){K()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:B,onRow:function(a){return{onClick:function(c){c.currentTarget.querySelector("input").disabled||Re(c.currentTarget.querySelector("input").value)}}}})))))},$t=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(qt),Le=s("1vsH"),ea=function(i){var m=i.classroomList,A=i.dispatch,U=i.user,T=Object(r.useState)(!1),v=Object(h.a)(T,2),F=v[0],I=v[1],O=k.a.useForm(),oe=Object(h.a)(O,1),V=oe[0],j=Object(Se.m)(),b=U.userInfo,Q=function(){A({type:"classroomList/setActionTabs",payload:{key:""}})};return Object(r.useEffect)(function(){m.actionTabs.key==="\u52A0\u5165\u8BFE\u5802"?!(b==null?void 0:b.login)||(b==null?void 0:b.login)==""?(A({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),Q()):(b==null?void 0:b.profile_completed)?I(!0):we.a.confirm({centered:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){I(!0)},onCancel:function(){return Q()}}):I(!1)},[m.actionTabs.key]),e.a.createElement(we.a,{centered:!0,title:"\u52A0\u5165\u8BFE\u5802",visible:F,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(N.a)(d.a.mark(function y(){var _,t,L;return d.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,V.validateFields();case 2:return t=Object(ee.a)({},V.getFieldValue()),t==null||((_=t.identity)===null||_===void 0)||_.map(function(x){t[x]=1}),S.next=6,Object($e.a)("/api/courses/apply_to_join_course.json",{method:"post",body:Object(ee.a)({},t)});case 6:L=S.sent,console.log("/api/courses/apply_to_join_course.json",{method:"post",body:Object(ee.a)({},t)}),L.status===0&&(Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u52A0\u5165\u8BFE\u5802"]),q.b.success("\u52A0\u5165\u6210\u529F"),window.location.reload(!0));case 9:case"end":return S.stop()}},y)})),onCancel:function(){return Q()}},e.a.createElement("section",{className:"pr20 pt10 pl10"},e.a.createElement(k.a,{form:V,hideRequiredMark:!0},e.a.createElement(k.a.Item,{name:"invite_code",rules:[{required:!0,message:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801"}],label:e.a.createElement("div",{className:"tr",style:{width:100}},"\u8BFE\u5802\u9080\u8BF7\u7801")},e.a.createElement(Xe.a,{size:"large",placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801"})),e.a.createElement(k.a.Item,{name:"identity",label:e.a.createElement("div",{className:"tr",style:{width:100}},"\u8EAB\u4EFD")},e.a.createElement(Ne.a.Group,null,e.a.createElement(Ne.a,{value:"professor"},"\u6559\u5E08"),e.a.createElement(Ne.a,{value:"assistant_professor"},"\u52A9\u6559"),e.a.createElement(Ne.a,{value:"student"},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))))},ta=Object(re.a)(function(E){var i=E.classroomList,m=E.user;return{classroomList:i,user:m}})(ea),ka=s("OaEy"),ft=s("2fM7"),aa=function(i){var m,A=i.classroomList,U=i.loading,T=i.dispatch,v=Object(Se.m)(),F=Object(Se.l)(),I=Object(r.useState)(!1),O=Object(h.a)(I,2),oe=O[0],V=O[1],j=A.actionTabs,b=A.courseGroups,Q=A.allCourseGroups,y=k.a.useForm(),_=Object(h.a)(y,1),t=_[0];return Object(r.useEffect)(function(){A.actionTabs.key==="\u5207\u6362\u4E3A\u5B66\u751F"&&(T({type:"classroomList/getAllCourseGroup",payload:Object(ee.a)({},v)}),t.setFieldsValue({course_group_id:"0"}))},[A.actionTabs.key]),e.a.createElement(we.a,{centered:!0,title:"\u5207\u6362\u4E3A\u5B66\u751F",visible:A.actionTabs.key==="\u5207\u6362\u4E3A\u5B66\u751F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:oe,onOk:Object(N.a)(d.a.mark(function L(){var f;return d.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return V(!0),x.next=3,Object($e.a)("/api/courses/".concat(v.coursesId,"/switch_to_student.json"),{method:"post",body:t.getFieldValue()});case 3:f=x.sent,f.status===0&&(q.b.success("\u5207\u6362\u6210\u529F"),window.location.reload()),V(!1);case 6:case"end":return x.stop()}},L)})),onCancel:function(){T({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("p",null,"\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B"),e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement(k.a,{form:t,initialValues:Object(dt.a)({},"course_group_id","0")},e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,null,"\u8FDB\u5165\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(k.a.Item,{name:"course_group_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}],noStyle:!0},e.a.createElement(ft.a,{defaultValue:"0",style:{width:"100%"}},e.a.createElement(ft.a.Option,{value:"0"},"\u672A\u5206\u73ED"),Q==null||((m=Q.course_groups)===null||m===void 0)?void 0:m.map(function(L,f){return e.a.createElement(ft.a.Option,{value:L.id},L.name)}))))))))},na=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(aa),xa=s("cWXX"),oa=s("/ezw"),it=s("IIKO"),ot=s("ngQI"),la={shixun_homework:"iconfont icon-shixunzuoye1",graduation:"iconfont icon-biyezhuanhuan",exercise:"iconfont font17 icon-kaoshishijuan1",poll:"iconfont font17 icon-kaoshiwenjuan1",common_homework:"iconfont icon-putongzuoye1",group_homework:"iconfont icon-fenzuzuoye2",attendance:"iconfont icon-qiandao1",announcement:"iconfont icon-gonggaolan",attachment:"iconfont icon-xuexiziyuan1",video:"iconfont font14 icon-shipinzhibo1",board:"iconfont icon-taolun2",course_group:"iconfont font18 icon-fenban2",statistics:"iconfont font17 icon-tongji3",template:"iconfont icon-mobanguanli2",online_learning:"iconfont icon-kechengxuexi"},sa=s("XBlR"),W=s.n(sa),te=s("xKgJ"),Ta=vt.a.TabPane,ua=function(i){var m,A,U,T=i.classroomList,v=i.globalSetting,F=i.user,I=i.loading,O=i.dispatch,oe=i.children,V=Object(pt.a)(i,["classroomList","globalSetting","user","loading","dispatch","children"]),j=Object(Se.m)(),b=Object(Se.l)(),Q=T.detailTopBanner,y=T.detailLeftMenus,_=Object(r.useState)([]),t=Object(h.a)(_,2),L=t[0],f=t[1],S=Object(r.useState)(-1),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=Object(r.useState)(0),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=F.userInfo,de=at.a.Content,Ue=at.a.Sider,Ae=Object(r.useState)(),Be=Object(h.a)(Ae,2),Ce=Be[0],H=Be[1],Ee=Object(r.useState)([]),Me=Object(h.a)(Ee,2),De=Me[0],_e=Me[1],se=Object(r.useState)([]),ve=Object(h.a)(se,2),Ve=ve[0],Fe=ve[1],ye=Object(r.useState)([]),Re=Object(h.a)(ye,2),K=Re[0],be=Re[1],B=Object(r.useState)(!1),n=Object(h.a)(B,2),a=n[0],o=n[1],c=[{label:"\u516C\u544A\u680F",value:"announcement"},{label:"\u5B9E\u8BAD\u4F5C\u4E1A",value:"shixun_homework"},{label:"\u666E\u901A\u4F5C\u4E1A",value:"common_homework"},((m=F.userInfo)===null||m===void 0?void 0:m.main_site)&&{label:"\u5206\u7EC4\u4F5C\u4E1A",value:"group_homework"},{label:"\u8BD5\u5377",value:"exercise"},{label:"\u95EE\u5377",value:"poll"},{label:"\u6559\u5B66\u8D44\u6599",value:"attachment"},{label:"\u89C6\u9891\u76F4\u64AD",value:"video"},{label:"\u8BA8\u8BBA",value:"board"},{label:"\u5206\u73ED",value:"course_group"},{label:"\u7EDF\u8BA1",value:"statistics"},{label:"\u7B7E\u5230",value:"attendance"},((A=F.userInfo)===null||A===void 0?void 0:A.admin)&&{label:"\u6A21\u677F\u7BA1\u7406",value:"template"}].filter(function(C){var l;return C?(v==null||((l=v.setting)===null||l===void 0)?void 0:l.is_local)?C.label!=="\u89C6\u9891\u76F4\u64AD":!0:!1});Object(r.useEffect)(function(){var C;if((C=T.detailLeftMenus)===null||C===void 0?void 0:C.course_modules){var l;f(JSON.parse(JSON.stringify((l=T.detailLeftMenus)===null||l===void 0?void 0:l.course_modules))),Y()}},[T.detailLeftMenus]),Object(r.useEffect)(function(){Y()},[b.pathname]);function u(){return w.apply(this,arguments)}function w(){return w=Object(N.a)(d.a.mark(function C(){var l;return d.a.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Object($e.a)("/api/courses/".concat(j==null?void 0:j.coursesId,"/modules_settings.json"),{method:"get"});case 2:l=p.sent,H(l),be(Object(je.a)(l==null?void 0:l.course_module_types));case 5:case"end":return p.stop()}},C)})),w.apply(this,arguments)}var Y=function(){var l,P;(l=T.detailLeftMenus)===null||l===void 0||((P=l.course_modules)===null||P===void 0)||P.map(function(p,me){(b.pathname.indexOf(p.category_url)>-1||yt(p))&&D(me)})},ue=function(){O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}})},fe=function(){var C=Object(N.a)(d.a.mark(function l(){var P,p;return d.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}});case 2:p=J.sent,re.c.push("".concat(p==null||((P=p.course_modules[0])===null||P===void 0)?void 0:P.category_url));case 4:case"end":return J.stop()}},l)}));return function(){return C.apply(this,arguments)}}(),M=function(l,P){we.a.confirm({centered:!0,title:"\u63D0\u793A",icon:e.a.createElement(ht.a,null),content:l,okText:"\u786E\u8BA4",onOk:function(){return P()},cancelText:"\u53D6\u6D88"})},ke=function(l,P){if(l.localName===P)return l;for(var p=0,me=l;me=me.parentNode;p++){if(me.localName===P)return me;if(me==document.documentElement)return!1}},ne=function(l){if(!l)return;console.log(l,444);var P=ke(l.target,"li");P.setAttribute("id","appointId")},Pe=function(){var C=Object(N.a)(d.a.mark(function l(P,p,me,J){var ce,ge,Oe,Ye,xe;return d.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:le.t0=P,le.next=le.t0===1?3:le.t0===2?7:le.t0===3?9:le.t0===4?11:le.t0===5?16:le.t0===6?18:20;break;case 3:return ge={category_id:p.id||p.category_id,parent_id:p.category_type==="attachment"?p.category_id:"",nodeModules:p,type:p.type},p.category_type==="attachment"&&(ge.category_id=y==null||((Oe=y.course_modules)===null||Oe===void 0||((Ye=Oe.filter(function(Z){return Z.type==="attachment"}))===null||Ye===void 0||((xe=Ye[0])===null||xe===void 0)))?void 0:xe.id),O({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",selectArrs:ge,cb:function(){ue()}}}),le.abrupt("break",20);case 7:return O({type:"classroomList/setActionTabs",payload:{key:"\u76EE\u5F55\u91CD\u547D\u540D",selectArrs:{name:p.name||p.category_name,category_id:p.category_id,main_id:p.id,category_type:p.category_type},cb:function(){ue()}}}),le.abrupt("break",20);case 9:return M(e.a.createElement("p",null,"\u9690\u85CF\u540E\u5C06\u4E0D\u518D\u663E\u793A\u6B64\u6A21\u5757,",e.a.createElement("br",null),"\u540E\u7EED\u53EF\u5728\u8BFE\u5802\u8BBE\u7F6E\u4E2D\u91CD\u65B0\u52FE\u9009\u6A21\u5757\u6062\u590D\u663E\u793A"),Object(N.a)(d.a.mark(function Z(){return d.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(ie.mb)({id:p.id});case 2:ce=Te.sent,ce.status===0&&(q.b.success("\u64CD\u4F5C\u6210\u529F"),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}}));case 4:case"end":return Te.stop()}},Z)}))),le.abrupt("break",20);case 11:return le.next=13,Object(ie.wb)({id:p.id});case 13:return ce=le.sent,ce.status===0&&(q.b.success("\u64CD\u4F5C\u6210\u529F"),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}})),le.abrupt("break",20);case 16:return M(e.a.createElement("p",null,"\u8BE5\u76EE\u5F55\u4E0B\u7684\u5185\u5BB9\u5C06\u88AB\u79FB\u52A8\u5230\u7236\u76EE\u5F55,",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),Object(N.a)(d.a.mark(function Z(){var Je,Te,qe;return d.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(p.category_type==="board")){Qe.next=6;break}return Qe.next=3,Object(ie.i)({id:p.category_id});case 3:ce=Qe.sent,Qe.next=9;break;case 6:return Qe.next=8,Object(ie.l)({id:p.category_id});case 8:ce=Qe.sent;case 9:ce.status===0&&(q.b.success("\u5220\u9664\u6210\u529F"),p.category_type==="board"?(qe=y==null||((Je=y.course_modules)===null||Je===void 0)?void 0:Je.filter(function(st){return(st==null?void 0:st.type)==="board"}),re.c.push("/classrooms/".concat(j.coursesId,"/").concat(p.category_type,"/").concat(qe==null||((Te=qe[0])===null||Te===void 0)?void 0:Te.main_id))):re.c.push("/classrooms/".concat(j.coursesId,"/").concat(p.category_type)),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}}));case 10:case"end":return Qe.stop()}},Z)}))),le.abrupt("break",20);case 18:return O({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u5EFA\u5206\u73ED",params:j}}),le.abrupt("break",20);case 20:case"end":return le.stop()}},l)}));return function(P,p,me,J){return C.apply(this,arguments)}}(),z=function(l){return!(l==="attendance"||l==="announcement"||l==="poll"||l==="graduation")},ze=function(l,P){return e.a.createElement("div",{className:W.a.leftMenuActions},(l.type!="course_group"&&l.main_id||l.category_type==="attachment"&&P===2)&&z(l.type)&&e.a.createElement("p",{className:"current",onClick:function(me){return Pe(1,l,P,me)}},"\u65B0\u5EFA\u76EE\u5F55"),l.type==="course_group"&&P===1&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(6,l,P)}},"\u65B0\u5EFA\u5206\u73ED"),e.a.createElement("p",{className:"current",onClick:function(me){return Pe(2,l,P,me)}},"\u91CD\u547D\u540D"),l.main_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(3,l,P)}},"\u9690\u85CF"),l.main_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(4,l,P)}},"\u7F6E\u9876"),l.category_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(5,l,P)}},"\u5220\u9664"))},et=function(l,P){return P===1?l.type==="board"?"/classrooms/".concat(j.coursesId,"/").concat(l.type,"/").concat(l.main_id):l.type==="graduation"?"/classrooms/".concat(j.coursesId,"/graduation_topics"):"/classrooms/".concat(j.coursesId,"/").concat(l.type):(l.category_type==="messages"&&(l.category_type="board"),"/classrooms/".concat(j.coursesId,"/").concat(l.category_type,"/").concat(l.category_id))},Ut=function(){var l=b.pathname.split("/");_e(["".concat(l[3],"|").concat(j.coursesId)]),Fe(["".concat(l[3],"|").concat(j.coursesId),"".concat(l[3],"|").concat(l[4])])};Object(r.useEffect)(function(){try{var C=sessionStorage._nav_.split(","),l=sessionStorage._nav_open_.split(",");sessionStorage._nav_open_?_e(l):Ut(),Fe(C)}catch(P){Ut()}return function(){sessionStorage.removeItem("_nav_open_"),sessionStorage.removeItem("_nav_")}},[T.name,b==null?void 0:b.pathname]);var Ft=function(){var C=Object(N.a)(d.a.mark(function l(P){var p,me,J,ce,ge,Oe,Ye,xe,Ze;return d.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(me=P.draggableId,J=P.source,ce=P.destination,ce){Z.next=3;break}return Z.abrupt("return",!1);case 3:if(ge=me.split("-"),Oe=ge[1],Ye=ge[2],!(((p=L[Oe])===null||p===void 0?void 0:p.type)==="board")){Z.next=12;break}return Z.next=9,Object(ie.qb)({id:ge[0],position:ce.index+1});case 9:xe=Z.sent,Z.next=15;break;case 12:return Z.next=14,Object(ie.pb)({id:ge[0],position:ce.index+1});case 14:xe=Z.sent;case 15:xe.status===0&&(ge.length===3?(Ze=L[Oe].second_category[Ye],L[Oe].second_category.splice(Ye,1),L[Oe].second_category.splice(ce.index,0,Ze)):(Ze=L[Oe].second_category[ge[2]].third_category[ge[3]],L[Oe].second_category[ge[2]].third_category.splice(ge[3],1),L[Oe].second_category[ge[2]].third_category.splice(ce.index,0,Ze)),f(Object(je.a)(L)));case 16:case"end":return Z.stop()}},l)}));return function(P){return C.apply(this,arguments)}}(),yt=function(l){return b.pathname.indexOf("student_statistics")>-1&&l.type==="statistics"};return e.a.createElement(Ue,{width:264,style:{marginTop:24,height:"auto",background:"none"}},e.a.createElement("section",{className:W.a.leftMenu},e.a.createElement(oa.a,{loading:!y.course_modules},Object(te.k)()&&e.a.createElement("div",{style:{paddingLeft:"25px",height:"56px",display:"flex",alignItems:"center",fontSize:"16px",color:"#000000",justifyContent:"space-between",paddingRight:"10px",borderBottom:"1px solid #efefef",fontWeight:"900"}},"\u8BFE\u5802\u6A21\u5757 ",e.a.createElement("span",{onClick:function(){o(!0),u()},style:{color:"#1890FF",cursor:"pointer",fontWeight:"400"}},"\u8BBE\u7F6E")),e.a.createElement(we.a,{visible:a,title:"\u8BFE\u5802\u6A21\u5757\u8BBE\u7F6E",centered:!0,onOk:Object(N.a)(d.a.mark(function C(){var l;return d.a.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!((K==null?void 0:K.length)<=0)){p.next=3;break}return q.b.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u8BFE\u5802\u6A21\u5757"),p.abrupt("return");case 3:return p.next=5,Object($e.a)("/api/courses/".concat(j==null?void 0:j.coursesId,"/update_modules_settings.json"),{method:"post",body:{course_module_types:K}});case 5:l=p.sent,(l==null?void 0:l.status)===0&&(fe(),o(!1));case 7:case"end":return p.stop()}},C)})),onCancel:function(){o(!1)}},e.a.createElement("div",{style:{padding:"24px"}},e.a.createElement("span",null,"\u901A\u8FC7\u52FE\u9009\u53EF\u4EE5\u663E\u793A/\u9690\u85CF\u6A21\u5757"),e.a.createElement(Ne.a.Group,{onChange:function(l){be(Object(je.a)(l))},style:{marginTop:"20px"},value:K},e.a.createElement(He.a,null,Ce==null||((U=Ce.course_modules)===null||U===void 0)?void 0:U.map(function(C,l){return e.a.createElement(pe.a,{span:6,style:{marginTop:"10px"}},e.a.createElement(Ne.a,{value:C.module_type,style:{fontSize:"14px"}},C.module_name))}))))),L==null?void 0:L.map(function(C,l){return e.a.createElement("ul",{key:l},e.a.createElement("li",{className:(b.pathname.indexOf(C.category_url)>-1||yt(C))&&W.a.actived,onClick:function(){b.pathname===C.category_url?R===-1?D(l):D(-1):re.c.push(C.category_url)}},e.a.createElement(He.a,{gutter:[0,26],align:"middle"},e.a.createElement(pe.a,{flex:"1",className:"pr30"},e.a.createElement("span",{className:"".concat(la[C.type])})," ",C.name),e.a.createElement(pe.a,{className:"tr"},e.a.createElement("span",{className:W.a.totalCount},C.task_count===0?"":C.task_count),Object(te.j)()&&C.type!=="statistics"&&e.a.createElement(ut.a,{getPopupContainer:function(p){return p.parentNode},destroyTooltipOnHide:!0,placement:"right",content:function(){return ze(C,1)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")}))))),e.a.createElement(ot.a,{onDragEnd:Ft},e.a.createElement(ot.c,{isDropDisabled:!Object(te.d)(),droppableId:String(C.id)},function(P,p){var me;return e.a.createElement("ul",Object(it.a)({ref:P.innerRef},P.droppableProps,{onScroll:function(){},className:R==l&&W.a.open}),(me=C.second_category)===null||me===void 0?void 0:me.map(function(J,ce){var ge;return e.a.createElement(ot.b,{draggableId:"".concat((ge=J.category_id)===null||ge===void 0?void 0:ge.toString(),"-").concat(l,"-").concat(ce),index:ce,key:J.category_id},function(Oe,Ye){return e.a.createElement("div",Object(it.a)({key:ce,ref:Oe.innerRef},Oe.draggableProps,Oe.dragHandleProps),e.a.createElement("li",{className:b.pathname.indexOf(J.second_category_url)>-1&&W.a.actived2},e.a.createElement(He.a,{align:"middle"},e.a.createElement(pe.a,{span:20},e.a.createElement(Ie.Link,{className:["font14",W.a.menuText].join(" "),style:{marginLeft:16,padding:"16px 2px"},to:J.second_category_url,onClick:function(Ze){Ze.preventDefault(),b.pathname.indexOf(J.second_category_url)>-1?g===-1?G(ce):G(-1):(G(ce),re.c.push(J.second_category_url))}},J.category_name)),e.a.createElement(pe.a,{span:4,className:"tr"},Object(te.j)()&&C.type.indexOf("statistics")<0&&(J==null?void 0:J.category_name)!=="\u6839\u76EE\u5F55"&&e.a.createElement(ut.a,{getPopupContainer:function(Ze){return Ze.parentNode.parentNode},placement:"right",content:function(){return ze(J,2)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")})),J.category_count!=0&&e.a.createElement("span",{className:W.a.totalCount},J.category_count)))),J.third_category&&e.a.createElement(ot.a,{onDragEnd:Ft},e.a.createElement(ot.c,{isDropDisabled:!Object(te.d)(),droppableId:String(J.category_id)},function(xe,Ze){var le;return e.a.createElement("ul",Object(it.a)({ref:xe.innerRef},xe.droppableProps,{onScroll:function(){},className:g===ce&&W.a.open}),(le=J.third_category)===null||le===void 0?void 0:le.map(function(Z,Je){var Te;return e.a.createElement(ot.b,{draggableId:"".concat((Te=Z.category_id)===null||Te===void 0?void 0:Te.toString(),"-").concat(l,"-").concat(ce,"-").concat(Je),index:Je,key:Z.category_id},function(qe,fa){return e.a.createElement("li",Object(it.a)({key:Je,ref:qe.innerRef},qe.draggableProps,qe.dragHandleProps),e.a.createElement(He.a,{align:"middle",className:b.pathname.indexOf(Z.second_category_url)>-1&&W.a.actived2},e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Ie.Link,{className:["font14",W.a.menuText].join(" "),to:et(Z,3),style:{marginLeft:9,padding:"16px 0px"}},Z.category_name)),e.a.createElement(pe.a,null,Object(te.j)()&&e.a.createElement(ut.a,{placement:"right",getPopupContainer:function(st){return st.parentNode.parentNode},content:function(){return ze(Z,3)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")})),Z.category_count!=0&&e.a.createElement("span",{className:W.a.totalCount},Z.category_count))))})}))})))})}))})))}))))},ra=Object(re.a)(function(E){var i=E.classroomList,m=E.loading,A=E.globalSetting,U=E.user;return{classroomList:i,globalSetting:A,user:U,loading:m.models.index}})(ua),ia=s("m3rI"),ca=s("4U8T"),Ct=s.n(ca),da=function(i){var m,A,U,T,v=i.classroomList,F=i.loading,I=i.dispatch,O=Object(Se.m)(),oe=Object(r.useState)(!1),V=Object(h.a)(oe,2),j=V[0],b=V[1],Q=k.a.useForm(),y=Object(h.a)(Q,1),_=y[0];Object(r.useEffect)(function(){var f;v.actionTabs.key==="\u586B\u5199\u6155\u8BFE\u8D44\u6599"&&((f=v.detailTopBanner)===null||f===void 0?void 0:f.mooc_user_id)&&t()},[v.actionTabs.key,(m=v.detailTopBanner)===null||m===void 0?void 0:m.mooc_user_id]);var t=function(){var f=Object(N.a)(d.a.mark(function S(){var x,g;return d.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,Object(ie.eb)({coursesId:O.coursesId,user_id:(x=v.detailTopBanner)===null||x===void 0?void 0:x.mooc_user_id});case 2:g=ae.sent,(g==null?void 0:g.status)>-1&&_.setFieldsValue(Object(ee.a)({},g==null?void 0:g.mooc_user));case 4:case"end":return ae.stop()}},S)}));return function(){return f.apply(this,arguments)}}(),L=function(){var f=Object(N.a)(d.a.mark(function S(){var x,g,G,ae,X;return d.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!Object.keys(_.getFieldsValue()).every(function(he){var de;return!((de=_.getFieldsValue())===null||de===void 0?void 0:de[he])})){D.next=2;break}return D.abrupt("return",q.b.info("\u8BF7\u81F3\u5C11\u586B\u5199\u4E00\u9879\u8D26\u53F7\u4FE1\u606F"));case 2:if(!_.getFieldError("email").length){D.next=4;break}return D.abrupt("return");case 4:if(b(!0),G=!!((x=v.detailTopBanner)===null||x===void 0?void 0:x.mooc_user_id),ae=Object(ee.a)({coursesId:O.coursesId,user_id:(g=v.detailTopBanner)===null||g===void 0?void 0:g.mooc_user_id},_.getFieldsValue()),!G){D.next=13;break}return D.next=10,Object(ie.Cb)(ae);case 10:D.t0=D.sent,D.next=16;break;case 13:return D.next=15,Object(ie.g)(ae);case 15:D.t0=D.sent;case 16:X=D.t0,b(!1),(X==null?void 0:X.status)>-1&&(q.b.info(G?"\u4FEE\u6539\u6210\u529F":"\u6DFB\u52A0\u6210\u529F"),I({type:"classroomList/getClassroomTopBanner",payload:{id:ae.coursesId}}),I({type:"classroomList/setActionTabs",payload:{}}));case 19:case"end":return D.stop()}},S)}));return function(){return f.apply(this,arguments)}}();return e.a.createElement(we.a,{centered:!0,title:"\u586B\u5199\u8D44\u6599",visible:v.actionTabs.key==="\u586B\u5199\u6155\u8BFE\u8D44\u6599",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",width:760,bodyStyle:{minHeight:150},confirmLoading:j,className:Ct.a.modal,onOk:L,onCancel:function(){I({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement("div",{className:Ct.a.tip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-tianxiedisanfangmuke font14 mr5 icon-jingshi1 c-yellow-feb"}),e.a.createElement("span",{className:"c-grey-333"},"1.\u8BF7\u586B\u5199\u4F60\u5728"),e.a.createElement("span",{className:"c-light-primary"},v==null||((A=v.detailTopBanner)===null||A===void 0)?void 0:A.third_party_name),e.a.createElement("span",{className:"c-grey-333"},"\u5E73\u53F0\u7684\u8D26\u53F7\u8D44\u6599\uFF1B")),e.a.createElement("p",{className:"c-grey-333 ml20"},"2.\u8BE5\u8BFE\u7A0B\u652F\u6301\u4E3A\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u63D0\u4F9B\u6210\u7EE9\uFF0C\u4E3A\u4E86\u4FDD\u8BC1\u4F60\u6210\u7EE9\u7684\u51C6\u786E\u65E0\u8BEF\uFF0C\u8BF7\u5982\u5B9E\u586B\u5199\u76F8\u5173\u4FE1\u606F\u3002")),e.a.createElement(k.a,{form:_,labelCol:{span:6},wrapperCol:{span:12},labelAlign:"right"},e.a.createElement(k.a.Item,{label:"\u7528\u6237\u6635\u79F0\uFF1A",name:"name"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"})),e.a.createElement(k.a.Item,{label:"\u7528\u6237id\uFF1A",name:"mooc_user_id"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237id"})),e.a.createElement(k.a.Item,{label:"\u7528\u6237\u90AE\u7BB1\uFF1A",name:"email",rules:[{type:"email",message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7528\u6237\u90AE\u7BB1"}]},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u90AE\u7BB1"})),e.a.createElement(k.a.Item,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A",name:"real_name"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),e.a.createElement(k.a.Item,{label:"\u5B66\u53F7\uFF1A",name:"student_id"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),e.a.createElement("p",{className:"font14 c-grey-999 mt10 tc"},"\u203B \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732!"),((U=v.actionTabs)===null||U===void 0||((T=U.params)===null||T===void 0)?void 0:T.showHint)&&e.a.createElement(Ne.a,{className:"font14 c-grey-999 mt10",defaultChecked:!1,onChange:function(S){S.target.checked?window.localStorage.setItem("classrooms-mooc-modal-hint-flag","1"):window.localStorage.removeItem("classrooms-mooc-modal-hint-flag")}},"\u4E0D\u518D\u63D0\u793A")))},_a=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(da),Ma=vt.a.TabPane,Na=jt.a.SubMenu,ma=at.a.Content,Ia=at.a.Sider,Xa=[{}],Ea=function(i){var m,A,U,T,v,F,I,O=i.classroomList,oe=i.globalSetting,V=i.user,j=i.loading,b=i.dispatch,Q=i.children,y=Object(pt.a)(i,["classroomList","globalSetting","user","loading","dispatch","children"]),_=y.match.params,t=O.detailTopBanner,L=O.detailLeftMenus,f=V.userInfo,S=Object(r.useState)(["shixun_homework|1309"]),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=Object(r.useState)(),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(!1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)(!1),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!1),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=[{name:"\u6DFB\u52A0\u8001\u5E08",icon:e.a.createElement(ct,{className:"mr5",component:Xt})},{name:"\u6DFB\u52A0\u52A9\u6559",icon:e.a.createElement(ct,{className:"mr5",component:It})},{name:"\u6DFB\u52A0\u5B66\u751F",icon:e.a.createElement(ct,{className:"mr5",component:Nt})}].filter(function(o){return Object(te.l)()?o.name!=="\u6DFB\u52A0\u8001\u5E08":!0});Object(r.useEffect)(function(){return se((t==null?void 0:t.student_count)>=10?!1:H),function(){se(!1)}},[t]);var Ve={5:{text:"\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B",url:"/api/courses/".concat(_.coursesId,"/switch_to_student.json")},6:{text:"\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u6559\u5E08\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",url:"/api/courses/".concat(_.coursesId,"/switch_to_teacher.json")},7:{text:"\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u52A9\u6559\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",url:"/api/courses/".concat(_.coursesId,"/switch_to_assistant.json")}},Fe=function(){b({type:"classroomList/getClassroomLeftMenus",payload:{id:_.coursesId}})},ye=function(){b({type:"classroomList/getClassroomTopBanner",payload:{id:_.coursesId}})},Re=function(c,u){we.a.confirm({centered:!0,title:"\u63D0\u793A",icon:e.a.createElement(ht.a,null),content:c,okText:"\u786E\u8BA4",onOk:function(){return u()},cancelText:"\u53D6\u6D88"})},K=function(){var o=Object(N.a)(d.a.mark(function c(u){var w,Y,ue;return d.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:M.t0=u,M.next=M.t0===0?3:M.t0===1?8:M.t0===2?17:M.t0===3?20:M.t0===4?23:M.t0===5?26:M.t0===6||M.t0===7?29:M.t0===8?31:40;break;case 3:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u8BBE\u4E3A\u516C\u5F00/\u79C1\u6709"]),ue=e.a.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"),t.is_public&&(ue=e.a.createElement("p",null,"\u60A8\u786E\u5B9A\u8981\u8BBE\u7F6E\u4E3A\u79C1\u6709?")),Re(ue,Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.vb)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 4:case"end":return z.stop()}},ke)}))),M.abrupt("break",40);case 8:if(Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u505C\u7528/\u542F\u7528\u9080\u8BF7\u7801"]),!(t==null?void 0:t.invite_code)){M.next=13;break}Re(e.a.createElement("p",null,"\u8BFE\u5802\u9080\u8BF7\u7801\u505C\u7528\u540E\uFF0C\u7528\u6237\u4E0D\u80FD\u4E3B\u52A8\u52A0\u5165\u8BE5\u8BFE\u5802\u4E86",e.a.createElement("br",null),"\u60A8\u662F\u5426\u786E\u8BA4\u505C\u7528?"),Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.ub)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 4:case"end":return z.stop()}},ke)}))),M.next=16;break;case 13:return M.next=15,Object(ie.ub)(Object(ee.a)({},_));case 15:Y=M.sent;case 16:return M.abrupt("break",40);case 17:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u7F16\u8F91\u8BFE\u5802"]),(t==null?void 0:t.excellent)?re.c.push("/classrooms/".concat(_.coursesId,"/newgolds/settings")):re.c.push("/classrooms/".concat(_.coursesId,"/edit")),M.abrupt("break",40);case 20:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u590D\u5236\u8BFE\u5802"]),Re(e.a.createElement("p",null,"\u201C\u590D\u5236\u201D\u529F\u80FD\u5C06\u4F1A\u4E3A\u60A8\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u8BFE\u5802",e.a.createElement("br",null),"\u65E7\u8BFE\u5802\u7684\u4F5C\u4E1A\u3001\u8D44\u6E90\u3001\u8BD5\u5377\u7B49\u90FD\u5C06\u88AB\u590D\u5236\u5230\u65B0\u7684\u8BFE\u5802\u91CC\u9762",e.a.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u7EE7\u7EED\uFF1F"),Object(N.a)(d.a.mark(function ke(){var ne,Pe;return d.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Object(ie.n)(Object(ee.a)({},_));case 2:ne=ze.sent,(ne==null?void 0:ne.new_course_id)&&(q.b.success("\u590D\u5236\u6210\u529F"),Pe=y.location.pathname.split("/"),Pe[2]=ne.new_course_id,y.history.replace(Pe.join("/")));case 4:case"end":return ze.stop()}},ke)}))),M.abrupt("break",40);case 23:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u5220\u9664\u8BFE\u5802"]),Re("\u8BFE\u5802\u5220\u9664\u540E\u6570\u636E\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u662F\u5426\u786E\u5B9A\u5220\u9664\uFF1F",Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.j)(Object(ee.a)({},_));case 2:ne=z.sent,(ne==null?void 0:ne.status)===0&&(q.b.success("\u5220\u9664\u6210\u529F"),y.history.replace("/classrooms/index"));case 4:case"end":return z.stop()}},ke)}))),M.abrupt("break",40);case 26:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u5207\u6362\u4E3A\u5B66\u751F"]),b({type:"classroomList/setActionTabs",payload:{key:"\u5207\u6362\u4E3A\u5B66\u751F"}}),M.abrupt("break",40);case 29:return we.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5207\u6362\u8EAB\u4EFD",content:Ve[u].text,onOk:function(){var ke=Object(N.a)(d.a.mark(function Pe(){var z;return d.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5",u==6?"\u5207\u6362\u4E3A\u8001\u5E08":" \u5207\u6362\u4E3A\u52A9\u6559"]),et.next=3,Object($e.a)(Ve[u].url,{method:"post"});case 3:z=et.sent,z.status===0&&(q.b.success("\u5207\u6362\u6210\u529F"),window.location.reload());case 5:case"end":return et.stop()}},Pe)}));function ne(){return ke.apply(this,arguments)}return ne}()}),M.abrupt("break",40);case 31:if(!(t==null?void 0:t.invite_code)){M.next=36;break}Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u9000\u51FA\u8BFE\u5802"]),Re(e.a.createElement("p",null,"\u9000\u51FA\u540E\u60A8\u5C06\u4E0D\u518D\u662F\u672C\u8BFE\u5802\u7684\u6210\u5458,\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664"),Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.o)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u9000\u51FA\u6210\u529F"),re.c.push("/users/".concat(f.login)));case 4:case"end":return z.stop()}},ke)}))),M.next=39;break;case 36:return M.next=38,Object(ie.ub)(Object(ee.a)({},_));case 38:Y=M.sent;case 39:return M.abrupt("break",40);case 40:((w=Y)===null||w===void 0?void 0:w.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 41:case"end":return M.stop()}},c)}));return function(u){return o.apply(this,arguments)}}(),be=e.a.createElement("div",{className:"tc current"},(t==null?void 0:t.excellent)?e.a.createElement(e.a.Fragment,null,Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(2)}},"\u7F16\u8F91\u8BFE\u5802"),Object(te.g)()&&e.a.createElement("p",{onClick:function(){return K(4)}},"\u5220\u9664")):e.a.createElement(e.a.Fragment,null,(t==null?void 0:t.switch_to_student)&&e.a.createElement("p",{onClick:function(){return K(5)}},"\u5207\u6362\u4E3A\u5B66\u751F"),(t==null?void 0:t.switch_to_teacher)&&e.a.createElement("p",{onClick:function(){return K(6)}},"\u5207\u6362\u4E3A\u8001\u5E08"),(t==null?void 0:t.switch_to_assistant)&&e.a.createElement("p",{onClick:function(){return K(7)}},"\u5207\u6362\u4E3A\u52A9\u6559"),Object(te.h)()&&e.a.createElement("p",{onClick:function(){return K(0)}},(t==null?void 0:t.is_public)?"\u8BBE\u4E3A\u79C1\u6709":"\u8BBE\u4E3A\u516C\u5F00"),Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(2)}},"\u7F16\u8F91\u8BFE\u5802"),Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(3)}},"\u590D\u5236"),Object(te.t)()&&e.a.createElement("p",{onClick:function(){return K(8)}},"\u9000\u51FA\u8BFE\u5802"),Object(te.h)()&&e.a.createElement("p",{onClick:function(){return K(4)}},"\u5220\u9664")));Object(r.useEffect)(function(){var o;if(V==null||((o=V.userInfo)===null||o===void 0)?void 0:o.course)if(Object(te.t)()){se(!1);return}else{var c,u=JSON.parse((c=localStorage)===null||c===void 0?void 0:c.getItem("coursesIdstimies"));if((u==null?void 0:u.length)>0){var w=u.filter(function(Y){return Y.coursesId===(_==null?void 0:_.coursesId)});(w==null?void 0:w.length)>0?Ke()(w[0].time).add(parseInt(w[0].Tooltiptype),"days")-1&&(c="graduation"),G(["".concat(c,"|").concat(y.match.params.coursesId)])},[y.location.pathname]),(t==null?void 0:t.name)&&(document.title=(t==null?void 0:t.name)||"\u5934\u6B4C,EduCoder,\u4FE1\u606F\u6280\u672F\u5B9E\u8DF5\u6559\u5B66,\u7CBE\u54C1\u8BFE\u7A0B\u7F51,\u6155\u8BFEMOOC");var B=function(){return(t==null?void 0:t.invite_code_halt)===0?e.a.createElement("span",null,"\u6210\u5458\u53EF\u4EE5\u901A\u8FC7\u9080\u8BF7\u7801\u4E3B\u52A8\u52A0\u5165\u8BFE\u5802",e.a.createElement("br",null),"\u70B9\u51FB\u7ACB\u523B\u590D\u5236\u9080\u8BF7\u7801"):(t==null?void 0:t.invite_code_halt)===2?e.a.createElement("span",null,"\u5F53\u524D\u9080\u8BF7\u7801\u5DF2\u5BF9\u5B66\u751F\u505C\u7528",e.a.createElement("br",null),"\u7528\u6237\u53EA\u80FD\u4EE5\u8001\u5E08/\u52A9\u6559\u8EAB\u4EFD\u7533\u8BF7\u52A0\u5165\u8BFE\u5802"):null};Object(r.useEffect)(function(){if(t==null?void 0:t.professors){var o,c,u="";t==null||((o=t.professors)===null||o===void 0)||o.map(function(w,Y){var ue,fe;Y===(t==null||((ue=t.professors)===null||ue===void 0)?void 0:ue.length)-1&&(t==null||((fe=t.assistants)===null||fe===void 0)?void 0:fe.length)===0?u+=w:u+=w+"\u3001"}),t==null||((c=t.assistants)===null||c===void 0)||c.map(function(w,Y){var ue;Y===(t==null||((ue=t.assistants)===null||ue===void 0)?void 0:ue.length)-1?u+=w+"\uFF08\u52A9\u6559\uFF09":u+=w+"\uFF08\u52A9\u6559\uFF09\u3001"}),D(u)}},[t]);var n=function(){return e.a.createElement("div",null,e.a.createElement($.a,{title:e.a.createElement("span",{className:"c-black"},"\u65B0\u6536\u5230",t==null?void 0:t.teacher_applies_count,"\u6761\u52A0\u5165\u8BFE\u5802\u7684\u7533\u8BF7 ",e.a.createElement(Ie.Link,{to:"/classrooms/".concat(_.coursesId,"/teachers?tab=1"),className:"c-orange"},"\u53BB\u5BA1\u6279")),color:"#FFF",key:"#FFF",defaultVisible:t.teacher_applies_count>0,visible:t.teacher_applies_count>0},e.a.createElement(Ie.Link,{className:"c-white",to:"/classrooms/".concat(_.coursesId,"/teachers")},"\u6559\u5E08",e.a.createElement("span",{className:"ml5"},t.teacher_count)),e.a.createElement("span",{className:"ml10 mr10"},"|"),e.a.createElement(Ie.Link,{className:"c-white",to:"/classrooms/".concat(_.coursesId,"/students")},"\u5B66\u751F",e.a.createElement("span",{className:"ml5"},t.student_count))))},a="\u3010\u6559\u5B66\u8BFE\u5802\u9080\u8BF7\u3011".concat(t==null?void 0:t.copy_teacher_name,"\u8001\u5E08\u9080\u8BF7\u60A8\u52A0\u5165\u5934\u6B4C\u5E73\u53F0\u6559\u5B66\u8BFE\u5802-\u300A").concat(t==null?void 0:t.name,`\u300B\uFF0C\u60A8\u53EF\u4EE5\u590D\u5236\u9080\u8BF7\u7801\uFF0C\u5728\u4E0B\u65B9\u7684\u94FE\u63A5\u4E2D\uFF0C\u70B9\u51FB\u201C\u52A0\u5165\u8BFE\u5802\u201D\u6309\u94AE\u52A0\u5165\u8BE5\u6559\u5B66\u8BFE\u5802\u3002 +(window.webpackJsonp=window.webpackJsonp||[]).push([[28,15],{"4U8T":function(Ge,tt,s){Ge.exports={modal:"modal___1_Lg1",tip:"tip___1bekE"}},E7E6:function(Ge,tt){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VPl5eXXLF++HBYl74EBsbkJHnnkkZFQ/p6eHk3xdd2gpj6nuDxTlvAB8GufDAH+h+8Ga0A365133qHTp8/AkvwiGAx+3wt1ZUBMtsL69evLTpw4gZEfKH+THoC+z9WZkkQ3RwEQ7wLFf/2VY5yLE2yyKp6LfuHCBdq06W0A0j1kyJCG++6771S+C8mAJLUAukEPP/xw/ZUrVyb5/f4m+AAAgYia+iwCJsTSDuUMOMJD+7tB8e5Q3A/A9xzSS2DHjh0UiUQxWvY3zc3N/5VvWRUlIE888cSI9vZ2TfH7+v8AAD5A1m6QEKLPEcbIT/yl/AG8e9ERzreSmck/Go3S9u078MjOUCg018yzTsQdlIBgNOjw4cMTYAWSfv2VFcg4HBrvBsWdYLzHQYh3hWAJAAkHZyQQi8Xo1Vdfw4RirLKysvree++94ExOxlIt2JZes2bNmL5hUK37owehb6lE2r6M6gYpRxjKz90gYwpjNhac766uy9TRcYk6O7u09+7uborFpDYBWVVVRaNHj06YgNyyZSudPXsWP0S3BIPBN8zmaWd8zwICZzgSiUzs7e3VlL8PANUNwt+VRkaDBrpAcR8Af7s5IWZnY3k1LcxldHZ2UkdHh/bCZywxUf8DJNkGLhobJ9DUqVM1H+2DDz6kQ4cO4ZEfhUKhf81nvT0DyNq1a2+MxWJfIaIFRDSNiAKZJsVKS0v7h0KVBdDPChfzaJDdCnX5MixAJ3V2dmiK39UVB0DBgG5RuqB8tsrKSs1a4F11UzFq1draSqdPx5di4f9z5syhixcvaJOHRPRgKBS63+76mEkv74A8+OCDs7u7u39JRDfpC64mxdTSiEQIKtgZNtPKWeJeuXKlX/HjVgDW4FIfFJ39CwzTJQPFhuKPGDFCe1efhw8frv0v248VZtFbWlq02XRYkGuvvYY+/HAfulhvBIPBW2ysqumk8grImjVrvheLxf6DiEpgEcaPH081NWMIgmVn2HRbpn0AAMS7O3ErgPdLl+ATxLtFaoVtugQwQakUX1kCtJH6nA0AIzVBN2zTpk20f/9+gi7ATxFC7A8Gg58x8rxTcfIGyOrVq38gpQQcNG7cOLrhhhk8R2CxlaFMeuUf8AXiXaJsAMAnS7YA+r9LSkoslsz8Y6+++qpacoKHw6FQCBuy8hbyAsgDDzywuLe3dwPWHV133XU0eTIGojikkwD2Vaj+frIVwP/xfaaAYet0FgBdIPxieyXA4X/yySeVBTkfDAZH5rNsrgMCx3vNmjXvSSlnTJzYSDNmzMhn/T2RN37hVd9fdYGUD4D/w0IYAUD1+fUwAIBCm7zcunUr7dmjOek9oVAor/S6DsiaNWtui8ViL6HRliz5fME1nhWiAIDq7ytfYGA49BLBR8gU8Auv+vypukKDbREjRrZefPFF+CAyGAxa36FlpbGSnnEdkFWrVj1ARCumTZtGU6dOsaEK+U8Cw5z6ro8aDlXWAMOkmQL6+AoA/UiQsgQYsCimgB+Mhx9+uDgBWb169T4p5bTPfe6PtSHAQggAAL/8A5Nh8dEf9Tf6zZkChi4zWQAMZXNIlMDq1auLE5BVq1ZhM/KIW2/9U3JzdCSTAmKIMXkYVO8DGAEAs/T6OQC9H4DvOJiTAABBCIVCrvdy9CV1PfNVq1Zp6w5uv/3L5iSWQ+z4eiCsAxr41U+cGe7S9kWnCxjnzwQArAMHeyXAgNgMCIY6sXRBr/jKB4B1yAQAlkPoAUh2hAEAr+C1F4BsqTEgNgCC0aFjx47RsWPHNTjSBSg3+vnpukAAwI7Z4GyNzt8blwADkiMgODZm7969mu+AAEcYy6bVKFDyaBADYFw5vRCTAckBkMOHD9P773+gtWNtbS199rOfpQkTJrAV8IJm21QGBsQiIJhE+sMfdmnNcP3119PChQsZDJuU0kvJMCAWAMFI1IYNG7W1RwsWLKCZM2d6qU25LDZKgAGxAMiePXu14yrHjh1Ld955p43NwUl5TQIMiElA1GZ+vC9btkxzyDkMXgkwICYBuXjxIm3cuImtx+BlIqFmDIhJQM6cOUNbt/5e8zvgf3AY3BJgQEwCgnsl3n13Ozvng5uL/toxICYBiUZP0vbt22nRokU0ffr0IlGT4q0mA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtSkeKMwIAxI8Wq/gZozIAyIATUp3igMCANSvNpvoOYMCANiQE2KNwoDwoAUr/YbqDkDwoAYUJPijcKAMCDFq/0Gas6AMCAG1KR4ozAgDEjxar+BmjMgDIgBNSneKAwIA1K82m+g5gwIA2JATYo3CgPCgBSv9huoOQPCgBhQk+KNwoAwIMWr/QZqzoAwIAbUpHijMCAMSPFqv4GaMyAMiAE1Kd4oDAgDUrzab6DmDAgDYkBNijcKA8KAFK/2G6g5A8KAGFCT4o3CgDAgxav9BmrOgDAgBtTEu1FwrXZ3d7f2unLlivaO/6nbhHMtOQPCgOSqQ44/j8uKlPInw4Br8NKF6upqqqmpyal8DAgDkpMC2fUwFF0pv94a4DPuobcScC99U1OTdjW31cCAMCBWdcf0c+kAwP9hJZwIjY2NVFZWZjlpBoQBsaw8yQ+m8geUNYCFwPduBlgOWBBYEquBAWFATOmOVX/AVCY2RPb5fFRfX0/Dhg3LKTUGhAG5SoGc8Ady0tIMD8M6lJSUUGlpKQ0ZMqT/HaNYuVgOlSUDUqSA5MMfsAoJrAEgUAAABj0QVtM18hwDMkgB8Zo/kE0Z4S8oxU8GAHDkKzAgBQxIofgDSrlVV0j/669gyGUo1kl4GBCPA1Lo/oDeGtjhEzgJQ6q0GRCPAdLR0UHnz5/vnzl2an7AqqLl0x+wWuZcnmNAPATIxYsXKRqNuj5fkKxAgCCdQ5xPfyAXRbf6LAPiIUCOHDmiWQ43QiH6A27IJTkPBsRDgHzyySeW1x0lN2yq+YFC9wcYEBclsGrVKm3dw+0eAiQSiRC6WUYDIEg1IqS6R0bT4XjpJcAWxEOAYNVqa2srdXV19bcY+wP5xZcB8RAgShXgh2CiD36CV+cH8qu27uXOgHgQEPean3PKJgEGhAHJpiNF/T0DwoAUNQDZKs+AMCDZdKSov2dAGJCiBiBb5RkQBiSbjhT19wwIA1LUAGSrPAPCgGTTkaL+ngFhQIoagGyVZ0AYkGw6UlDfY/8MViHYtQKBAWFACgoAVVh13haW5ehf6hRGHBaHY3+wcDOXwIAwILnoj6PPqj336lxePQhGDqHDSudJkyblVEYGhAHJSYHseBj77pMtAf7OdDC10Xz56FGjkkqK58X9IBarUhCP4Rc/FQROnssLwcCCwJJYDWxB2IJY1Z2UzyVbA/1J7bZmZCCx4cOHUyAQMBAzfRQGhAExrUDKGqRylPN9Cgt2WcIxBxyjRo3K+fhRBoQBSQsIRoTS+QZGnGTT5Jl4AMO4ACH5lUt3KlX2DAgDchUEyjJYvbjGhJ5njKrfc68HARDYNc+RrawMSJEAAmVP1SVSd/plUxQnv9dbA3UIhQLCyXyNpM2ADDJAsk2gGVEKJ+KoY4hSdYvcsgZW6sWAFCAg+gk0vY/gBWugTmFJ5Rvw2bxWEI0/Y/2OLIt5FsI8iH6IVA+CHRNoFsUWb6y+S2sUBPpu0WA7mpQtiMcsCA6uVodX53vIFNYg2SdQUBSiNbDyo8CAeAiQc+fOUVtbm5V2zOkZdXtTcrdosFkDK0JiQDwEyOHDh7WRJieCmkBL1S2CpeCQWgIMiIcAsePwarcm0IoFKAbEQ4Cge4VuVraQbgIN1oGtQTbpmfueAfEQIFi+gQt02tvb+3fFubGcwpzKFFdsBsRDgCjVAyh4sTXIP4wMiAcByb9acAmUBBgQBoRpyCABBoQBYUAYkKslUAhLTVhz8y8BtiBsQfKvhR4uAQPCgHhYPZ0tGhaAYlj91KlT2vo3vDo6OrTVDGpFg9o0JoTYRkQHhRAfE9GOIUOGbFm+fHn2SSubqsCreW0SJCeTWQKAACsWDh06RGfOnNGG0y2GGBG9J4T4HRE9EwwGAY5jgQFxTLScMCSA24N37NhBuGrbiSCEaCGinwSDwTcdSd+JRDOlyU662xLPT37hcJi2b9/uGBgparXZ5/P9uLm5eYOdNWYLYqc0OS2t+7R161bNcmQKlZWVNGHCBKqpqaERI0YQ/sa5vmqpPzanXb58mS5evEgXLlzQtiMcP35c+ztTEEJsLCkp+cGKFSt22dEcDIgdUuQ0NAns27ePWlpaKN2pLA0NDRoUeFVXV1uS2qeffkrHjh3TXhkgvOzz+b7X3Ny81lImuocYkFwlWIDPY8ckfp3xwoiSesdqZfyajxkzxlSt8Gu/efNm+uijj1I+h2NI586dS6NHjzaVbrbIsFbwb7CfJ1UQQjwuhAg1Nzd3ZEsr3fcMiFXJFcBz6iTGZBiy7a3HyYhGIcHo1GuvvUZnz569SiITJ06kG2+80XYwkjMCKPB3jhw5kqpV3vf7/XetXLnygJUmY0CsSM2Dz2D+IBkEq6etwA9oamrKWkv4A88++6w2h6EP2CqwZMmSnK9AyFqApAiwJBs2bNCsYlKIEtGCUCiUkqBM+TAgZlshz/HVIdXJ3SM7D5owAgjyf+655wg+gT7A8txyyy1aVy0fAQ7966+/TqdPn07IXgixv6SkZOGKFSuuNnUZCsqA5KMVDeSp/AS9jwCldONY0mxdLJThpZdeumoId9q0abR48WLXjidNJ0aUDz7R/v37kyHZUlZW9sXly5d3GWgCLQoDYlRSDsXT39+h7yI5dYhEpmpgX31VVVVW/wO/0JgR14drrrmGbr75ZoekZC3Zt956iw4cSHQ9MAPf3Nz8Z0IIzMhnDQxIVhHZF0H5CcoqAAirfkIupVJ76zHvgBd8BrwbOaF97969tGXLloTsx48fT7feeqvndmLCCr/yyiva/Ik+CCG+HwwGf2FEhgyIESmZjAMTr/cR1Gc7/QSjRVIH0OlBABBWDqCDU75u3bqEI5Iw0XfHHXf0T/AZLZdb8eCzPf/889rCSBWEEJf8fv+M+++/P/X4sK5wDEgOLaXO6k2GwQ0/IbnY6tihZKtg5/56DOfq5xwA3ze+8Q0aNmxYDlJ0/tFLly7Rr3/96wSwhRDPB4PBr2bLnQHJJqG+7/XdIvU5H36C/pBqPQxOn8aIpR6/+x0W0A6E+fPn06xZswxKML/Rdu/eTe+8805CIfx+/x+tXLlye6aSMSBJ0lEHV+sdZgCRw/JsS5qh9xOUj2DUT7CUYZaH0Jc/evRofyw481//+tc953ekqwas/TPPPKPtPdF1tdYHg8HbGBADGoNxcwgvH90j/Pond42s+gkGqmo6CnyPp556KuFHYunSpdqaqkIKWL+1fv16fZExkjU50wQiWxAibVIp1VIJuxtf7yforYKdfoLdZUZ6WMaxc+fO/qQxGbhs2TInsnI8zd/85jfJk4g/DYVC/5wuYwaESBvTz7Y+yUzLqesLkq2C036CmTKaiYuuiX7GfN68eTR79mwzSXgm7q5du2jbNuzijQfMsAeDwc8wIBmayCog+rN69TDAOgyWgONYn3jiiYTq3HPPPXlbSpKrXLEUBd1FffD5fI3Nzc3HUqXNFoRI2+SDV6ag7vJItgpW5hNybWQ3n8cSdiwAVAHzHnfddZebRbA9r9/+9rcJ8yJ+v/87K1eufJgBySBqAAInHaNV6uBqPQxevvDSdg3SJYjdgXv27On/D5avz5kzx8ksHU8b/hT8Kl036xfBYPD7DIjjoh98Gbz88ssJSzW+9KUvub6M3W6pYrITk546QN4IBoO3MCB2S7oI0nv66acT5g4wcz5y5MiCrjnugsHMug6QT4LB4BQGpKCbNT+Ff+yxx6izs7M/829/+9tUXl6en8LYlGtXVxc9+uijekBOB4PBGgbEJgEXUzIPPPBAwuTpypUrC2b2PF07YVZ97dqB8xyEEFeCwWAZA1JMmm1TXRkQmwRpNBk+OM6opLwRj7tYLrcDA+KywHPMjp30HAVo5HEpZXk0Gv5mLEbffeGFF7Q1Crfz6e5GRJf3ODzM62ATnDlzZtzly50hIrFSSqmdRvbCCy9qOTIgDgrexqR5otBGYaqkotHopFis5ydE4h4pZYk+CwbEAYE7mCQvNbFRuKdOnQp0d3f/iCi2QkoqTZU0A2KjwF1Iihcr2iDkcDg8Rkr590TyL4moIlOSDIgNAnc5CV7ublHgUkpfJBL5KyL5MyllpZFkGBAjUvJWHN4wZaE9otHo9Fis50EpaZ6ZxxkQM9LyRlzecmuiHaSUQ8Lh8D8KIf8hnZ/BXSwTAi2QqHxog4GGiluN3nVSyrRbFLMlwxYkm4S8+f1gPPaHiOaFQqF3M0nc8I7CcDj8NSL5mJRyeC5NyIDkIr38PssHx6WQv5RSRCKRfyGSP8LnXJuIAclVgvl7frAcPVpSUiLnz5//y+nTp/+1ECLjfdQZFb6trW14d3f3k0TyK3Y1CwNilyTzk85gOLx6+vTr+y4IEi+UlpZ+q7a2tj2dNNMCgvVTkUjrK1LS5+1sCgbETmnmJ61Cvv6gvr6ebrxxbr/ghKCN9fUNtwohUt4ZkhIQLA8Jh8PPEskv290EDIjdEnU/vUK9QAcXAy1YMD/FBT/ipUAgcKcQoidZmlcBEp/8Cz8hpfymE6JnQJyQqvtp4uxi3E+I/d364NUr2IYPH0aLFi3STqxJFYQQT9fXB+5NvljnKkBaW1v/jUj+rVMiZ0Cckqz76RbKJZ44vmnx4kU0dOjQLEIS/97Q0PB3+kgJgLS2ti4SgjbBijglbgbEKcnmJ12vXwNdWVmpXUUNC5ItwHpISZ9raGhoUXH7AZFSVoTD4d1E8ppsCeXyPQOSi/S8+SzONX777bevug9QlXbSpEk0d+5c2+9Lx2F/O3bsSLjURy8hXA13ww0zTF4qKg4EAoFZQgjtKJd+QJzuWqmCMyDeVHI7SrVv3z5qaWlJe4VEQ0ODdmUCXtXV1ZayxCHauMYAr9bW1pRp4PDwGTOmU2Njo6U8iAa6WhogbW1tU3p6uvdLKf0WUzT8GANiWFQFGRG/6rjkMxwOZyw//AFYFpz1izvV0RWCr6BOwIdVwkAA/BwcOI07BgEF/s4URo8eTdOnT6eqKuv3tAshektKSqfV1tYe1AAJh8OrpIwF3WgRBsQNKec/DwCCZfKRSMSVwmAId9q0a7NeYW20MEL4VgcCgZCA7xGJhE9JKbN7MUZTzxCPAbFBiAWUBLpB8BOcAgVgXHvttVRTox15YFvATbj19YEaEQ6H75Qylng7o23ZXJ0QA+KgcD2aNEa6sCvRrmuw0X2qrw9QIFBPw4fntHY2o8SE8H1NtLa2/rJvq6wr4mVAXBGzpzJJXpqCa6MnT55M0WhUu5dFfy+kuo4O103AH8E5wIiP18iRVQSLgeun3QniVwBkK5Fc4E6GfOyPW3L2Qj6wGAcOHKCNGzdmLA4gaGpqokmTJpocknW6luL3IhxujUgp65zOSqXPFsQtSbubD0adcBkqLAJGnNTFqKm6Vcoa4CppLE3x6nUKQoioaG09gQkR186zZ0DcVVwncsO98QBA/8L8hJG75OfPn0+1tSlvGnCiqLmm2cWA5CrCQf487tJQICjLAKc7OcB3qKwcTrAKVVUjtbkN3Cjb0dHRHzV5qXkBiK6Lu1gF0EpuFRHKnAxDqok5ONAAAKNJAAJdJEz06e97P3jwE/rwww/7i47vliz5vOZsF0ro62Kxk14oDWZnOXFiorIIgAKf9b/2Ki+MJMVhiIMAKABDptt9r1zppjfffJO6u7v7iwwnHDv5CiuIrTzMW1gtZqm06BLpLQNgwDKO5IDh0zgI6CbFu0pGVsEmp7N37/sJCwiR7he+cHPavRiWKuXKQ+JXPFHoiqDdyQROMjYwKYugoIBTnRyw7ikOwQAQ2fdLZK8HLNPGjZsSJgWvv/56mjy5KfvDHoshhO9OXmrisUYxWhwMn2LkSHWT8I4hVgy3JoeKioo+fwFdJEAxgvA/J8L27YnLSgDdzTcvKbh7DfuXmkBIbi5WfPnl9drM6dKlt5qaFIpGT2qL37BtEqs1iylAXlB+vWU4e/ZsymXlUEjlK8Tfq1zr2qBMLS1bEppmzpw51NAQKLjm6l+siJK7udz9zTffokuXLmm/KmZGNIoFEDi2+sk2WAZ0m1JNuGEdkt55xmf3lmFcrfObN7doVk0F7PnAVtdCC1ctd0cF3Now9e677xKUfebMG7SNM0bDYAQEjnKqOYbkCTeMGGHkaMB5jvsOGG71SsCq3Z07/5BQHFj7UaOsbYzKb72SNkyhMG5tuT127Djt3r1b2355003Gl4DhbNht294lzMTOmjUrv/KzkHtnZ2dCFwmWIdUcA+YL1LAqfAV0k/C3fo7BQvaOPgLr9tZbGxKGiQOBAM2dO8fRfJ1JPM2W2z4r4vihDehCoJuFkRUc4FVXZ2wZGLodW7f+nmbMmEELFy50RjY2pYoupN55hpXA/5IDLEB8sm3AeQYMmeYYbCqirckMhklBCCTjoQ1KYm50tQ4fPkI4whJnFC1ceJOhNf1QMPxKYXHbsmXLbG3gXBLDdtDkYVVYi+Sg5hj0s89O7mXIpU5mnh08k4IaIpmP/enrajl6cJwSvhoOxHj87NmztL3JmQL65a+99ro2O3v33Xdr+wLcDnCWk4dVU024AfyBOYb47LOZAQm365VLfoNlUtDwwXF9kDh29KhqDAxdAhL4FghTpkymadOmZexefPDBh3To0CHCcS633XZbLu2a8Vk1x6B3oNHF0y+dUAlgL4PyFdTsc0WFa4ujHZOBkYQHz6SgiaNHlWCcOrw6WfAHDx6kffv2a0ulq6tH0nXXXZfWOij/Be84DAxj7LkG/RyDAiJ5l5vKA3MMybPPsIDFGgbDpKClw6tVgztx/UEqZTp79lPauXMnqb47xs+bmiYRlkcnO6zo4mA0C0DNnDmT5s2bZ3iER23q0VsGjNtn3tQz4ECnO9e1GAEZHJOCOVx/oLMktl6gk06ZYBUOHTqsLXJTa4fQfRk7dqw2lg6fQ60VOnGild577z1NsfGLPnv2bJo4caK2f1kF/aYe5TfAh0g1xzBkSCmNHFmtnYyhhlXV+UzFqPxG6vz225sTDq4upEnB+KU54mf19fU/zukCHb2g7LqCLZvw0eXBpBOGDtHH1Yd4f79KO2AM8WAJlJMMSwOA8B0sUaqRJKSFoVXEw2gYTsUAEF6acMsmHy98X8iTgkKIdiLx54FAwNBJPqauVLPjEk8zDYzuD7pf8Alg0lOtSs2UHqABVJhbqKsbq3XZuJtkpgWujgurjXks/Q9QoUwKCiH2+Xz+u+vq6t43KgVTgCBRXAMdiUR+RBT7oZVroI0WLFW89vZL1N5+kTD2DljQLevuxnuPZgUw2xyfbxhB1dWjqFhGk3KRqdlnjx8/Trt27e5/rBB2CgpB3US+n9fX1/9MCHH12v8MQjANiEorbk16HpSS5pkVMscvXAmoSV5VA6/vFBSCtvl8JSvMWA1961gGpM+a+CKRyHeJ5E+llJWF2+xccqMSgNXetm2b1vXFwMn8+fP6D5w2moYb8YQQF4nEP9XX1/9P8q1RZvLPCRCVUTgcHiOl/CGR/AsicmYnjplacVzHJYAhc4+O9HUSif8VQvw8EAiczlUQtgCiCnHq1KlAd3f3PxHFvuO2f5KrIPj5wpZAn5/xUGlp6U9ramoy371goqq2AqLyPXnyZFNvb/ePicQ9uDHXRHk4KkvAlATiN9PKp3y+kp/U1dUdNvWwgciOAKLyPXPmzLjLlztDRGKllNLe8+kNVI6jDF4JCCFOE8m1ZWUVq0aPHn3CqZo6CogqNNZ1RaPhb8Zi9D0iWXi7nZySPqdrQQJit89H/11XF3haCNFlIQFTj7gCiL5E4XB4MZEMEdEdUsps9/KaqgxHHpwSEELg/NLnicSqQCCw2c1aug6IqhwWQvb09HyVSH6LiL7Ivoqbze79vOK+Bf0fkXiypKTkudra2sR1Ry5VIW+A6OsXjUZre3t778DBmPAAAAI6SURBVO6DZb5LdedsvCmBdwCF3+9fV1dXF98slMfgCUCSumCNQsgvSymXSklLeF4lj9rhTtadQtAGIcR6KbWNS0fdydZYLp4DRF9snLQSjUZvjsViS4Wg26SUVi++NiYNjuWKBIQQR6Wkl30+3/q6urq3hBBXb+J3pSTZM/E0IMnFj0Qi10kp/4QotphILJJSjs1eRY6RbwkIIU4SyRYi32YhxBv19fUD9yLku3BZ8i8oQJLrcurUiWt6e8Wi3l7CyBiO8JvicXkXS/EOEokWv582+/2ypaZm3IFCrXhBA5Is9La2trqenp6biGi2lJhv0eZcxhVq4xRIuU8Qid1CCKyB31VSUrK1trY2WiBlz1rMQQVIqtpeuHBidEcHzZIy/iLSXtfyWrGsupEQIb7WiT4iot1CxF9Dh9LuESPGnTGXUmHFHvSApGoOzLm0tbU19vb2TpVSThGCphLJKVLSVCFoYrHCAwikpCNC0MdE4qCU9LEQ4qDf7/+4trb2aN/cRGFpeI6lLUpAMslMSulva2ub2NPT0+TzyUAsJup9PgpIKQNSinohtM/1RFRo5/1cFkJEpKSwEDIihAjHYhT2+WQkFhPhkpKSQ7W1tUdwsnmOOjWoHmdALDbn+fPnR3V2dgKW0ULEqmIxUSWlHCmErJJSVAlBVVIS3kcS4X9ULoQolVKWZnpHcaSU3UKI7szv1EUkzuNSKSEI7+eFkOelFOeFEOd8Pnz24fOZioqKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},FOrL:function(Ge,tt){Ge.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFsAAABKCAYAAADUvCinAAAAAXNSR0IArs4c6QAAFq9JREFUeAHdnAl4VFWWx6sqlYWEkIRsJCRkJQECCXsIS0gAWWwQl1YQxQ2nRx0/u9We8etvpmf87LFt7XHs7mmXbhVEFESQdWRfwiKGXRYhkI0sQAIBAmQnqZrfKfMyZVGVqldLjL7vu9997757zz33/84995xzb5VG8xO/Fi1aNPTDDz/M7w7D1HcHJjzFAyCPNxgMi/V6/YOe6kMNXZ2ayj+mugsXLhSAFxqNxtmPPvroge7A+09Osj///HOvmzdvvoZET/D19Z04f/78i90BaOHhJwU20hx748aNZVqt9kR0dHTOnXfe2dxdgBY+tN2JGVd4QT8/gsp4GRovPfnkkytcoeWptj96ycbaiEdl/BWgEWjt+AULFlzwFFiu0v3RSvaGDRt8L168+CIALNDpdL99/PHHl7oKhqfbe3m6A3fTR4J1/fr1m88iuBxJPs8iOBdr45C7+/EEvR+NZIuVUVdX9wBg/wYgTnp7e//rI488UuoqKCyqv4FmK+rnj67Sste+2+vsjz/+OODWrVsiyb9iMIcAZh4L4El7A3PkPUA/Db2ZERERdzhS39U63RbsDz74YDBq4qmWlpZZ5GtIdz7xxBMlrg5YaY/18iuAnhsYGDht1qxZDUq5J/NuBTZSnIAUzwGEOYB7i/R3pO5f3AkGtHVI9BuAmkG644EHHrjpSYDNaf+gOvvQoUPe33zzTRYMTSVNB1xf0mfo4+V4fkXmjMr9p59+GtLU1CSSPpzHvcQ8NqK36y3r2Xpub7+M92UZGRnPjhw58patup4o71KwkahwgBqFXTyawUgS6RI9vBngNj/22GPFloNkukfTZjZ17iXl8L5jNlLexPMW8lU9e/Zcj5RetWyvPKOWsrl/HzPxTdTR35XyrszdBjZAaD/66KMgBh4KmGGkKAaSzHN/yXkv96IbD5If8PLyOpCWlnbUmnQtWbIkGV19jwBM3Uyh7efnp+nfv3/lmTNnYnx8fE7OnDkzrKioSFdYWBhx/fp1wayVurvIV/Ph1mAOnpfC9evX+1+6dOkVaEzmcb67FlehrfZyC9hI3wEG04/B1sLAFVINqYrnYsoLJfXq1asYyWu0xaDEndva2u6hjYA8ROohrW0pKSmlgCz3iRTpli1bpgHMvPvvvz9H6siFaqkuKSlp40NEX716VQMNI8US6dsCrQd5/gS18XtrH1bad9XlFrCdYRYQdIsXL84CYFEP90AjQegEBQU1p6amliYnJ/v06NFDyr7HozWwpZ1yNTc31+zZs6e1rKysj1IG2CfpYxWzaTWe5jdKeVfn3xuIpzuXBfH48eOTUDEC7t2kSOkzJCSkftCgQaXx8fGBqIs4KbN1dQK2ob6+fu+uXbt8/f39/bKysvwANxzQa8+ePdv3woULvkIT4M+RrSKtRnfv49nAfZdcHge73SmZzmhEPcwkD5KRhYeHXwPgsri4uFCsj1gpc+SyAnbNlStXjiDN0aGhoY1jxowJhN4AS1rMoNrz58/XnD59Ooo8AF6kSjVgr2XRXB0QELADNddi2c6dzw6DjbvcE3f5CZiMcZQB6qYwmKnkPaRNnz59qgcPHnw+JiYmCqmTBVT1JWADzm5sb92xY8dakdhE9HFlQkJCDDT7OUKQmXWTINbFgoKCyPLy8iCepZmssl8K8GpNSkf6lDoOgd2++5EPaCMdJWwirtVq+vbtW4bVcZlgfj8GEqGmvVndNgApQIIvbdy4MRcpbQLgIwMHDgxAr6dTz6FxmNHruIVuw+XLl8sBPrS0tDQc2qJqHDYpOwg5cOMQk1gKQ2DiuAP0hFFNfHz8WQCuxfsTc6+3I+3M6rTwUauwMCqR2pvo3J7V1dVxYWFhtUT7bh44cCAL0y9vzpw5OWZt3HXbxAc9h6rpiXUTgzcrdMWk3E2+ytykdKZDh8BeunRpWENDQyUdmBYZy45goo1pfAqAG9Gbqbw36WXLepbPqKV8pnH9tWvXfGtrawNZ4EKpo8dMvI5OvwS4BhbPSOgnS7m0b1cjngJbulCuFvgqYXH1wZ5P4OODucmkFOBnESVU7eZ3eGNKD9byefPm1SDdTzDl3kTqOkwqpS7T+Tg2bChqwmQfK+X2cnSsP/pbg5kni1oogxE1Izv+0od8tB/y8uFDJ2LjF7KveQ2h6M3YRTgnwufL5LJxoepySLLNKQL6HUjdFlb9OhhYcuTIEYlrJEkdQD82YsQIPwL6HgOqKyQbW73s1KlTLaRkkWjWhSYW9pPY/z2J5YSfPHkyCEEZjs1+whwbe/cOSbZCZOfOnfri4uK3ANqIuuhJenrYsGHHmGpvfvXVV+PQdWNIGqZ/0dixY+sxpyT28aO4mLXXEZ4LgBmP3o4DTJlxZ4YMGdKEozWIQZiMg9GjR9eBgZ6P8A6Snt2uWhwaoyqwWTR+ifucBsjmxDMok3QWa+rVzZs3D4bpWSQd9arHjx9/nsVNLAZVfZl34MH7Ntz7khMnTgQztnAAD8J6quIIRAFmqizut81QynpOnDjxwqZNm8Yzyx+Bt8WO8uewGpHoGwtVATEJMbdEr9q6ylnsFhEAimY1f5iv34MAfR0e3Rn080CY9bfV0JFyd6gRpPIicZTmb7/9Nr6xsVE82Ib09PRiFvkIJNrk1drjBaFqxjm6gceb+tBDD12zV1/eq5G2/4KhQIC2R7dfcHDwfxCPrmZQb6xdu1aP1fGLLVu2jICxVnT6MWZBLIupWpPQXr+dvkdq6wHnIo5QLKZkFOMw4sEWooe9uY+nsarFPTc3tx4rLZyP9Sptn+m08/aXDkk20yUHoHYi1Qa+fGdSba3Pawz07TVr1lxB4p9C0lNFH/LhCnBMenEfba2RrTKVkm0k/FpGPCYIPRsiNJOSkqro+wZ6WBZ1l04XMDOu5ufnBzNbMzEF7e7w6wnoxwLAW6ShdG4VSMAKY2EwOgG0jC8EKf63e++9t47799B1ryFhC44ePTqBJDHqCmi38jETpLI7Lon8EecWNdGXWRWP+qqbOnXqWfRwDLyIWXmb+epMv8yMXqgjHUL0LvhlAnqnQS09lZaQJnbWGQucJjEx0RS56ayenXc9ef/r6dOnN5Mv3Ldv35u4yPNwGO4DGC8AuYKVcwWJS7FDx+prxtCEx1mNFEeTh/Xu3bsNS6kUvoNYa0RlOUXXamfthYCrnzRpUs0XX3wxEqH9BcXvdVqfhe8GjAZ2Vmn27NmtAK5Gv3dGTnnXys1SzMaP9+7dexf3C+AjAAumAdDLxRqg7LY+LdUIDscF7N5APpo4Rhp0cBX2vgE9rEo9KUw5kyM4TZi8jcyaVMK2l23R8AJIUR9ptiogGRrccKvqxVYbB8uFZgbgPowEViLZv0TCCwkLZJAlAJ4RwIpYbP2RIG+FJsBqiNMgrPqmvLy8AMy2QKyJlnHjxl1CHQVGRUUJ6J0Kj0LLXTlBtlvM0sDW1tbwdevWrbVFV9seb36BCsOQLHNQk9HRaRLjJRjvY4uAm8s3wvDr7EEmsk6IO5xG0EmDBSNbY8FE5xq3bt0aLZE57OE2hOAiuWwi+7qZD9Xk8Ctqt23bJnuw/wSOVQoB7o0IxgnZzLZqjbR7it8MHTp0EAO1Wkch5qF8N3RfRQ+KtfAi/E5W+snMzKwaMGCAPwPopZR1lxzb21hZWWkNLwMf4SlzSe7gGW/qOaZwGmCLXv0hrmw63Yz+ex6TagqMfqEwwWzb1h2BFv4Ixl1Q+LTIdQjM726zM1ErEUzhVXh8OhbFDl1p0birHlcTnziJ2niXDk28Ijn9MbkE8P5dxYSdflrh70vi7Kzze+OpG2yjfu1tqz0No/kKAcQMdLjbrSw2t9WxQczdxWKzvs35kefgR1kzqrmPxNTqQ9i3gvcO7126mznolYHRpu3bt4diEc3iubN1o5nZ+aI1/aJBVw5Hul9lcZqOpaBBkgyYNVZVjgcGoZBcs2LFCjm9WgHAYqPLR1+ekBAfVVp6Lhu9vRgLZD5lXcmXCMAmXP4iQsvZYCSWnOxOFZDEsTkiz+YXak9+ElHAoaErVsFWKmODj+f+VQ7IZKOPxLFRXnVFPpmPns4A3sLm3l5VVSWL5PIZM6ZP3rFjZzMS3wev9BNMw0e7gJkqTNLVWBv6mpqa++FJVIVsl60lvcPassMRHjoFWyEA6FO5/090+CisAWNkZKRD7ZT2TuQnkeqhSHUxbaMmT550eNu27XIAU8CeQ/CH4yG7s5lsRUjMDQY8wok+7DURj3kHNv8hdPFQAJZTAsq436DPP7N421oQrdK+bYG0VgtDvZj0/pQpU2SjIANdFY4zYiSeoXRurZkrZb8lwJMMgQXh4aH/GxsbOwUnR+h9279/8mDWkXiOfXxJkD+LOMsuvEaZcopel3quXDXEVhYhxbu5JrDh/DNAltj2HlIthCWu8hBnBivVdqJq8aODNZwG7Q0DH1ZUVMgxMb/hw4e7G3SJDX9C2s3gjBkZw6wuPCkp/TPh4QyHJh+En7c47PO82sFb1N+NpbODKxXH6h8A2If+b6Jz/zZq1KjS3r2D79uwYdO3tHF690kV2ObMTZyYXVleXrGW6T6HraMYkkQF3SHpH6CrM+lrBLvseT4+3jJ9zbs23VMWzi7QUayBRKRQfsS0HnNQrAI1l4R/l6KTqjkzch80X5bGgHyKgNjirKzMQFQVMRtNVDsLhe3Et6Na5USunHVQ0lXuP0a1dPgE7XU7MqfBRoUkI10vpqam7C0oOGMCHSkPY2NAkHEW9Dbavs2g3xEOhw3LqOfeprUhH4LZtZQw57yVK1ca586de55mfaWtnSsfFbSGAz8xqAyxaIJI4sCtGDAgZUtiYvJ4o9HwCs++Vr4zxZok+JLc8roLQclhwdxl+UKenQZbIUan4wFc0leAvoYd6QewXHoRWFKqqMnXsVERgGTNwIM93qOH/x32GiclJU5BjRzkzMldhw8ffo3wwku0sfaBbogUf/3113ybMzPh+w9Cm74uIL1/YpZUBgT4y6+E3wdoe93afE/7XF56BmyzXscNGJA6jud9p08XlAD6fQy8BwupWRW7t3+hhsRCtEOHZojTkm6vBXUjJkyYcBBVUs/O+DMEp/7GrHvarN1hPsQytueCsGIep/yp9nd5RAsXEyns4+Wlk1+N9SOZNXP6dp+tli5LthXCYwcOHDAWxvMx/CsZ+GzUizfHGqxU/V7RCX65UEC7hzl3Uo79nOPo4PV6r58Rw36PD/wU8e5BnOfYDeWzgH8AaRf7/DWSN1Issfu/8kG2xMXFcqJWKyrL39F+FG6hs5N7UXneZqkBOqKztyj1LHNPgG3qA4bGpKUN0sDAfqbuFaRoGouoF16pJQ/K8/8QKniOBx/AOEW76coLR/L4+Lh7WeS2IL1T0Zuf0mYMNJ6UtvBygvTu5Mk5l/V633/UaIzPfifEzkkypudj/HCq3BG+zOt4DGylEwaZOWjQQA368iA7GvU4RBNZ1LToSaWK5FcJ5KwiL2Qg1yIjI0abv3TkHmAjsrOzGwhz1nD/EG3ESljODFnEgaEBGo0B9SQnt5wD2BEe7NXxONgKA4A7CutFdlkOA7qRBXQkp11Nr9kw3cDmrAAUggraTi5TX/Wl02nvRge/dPDgwRbCw/lRUX0ehMgKFrxA1cQ80KDLwFZ4xxYfkZiYoMFxOLp//34/AB/IZoUc5vk5H6S5b99om1t0Co3O8tDQ3q/MmDHtGMrjv6Gp7axuV7/73lzuys5xQIbFxsYMbGlpOobzchxg/DAf+YWX1tVjBmIbj+5uQAu2qiUb6WtB/2pY6c9zsrMV0OJc+UheXvoMzDxNRkZ6GbSzAMkVcp5uK56tzEqnmFQt2RwXXsWi915VVXWfrVu3xeEgFAD+RVdHCc04gFb98V3t15H2HKNrOn78hFg1idRfimkpnqrqS/XgMjOHpfDrh6zr12v/ed++/CklJaV3lpWVG7EwDsbF9WO113TpGT7VI1bRAFe+pbCwyIcAlQ+xkg0cyGnipMHrgO6Ui6lqAeEoQSBBeyJfxth2nvOLi0s+Jeb7JFKZgdkmh8YPYQVI/Fd2V9x2bdy4SWiZ4tluI2qDECDf4mygd0VFpSE4uNcGPGGDt7ePhFq9ALpcr/dO4/dCcpxO1aVKsgH612ZAS0djkpISSUnL8dQ+4WM8z/m98adP+9WwnXY4JCQIT9LkZali6oeqjC5uRZL1SLKORXvt5Mm5unaQZXfcxBZ5P/ZmwUHzslo+VYEN8bnWOzDOGTFi+N1arebtHTvyEIzm5/AaJ7KdVjxy5IgKpt5EmFQ1i6z345nS1ta2Vvk1AQdtNIC8Oicnx5uI4ix47gDZomex31+2KLP7qBJsY79OKIrJ9cKkSbmXm5ubfpeXtzuFE6SP5eXtSurdO+Qg8ZFbqJmxnbTv8lc4WG2ckfE6d67MCMgrOXPtx2EC+bsNWyC389gpDjbHoQpsJPcCgMqKbPOC0XAfH98/TJs29fTlyzXP8nv1u69evTZ1+/YdRs7hbR4yJC1Cp/MaZpNAF7zAejIQR9EBchsgr8rNzfFHEGTzQEuyy4HgYLeSlQqqwIYX4hdG0Vd2L5geGBYW+g4btFsJuT5z7ty5ZzjKO43f3TSyS78S130IRFLtEnJjBXgC5HM6gL6FdbGa3SY5hPlzyh0CWWHlOxyUJ8dzVXqUn0dEtrW1yt9JhDnehSnqZmCci/bvP1jADzklXt0HB+YS0b3NMTF9c6Fld6fBFWsEQTayX6ktKSnll1+9VuFEBeNMzRCQ1YxD6mKN1NB2MAG1atVt1Taorj4/BQdqPe381LaF0TqDoe0t9Lk3foKEU/2JlRSwiO7j8PrdPNu00Z0BGzBNBx0xTxsx4Vamp2eE85FVhW4txtik12tnRUb23WZR7tCj6i8rVDk+wHaVcTm3IQ71cnulyvr6hj9yVGA4r2QPUMeGwa6xY8cUsRX2IBjd9osylWAD8nkkuaRBFj5+Q8M6oXUFZBkBu/7aORxR3ioPzlxOgS0doXs5u2FYDDDZznQsbZD0QzgO73HAfR50JlFkYEdn5dixWc3oUgG9Y01xBGzoGREEURd1QocfSEUB8jRn+VPaQZdjFbpHWeDPKWXO5E6DrXTGoodkGl8BmHilTG3OYFYTe9gIUC9AZwDPjZy+Woi5yP+S6ORPYbSdgS0g8/G1RUXFN/nN5Yr09MGxgMPsc+2C7jlE4t/5ZcES1yh919plsIUMYHhXV1+Y39ZmFD3s1CEWzCnZWXl7z56vKrHPX4JmOM/VnIb6gEOUOfziYBzPt7nr1dWXNDgkN3CgPsesjAfkKdRz9TrGEZi/REZGLwFw4cstl1vANueEA5BjDIbWOUiEOAcJ5u8cvL+K8fC6HMXF55DjwrIQl5PEodqEKWnSvRxw1OBaXw8MDFg+ePAQCYA5tbtDO9MFqKWIzTqdTv8ZBznzlXJ35m4H25w5gB8M8LMpuwvwhwNchw42r2fjvrCurv4N/vspFyBEf5t4HT16lAZ1UYskf8aGcgptRdervqDJoRzTEV8BeB0An1BNRGUDj4Jtzgtg9cBOz0BaRzLQkayFnDzVDqTcy7ye5T3qZVdJSfH7BQWFv+edN2plDfY5el2Ta1nX1jP9tQHsaYyew/R3CHPzEHbyMcobbbXxRHmXgW2NeQbuS6Qwlg9AyLaNQzLySwKtqAt+dSxHwsQE1PYAWAM5Z+hM/1F1B+344ar8+6URsP4/p9512lZQXs49uVc5wFaw4VEBsLT5Ya//AzDfafkdei4SAAAAAElFTkSuQmCC"},NRst:function(Ge,tt,s){"use strict";s.r(tt);var pa=s("Q9mQ"),ut=s("diRs"),va=s("P2fV"),Pt=s("NJEC"),ba=s("14J3"),He=s("BMrR"),ga=s("+L6B"),lt=s("2/Rp"),ha=s("jCWc"),pe=s("kPKH"),Aa=s("sRBo"),Ne=s("kaz8"),Ra=s("5Dmo"),$=s("3S7+"),Ot=s("WmNS"),d=s.n(Ot),Ca=s("miYZ"),q=s("tsqr"),ee=s("k1fw"),N=s("9og8"),Ua=s("2qtc"),we=s("kLXV"),h=s("tJVT"),pt=s("PpiC"),Fa=s("B9cy"),at=s("Ol7k"),ya=s("lUTK"),jt=s("BvKs"),Pa=s("Znn+"),vt=s("ZTPi"),r=s("q1tI"),e=s.n(r),re=s("9kvl"),Ie=s("55Ip"),We=s("VTBJ"),Lt=s("rePB"),Dt=s("Ff2n"),wt=s("TSYQ"),bt=s.n(wt),St=s("Pw59"),rt=s("Qi1f"),Bt=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],gt=r.forwardRef(function(E,i){var m=E.className,A=E.component,U=E.viewBox,T=E.spin,v=E.rotate,F=E.tabIndex,I=E.onClick,O=E.children,oe=Object(Dt.a)(E,Bt);Object(rt.g)(Boolean(A||O),"Should have `component` prop or `children`."),Object(rt.f)();var V=r.useContext(St.a),j=V.prefixCls,b=j===void 0?"anticon":j,Q=bt()(b,m),y=bt()(Object(Lt.a)({},"".concat(b,"-spin"),!!T)),_=v?{msTransform:"rotate(".concat(v,"deg)"),transform:"rotate(".concat(v,"deg)")}:void 0,t=Object(We.a)(Object(We.a)({},rt.e),{},{className:y,style:_,viewBox:U});U||delete t.viewBox;var L=function(){return A?r.createElement(A,Object(We.a)({},t),O):O?(Object(rt.g)(Boolean(U)||r.Children.count(O)===1&&r.isValidElement(O)&&r.Children.only(O).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),r.createElement("svg",Object(We.a)(Object(We.a)({},t),{},{viewBox:U}),O)):null},f=F;return f===void 0&&I&&(f=-1),r.createElement("span",Object(We.a)(Object(We.a)({role:"img"},oe),{},{ref:i,tabIndex:f,onClick:I,className:Q}),L())});gt.displayName="AntdIcon";var ct=gt,ht=s("RCxd"),kt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},xt=kt,Tt=s("6VBw"),At=function(i,m){return r.createElement(Tt.a,Object(We.a)(Object(We.a)({},i),{},{ref:m,icon:xt}))};At.displayName="SettingOutlined";var Mt=r.forwardRef(At),Nt=function(){return e.a.createElement("svg",{width:"16px",height:"14px",viewBox:"0 0 16 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-338.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-30",transform:"translate(192.000000, 0.000000)"},e.a.createElement("g",{id:"\u5B66\u751F\u5907\u4EFD"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("g",{id:"\u7F16\u7EC4-2",transform:"translate(1.484375, 1.000000)",stroke:"#FFFFFF",strokeWidth:"1.125"},e.a.createElement("circle",{id:"\u692D\u5706\u5F62",cx:"4.81535885",cy:"2.703125",r:"2.140625"}),e.a.createElement("line",{x1:"8.8671875",y1:"2.6984375",x2:"12.9921875",y2:"2.6984375",id:"\u8DEF\u5F84-2",strokeLinecap:"round"}),e.a.createElement("line",{x1:"10.971875",y1:"0.59375",x2:"10.971875",y2:"4.71875",id:"\u8DEF\u5F84-2",strokeLinecap:"round"}),e.a.createElement("path",{d:"M11.6602343,8.9375 L1.29500865,8.9375 L1.38655479,13.4113249 L12.0600577,12.9156417 L11.6602343,8.9375 Z",id:"\u77E9\u5F62"}),e.a.createElement("path",{d:"M4.86223385,5.96875 C3.87558231,5.96875 2.9371147,6.20325603 2.04650583,6.67093558 C1.74891831,6.82720575 1.54974161,7.12252446 1.51637951,7.45698927 L1.37142475,8.90960803 L8.34040708,8.90960803 L8.20397832,7.46013637 C8.17226298,7.12318034 7.97226424,6.8251326 7.67247653,6.66805836 C6.7835034,6.2022899 5.84686059,5.96875 4.86223385,5.96875 Z",id:"\u77E9\u5F62"}),e.a.createElement("line",{x1:"-8.22401229e-17",y1:"8.9171875",x2:"13.078125",y2:"8.9171875",id:"\u8DEF\u5F84-3",strokeLinecap:"round"})))))))))},It=function(){return e.a.createElement("svg",{width:"16px",height:"14px",viewBox:"0 0 16 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-1229.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-34",transform:"translate(1147.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-25",transform:"translate(82.000000, 0.000000)"},e.a.createElement("g",{id:"\u5B66\u751F"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("g",{id:"\u7F16\u7EC4-2",transform:"translate(1.484375, 1.000000)",stroke:"#FFFFFF",strokeWidth:"1.125"},e.a.createElement("circle",{id:"\u692D\u5706\u5F62",cx:"6.515625",cy:"2.703125",r:"2.140625"}),e.a.createElement("path",{d:"M11.6602343,8.9375 L1.29500865,8.9375 L1.38655479,13.4113249 L12.0600577,12.9156417 L11.6602343,8.9375 Z",id:"\u77E9\u5F62"}),e.a.createElement("path",{d:"M6.5625,5.96875 C5.57584846,5.96875 4.63738085,6.20325603 3.74677198,6.67093558 C3.44918446,6.82720575 3.25000776,7.12252446 3.21664566,7.45698927 L3.07169091,8.90960803 L10.0406732,8.90960803 L9.90424448,7.46013637 C9.87252913,7.12318034 9.67253039,6.8251326 9.37274268,6.66805836 C8.48376955,6.2022899 7.54712675,5.96875 6.5625,5.96875 Z",id:"\u77E9\u5F62"}),e.a.createElement("line",{x1:"-8.22401229e-17",y1:"8.9171875",x2:"13.078125",y2:"8.9171875",id:"\u8DEF\u5F84-3",strokeLinecap:"round"})))))))))},Xt=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-1148.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-34",transform:"translate(1147.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-27"},e.a.createElement("g",{id:"\u7F16\u7EC4-2"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M14.5,1 C14.7761424,1 15,1.22385763 15,1.5 L15,10.515625 C15,10.7917674 14.7761424,11.015625 14.5,11.015625 L12.984,11.015 L12.984,9.89 L13.875,9.890625 L13.875,2.125 L2.125,2.125 L2.125,9.890625 L3.031,9.89 L3.031,11.015 L1.5,11.015625 C1.22385763,11.015625 1,10.7917674 1,10.515625 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("path",{d:"M7.953125,3.953125 C7.36200773,3.953125 6.82685148,4.19272261 6.43947455,4.58009955 C6.05209761,4.96747648 5.8125,5.50263273 5.8125,6.09375 C5.8125,6.68486727 6.05209761,7.22002352 6.43947455,7.60740045 C6.82685148,7.99477739 7.36200773,8.234375 7.953125,8.234375 C8.54424227,8.234375 9.07939852,7.99477739 9.46677545,7.60740045 C9.85415239,7.22002352 10.09375,6.68486727 10.09375,6.09375 C10.09375,5.50263273 9.85415239,4.96747648 9.46677545,4.58009955 C9.07939852,4.19272261 8.54424227,3.953125 7.953125,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M8,9.359375 C7.02926405,9.359375 6.10515185,9.58634117 5.22738617,10.0391208 C4.91256494,10.2015156 4.70715311,10.5183474 4.68737612,10.8720323 L4.48804974,14.4375 L11.5073586,14.4375 L11.3117934,10.8726264 C11.2923657,10.5184864 11.086806,10.201135 10.7715768,10.038586 C9.89413176,9.58616432 8.97035946,9.359375 8,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}))))))))},Oa=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-243.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-29",transform:"translate(96.000000, 0.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-2\u5907\u4EFD-2"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M15,1.5 L15,8.796 L13.875,8.796 L13.875,2.125 L2.125,2.125 L2.125,3.937 L1,3.937 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 C14.7761424,1 15,1.22385763 15,1.5 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("line",{x1:"10.3515625",y1:"12.4484375",x2:"14.4765625",y2:"12.4484375",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"12.45625",y1:"10.34375",x2:"12.45625",y2:"14.46875",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("path",{d:"M5.05989997,3.953125 C4.4687827,3.953125 3.93362645,4.19272261 3.54624952,4.58009955 C3.15887258,4.96747648 2.91927497,5.50263273 2.91927497,6.09375 C2.91927497,6.68486727 3.15887258,7.22002352 3.54624952,7.60740045 C3.93362645,7.99477739 4.4687827,8.234375 5.05989997,8.234375 C5.65101724,8.234375 6.18617349,7.99477739 6.57355042,7.60740045 C6.96092735,7.22002352 7.20052497,6.68486727 7.20052497,6.09375 C7.20052497,5.50263273 6.96092735,4.96747648 6.57355042,4.58009955 C6.18617349,4.19272261 5.65101724,3.953125 5.05989997,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M5.10677497,9.359375 C4.1360377,9.359375 3.2119243,9.58634179 2.33415756,10.0391226 C2.02878012,10.1966463 1.82634563,10.4994802 1.79642938,10.840309 L2.04994602,14.4002361 L8.58736721,13.9495882 L8.41856837,10.8726264 C8.39914062,10.5184864 8.193581,10.201135 7.87835181,10.038586 C7.00090673,9.58616432 6.07713443,9.359375 5.10677497,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("line",{x1:"9.421875",y1:"4.0109375",x2:"12.421875",y2:"4.0109375",id:"\u8DEF\u5F84-3",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"9.421875",y1:"6.1359375",x2:"10.921875",y2:"6.1359375",id:"\u8DEF\u5F84-3\u5907\u4EFD",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}))))))))},ja=function(){return e.a.createElement("svg",{width:"14px",height:"14px",viewBox:"0 0 14 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e.a.createElement("g",{id:"\u9875\u9762-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},e.a.createElement("g",{id:"\u6559\u5B66\u8BFE\u7A0B\u5934\u4F18\u5316",transform:"translate(-147.000000, -263.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-44"},e.a.createElement("g",{id:"\u7F16\u7EC4-32",transform:"translate(146.000000, 262.000000)"},e.a.createElement("g",{id:"\u7F16\u7EC4-28"},e.a.createElement("g",{id:"\u7F16\u7EC4-2\u5907\u4EFD"},e.a.createElement("rect",{id:"\u77E9\u5F62",x:"0",y:"0",width:"16",height:"16"}),e.a.createElement("path",{d:"M15,1.5 L15,8.796 L13.875,8.796 L13.875,2.125 L2.125,2.125 L2.125,3.937 L1,3.937 L1,1.5 C1,1.22385763 1.22385763,1 1.5,1 L14.5,1 C14.7761424,1 15,1.22385763 15,1.5 Z",id:"\u5F62\u72B6\u7ED3\u5408",fill:"#FFFFFF",fillRule:"nonzero"}),e.a.createElement("line",{x1:"10.3515625",y1:"12.4484375",x2:"14.4765625",y2:"12.4484375",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("line",{x1:"12.45625",y1:"10.34375",x2:"12.45625",y2:"14.46875",id:"\u8DEF\u5F84-2",stroke:"#FFFFFF",strokeWidth:"1.125",strokeLinecap:"round"}),e.a.createElement("path",{d:"M5.05989997,3.953125 C4.4687827,3.953125 3.93362645,4.19272261 3.54624952,4.58009955 C3.15887258,4.96747648 2.91927497,5.50263273 2.91927497,6.09375 C2.91927497,6.68486727 3.15887258,7.22002352 3.54624952,7.60740045 C3.93362645,7.99477739 4.4687827,8.234375 5.05989997,8.234375 C5.65101724,8.234375 6.18617349,7.99477739 6.57355042,7.60740045 C6.96092735,7.22002352 7.20052497,6.68486727 7.20052497,6.09375 C7.20052497,5.50263273 6.96092735,4.96747648 6.57355042,4.58009955 C6.18617349,4.19272261 5.65101724,3.953125 5.05989997,3.953125 Z",id:"\u692D\u5706\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}),e.a.createElement("path",{d:"M5.10677497,9.359375 C4.1360377,9.359375 3.2119243,9.58634179 2.33415756,10.0391226 C2.02878012,10.1966463 1.82634563,10.4994802 1.79642938,10.840309 L2.04994602,14.4002361 L8.58736721,13.9495882 L8.41856837,10.8726264 C8.39914062,10.5184864 8.193581,10.201135 7.87835181,10.038586 C7.00090673,9.58616432 6.07713443,9.359375 5.10677497,9.359375 Z",id:"\u77E9\u5F62",stroke:"#FFFFFF",strokeWidth:"1.125"}))))))))},ie=s("oUNq"),$e=s("ErOA"),La=s("5NDa"),Xe=s("5rEg"),dt=s("jrin"),Da=s("y8nQ"),k=s("Vl3Y"),wa=s("nRaC"),Rt=s("5RzL"),Se=s("Ty5D"),_t=Rt.a.TreeNode,Vt=function(i){var m,A,U,T,v,F,I,O,oe,V,j,b,Q,y,_,t,L,f,S,x,g=i.classroomList,G=i.loading,ae=i.dispatch,X=Object(Se.m)(),R=Object(Se.l)(),D=Object(r.useState)(!1),he=Object(h.a)(D,2),de=he[0],Ue=he[1],Ae=Object(r.useState)(),Be=Object(h.a)(Ae,2),Ce=Be[0],H=Be[1],Ee=g.actionTabs,Me=k.a.useForm(),De=Object(h.a)(Me,1),_e=De[0];return Object(r.useEffect)(function(){g.actionTabs.key=="\u6DFB\u52A0\u76EE\u5F55"&&_e.resetFields()},[g.actionTabs.key]),g.actionTabs.key!=="\u6DFB\u52A0\u76EE\u5F55"?null:e.a.createElement(we.a,{centered:!0,title:"\u65B0\u5EFA\u76EE\u5F55",visible:g.actionTabs.key==="\u6DFB\u52A0\u76EE\u5F55",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:de,onOk:Object(N.a)(d.a.mark(function se(){var ve,Ve,Fe,ye,Re,K,be,B;return d.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,_e.validateFields();case 2:ve=_e.getFieldValue(),Ue(!0),Ve="/api/course_modules/".concat(g.actionTabs.selectArrs.category_id,"/add_second_category.json"),a.t0=g.actionTabs.selectArrs.type,a.next=a.t0==="board"?8:10;break;case 8:return Ve="/api/courses/".concat(X.coursesId,"/boards.json"),a.abrupt("break",10);case 10:return a.next=12,Object($e.a)(Ve,{method:"post",body:Object(ee.a)({parent_id:Ce||g.actionTabs.selectArrs.parent_id},ve)});case 12:Fe=a.sent,Fe.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),ae({type:"classroomList/setActionTabs",payload:{}}),ae({type:"classroomList/getClassroomLeftMenus",payload:{id:X.coursesId}}),Re=g.actionTabs.selectArrs.type,K=(Fe==null?void 0:Fe.category_id)||0,be=(ye=R.pathname)===null||ye===void 0?void 0:ye.split("/"),be[4]=K,be[3]=Re||be[3],B=be==null?void 0:be.join("/"),re.c.push(B),Ee.cb&&Ee.cb()),Ue(!1);case 15:case"end":return a.stop()}},se)})),onCancel:function(){ae({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement(k.a,{form:_e,initialValues:Object(dt.a)({},"name","")},(((m=g.actionTabs.selectArrs)===null||m===void 0||((A=m.nodeModules)===null||A===void 0)?void 0:A.type)==="attachment"||((U=g.actionTabs.selectArrs)===null||U===void 0||((T=U.nodeModules)===null||T===void 0)?void 0:T.category_type)==="attachment")&&e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,{flex:"80px"},"\u4E0A\u7EA7\u76EE\u5F55\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Rt.a,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeDefaultExpandAll:!0,size:"large",defaultValue:((v=g.actionTabs.selectArrs)===null||v===void 0?void 0:v.parent_id)===""?(F=g.actionTabs.selectArrs)===null||F===void 0?void 0:F.category_id:(I=g.actionTabs.selectArrs)===null||I===void 0?void 0:I.parent_id,disabled:!(((O=g.actionTabs.selectArrs)===null||O===void 0?void 0:O.parent_id)===""),onChange:function(ve){H(ve)}},((oe=g.actionTabs.selectArrs)===null||oe===void 0?void 0:oe.parent_id)===""&&e.a.createElement(_t,{value:(V=g.actionTabs.selectArrs)===null||V===void 0?void 0:V.category_id,title:((j=g.actionTabs.selectArrs)===null||j===void 0||((b=j.nodeModules)===null||b===void 0)?void 0:b.name)+"(\u6839\u76EE\u5F55)"},(Q=g.actionTabs.selectArrs)===null||Q===void 0||((y=Q.nodeModules)===null||y===void 0||((_=y.second_category)===null||_===void 0))?void 0:_.map(function(se,ve){return e.a.createElement(_t,{value:se.category_id,title:se.category_name})})),((t=g.actionTabs.selectArrs)===null||t===void 0?void 0:t.parent_id)!==""&&e.a.createElement(_t,{value:(L=g.actionTabs.selectArrs)===null||L===void 0||((f=L.nodeModules)===null||f===void 0)?void 0:f.category_id,title:(S=g.actionTabs.selectArrs)===null||S===void 0||((x=S.nodeModules)===null||x===void 0)?void 0:x.category_name})))),e.a.createElement(k.a.Item,{name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}]},e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,{flex:"80px",className:"font14"},"\u76EE\u5F55\u540D\u79F0\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26 ",maxLength:60})))))))},Qt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Vt),Ht=s("wd/R"),Ke=s.n(Ht),zt=function(i){var m,A,U,T,v,F=i.classroomList,I=i.loading,O=i.dispatch,oe=Object(Se.m)(),V=Object(Se.l)(),j=Object(r.useState)(!1),b=Object(h.a)(j,2),Q=b[0],y=b[1],_=F.actionTabs,t=k.a.useForm(),L=Object(h.a)(t,1),f=L[0],S=Object(r.useState)({name:"string"}),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=function(R){return R&&R0&&w[0]!==void 0?w[0]:!1,!((a||y)&&!f)){ue.next=11;break}return c=G.getFieldValue(),S(!0),Ae(a?1:Ue+1),ue.next=7,Object(ie.tb)({page:a?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:c==null?void 0:c.school_name,keyword:c==null?void 0:c.keyword});case 7:u=ue.sent,D(a?Object(je.a)(u.users):[].concat(Object(je.a)(R),Object(je.a)(u.users))),S(!1),((o=u.users)===null||o===void 0?void 0:o.length)<10&&_(!1);case 11:case"end":return ue.stop()}},n)}));return function(){return B.apply(this,arguments)}}(),K=function(){var B=Object(N.a)(d.a.mark(function n(){var a;return d.a.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!(H=="")){c.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),c.next=8;break;case 4:return c.next=6,Object(ie.b)(Object(ee.a)(Object(ee.a)({},F),{},{role:2,user_list:H.map(function(u){return{user_id:u}})}));case 6:a=c.sent,a.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/teachers")));case 8:case"end":return c.stop()}},n)}));return function(){return B.apply(this,arguments)}}(),be=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(n,a){return e.a.createElement(Ne.a,{value:a.numid,checked:H.includes(String(a.numid)),disabled:!!n})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(n,a){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(a.login),target:"_blank"},n||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,n||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(n){return n?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(n){return e.a.createElement($.a,{placement:"bottom",title:n},e.a.createElement("span",null,Ke()(n).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(n){if(n===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u8001\u5E08",visible:U.actionTabs.key==="\u6DFB\u52A0\u8001\u5E08",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function B(){return d.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:K();case 1:case"end":return a.stop()}},B)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(n,a){return a.value.toUpperCase().indexOf(n.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return Fe()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:be})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(n){Re()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:be,onRow:function(n){return{onClick:function(o){o.currentTarget.querySelector("input").disabled||ye(o.currentTarget.querySelector("input").value)}}}})))))},Kt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Gt),Yt=function(i){var m,A,U=i.classroomList,T=i.loading,v=i.dispatch,F=Object(Se.m)(),I=U.actionTabs,O=Object(r.useState)([]),oe=Object(h.a)(O,2),V=oe[0],j=oe[1],b=Object(r.useState)(!0),Q=Object(h.a)(b,2),y=Q[0],_=Q[1],t=Object(r.useState)(!1),L=Object(h.a)(t,2),f=L[0],S=L[1],x=k.a.useForm(),g=Object(h.a)(x,1),G=g[0],ae=Object(r.useState)([]),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)([]),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!0),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=Object(r.useRef)(),Ve=function(a){return a&&a0&&Y[0]!==void 0?Y[0]:!1,!(y&&!f)){fe.next=11;break}return u=G.getFieldValue(),S(!0),Ae(o?1:Ue+1),fe.next=7,Object(ie.tb)({page:o?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:u==null?void 0:u.school_name,keyword:u==null?void 0:u.keyword});case 7:w=fe.sent,S(!1),D(o?Object(je.a)(w.users):[].concat(Object(je.a)(R),Object(je.a)(w.users))),((c=w.users)===null||c===void 0?void 0:c.length)<10&&_(!1);case 11:case"end":return fe.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),be=function(){var n=Object(N.a)(d.a.mark(function a(){var o;return d.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(H=="")){u.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),u.next=8;break;case 4:return u.next=6,Object(ie.b)(Object(ee.a)(Object(ee.a)({},F),{},{role:3,user_list:H.map(function(w){return{user_id:w}})}));case 6:o=u.sent,o.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/teachers")));case 8:case"end":return u.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),B=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(a,o){return e.a.createElement(Ne.a,{value:o.numid,checked:H.includes(String(o.numid)),disabled:!!a})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(a,o){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(o.login),target:"_blank"},a||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(a){return a?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,Ke()(a).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(a){if(a===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u52A9\u6559",visible:U.actionTabs.key==="\u6DFB\u52A0\u52A9\u6559",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,style:{zIndex:"99999"},bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function n(){return d.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:be();case 1:case"end":return o.stop()}},n)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D",size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(a,o){return o.value.toUpperCase().indexOf(a.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return ye()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:B})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){K()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:B,onRow:function(a){return{onClick:function(c){c.currentTarget.querySelector("input").disabled||Re(c.currentTarget.querySelector("input").value)}}}})))))},Jt=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(Yt),qt=function(i){var m,A,U=i.classroomList,T=i.loading,v=i.dispatch,F=Object(Se.m)(),I=U.actionTabs,O=Object(r.useState)([]),oe=Object(h.a)(O,2),V=oe[0],j=oe[1],b=Object(r.useState)(!0),Q=Object(h.a)(b,2),y=Q[0],_=Q[1],t=Object(r.useState)(!1),L=Object(h.a)(t,2),f=L[0],S=L[1],x=k.a.useForm(),g=Object(h.a)(x,1),G=g[0],ae=Object(r.useState)([]),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)([]),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!0),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=Object(r.useRef)(),Ve=function(a){return a&&a0&&Y[0]!==void 0?Y[0]:!1,!(y&&!f)){fe.next=11;break}return u=G.getFieldValue(),S(!0),Ae(o?1:Ue+1),fe.next=7,Object(ie.tb)({page:o?1:Ue+1,container_id:F.coursesId,container_type:1,school_name:u==null?void 0:u.school_name,keyword:u==null?void 0:u.keyword,role:4});case 7:w=fe.sent,D(o?Object(je.a)(w.users):[].concat(Object(je.a)(R),Object(je.a)(w.users))),S(!1),((c=w.users)===null||c===void 0?void 0:c.length)<10&&_(!1);case 11:case"end":return fe.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),be=function(){var n=Object(N.a)(d.a.mark(function a(){var o;return d.a.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!(H=="")){u.next=4;break}q.b.error("\u8BF7\u9009\u62E9\u4EBA\u6570"),u.next=8;break;case 4:return u.next=6,Object(ie.a)(Object(ee.a)(Object(ee.a)({},F),{},{course_group_id:0,user_ids:H}));case 6:o=u.sent,o.status===0&&(q.b.success("\u6DFB\u52A0\u6210\u529F"),v({type:"classroomList/setActionTabs",payload:{}}),v({type:"classroomList/getClassroomTopBanner",payload:{id:F.coursesId}}),v({type:"teachers/getStudentsList",payload:Object(ee.a)({},F)}),re.c.push("/classrooms/".concat(F.coursesId,"/students")));case 8:case"end":return u.stop()}},a)}));return function(){return n.apply(this,arguments)}}(),B=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(a,o){return e.a.createElement(Ne.a,{value:o.numid,checked:H.includes(String(o.numid)),disabled:!!a})}},{title:"\u59D3\u540D",width:100,ellipsis:!0,dataIndex:"username",render:function(a,o){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement(Ie.Link,{className:"bold c-black",to:"/users/".concat(o.login),target:"_blank"},a||"--"))}},{title:"\u624B\u673A",width:100,dataIndex:"phone",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u90AE\u7BB1",dataIndex:"email",width:100,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u53F7/\u5DE5\u53F7",width:100,dataIndex:"student_number",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B66\u6821/\u5355\u4F4D",width:150,dataIndex:"school_name",ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u9662\u7CFB/\u90E8\u95E8",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,a||"--"))}},{title:"\u5B9E\u540D\u8BA4\u8BC1",dataIndex:"school_name",width:100,render:function(a){return a?"\u662F":"\u5426"}},{title:"\u6700\u540E\u767B\u5F55\u65F6\u95F4",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(a){return e.a.createElement($.a,{placement:"bottom",title:a},e.a.createElement("span",null,Ke()(a).format("YYYY-MM-DD HH:mm")))}},{title:"\u72B6\u6001",dataIndex:"added",width:80,render:function(a){if(a===1)return e.a.createElement("span",{className:"c-green"},"\u5DF2\u6DFB\u52A0")}}];return e.a.createElement(we.a,{centered:!0,title:"\u6DFB\u52A0\u5B66\u751F",visible:U.actionTabs.key==="\u6DFB\u52A0\u5B66\u751F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",width:1100,zIndex:9999,bodyStyle:{minHeight:200},onOk:Object(N.a)(d.a.mark(function n(){return d.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:be();case 1:case"end":return o.stop()}},n)})),onCancel:function(){Ee([]),v({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement(k.a,{layout:"inline",form:G,initialValues:{school_name:"",keyword:""},className:"mt10"},e.a.createElement(k.a.Item,{name:"keyword",label:"\u59D3\u540D\uFF1A"},e.a.createElement(Xe.a,{allowClear:!0,style:{width:370},size:"large",defaultValue:((m=I.selectArrs)===null||m===void 0?void 0:m.category_name)||((A=I.selectArrs)===null||A===void 0?void 0:A.name)})),e.a.createElement(k.a.Item,{name:"school_name",label:"\u5355\u4F4D\uFF1A"},e.a.createElement("div",{ref:ve},e.a.createElement(mt.a,{options:V,style:{width:400},size:"large",placeholder:"\u8BF7\u8F93\u5165\u5355\u4F4D\u540D\u79F0",getPopupContainer:function(){return ve.current},filterOption:function(a,o){return o.value.toUpperCase().indexOf(a.toUpperCase())!==-1}}))),e.a.createElement(k.a.Item,null,e.a.createElement(lt.a,{htmlType:"submit",type:"primary",size:"large",onClick:function(){return ye()}},"\u641C\u7D22"))),_e&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("E7E6"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u8BF7\u641C\u7D22\u8981\u6DFB\u52A0\u7684\u4EBA\u5458")),!_e&&R==""&&!f&&e.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},e.a.createElement("img",{src:s("FOrL"),width:"100",alt:""}),e.a.createElement("br",null),e.a.createElement("p",{className:"mt20"},"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!")),(!_e&&R!=""||f)&&e.a.createElement("section",null,e.a.createElement("div",{className:"flexd-table-header mt20"},e.a.createElement(nt.a,{pagination:!1,dataSource:[],columns:B})),e.a.createElement("div",{style:{maxHeight:260,overflow:"auto"}},e.a.createElement(Et.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(a){K()},hasMore:y,useWindow:!1},e.a.createElement(nt.a,{loading:f,showHeader:!1,pagination:!1,dataSource:R,columns:B,onRow:function(a){return{onClick:function(c){c.currentTarget.querySelector("input").disabled||Re(c.currentTarget.querySelector("input").value)}}}})))))},$t=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(qt),Le=s("1vsH"),ea=function(i){var m=i.classroomList,A=i.dispatch,U=i.user,T=Object(r.useState)(!1),v=Object(h.a)(T,2),F=v[0],I=v[1],O=k.a.useForm(),oe=Object(h.a)(O,1),V=oe[0],j=Object(Se.m)(),b=U.userInfo,Q=function(){A({type:"classroomList/setActionTabs",payload:{key:""}})};return Object(r.useEffect)(function(){m.actionTabs.key==="\u52A0\u5165\u8BFE\u5802"?!(b==null?void 0:b.login)||(b==null?void 0:b.login)==""?(A({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),Q()):(b==null?void 0:b.profile_completed)?I(!0):we.a.confirm({centered:!0,title:"\u63D0\u793A",content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){I(!0)},onCancel:function(){return Q()}}):I(!1)},[m.actionTabs.key]),e.a.createElement(we.a,{centered:!0,title:"\u52A0\u5165\u8BFE\u5802",visible:F,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(N.a)(d.a.mark(function y(){var _,t,L;return d.a.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,V.validateFields();case 2:return t=Object(ee.a)({},V.getFieldValue()),t==null||((_=t.identity)===null||_===void 0)||_.map(function(x){t[x]=1}),S.next=6,Object($e.a)("/api/courses/apply_to_join_course.json",{method:"post",body:Object(ee.a)({},t)});case 6:L=S.sent,console.log("/api/courses/apply_to_join_course.json",{method:"post",body:Object(ee.a)({},t)}),L.status===0&&(Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u52A0\u5165\u8BFE\u5802"]),q.b.success("\u52A0\u5165\u6210\u529F"),window.location.reload(!0));case 9:case"end":return S.stop()}},y)})),onCancel:function(){return Q()}},e.a.createElement("section",{className:"pr20 pt10 pl10"},e.a.createElement(k.a,{form:V,hideRequiredMark:!0},e.a.createElement(k.a.Item,{name:"invite_code",rules:[{required:!0,message:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801"}],label:e.a.createElement("div",{className:"tr",style:{width:100}},"\u8BFE\u5802\u9080\u8BF7\u7801")},e.a.createElement(Xe.a,{size:"large",placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801"})),e.a.createElement(k.a.Item,{name:"identity",label:e.a.createElement("div",{className:"tr",style:{width:100}},"\u8EAB\u4EFD")},e.a.createElement(Ne.a.Group,null,e.a.createElement(Ne.a,{value:"professor"},"\u6559\u5E08"),e.a.createElement(Ne.a,{value:"assistant_professor"},"\u52A9\u6559"),e.a.createElement(Ne.a,{value:"student"},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))))},ta=Object(re.a)(function(E){var i=E.classroomList,m=E.user;return{classroomList:i,user:m}})(ea),ka=s("OaEy"),ft=s("2fM7"),aa=function(i){var m,A=i.classroomList,U=i.loading,T=i.dispatch,v=Object(Se.m)(),F=Object(Se.l)(),I=Object(r.useState)(!1),O=Object(h.a)(I,2),oe=O[0],V=O[1],j=A.actionTabs,b=A.courseGroups,Q=A.allCourseGroups,y=k.a.useForm(),_=Object(h.a)(y,1),t=_[0];return Object(r.useEffect)(function(){A.actionTabs.key==="\u5207\u6362\u4E3A\u5B66\u751F"&&(T({type:"classroomList/getAllCourseGroup",payload:Object(ee.a)({},v)}),t.setFieldsValue({course_group_id:"0"}))},[A.actionTabs.key]),e.a.createElement(we.a,{centered:!0,title:"\u5207\u6362\u4E3A\u5B66\u751F",visible:A.actionTabs.key==="\u5207\u6362\u4E3A\u5B66\u751F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",bodyStyle:{minHeight:150},confirmLoading:oe,onOk:Object(N.a)(d.a.mark(function L(){var f;return d.a.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return V(!0),x.next=3,Object($e.a)("/api/courses/".concat(v.coursesId,"/switch_to_student.json"),{method:"post",body:t.getFieldValue()});case 3:f=x.sent,f.status===0&&(q.b.success("\u5207\u6362\u6210\u529F"),window.location.reload()),V(!1);case 6:case"end":return x.stop()}},L)})),onCancel:function(){T({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("p",null,"\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B"),e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement(k.a,{form:t,initialValues:Object(dt.a)({},"course_group_id","0")},e.a.createElement(He.a,{className:"mt30"},e.a.createElement(pe.a,null,"\u8FDB\u5165\uFF1A"),e.a.createElement(pe.a,{flex:"1"},e.a.createElement(k.a.Item,{name:"course_group_id",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u5F55\u540D\u79F0"}],noStyle:!0},e.a.createElement(ft.a,{defaultValue:"0",style:{width:"100%"}},e.a.createElement(ft.a.Option,{value:"0"},"\u672A\u5206\u73ED"),Q==null||((m=Q.course_groups)===null||m===void 0)?void 0:m.map(function(L,f){return e.a.createElement(ft.a.Option,{value:L.id},L.name)}))))))))},na=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(aa),xa=s("cWXX"),oa=s("/ezw"),it=s("0Owb"),ot=s("ngQI"),la={shixun_homework:"iconfont icon-shixunzuoye1",graduation:"iconfont icon-biyezhuanhuan",exercise:"iconfont font17 icon-kaoshishijuan1",poll:"iconfont font17 icon-kaoshiwenjuan1",common_homework:"iconfont icon-putongzuoye1",group_homework:"iconfont icon-fenzuzuoye2",attendance:"iconfont icon-qiandao1",announcement:"iconfont icon-gonggaolan",attachment:"iconfont icon-xuexiziyuan1",video:"iconfont font14 icon-shipinzhibo1",board:"iconfont icon-taolun2",course_group:"iconfont font18 icon-fenban2",statistics:"iconfont font17 icon-tongji3",template:"iconfont icon-mobanguanli2",online_learning:"iconfont icon-kechengxuexi"},sa=s("XBlR"),W=s.n(sa),te=s("xKgJ"),Ta=vt.a.TabPane,ua=function(i){var m,A,U,T=i.classroomList,v=i.globalSetting,F=i.user,I=i.loading,O=i.dispatch,oe=i.children,V=Object(pt.a)(i,["classroomList","globalSetting","user","loading","dispatch","children"]),j=Object(Se.m)(),b=Object(Se.l)(),Q=T.detailTopBanner,y=T.detailLeftMenus,_=Object(r.useState)([]),t=Object(h.a)(_,2),L=t[0],f=t[1],S=Object(r.useState)(-1),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=Object(r.useState)(0),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=F.userInfo,de=at.a.Content,Ue=at.a.Sider,Ae=Object(r.useState)(),Be=Object(h.a)(Ae,2),Ce=Be[0],H=Be[1],Ee=Object(r.useState)([]),Me=Object(h.a)(Ee,2),De=Me[0],_e=Me[1],se=Object(r.useState)([]),ve=Object(h.a)(se,2),Ve=ve[0],Fe=ve[1],ye=Object(r.useState)([]),Re=Object(h.a)(ye,2),K=Re[0],be=Re[1],B=Object(r.useState)(!1),n=Object(h.a)(B,2),a=n[0],o=n[1],c=[{label:"\u516C\u544A\u680F",value:"announcement"},{label:"\u5B9E\u8BAD\u4F5C\u4E1A",value:"shixun_homework"},{label:"\u666E\u901A\u4F5C\u4E1A",value:"common_homework"},((m=F.userInfo)===null||m===void 0?void 0:m.main_site)&&{label:"\u5206\u7EC4\u4F5C\u4E1A",value:"group_homework"},{label:"\u8BD5\u5377",value:"exercise"},{label:"\u95EE\u5377",value:"poll"},{label:"\u6559\u5B66\u8D44\u6599",value:"attachment"},{label:"\u89C6\u9891\u76F4\u64AD",value:"video"},{label:"\u8BA8\u8BBA",value:"board"},{label:"\u5206\u73ED",value:"course_group"},{label:"\u7EDF\u8BA1",value:"statistics"},{label:"\u7B7E\u5230",value:"attendance"},((A=F.userInfo)===null||A===void 0?void 0:A.admin)&&{label:"\u6A21\u677F\u7BA1\u7406",value:"template"}].filter(function(C){var l;return C?(v==null||((l=v.setting)===null||l===void 0)?void 0:l.is_local)?C.label!=="\u89C6\u9891\u76F4\u64AD":!0:!1});Object(r.useEffect)(function(){var C;if((C=T.detailLeftMenus)===null||C===void 0?void 0:C.course_modules){var l;f(JSON.parse(JSON.stringify((l=T.detailLeftMenus)===null||l===void 0?void 0:l.course_modules))),Y()}},[T.detailLeftMenus]),Object(r.useEffect)(function(){Y()},[b.pathname]);function u(){return w.apply(this,arguments)}function w(){return w=Object(N.a)(d.a.mark(function C(){var l;return d.a.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Object($e.a)("/api/courses/".concat(j==null?void 0:j.coursesId,"/modules_settings.json"),{method:"get"});case 2:l=p.sent,H(l),be(Object(je.a)(l==null?void 0:l.course_module_types));case 5:case"end":return p.stop()}},C)})),w.apply(this,arguments)}var Y=function(){var l,P;(l=T.detailLeftMenus)===null||l===void 0||((P=l.course_modules)===null||P===void 0)||P.map(function(p,me){(b.pathname.indexOf(p.category_url)>-1||yt(p))&&D(me)})},ue=function(){O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}})},fe=function(){var C=Object(N.a)(d.a.mark(function l(){var P,p;return d.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}});case 2:p=J.sent,re.c.push("".concat(p==null||((P=p.course_modules[0])===null||P===void 0)?void 0:P.category_url));case 4:case"end":return J.stop()}},l)}));return function(){return C.apply(this,arguments)}}(),M=function(l,P){we.a.confirm({centered:!0,title:"\u63D0\u793A",icon:e.a.createElement(ht.a,null),content:l,okText:"\u786E\u8BA4",onOk:function(){return P()},cancelText:"\u53D6\u6D88"})},ke=function(l,P){if(l.localName===P)return l;for(var p=0,me=l;me=me.parentNode;p++){if(me.localName===P)return me;if(me==document.documentElement)return!1}},ne=function(l){if(!l)return;console.log(l,444);var P=ke(l.target,"li");P.setAttribute("id","appointId")},Pe=function(){var C=Object(N.a)(d.a.mark(function l(P,p,me,J){var ce,ge,Oe,Ye,xe;return d.a.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:le.t0=P,le.next=le.t0===1?3:le.t0===2?7:le.t0===3?9:le.t0===4?11:le.t0===5?16:le.t0===6?18:20;break;case 3:return ge={category_id:p.id||p.category_id,parent_id:p.category_type==="attachment"?p.category_id:"",nodeModules:p,type:p.type},p.category_type==="attachment"&&(ge.category_id=y==null||((Oe=y.course_modules)===null||Oe===void 0||((Ye=Oe.filter(function(Z){return Z.type==="attachment"}))===null||Ye===void 0||((xe=Ye[0])===null||xe===void 0)))?void 0:xe.id),O({type:"classroomList/setActionTabs",payload:{key:"\u6DFB\u52A0\u76EE\u5F55",selectArrs:ge,cb:function(){ue()}}}),le.abrupt("break",20);case 7:return O({type:"classroomList/setActionTabs",payload:{key:"\u76EE\u5F55\u91CD\u547D\u540D",selectArrs:{name:p.name||p.category_name,category_id:p.category_id,main_id:p.id,category_type:p.category_type},cb:function(){ue()}}}),le.abrupt("break",20);case 9:return M(e.a.createElement("p",null,"\u9690\u85CF\u540E\u5C06\u4E0D\u518D\u663E\u793A\u6B64\u6A21\u5757,",e.a.createElement("br",null),"\u540E\u7EED\u53EF\u5728\u8BFE\u5802\u8BBE\u7F6E\u4E2D\u91CD\u65B0\u52FE\u9009\u6A21\u5757\u6062\u590D\u663E\u793A"),Object(N.a)(d.a.mark(function Z(){return d.a.wrap(function(Te){for(;;)switch(Te.prev=Te.next){case 0:return Te.next=2,Object(ie.mb)({id:p.id});case 2:ce=Te.sent,ce.status===0&&(q.b.success("\u64CD\u4F5C\u6210\u529F"),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}}));case 4:case"end":return Te.stop()}},Z)}))),le.abrupt("break",20);case 11:return le.next=13,Object(ie.wb)({id:p.id});case 13:return ce=le.sent,ce.status===0&&(q.b.success("\u64CD\u4F5C\u6210\u529F"),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}})),le.abrupt("break",20);case 16:return M(e.a.createElement("p",null,"\u8BE5\u76EE\u5F55\u4E0B\u7684\u5185\u5BB9\u5C06\u88AB\u79FB\u52A8\u5230\u7236\u76EE\u5F55,",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),Object(N.a)(d.a.mark(function Z(){var Je,Te,qe;return d.a.wrap(function(Qe){for(;;)switch(Qe.prev=Qe.next){case 0:if(!(p.category_type==="board")){Qe.next=6;break}return Qe.next=3,Object(ie.i)({id:p.category_id});case 3:ce=Qe.sent,Qe.next=9;break;case 6:return Qe.next=8,Object(ie.l)({id:p.category_id});case 8:ce=Qe.sent;case 9:ce.status===0&&(q.b.success("\u5220\u9664\u6210\u529F"),p.category_type==="board"?(qe=y==null||((Je=y.course_modules)===null||Je===void 0)?void 0:Je.filter(function(st){return(st==null?void 0:st.type)==="board"}),re.c.push("/classrooms/".concat(j.coursesId,"/").concat(p.category_type,"/").concat(qe==null||((Te=qe[0])===null||Te===void 0)?void 0:Te.main_id))):re.c.push("/classrooms/".concat(j.coursesId,"/").concat(p.category_type)),O({type:"classroomList/getClassroomLeftMenus",payload:{id:j.coursesId}}));case 10:case"end":return Qe.stop()}},Z)}))),le.abrupt("break",20);case 18:return O({type:"classroomList/setActionTabs",payload:{key:"\u65B0\u5EFA\u5206\u73ED",params:j}}),le.abrupt("break",20);case 20:case"end":return le.stop()}},l)}));return function(P,p,me,J){return C.apply(this,arguments)}}(),z=function(l){return!(l==="attendance"||l==="announcement"||l==="poll"||l==="graduation")},ze=function(l,P){return e.a.createElement("div",{className:W.a.leftMenuActions},(l.type!="course_group"&&l.main_id||l.category_type==="attachment"&&P===2)&&z(l.type)&&e.a.createElement("p",{className:"current",onClick:function(me){return Pe(1,l,P,me)}},"\u65B0\u5EFA\u76EE\u5F55"),l.type==="course_group"&&P===1&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(6,l,P)}},"\u65B0\u5EFA\u5206\u73ED"),e.a.createElement("p",{className:"current",onClick:function(me){return Pe(2,l,P,me)}},"\u91CD\u547D\u540D"),l.main_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(3,l,P)}},"\u9690\u85CF"),l.main_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(4,l,P)}},"\u7F6E\u9876"),l.category_id&&e.a.createElement("p",{className:"current",onClick:function(){return Pe(5,l,P)}},"\u5220\u9664"))},et=function(l,P){return P===1?l.type==="board"?"/classrooms/".concat(j.coursesId,"/").concat(l.type,"/").concat(l.main_id):l.type==="graduation"?"/classrooms/".concat(j.coursesId,"/graduation_topics"):"/classrooms/".concat(j.coursesId,"/").concat(l.type):(l.category_type==="messages"&&(l.category_type="board"),"/classrooms/".concat(j.coursesId,"/").concat(l.category_type,"/").concat(l.category_id))},Ut=function(){var l=b.pathname.split("/");_e(["".concat(l[3],"|").concat(j.coursesId)]),Fe(["".concat(l[3],"|").concat(j.coursesId),"".concat(l[3],"|").concat(l[4])])};Object(r.useEffect)(function(){try{var C=sessionStorage._nav_.split(","),l=sessionStorage._nav_open_.split(",");sessionStorage._nav_open_?_e(l):Ut(),Fe(C)}catch(P){Ut()}return function(){sessionStorage.removeItem("_nav_open_"),sessionStorage.removeItem("_nav_")}},[T.name,b==null?void 0:b.pathname]);var Ft=function(){var C=Object(N.a)(d.a.mark(function l(P){var p,me,J,ce,ge,Oe,Ye,xe,Ze;return d.a.wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(me=P.draggableId,J=P.source,ce=P.destination,ce){Z.next=3;break}return Z.abrupt("return",!1);case 3:if(ge=me.split("-"),Oe=ge[1],Ye=ge[2],!(((p=L[Oe])===null||p===void 0?void 0:p.type)==="board")){Z.next=12;break}return Z.next=9,Object(ie.qb)({id:ge[0],position:ce.index+1});case 9:xe=Z.sent,Z.next=15;break;case 12:return Z.next=14,Object(ie.pb)({id:ge[0],position:ce.index+1});case 14:xe=Z.sent;case 15:xe.status===0&&(ge.length===3?(Ze=L[Oe].second_category[Ye],L[Oe].second_category.splice(Ye,1),L[Oe].second_category.splice(ce.index,0,Ze)):(Ze=L[Oe].second_category[ge[2]].third_category[ge[3]],L[Oe].second_category[ge[2]].third_category.splice(ge[3],1),L[Oe].second_category[ge[2]].third_category.splice(ce.index,0,Ze)),f(Object(je.a)(L)));case 16:case"end":return Z.stop()}},l)}));return function(P){return C.apply(this,arguments)}}(),yt=function(l){return b.pathname.indexOf("student_statistics")>-1&&l.type==="statistics"};return e.a.createElement(Ue,{width:264,style:{marginTop:24,height:"auto",background:"none"}},e.a.createElement("section",{className:W.a.leftMenu},e.a.createElement(oa.a,{loading:!y.course_modules},Object(te.k)()&&e.a.createElement("div",{style:{paddingLeft:"25px",height:"56px",display:"flex",alignItems:"center",fontSize:"16px",color:"#000000",justifyContent:"space-between",paddingRight:"10px",borderBottom:"1px solid #efefef",fontWeight:"900"}},"\u8BFE\u5802\u6A21\u5757 ",e.a.createElement("span",{onClick:function(){o(!0),u()},style:{color:"#1890FF",cursor:"pointer",fontWeight:"400"}},"\u8BBE\u7F6E")),e.a.createElement(we.a,{visible:a,title:"\u8BFE\u5802\u6A21\u5757\u8BBE\u7F6E",centered:!0,onOk:Object(N.a)(d.a.mark(function C(){var l;return d.a.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!((K==null?void 0:K.length)<=0)){p.next=3;break}return q.b.info("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u8BFE\u5802\u6A21\u5757"),p.abrupt("return");case 3:return p.next=5,Object($e.a)("/api/courses/".concat(j==null?void 0:j.coursesId,"/update_modules_settings.json"),{method:"post",body:{course_module_types:K}});case 5:l=p.sent,(l==null?void 0:l.status)===0&&(fe(),o(!1));case 7:case"end":return p.stop()}},C)})),onCancel:function(){o(!1)}},e.a.createElement("div",{style:{padding:"24px"}},e.a.createElement("span",null,"\u901A\u8FC7\u52FE\u9009\u53EF\u4EE5\u663E\u793A/\u9690\u85CF\u6A21\u5757"),e.a.createElement(Ne.a.Group,{onChange:function(l){be(Object(je.a)(l))},style:{marginTop:"20px"},value:K},e.a.createElement(He.a,null,Ce==null||((U=Ce.course_modules)===null||U===void 0)?void 0:U.map(function(C,l){return e.a.createElement(pe.a,{span:6,style:{marginTop:"10px"}},e.a.createElement(Ne.a,{value:C.module_type,style:{fontSize:"14px"}},C.module_name))}))))),L==null?void 0:L.map(function(C,l){return e.a.createElement("ul",{key:l},e.a.createElement("li",{className:(b.pathname.indexOf(C.category_url)>-1||yt(C))&&W.a.actived,onClick:function(){b.pathname===C.category_url?R===-1?D(l):D(-1):re.c.push(C.category_url)}},e.a.createElement(He.a,{gutter:[0,26],align:"middle"},e.a.createElement(pe.a,{flex:"1",className:"pr30"},e.a.createElement("span",{className:"".concat(la[C.type])})," ",C.name),e.a.createElement(pe.a,{className:"tr"},e.a.createElement("span",{className:W.a.totalCount},C.task_count===0?"":C.task_count),Object(te.j)()&&C.type!=="statistics"&&e.a.createElement(ut.a,{getPopupContainer:function(p){return p.parentNode},destroyTooltipOnHide:!0,placement:"right",content:function(){return ze(C,1)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")}))))),e.a.createElement(ot.a,{onDragEnd:Ft},e.a.createElement(ot.c,{isDropDisabled:!Object(te.d)(),droppableId:String(C.id)},function(P,p){var me;return e.a.createElement("ul",Object(it.a)({ref:P.innerRef},P.droppableProps,{onScroll:function(){},className:R==l&&W.a.open}),(me=C.second_category)===null||me===void 0?void 0:me.map(function(J,ce){var ge;return e.a.createElement(ot.b,{draggableId:"".concat((ge=J.category_id)===null||ge===void 0?void 0:ge.toString(),"-").concat(l,"-").concat(ce),index:ce,key:J.category_id},function(Oe,Ye){return e.a.createElement("div",Object(it.a)({key:ce,ref:Oe.innerRef},Oe.draggableProps,Oe.dragHandleProps),e.a.createElement("li",{className:b.pathname.indexOf(J.second_category_url)>-1&&W.a.actived2},e.a.createElement(He.a,{align:"middle"},e.a.createElement(pe.a,{span:20},e.a.createElement(Ie.Link,{className:["font14",W.a.menuText].join(" "),style:{marginLeft:16,padding:"16px 2px"},to:J.second_category_url,onClick:function(Ze){Ze.preventDefault(),b.pathname.indexOf(J.second_category_url)>-1?g===-1?G(ce):G(-1):(G(ce),re.c.push(J.second_category_url))}},J.category_name)),e.a.createElement(pe.a,{span:4,className:"tr"},Object(te.j)()&&C.type.indexOf("statistics")<0&&(J==null?void 0:J.category_name)!=="\u6839\u76EE\u5F55"&&e.a.createElement(ut.a,{getPopupContainer:function(Ze){return Ze.parentNode.parentNode},placement:"right",content:function(){return ze(J,2)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")})),J.category_count!=0&&e.a.createElement("span",{className:W.a.totalCount},J.category_count)))),J.third_category&&e.a.createElement(ot.a,{onDragEnd:Ft},e.a.createElement(ot.c,{isDropDisabled:!Object(te.d)(),droppableId:String(J.category_id)},function(xe,Ze){var le;return e.a.createElement("ul",Object(it.a)({ref:xe.innerRef},xe.droppableProps,{onScroll:function(){},className:g===ce&&W.a.open}),(le=J.third_category)===null||le===void 0?void 0:le.map(function(Z,Je){var Te;return e.a.createElement(ot.b,{draggableId:"".concat((Te=Z.category_id)===null||Te===void 0?void 0:Te.toString(),"-").concat(l,"-").concat(ce,"-").concat(Je),index:Je,key:Z.category_id},function(qe,fa){return e.a.createElement("li",Object(it.a)({key:Je,ref:qe.innerRef},qe.draggableProps,qe.dragHandleProps),e.a.createElement(He.a,{align:"middle",className:b.pathname.indexOf(Z.second_category_url)>-1&&W.a.actived2},e.a.createElement(pe.a,{flex:"1"},e.a.createElement(Ie.Link,{className:["font14",W.a.menuText].join(" "),to:et(Z,3),style:{marginLeft:9,padding:"16px 0px"}},Z.category_name)),e.a.createElement(pe.a,null,Object(te.j)()&&e.a.createElement(ut.a,{placement:"right",getPopupContainer:function(st){return st.parentNode.parentNode},content:function(){return ze(Z,3)},trigger:"hover"},e.a.createElement("span",{className:["iconfont icon-sandian",W.a.actions].join(" ")})),Z.category_count!=0&&e.a.createElement("span",{className:W.a.totalCount},Z.category_count))))})}))})))})}))})))}))))},ra=Object(re.a)(function(E){var i=E.classroomList,m=E.loading,A=E.globalSetting,U=E.user;return{classroomList:i,globalSetting:A,user:U,loading:m.models.index}})(ua),ia=s("m3rI"),ca=s("4U8T"),Ct=s.n(ca),da=function(i){var m,A,U,T,v=i.classroomList,F=i.loading,I=i.dispatch,O=Object(Se.m)(),oe=Object(r.useState)(!1),V=Object(h.a)(oe,2),j=V[0],b=V[1],Q=k.a.useForm(),y=Object(h.a)(Q,1),_=y[0];Object(r.useEffect)(function(){var f;v.actionTabs.key==="\u586B\u5199\u6155\u8BFE\u8D44\u6599"&&((f=v.detailTopBanner)===null||f===void 0?void 0:f.mooc_user_id)&&t()},[v.actionTabs.key,(m=v.detailTopBanner)===null||m===void 0?void 0:m.mooc_user_id]);var t=function(){var f=Object(N.a)(d.a.mark(function S(){var x,g;return d.a.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,Object(ie.eb)({coursesId:O.coursesId,user_id:(x=v.detailTopBanner)===null||x===void 0?void 0:x.mooc_user_id});case 2:g=ae.sent,(g==null?void 0:g.status)>-1&&_.setFieldsValue(Object(ee.a)({},g==null?void 0:g.mooc_user));case 4:case"end":return ae.stop()}},S)}));return function(){return f.apply(this,arguments)}}(),L=function(){var f=Object(N.a)(d.a.mark(function S(){var x,g,G,ae,X;return d.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(!Object.keys(_.getFieldsValue()).every(function(he){var de;return!((de=_.getFieldsValue())===null||de===void 0?void 0:de[he])})){D.next=2;break}return D.abrupt("return",q.b.info("\u8BF7\u81F3\u5C11\u586B\u5199\u4E00\u9879\u8D26\u53F7\u4FE1\u606F"));case 2:if(!_.getFieldError("email").length){D.next=4;break}return D.abrupt("return");case 4:if(b(!0),G=!!((x=v.detailTopBanner)===null||x===void 0?void 0:x.mooc_user_id),ae=Object(ee.a)({coursesId:O.coursesId,user_id:(g=v.detailTopBanner)===null||g===void 0?void 0:g.mooc_user_id},_.getFieldsValue()),!G){D.next=13;break}return D.next=10,Object(ie.Cb)(ae);case 10:D.t0=D.sent,D.next=16;break;case 13:return D.next=15,Object(ie.g)(ae);case 15:D.t0=D.sent;case 16:X=D.t0,b(!1),(X==null?void 0:X.status)>-1&&(q.b.info(G?"\u4FEE\u6539\u6210\u529F":"\u6DFB\u52A0\u6210\u529F"),I({type:"classroomList/getClassroomTopBanner",payload:{id:ae.coursesId}}),I({type:"classroomList/setActionTabs",payload:{}}));case 19:case"end":return D.stop()}},S)}));return function(){return f.apply(this,arguments)}}();return e.a.createElement(we.a,{centered:!0,title:"\u586B\u5199\u8D44\u6599",visible:v.actionTabs.key==="\u586B\u5199\u6155\u8BFE\u8D44\u6599",okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",width:760,bodyStyle:{minHeight:150},confirmLoading:j,className:Ct.a.modal,onOk:L,onCancel:function(){I({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",{className:"pl30 pr30"},e.a.createElement("div",{className:Ct.a.tip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-tianxiedisanfangmuke font14 mr5 icon-jingshi1 c-yellow-feb"}),e.a.createElement("span",{className:"c-grey-333"},"1.\u8BF7\u586B\u5199\u4F60\u5728"),e.a.createElement("span",{className:"c-light-primary"},v==null||((A=v.detailTopBanner)===null||A===void 0)?void 0:A.third_party_name),e.a.createElement("span",{className:"c-grey-333"},"\u5E73\u53F0\u7684\u8D26\u53F7\u8D44\u6599\uFF1B")),e.a.createElement("p",{className:"c-grey-333 ml20"},"2.\u8BE5\u8BFE\u7A0B\u652F\u6301\u4E3A\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u63D0\u4F9B\u6210\u7EE9\uFF0C\u4E3A\u4E86\u4FDD\u8BC1\u4F60\u6210\u7EE9\u7684\u51C6\u786E\u65E0\u8BEF\uFF0C\u8BF7\u5982\u5B9E\u586B\u5199\u76F8\u5173\u4FE1\u606F\u3002")),e.a.createElement(k.a,{form:_,labelCol:{span:6},wrapperCol:{span:12},labelAlign:"right"},e.a.createElement(k.a.Item,{label:"\u7528\u6237\u6635\u79F0\uFF1A",name:"name"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6635\u79F0"})),e.a.createElement(k.a.Item,{label:"\u7528\u6237id\uFF1A",name:"mooc_user_id"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237id"})),e.a.createElement(k.a.Item,{label:"\u7528\u6237\u90AE\u7BB1\uFF1A",name:"email",rules:[{type:"email",message:"\u8BF7\u586B\u5199\u6B63\u786E\u7684\u7528\u6237\u90AE\u7BB1"}]},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u90AE\u7BB1"})),e.a.createElement(k.a.Item,{label:"\u771F\u5B9E\u59D3\u540D\uFF1A",name:"real_name"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})),e.a.createElement(k.a.Item,{label:"\u5B66\u53F7\uFF1A",name:"student_id"},e.a.createElement(Xe.a,{placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),e.a.createElement("p",{className:"font14 c-grey-999 mt10 tc"},"\u203B \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732!"),((U=v.actionTabs)===null||U===void 0||((T=U.params)===null||T===void 0)?void 0:T.showHint)&&e.a.createElement(Ne.a,{className:"font14 c-grey-999 mt10",defaultChecked:!1,onChange:function(S){S.target.checked?window.localStorage.setItem("classrooms-mooc-modal-hint-flag","1"):window.localStorage.removeItem("classrooms-mooc-modal-hint-flag")}},"\u4E0D\u518D\u63D0\u793A")))},_a=Object(re.a)(function(E){var i=E.classroomList,m=E.loading;return{classroomList:i,loading:m}})(da),Ma=vt.a.TabPane,Na=jt.a.SubMenu,ma=at.a.Content,Ia=at.a.Sider,Xa=[{}],Ea=function(i){var m,A,U,T,v,F,I,O=i.classroomList,oe=i.globalSetting,V=i.user,j=i.loading,b=i.dispatch,Q=i.children,y=Object(pt.a)(i,["classroomList","globalSetting","user","loading","dispatch","children"]),_=y.match.params,t=O.detailTopBanner,L=O.detailLeftMenus,f=V.userInfo,S=Object(r.useState)(["shixun_homework|1309"]),x=Object(h.a)(S,2),g=x[0],G=x[1],ae=Object(r.useState)(),X=Object(h.a)(ae,2),R=X[0],D=X[1],he=Object(r.useState)(!1),de=Object(h.a)(he,2),Ue=de[0],Ae=de[1],Be=Object(r.useState)(!1),Ce=Object(h.a)(Be,2),H=Ce[0],Ee=Ce[1],Me=Object(r.useState)(!1),De=Object(h.a)(Me,2),_e=De[0],se=De[1],ve=[{name:"\u6DFB\u52A0\u8001\u5E08",icon:e.a.createElement(ct,{className:"mr5",component:Xt})},{name:"\u6DFB\u52A0\u52A9\u6559",icon:e.a.createElement(ct,{className:"mr5",component:It})},{name:"\u6DFB\u52A0\u5B66\u751F",icon:e.a.createElement(ct,{className:"mr5",component:Nt})}].filter(function(o){return Object(te.l)()?o.name!=="\u6DFB\u52A0\u8001\u5E08":!0});Object(r.useEffect)(function(){return se((t==null?void 0:t.student_count)>=10?!1:H),function(){se(!1)}},[t]);var Ve={5:{text:"\u5982\u679C\u5206\u73ED\u5355\u72EC\u8BBE\u7F6E\u53D1\u5E03\u5185\u5BB9\uFF08\u5B9E\u8BAD\u4F5C\u4E1A\u3001\u666E\u901A\u4F5C\u4E1A\u3001\u8BD5\u5377\u7B49\uFF09\uFF0C \u9700\u8981\u52A0\u5165\u5206\u73ED\u624D\u80FD\u67E5\u770B",url:"/api/courses/".concat(_.coursesId,"/switch_to_student.json")},6:{text:"\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u6559\u5E08\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",url:"/api/courses/".concat(_.coursesId,"/switch_to_teacher.json")},7:{text:"\u7531\u5B66\u751F\u8EAB\u4EFD\u5207\u6362\u81F3\u52A9\u6559\uFF0C\u62E5\u6709\u6DFB\u52A0\u6210\u5458\u3001\u53D1\u5E03\u4F5C\u4E1A\u7B49\u7BA1\u7406\u6743\u9650",url:"/api/courses/".concat(_.coursesId,"/switch_to_assistant.json")}},Fe=function(){b({type:"classroomList/getClassroomLeftMenus",payload:{id:_.coursesId}})},ye=function(){b({type:"classroomList/getClassroomTopBanner",payload:{id:_.coursesId}})},Re=function(c,u){we.a.confirm({centered:!0,title:"\u63D0\u793A",icon:e.a.createElement(ht.a,null),content:c,okText:"\u786E\u8BA4",onOk:function(){return u()},cancelText:"\u53D6\u6D88"})},K=function(){var o=Object(N.a)(d.a.mark(function c(u){var w,Y,ue;return d.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:M.t0=u,M.next=M.t0===0?3:M.t0===1?8:M.t0===2?17:M.t0===3?20:M.t0===4?23:M.t0===5?26:M.t0===6||M.t0===7?29:M.t0===8?31:40;break;case 3:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u8BBE\u4E3A\u516C\u5F00/\u79C1\u6709"]),ue=e.a.createElement("p",null,"\u8BBE\u4E3A\u516C\u5F00\u540E\uFF0C\u975E\u8BFE\u5802\u6210\u5458\u4E5F\u53EF\u4EE5\u8BBF\u95EE\u67E5\u770B",e.a.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u8BBE\u4E3A\u516C\u5F00\uFF1F"),t.is_public&&(ue=e.a.createElement("p",null,"\u60A8\u786E\u5B9A\u8981\u8BBE\u7F6E\u4E3A\u79C1\u6709?")),Re(ue,Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.vb)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 4:case"end":return z.stop()}},ke)}))),M.abrupt("break",40);case 8:if(Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u505C\u7528/\u542F\u7528\u9080\u8BF7\u7801"]),!(t==null?void 0:t.invite_code)){M.next=13;break}Re(e.a.createElement("p",null,"\u8BFE\u5802\u9080\u8BF7\u7801\u505C\u7528\u540E\uFF0C\u7528\u6237\u4E0D\u80FD\u4E3B\u52A8\u52A0\u5165\u8BE5\u8BFE\u5802\u4E86",e.a.createElement("br",null),"\u60A8\u662F\u5426\u786E\u8BA4\u505C\u7528?"),Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.ub)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 4:case"end":return z.stop()}},ke)}))),M.next=16;break;case 13:return M.next=15,Object(ie.ub)(Object(ee.a)({},_));case 15:Y=M.sent;case 16:return M.abrupt("break",40);case 17:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u7F16\u8F91\u8BFE\u5802"]),(t==null?void 0:t.excellent)?re.c.push("/classrooms/".concat(_.coursesId,"/newgolds/settings")):re.c.push("/classrooms/".concat(_.coursesId,"/edit")),M.abrupt("break",40);case 20:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u590D\u5236\u8BFE\u5802"]),Re(e.a.createElement("p",null,"\u201C\u590D\u5236\u201D\u529F\u80FD\u5C06\u4F1A\u4E3A\u60A8\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u8BFE\u5802",e.a.createElement("br",null),"\u65E7\u8BFE\u5802\u7684\u4F5C\u4E1A\u3001\u8D44\u6E90\u3001\u8BD5\u5377\u7B49\u90FD\u5C06\u88AB\u590D\u5236\u5230\u65B0\u7684\u8BFE\u5802\u91CC\u9762",e.a.createElement("br",null),"\u8BF7\u95EE\u662F\u5426\u7EE7\u7EED\uFF1F"),Object(N.a)(d.a.mark(function ke(){var ne,Pe;return d.a.wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:return ze.next=2,Object(ie.n)(Object(ee.a)({},_));case 2:ne=ze.sent,(ne==null?void 0:ne.new_course_id)&&(q.b.success("\u590D\u5236\u6210\u529F"),Pe=y.location.pathname.split("/"),Pe[2]=ne.new_course_id,y.history.replace(Pe.join("/")));case 4:case"end":return ze.stop()}},ke)}))),M.abrupt("break",40);case 23:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u5220\u9664\u8BFE\u5802"]),Re("\u8BFE\u5802\u5220\u9664\u540E\u6570\u636E\u5C06\u65E0\u6CD5\u6062\u590D\uFF0C\u662F\u5426\u786E\u5B9A\u5220\u9664\uFF1F",Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.j)(Object(ee.a)({},_));case 2:ne=z.sent,(ne==null?void 0:ne.status)===0&&(q.b.success("\u5220\u9664\u6210\u529F"),y.history.replace("/classrooms/index"));case 4:case"end":return z.stop()}},ke)}))),M.abrupt("break",40);case 26:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u5207\u6362\u4E3A\u5B66\u751F"]),b({type:"classroomList/setActionTabs",payload:{key:"\u5207\u6362\u4E3A\u5B66\u751F"}}),M.abrupt("break",40);case 29:return we.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5207\u6362\u8EAB\u4EFD",content:Ve[u].text,onOk:function(){var ke=Object(N.a)(d.a.mark(function Pe(){var z;return d.a.wrap(function(et){for(;;)switch(et.prev=et.next){case 0:return Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5",u==6?"\u5207\u6362\u4E3A\u8001\u5E08":" \u5207\u6362\u4E3A\u52A9\u6559"]),et.next=3,Object($e.a)(Ve[u].url,{method:"post"});case 3:z=et.sent,z.status===0&&(q.b.success("\u5207\u6362\u6210\u529F"),window.location.reload());case 5:case"end":return et.stop()}},Pe)}));function ne(){return ke.apply(this,arguments)}return ne}()}),M.abrupt("break",40);case 31:if(!(t==null?void 0:t.invite_code)){M.next=36;break}Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u9000\u51FA\u8BFE\u5802"]),Re(e.a.createElement("p",null,"\u9000\u51FA\u540E\u60A8\u5C06\u4E0D\u518D\u662F\u672C\u8BFE\u5802\u7684\u6210\u5458,\u4F5C\u54C1\u5C06\u5168\u90E8\u88AB\u5220\u9664"),Object(N.a)(d.a.mark(function ke(){var ne;return d.a.wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.next=2,Object(ie.o)(Object(ee.a)({},_));case 2:Y=z.sent,((ne=Y)===null||ne===void 0?void 0:ne.status)===0&&(q.b.success("\u9000\u51FA\u6210\u529F"),re.c.push("/users/".concat(f.login)));case 4:case"end":return z.stop()}},ke)}))),M.next=39;break;case 36:return M.next=38,Object(ie.ub)(Object(ee.a)({},_));case 38:Y=M.sent;case 39:return M.abrupt("break",40);case 40:((w=Y)===null||w===void 0?void 0:w.status)===0&&(q.b.success("\u8BBE\u7F6E\u6210\u529F"),ye());case 41:case"end":return M.stop()}},c)}));return function(u){return o.apply(this,arguments)}}(),be=e.a.createElement("div",{className:"tc current"},(t==null?void 0:t.excellent)?e.a.createElement(e.a.Fragment,null,Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(2)}},"\u7F16\u8F91\u8BFE\u5802"),Object(te.g)()&&e.a.createElement("p",{onClick:function(){return K(4)}},"\u5220\u9664")):e.a.createElement(e.a.Fragment,null,(t==null?void 0:t.switch_to_student)&&e.a.createElement("p",{onClick:function(){return K(5)}},"\u5207\u6362\u4E3A\u5B66\u751F"),(t==null?void 0:t.switch_to_teacher)&&e.a.createElement("p",{onClick:function(){return K(6)}},"\u5207\u6362\u4E3A\u8001\u5E08"),(t==null?void 0:t.switch_to_assistant)&&e.a.createElement("p",{onClick:function(){return K(7)}},"\u5207\u6362\u4E3A\u52A9\u6559"),Object(te.h)()&&e.a.createElement("p",{onClick:function(){return K(0)}},(t==null?void 0:t.is_public)?"\u8BBE\u4E3A\u79C1\u6709":"\u8BBE\u4E3A\u516C\u5F00"),Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(2)}},"\u7F16\u8F91\u8BFE\u5802"),Object(te.d)()&&e.a.createElement("p",{onClick:function(){return K(3)}},"\u590D\u5236"),Object(te.t)()&&e.a.createElement("p",{onClick:function(){return K(8)}},"\u9000\u51FA\u8BFE\u5802"),Object(te.h)()&&e.a.createElement("p",{onClick:function(){return K(4)}},"\u5220\u9664")));Object(r.useEffect)(function(){var o;if(V==null||((o=V.userInfo)===null||o===void 0)?void 0:o.course)if(Object(te.t)()){se(!1);return}else{var c,u=JSON.parse((c=localStorage)===null||c===void 0?void 0:c.getItem("coursesIdstimies"));if((u==null?void 0:u.length)>0){var w=u.filter(function(Y){return Y.coursesId===(_==null?void 0:_.coursesId)});(w==null?void 0:w.length)>0?Ke()(w[0].time).add(parseInt(w[0].Tooltiptype),"days")-1&&(c="graduation"),G(["".concat(c,"|").concat(y.match.params.coursesId)])},[y.location.pathname]),(t==null?void 0:t.name)&&(document.title=(t==null?void 0:t.name)||"\u5934\u6B4C,EduCoder,\u4FE1\u606F\u6280\u672F\u5B9E\u8DF5\u6559\u5B66,\u7CBE\u54C1\u8BFE\u7A0B\u7F51,\u6155\u8BFEMOOC");var B=function(){return(t==null?void 0:t.invite_code_halt)===0?e.a.createElement("span",null,"\u6210\u5458\u53EF\u4EE5\u901A\u8FC7\u9080\u8BF7\u7801\u4E3B\u52A8\u52A0\u5165\u8BFE\u5802",e.a.createElement("br",null),"\u70B9\u51FB\u7ACB\u523B\u590D\u5236\u9080\u8BF7\u7801"):(t==null?void 0:t.invite_code_halt)===2?e.a.createElement("span",null,"\u5F53\u524D\u9080\u8BF7\u7801\u5DF2\u5BF9\u5B66\u751F\u505C\u7528",e.a.createElement("br",null),"\u7528\u6237\u53EA\u80FD\u4EE5\u8001\u5E08/\u52A9\u6559\u8EAB\u4EFD\u7533\u8BF7\u52A0\u5165\u8BFE\u5802"):null};Object(r.useEffect)(function(){if(t==null?void 0:t.professors){var o,c,u="";t==null||((o=t.professors)===null||o===void 0)||o.map(function(w,Y){var ue,fe;Y===(t==null||((ue=t.professors)===null||ue===void 0)?void 0:ue.length)-1&&(t==null||((fe=t.assistants)===null||fe===void 0)?void 0:fe.length)===0?u+=w:u+=w+"\u3001"}),t==null||((c=t.assistants)===null||c===void 0)||c.map(function(w,Y){var ue;Y===(t==null||((ue=t.assistants)===null||ue===void 0)?void 0:ue.length)-1?u+=w+"\uFF08\u52A9\u6559\uFF09":u+=w+"\uFF08\u52A9\u6559\uFF09\u3001"}),D(u)}},[t]);var n=function(){return e.a.createElement("div",null,e.a.createElement($.a,{title:e.a.createElement("span",{className:"c-black"},"\u65B0\u6536\u5230",t==null?void 0:t.teacher_applies_count,"\u6761\u52A0\u5165\u8BFE\u5802\u7684\u7533\u8BF7 ",e.a.createElement(Ie.Link,{to:"/classrooms/".concat(_.coursesId,"/teachers?tab=1"),className:"c-orange"},"\u53BB\u5BA1\u6279")),color:"#FFF",key:"#FFF",defaultVisible:t.teacher_applies_count>0,visible:t.teacher_applies_count>0},e.a.createElement(Ie.Link,{className:"c-white",to:"/classrooms/".concat(_.coursesId,"/teachers")},"\u6559\u5E08",e.a.createElement("span",{className:"ml5"},t.teacher_count)),e.a.createElement("span",{className:"ml10 mr10"},"|"),e.a.createElement(Ie.Link,{className:"c-white",to:"/classrooms/".concat(_.coursesId,"/students")},"\u5B66\u751F",e.a.createElement("span",{className:"ml5"},t.student_count))))},a="\u3010\u6559\u5B66\u8BFE\u5802\u9080\u8BF7\u3011".concat(t==null?void 0:t.copy_teacher_name,"\u8001\u5E08\u9080\u8BF7\u60A8\u52A0\u5165\u5934\u6B4C\u5E73\u53F0\u6559\u5B66\u8BFE\u5802-\u300A").concat(t==null?void 0:t.name,`\u300B\uFF0C\u60A8\u53EF\u4EE5\u590D\u5236\u9080\u8BF7\u7801\uFF0C\u5728\u4E0B\u65B9\u7684\u94FE\u63A5\u4E2D\uFF0C\u70B9\u51FB\u201C\u52A0\u5165\u8BFE\u5802\u201D\u6309\u94AE\u52A0\u5165\u8BE5\u6559\u5B66\u8BFE\u5802\u3002 \u94FE\u63A5\uFF1Ahttps://www.educoder.net/classrooms \u9080\u8BF7\u7801\uFF1A`).concat(t==null?void 0:t.invite_code);return e.a.createElement("section",{className:W.a.bg},e.a.createElement("section",{className:W.a.classroomInfo},e.a.createElement("aside",{className:"edu-container"},e.a.createElement("aside",{className:W.a.title},e.a.createElement("div",{className:W.a.titleLeft},e.a.createElement("strong",null,t.name),(t==null?void 0:t.excellent)&&e.a.createElement("span",{className:"tag-style bg-orange ml20"},"\u5F00\u653E\u8BFE\u7A0B"),!Object(te.c)()&&e.a.createElement("span",{className:"tag-style bg-blue ml20"},(t==null?void 0:t.is_public)?"\u516C\u5F00":"\u79C1\u6709"),Object(te.c)()&&e.a.createElement("span",{className:"tag-style bg-grey-ede c-light-black ml20"},"\u5DF2\u7ED3\u675F"),e.a.createElement("br",null),!!t.credit&&e.a.createElement("span",null,"\u5B66\u5206 ",t.credit),!!t.class_period&&e.a.createElement("span",null,e.a.createElement("span",{className:"ml5 mr5"},"|"),"\u5B66\u65F6 ",t.class_period)),e.a.createElement("div",{className:W.a.titleRight,style:{width:"300px",height:"20px"}},(t==null?void 0:t.course_identity)<6&&!(t==null?void 0:t.excellent)&&e.a.createElement(e.a.Fragment,null,e.a.createElement("strong",{className:"font14"},"\u9080\u8BF7\u7801\uFF1A"),e.a.createElement(Pt.a,{zIndex:1,cancelText:"",overlayClassName:W.a.tipJoin,overlayStyle:{width:270},visible:_e,placement:"bottom",title:e.a.createElement("span",{style:{color:"#000",fontSize:14,fontWeight:200}},"\u590D\u5236\u5E76\u53D1\u7ED9\u5B66\u751F\uFF0C\u9080\u8BF7\u5B66\u751F\u5FEB\u901F\u52A0\u5165",e.a.createElement("br",null),e.a.createElement("div",{style:{borderBottom:"1px solid #efefef",marginTop:"12px",marginLeft:-18}}),e.a.createElement(He.a,{className:"mt10"},e.a.createElement(pe.a,{flex:"1",style:{textAlign:"right",marginRight:10}},e.a.createElement(Ne.a,{style:{marginLeft:-18,color:"#999"},onChange:function(c){Ae(c.target.checked)}},t.student_count===0?"\u4ECA\u5929\u4E0D\u518D\u63D0\u793A":"\u672C\u5468\u4E0D\u518D\u63D0\u793A")),e.a.createElement(pe.a,null,e.a.createElement(lt.a,{size:"small",type:"primary"},e.a.createElement("span",{style:{cursor:"pointer"},onClick:function(){if(Object(Le.p)(a),Ue){if(localStorage.getItem("coursesIdstimies")){var c=JSON.parse(localStorage.getItem("coursesIdstimies"));c.filter(function(u){return u.coursesId===_.coursesId}).length>0||(c.push({coursesId:_.coursesId,time:new Date,Tooltiptype:t.student_count===0?"1":"7"}),localStorage.setItem("coursesIdstimies",JSON.stringify(c)))}else localStorage.setItem("coursesIdstimies",JSON.stringify([{coursesId:_.coursesId,time:new Date,Tooltiptype:t.student_count===0?"1":"7"}]));se(!1)}else se(!1)}},"\u786E\u5B9A")))))},e.a.createElement("strong",{className:"font14"},e.a.createElement("span",{className:(t==null?void 0:t.invite_code_halt)===1?"":"c-yellow"},(t==null?void 0:t.invite_code_halt)===1?"\u5DF2\u505C\u7528":t==null?void 0:t.invite_code))),(t==null?void 0:t.invite_code_halt)!==1&&e.a.createElement($.a,{placement:"bottom",title:B()},e.a.createElement("span",{onClick:function(){Object(Le.p)(a),Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u590D\u5236\u9080\u8BF7\u7801"])},className:"iconfont icon-fuzhi current ml10"}))),(f==null||((m=f.course)===null||m===void 0)?void 0:m.course_role)===8&&e.a.createElement("span",{className:"c-white ml15"},"\u5F53\u524D\u8EAB\u4EFD\uFF1A\u8001\u5E08 "),(f==null||((A=f.course)===null||A===void 0)?void 0:A.course_role)===5&&e.a.createElement("span",{className:"c-white ml15"},"\u5F53\u524D\u8EAB\u4EFD\uFF1A\u8001\u5E08 "),(f==null||((U=f.course)===null||U===void 0)?void 0:U.course_role)===12&&e.a.createElement("span",{className:"c-white ml15"},"\u5F53\u524D\u8EAB\u4EFD\uFF1A\u52A9\u6559 "),(f==null||((T=f.course)===null||T===void 0)?void 0:T.course_role)===15&&e.a.createElement("span",{className:"c-white ml15"},"\u5F53\u524D\u8EAB\u4EFD\uFF1A\u5B66\u751F "),Object(te.i)()&&e.a.createElement("span",{className:"ml10 mr10"},"|"),Object(te.i)()&&e.a.createElement(ut.a,{placement:"bottom",content:be,trigger:"hover"},e.a.createElement(Mt,{className:"font16 current"})))),e.a.createElement(He.a,null,e.a.createElement(pe.a,{flex:1},e.a.createElement("aside",{className:W.a.classroomUser},e.a.createElement("p",{className:W.a.headPic},e.a.createElement(Ie.Link,{to:"/users/".concat(t==null?void 0:t.teacher_login,"/classrooms")},e.a.createElement("img",{src:ia.a.IMG_SERVER+"/images/"+t.teacher_img,alt:""}))),e.a.createElement("p",{className:W.a.teacherInfo},e.a.createElement(Ie.Link,{to:"/users/".concat(t==null?void 0:t.teacher_login,"/classrooms")},e.a.createElement("strong",{className:"c-white"},t.teacher_name)),e.a.createElement("br",null),t.teacher_school))),Object(te.s)()&&e.a.createElement(pe.a,null,e.a.createElement(lt.a,{onClick:function(){return b({type:"classroomList/setActionTabs",payload:{key:"\u52A0\u5165\u8BFE\u5802"}})},size:"large",type:"primary",className:W.a.joinCouses},"\u52A0\u5165\u8BFE\u5802"))),e.a.createElement("aside",{className:W.a.classroomDescBg}),e.a.createElement("aside",{className:W.a.classroomDesc},e.a.createElement("div",null,(t==null?void 0:t.excellent)&&Object(te.d)()&&e.a.createElement(n,null),!(t==null?void 0:t.excellent)&&e.a.createElement(n,null)),e.a.createElement("div",null,Object(te.d)()&&ve.map(function(o,c){return e.a.createElement("span",{key:c,onClick:function(){Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5",o.name]),b({type:"classroomList/setActionTabs",payload:{key:o.name}})}},o.icon,o.name)}),Object(te.t)()&&!(t==null?void 0:t.excellent)&&(t==null?void 0:t.group_name)&&e.a.createElement(Ie.Link,{className:"c-white",to:"/classrooms/".concat(_.coursesId,"/course_group")},e.a.createElement("span",{style:{fontSize:"14px"}},"\u4F60\u5F53\u524D\u6240\u5728\u73ED\u7EA7\uFF1A"),e.a.createElement($.a,{title:(t==null||((v=t.group_name)===null||v===void 0)?void 0:v.length)>10?t==null?void 0:t.group_name:""},e.a.createElement("span",{style:{fontSize:"14px"}},(t==null||((F=t.group_name)===null||F===void 0)?void 0:F.length)>10?(t==null||((I=t.group_name)===null||I===void 0)?void 0:I.substr(0,10))+"...":t==null?void 0:t.group_name)),(R==null?void 0:R.length)>0&&e.a.createElement("span",{style:{fontSize:"14px",marginLeft:"30px"}},"\u7BA1\u7406\u6559\u5E08\uFF1A"),(R==null?void 0:R.length)>0&&e.a.createElement($.a,{title:(R==null?void 0:R.length)>20?R:""},e.a.createElement("span",{style:{fontSize:"14px"}},(R==null?void 0:R.length)>20?(R==null?void 0:R.substr(0,20))+"...":R))),Object(te.t)()&&(t==null?void 0:t.third_party_name)&&e.a.createElement("span",{className:"current",onClick:function(){Object(Le.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u8BE6\u60C5","\u586B\u5199\u6155\u8BFE\u8D44\u6599"]),b({type:"classroomList/setActionTabs",payload:{key:"\u586B\u5199\u6155\u8BFE\u8D44\u6599"}})}},e.a.createElement("i",{className:"iconfont icon-tianxiedisanfangmuke font14 mr5"}),"\u586B\u5199\u7B2C\u4E09\u65B9\u6155\u8BFE\u5E73\u53F0\u8D26\u53F7\u4FE1\u606F",e.a.createElement("i",{className:"iconfont icon-you font14 mr5 ml5"})))))),e.a.createElement("aside",{className:"edu-container"},e.a.createElement(at.a,{style:{background:"none"}},e.a.createElement(ra,null),e.a.createElement(at.a,{style:{background:"none",overflow:"initial"}},e.a.createElement(ma,{className:W.a.container},Q)))),e.a.createElement(Qt,null),e.a.createElement(Zt,null),e.a.createElement(Kt,null),e.a.createElement(Jt,null),e.a.createElement($t,null),e.a.createElement(ta,null),e.a.createElement(na,null),e.a.createElement(_a,null))},Va=tt.default=Object(re.a)(function(E){var i=E.classroomList,m=E.loading,A=E.globalSetting,U=E.user;return{classroomList:i,globalSetting:A,user:U,loading:m.effects}})(Ea)},XBlR:function(Ge,tt,s){Ge.exports={flex_box_center:"flex_box_center___19WGz",flex_space_between:"flex_space_between___3AfHt",flex_box_vertical_center:"flex_box_vertical_center___1-Y_i",flex_box_center_end:"flex_box_center_end___3ohYD",flex_box_column:"flex_box_column___h-vEO",wrp:"wrp___3G3P7",classroomInfo:"classroomInfo___3peg6",title:"title___2QLCK",titleLeft:"titleLeft___1N9oh",classroomUser:"classroomUser___2sRHD",headPic:"headPic___o0t5-",teacherInfo:"teacherInfo___3YNmQ",classroomDesc:"classroomDesc___1b7C_",classroomDescBg:"classroomDescBg___RN-bc",joinCouses:"joinCouses___1dbAA",bg:"bg___27JHL",task_count:"task_count___1xG6-",container:"container___213G6",leftMenuActions:"leftMenuActions___3jas4",leftMenu:"leftMenu___PRH7T",menuText:"menuText___3_pQO",totalCount:"totalCount___3XGsf",actions:"actions___1sFV4",open:"open___1twSR",actived:"actived___2teh1",actived2:"actived2___3mvXa",tipJoin:"tipJoin___2Jm9e"}}}]); diff --git a/layouts__SimpleLayouts.eac0acdd.async.js b/layouts__SimpleLayouts.d005927b.async.js similarity index 81% rename from layouts__SimpleLayouts.eac0acdd.async.js rename to layouts__SimpleLayouts.d005927b.async.js index 3e23e6fe85..a2178b9677 100644 --- a/layouts__SimpleLayouts.eac0acdd.async.js +++ b/layouts__SimpleLayouts.d005927b.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{"82A9":function(c,r,t){},BLHT:function(c,r,t){c.exports={flex_box_center:"flex_box_center___tGua6",flex_space_between:"flex_space_between___sLRzb",flex_box_vertical_center:"flex_box_vertical_center___3RJH-",flex_box_center_end:"flex_box_center_end___2FaoL",flex_box_column:"flex_box_column____9_T2",footer:"footer___3QRzm",fastLink:"fastLink___MJhMZ",cooperation:"cooperation___208jm",copyright:"copyright___27kZ0"}},CAjq:function(c,r,t){c.exports=t.p+"static/qqCode.a1502573.png"},EcEk:function(c,r,t){"use strict";var L=t("284h"),M=t("TqRt");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var R=M(t("3tO9")),a=L(t("q1tI")),e=M(t("ZtMN")),V=M(t("KQxl")),F=function(H,Q){return a.createElement(V.default,(0,R.default)((0,R.default)({},H),{},{ref:Q,icon:e.default}))};F.displayName="VerticalAlignTopOutlined";var N=a.forwardRef(F);r.default=N},H8y1:function(c,r,t){"use strict";t.r(r);var L=t("GNNt"),M=t("wEI+"),R=t("SIvP"),a=t("q1tI"),e=t.n(a),V=t("+Gva"),F=t("ruvs"),N=t("9kvl"),z=t("wd/R"),H=t.n(z),Q=t("BLHT"),J=t.n(Q),q=function(n){var u,o,_,g=n.user,l=n.globalSetting;return e.a.createElement("div",{className:J.a.footer},e.a.createElement("aside",{className:J.a.fastLink},e.a.createElement("a",{target:"_blank",href:"/"},"\u7F51\u7AD9\u9996\u9875"),!(l==null||((u=l.setting)===null||u===void 0)?void 0:u.is_local)&&e.a.createElement("a",{target:"_blank",href:"/help/about_us"},"\u5173\u4E8E\u6211\u4EEC"),e.a.createElement("a",{target:"_blank",href:"/help/contact_us"},"\u8054\u7CFB\u6211\u4EEC"),e.a.createElement("a",{target:"_blank",href:"/help/cooperatives"},"\u5408\u4F5C\u4F19\u4F34"),e.a.createElement("a",{target:"_blank",href:"/help/agreement"},"\u670D\u52A1\u534F\u8BAE"),e.a.createElement("a",{target:"_blank",href:"/help/help_center"},"\u5E2E\u52A9\u4E2D\u5FC3"),e.a.createElement("a",{target:"_blank",href:"/help/feedback"},"\u610F\u89C1\u53CD\u9988")),((o=l.setting)===null||o===void 0?void 0:o.footer)?e.a.createElement("div",{dangerouslySetInnerHTML:{__html:(_=l.setting)===null||_===void 0?void 0:_.footer}}):e.a.createElement("div",null,e.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},e.a.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",H()().year(),"\xA0EduCoder",e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6E58ICP\u590717009477\u53F7"),e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},e.a.createElement("img",{className:"vertical4",src:t("d5bv")}),"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7"),e.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",e.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6E56\u5357\u667A\u64CE\u79D1\u6280\u6709\u9650\u516C\u53F8"))))},ee=q,Be=t("2qtc"),$=t("kLXV"),S=t("k16G"),te=t("NaGD"),ne=t.n(te),W=t("m3rI"),K=t("1vsH"),oe=t("CAjq"),Z=t.n(oe),ae=function(n){var u,o,_=n.user,g=n.globalSetting,l=Object(a.useState)(!1),f=Object(S.a)(l,2),i=f[0],U=f[1];Object(a.useEffect)(function(){return window.addEventListener("click",y),function(){window.removeEventListener("click",y)}},[]);var O=function(){var s=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(s){U(!0);return}var p="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(K.L)(p)},j=function(s,p){if(s.className===p)return s;for(var h=0,v=s;v=v.parentNode;h++){if(v.className===p)return v;if(v==document.documentElement)return!1}},y=function(s){var p,h,v;(s==null?void 0:s.target)&&((s==null||((p=s.target)===null||p===void 0)?void 0:p.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||(s==null||((h=s.target)===null||h===void 0||((v=h.nextElementSibling)===null||v===void 0))?void 0:v.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&(j(s.target,"module-introduce")&&O())};return e.a.createElement(e.a.Fragment,null,e.a.createElement($.a,{centered:!0,destroyOnClose:!0,visible:i,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return U(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Z.a,width:200,height:200}))),e.a.createElement("div",{className:ne.a.newFooter,dangerouslySetInnerHTML:{__html:(u=g.setting)===null||u===void 0||((o=u.footer)===null||o===void 0)?void 0:o.replaceAll("/api/attachments/",W.a.IMG_SERVER+"/api/attachments/")}}))},le=ae,ue=function(n){var u=n.user,o=n.globalSetting,_=n.loading,g=n.dispatch;if(o.showFooter&&o.showHeaderFooter){var l,f;return e.a.createElement("section",null,(o==null||((l=o.setting)===null||l===void 0)?void 0:l.main_site)&&!(o==null||((f=o.setting)===null||f===void 0)?void 0:f.is_local)?e.a.createElement(le,{user:u,globalSetting:o}):e.a.createElement(ee,{user:u,globalSetting:o}))}else return e.a.createElement(e.a.Fragment,null," ")},ie=Object(N.a)(function(d){var n=d.user,u=d.loading,o=d.globalSetting;return{user:n,globalSetting:o,loading:u.models.index}})(ue),we=t("cIOH"),Xe=t("82A9"),se=t("pVnL"),re=t.n(se),de=t("lSNA"),ce=t.n(de),me=t("J4zp"),Ee=t.n(me),_e=t("MFj2"),fe=t("zT1h"),ve=t("TSYQ"),pe=t.n(ve),ge=t("BGR+"),Ce=t("eMAm"),xe=t.n(Ce),be=t("PEeC"),he=t("H84U"),Ae=t("i6bk"),Me=t("zAh6"),Y=function(n){var u=a.useState(!1),o=Ee()(u,2),_=o[0],g=o[1],l=a.createRef(),f=a.useRef(),i=function(){return l.current&&l.current.ownerDocument?l.current.ownerDocument:window},U=Object(be.a)(function(A){var m=n.visibilityHeight,E=Object(Ae.a)(A.target,!0);g(E>m)}),O=function(){var m=n.target,E=m||i,C=E();f.current=Object(fe.a)(C,"scroll",function(b){U(b)}),U({target:C})};a.useEffect(function(){return O(),function(){f.current&&f.current.remove(),U.cancel()}},[n.target]);var j=function(){return"visible"in n?n.visible:_},y=function(m){var E=n.onClick,C=n.target,b=n.duration,I=b===void 0?450:b;Object(Me.a)(0,{getContainer:C||i,duration:I}),typeof E=="function"&&E(m)},P=function(m){var E=m.prefixCls,C=n.children,b=a.createElement("div",{className:"".concat(E,"-content")},a.createElement("div",{className:"".concat(E,"-icon")},a.createElement(xe.a,null)));return a.createElement(_e.a,{component:"",transitionName:"fade"},j()?a.createElement("div",null,C||b):null)},s=a.useContext(he.b),p=s.getPrefixCls,h=s.direction,v=n.prefixCls,B=n.className,G=B===void 0?"":B,x=p("back-top",v),w=pe()(x,G,ce()({},"".concat(x,"-rtl"),h==="rtl")),X=Object(ge.default)(n,["prefixCls","className","children","visibilityHeight","target","visible"]);return a.createElement("div",re()({},X,{className:w,onClick:y,ref:l}),P({prefixCls:x}))};Y.defaultProps={visibilityHeight:400};var Re=a.memo(Y),Ie=t("5Dmo"),D=t("3S7+"),Ue=t("iHkK"),T=t.n(Ue),Pe=function(n){var u,o,_,g,l=n.globalSetting,f=n.loading,i=n.user,U=n.dispatch,O=Object(a.useState)(!1),j=Object(S.a)(O,2),y=j[0],P=j[1],s=Object(a.useState)(!1),p=Object(S.a)(s,2),h=p[0],v=p[1],B=Object(a.useState)(localStorage.hideCustom?JSON.parse(localStorage.hideCustom):[]),G=Object(S.a)(B,1),x=G[0],w=Object(a.useRef)();Object(a.useEffect)(function(){return window.addEventListener("scroll",X),function(){return window.removeEventListener("scroll",X)}},[]),Object(a.useEffect)(function(){var m;if(i==null||((m=i.userInfo)===null||m===void 0)?void 0:m.login){var E;x.includes(i==null||((E=i.userInfo)===null||E===void 0)?void 0:E.login)||setTimeout(function(){var C,b,I=document.createEvent("Events");I.initEvent("mouseout",!0,!1),(C=w.current)===null||C===void 0||C.dispatchEvent(I),x.push(i==null||((b=i.userInfo)===null||b===void 0)?void 0:b.login),localStorage.hideCustom=JSON.stringify(x)},5e3)}},[i]);var X=function(){P(document.documentElement.scrollTop>0)},A=function(){var E=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(console.log(E),E){v(!0);return}var C="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(K.L)(C)};return e.a.createElement("div",{className:T.a.sideBar},!l.onlyShowBackTop&&e.a.createElement("div",{id:"wechat_QR_code_id"},!!(i==null||((u=i.userInfo)===null||u===void 0)?void 0:u.login)&&e.a.createElement(D.a,{placement:"left",defaultVisible:!(x==null?void 0:x.includes(i==null||((o=i.userInfo)===null||o===void 0)?void 0:o.login)),getPopupContainer:function(){return document.getElementById("wechat_QR_code_id")},title:e.a.createElement("div",null,e.a.createElement("div",{className:"tc"},e.a.createElement("img",{className:"mt10",src:t("O7MS"),width:"158px",height:"158px"})),e.a.createElement("div",{className:"tc font15 mt10"},"\u514D\u8D39\u6559\u5B66\u52A9\u7406"),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),e.a.createElement("div",{className:"pt10 font12"},"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002",e.a.createElement("br",null),e.a.createElement("span",{className:"pt10"},"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),e.a.createElement("br",null),e.a.createElement("span",{className:"pt10"},"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))},e.a.createElement("div",{className:T.a.wrap,ref:w},e.a.createElement("a",{href:"javascript:void(0)"},e.a.createElement("i",{className:"iconfont icon-yijianfankui1 c-light-primary font22"})))),!(l==null||((_=l.setting)===null||_===void 0)?void 0:_.is_local)&&e.a.createElement(D.a,{placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_id")},title:e.a.createElement("div",null,e.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/EWM.jpg"),width:"158px",height:"158px"}),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B"),e.a.createElement("div",{className:"tc font15"},"\u5173\u6CE8\u516C\u4F17\u53F7"))},e.a.createElement("div",{className:T.a.wrap},e.a.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),!(l==null||((g=l.setting)===null||g===void 0)?void 0:g.is_local)&&e.a.createElement(D.a,{placement:"left",title:"\u5728\u7EBF\u54A8\u8BE2"},e.a.createElement("div",{className:T.a.wrap},e.a.createElement("a",{onClick:A,className:"c-white"},e.a.createElement("i",{className:"iconfont icon-QQ1 c-light-primary font22"})))),y&&e.a.createElement(D.a,{placement:"left",title:"\u8FD4\u56DE\u9876\u90E8"},e.a.createElement(Re,{className:"".concat(T.a.wrap," ").concat(T.a.backTop),visibilityHeight:0},e.a.createElement("i",{className:"iconfont icon-huidaodingbu c-light-primary font14"})))),e.a.createElement($.a,{centered:!0,destroyOnClose:!0,visible:h,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return v(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Z.a,width:200,height:200}))))},Le=Object(N.a)(function(d){var n=d.loading,u=d.globalSetting,o=d.user;return{globalSetting:u,user:o,loading:n.models.index}})(Pe),Ve=t("+L6B"),Ne=t("2/Rp"),Te=t("c1Ei"),k=t.n(Te),je=t("5Tp6"),ye=function(n){var u=n.user,o=n.dispatch,_=n.classroomList;return e.a.createElement($.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:_.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:function(){o({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",null,e.a.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),e.a.createElement("br",null),e.a.createElement("div",{style:{textAlign:"end"}},e.a.createElement(Ne.a,{type:"primary",onClick:Object(je.a)(k.a.mark(function g(){return k.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return f.stop()}},g)}))},"\u77E5\u9053\u4E86"))))},Oe=Object(N.a)(function(d){var n=d.user,u=d.classroomList;return{user:n,classroomList:u}})(ye),Fe=t("H4Hi"),Se=t.n(Fe),De=function(n){var u=n.loading,o=n.children,_=Object(R.a)(n,["loading","children"]);return e.a.createElement(M.a,{locale:V.default},e.a.createElement(F.a,_),e.a.createElement("section",{className:Se.a.layoutMainClass},o),e.a.createElement(Le,null),e.a.createElement(ie,null),e.a.createElement(Oe,null))},He=r.default=Object(N.a)(function(d){var n=d.loading;return{loading:n}})(De)},NaGD:function(c,r,t){c.exports={flex_box_center:"flex_box_center___VTqUm",flex_space_between:"flex_space_between___3f-Ja",flex_box_vertical_center:"flex_box_vertical_center___u4Jjr",flex_box_center_end:"flex_box_center_end___1QKJE",flex_box_column:"flex_box_column___1OBJc",newFooter:"newFooter___UNzWw"}},O7MS:function(c,r,t){c.exports=t.p+"static/AssistantCode.61c5ef8d.png"},ZtMN:function(c,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};r.default=L},d5bv:function(c,r,t){c.exports=t.p+"static/beian.0c577066.png"},eMAm:function(c,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var L=M(t("EcEk"));function M(a){return a&&a.__esModule?a:{default:a}}var R=L;r.default=R,c.exports=R},iHkK:function(c,r,t){c.exports={sideBar:"sideBar___DNWGT",wrap:"wrap___2rWVP",backTop:"backTop___3cAkP"}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[29],{"82A9":function(c,r,t){},BLHT:function(c,r,t){c.exports={flex_box_center:"flex_box_center___tGua6",flex_space_between:"flex_space_between___sLRzb",flex_box_vertical_center:"flex_box_vertical_center___3RJH-",flex_box_center_end:"flex_box_center_end___2FaoL",flex_box_column:"flex_box_column____9_T2",footer:"footer___3QRzm",fastLink:"fastLink___MJhMZ",cooperation:"cooperation___208jm",copyright:"copyright___27kZ0"}},CAjq:function(c,r,t){c.exports=t.p+"static/qqCode.a1502573.png"},EcEk:function(c,r,t){"use strict";var N=t("284h"),M=t("TqRt");Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var R=M(t("3tO9")),a=N(t("q1tI")),e=M(t("ZtMN")),I=M(t("KQxl")),F=function(H,Q){return a.createElement(I.default,(0,R.default)((0,R.default)({},H),{},{ref:Q,icon:e.default}))};F.displayName="VerticalAlignTopOutlined";var L=a.forwardRef(F);r.default=L},H8y1:function(c,r,t){"use strict";t.r(r);var N=t("GNNt"),M=t("wEI+"),R=t("PpiC"),a=t("q1tI"),e=t.n(a),I=t("+Gva"),F=t("ruvs"),L=t("9kvl"),z=t("wd/R"),H=t.n(z),Q=t("BLHT"),J=t.n(Q),q=function(n){var u,o,_,g=n.user,l=n.globalSetting;return e.a.createElement("div",{className:J.a.footer},e.a.createElement("aside",{className:J.a.fastLink},e.a.createElement("a",{target:"_blank",href:"/"},"\u7F51\u7AD9\u9996\u9875"),!(l==null||((u=l.setting)===null||u===void 0)?void 0:u.is_local)&&e.a.createElement("a",{target:"_blank",href:"/help/about_us"},"\u5173\u4E8E\u6211\u4EEC"),e.a.createElement("a",{target:"_blank",href:"/help/contact_us"},"\u8054\u7CFB\u6211\u4EEC"),e.a.createElement("a",{target:"_blank",href:"/help/cooperatives"},"\u5408\u4F5C\u4F19\u4F34"),e.a.createElement("a",{target:"_blank",href:"/help/agreement"},"\u670D\u52A1\u534F\u8BAE"),e.a.createElement("a",{target:"_blank",href:"/help/help_center"},"\u5E2E\u52A9\u4E2D\u5FC3"),e.a.createElement("a",{target:"_blank",href:"/help/feedback"},"\u610F\u89C1\u53CD\u9988")),((o=l.setting)===null||o===void 0?void 0:o.footer)?e.a.createElement("div",{dangerouslySetInnerHTML:{__html:(_=l.setting)===null||_===void 0?void 0:_.footer}}):e.a.createElement("div",null,e.a.createElement("p",{className:"footer_con-p inline lineh-30 font-14"},e.a.createElement("span",{className:"font-18 fl"},"\xA9"),"\xA0",H()().year(),"\xA0EduCoder",e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://beian.miit.gov.cn/",className:"ml15 mr15"},"\u6E58ICP\u590717009477\u53F7"),e.a.createElement("a",{style:{color:"#888"},target:"_blank",href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=43019002000962",className:"mr15"},e.a.createElement("img",{className:"vertical4",src:t("d5bv")}),"\u6E58\u516C\u7F51\u5B89\u590743019002000962\u53F7"),e.a.createElement("a",{href:"https://team.trustie.net",style:{color:"#888"},target:"_blank"},"Trustie"),"\xA0\xA0\xA0&\xA0\xA0\xA0IntelliDE inside. ",e.a.createElement("span",{className:"mr15"},"\u7248\u6743\u6240\u6709 \u6E56\u5357\u667A\u64CE\u79D1\u6280\u6709\u9650\u516C\u53F8"))))},ee=q,Be=t("2qtc"),$=t("kLXV"),S=t("tJVT"),te=t("NaGD"),ne=t.n(te),W=t("m3rI"),K=t("1vsH"),oe=t("CAjq"),Z=t.n(oe),ae=function(n){var u,o,_=n.user,g=n.globalSetting,l=Object(a.useState)(!1),f=Object(S.a)(l,2),i=f[0],U=f[1];Object(a.useEffect)(function(){return window.addEventListener("click",y),function(){window.removeEventListener("click",y)}},[]);var O=function(){var s=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(s){U(!0);return}var p="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(K.L)(p)},j=function(s,p){if(s.className===p)return s;for(var h=0,v=s;v=v.parentNode;h++){if(v.className===p)return v;if(v==document.documentElement)return!1}},y=function(s){var p,h,v;(s==null?void 0:s.target)&&((s==null||((p=s.target)===null||p===void 0)?void 0:p.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A"||(s==null||((h=s.target)===null||h===void 0||((v=h.nextElementSibling)===null||v===void 0))?void 0:v.innerText)==="\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A")&&(j(s.target,"module-introduce")&&O())};return e.a.createElement(e.a.Fragment,null,e.a.createElement($.a,{centered:!0,destroyOnClose:!0,visible:i,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return U(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Z.a,width:200,height:200}))),e.a.createElement("div",{className:ne.a.newFooter,dangerouslySetInnerHTML:{__html:(u=g.setting)===null||u===void 0||((o=u.footer)===null||o===void 0)?void 0:o.replaceAll("/api/attachments/",W.a.IMG_SERVER+"/api/attachments/")}}))},le=ae,ue=function(n){var u=n.user,o=n.globalSetting,_=n.loading,g=n.dispatch;if(o.showFooter&&o.showHeaderFooter){var l,f;return e.a.createElement("section",null,(o==null||((l=o.setting)===null||l===void 0)?void 0:l.main_site)&&!(o==null||((f=o.setting)===null||f===void 0)?void 0:f.is_local)?e.a.createElement(le,{user:u,globalSetting:o}):e.a.createElement(ee,{user:u,globalSetting:o}))}else return e.a.createElement(e.a.Fragment,null," ")},ie=Object(L.a)(function(d){var n=d.user,u=d.loading,o=d.globalSetting;return{user:n,globalSetting:o,loading:u.models.index}})(ue),we=t("cIOH"),Xe=t("82A9"),se=t("pVnL"),re=t.n(se),de=t("lSNA"),ce=t.n(de),me=t("J4zp"),Ee=t.n(me),_e=t("UmKh"),fe=t("zT1h"),ve=t("TSYQ"),pe=t.n(ve),ge=t("BGR+"),Ce=t("eMAm"),be=t.n(Ce),xe=t("PEeC"),he=t("H84U"),Ae=t("i6bk"),Me=t("zAh6"),Y=function(n){var u=a.useState(!1),o=Ee()(u,2),_=o[0],g=o[1],l=a.createRef(),f=a.useRef(),i=function(){return l.current&&l.current.ownerDocument?l.current.ownerDocument:window},U=Object(xe.a)(function(A){var m=n.visibilityHeight,E=Object(Ae.a)(A.target,!0);g(E>m)}),O=function(){var m=n.target,E=m||i,C=E();f.current=Object(fe.a)(C,"scroll",function(x){U(x)}),U({target:C})};a.useEffect(function(){return O(),function(){f.current&&f.current.remove(),U.cancel()}},[n.target]);var j=function(){return"visible"in n?n.visible:_},y=function(m){var E=n.onClick,C=n.target,x=n.duration,V=x===void 0?450:x;Object(Me.a)(0,{getContainer:C||i,duration:V}),typeof E=="function"&&E(m)},P=function(m){var E=m.prefixCls,C=n.children,x=a.createElement("div",{className:"".concat(E,"-content")},a.createElement("div",{className:"".concat(E,"-icon")},a.createElement(be.a,null)));return a.createElement(_e.a,{component:"",transitionName:"fade"},j()?a.createElement("div",null,C||x):null)},s=a.useContext(he.b),p=s.getPrefixCls,h=s.direction,v=n.prefixCls,B=n.className,G=B===void 0?"":B,b=p("back-top",v),w=pe()(b,G,ce()({},"".concat(b,"-rtl"),h==="rtl")),X=Object(ge.default)(n,["prefixCls","className","children","visibilityHeight","target","visible"]);return a.createElement("div",re()({},X,{className:w,onClick:y,ref:l}),P({prefixCls:b}))};Y.defaultProps={visibilityHeight:400};var Re=a.memo(Y),Ve=t("5Dmo"),D=t("3S7+"),Ue=t("iHkK"),T=t.n(Ue),Pe=function(n){var u,o,_,g,l=n.globalSetting,f=n.loading,i=n.user,U=n.dispatch,O=Object(a.useState)(!1),j=Object(S.a)(O,2),y=j[0],P=j[1],s=Object(a.useState)(!1),p=Object(S.a)(s,2),h=p[0],v=p[1],B=Object(a.useState)(localStorage.hideCustom?JSON.parse(localStorage.hideCustom):[]),G=Object(S.a)(B,1),b=G[0],w=Object(a.useRef)();Object(a.useEffect)(function(){return window.addEventListener("scroll",X),function(){return window.removeEventListener("scroll",X)}},[]),Object(a.useEffect)(function(){var m;if(i==null||((m=i.userInfo)===null||m===void 0)?void 0:m.login){var E;b.includes(i==null||((E=i.userInfo)===null||E===void 0)?void 0:E.login)||setTimeout(function(){var C,x,V=document.createEvent("Events");V.initEvent("mouseout",!0,!1),(C=w.current)===null||C===void 0||C.dispatchEvent(V),b.push(i==null||((x=i.userInfo)===null||x===void 0)?void 0:x.login),localStorage.hideCustom=JSON.stringify(b)},5e3)}},[i]);var X=function(){P(document.documentElement.scrollTop>0)},A=function(){var E=function(){return/macintosh|mac os x/i.test(navigator.userAgent)}();if(console.log(E),E){v(!0);return}var C="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd";Object(K.L)(C)};return e.a.createElement("div",{className:T.a.sideBar},!l.onlyShowBackTop&&e.a.createElement("div",{id:"wechat_QR_code_id"},!!(i==null||((u=i.userInfo)===null||u===void 0)?void 0:u.login)&&e.a.createElement(D.a,{placement:"left",defaultVisible:!(b==null?void 0:b.includes(i==null||((o=i.userInfo)===null||o===void 0)?void 0:o.login)),getPopupContainer:function(){return document.getElementById("wechat_QR_code_id")},title:e.a.createElement("div",null,e.a.createElement("div",{className:"tc"},e.a.createElement("img",{className:"mt10",src:t("O7MS"),width:"158px",height:"158px"})),e.a.createElement("div",{className:"tc font15 mt10"},"\u514D\u8D39\u6559\u5B66\u52A9\u7406"),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),e.a.createElement("div",{className:"pt10 font12"},"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002",e.a.createElement("br",null),e.a.createElement("span",{className:"pt10"},"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),e.a.createElement("br",null),e.a.createElement("span",{className:"pt10"},"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))},e.a.createElement("div",{className:T.a.wrap,ref:w},e.a.createElement("a",{href:"javascript:void(0)"},e.a.createElement("i",{className:"iconfont icon-yijianfankui1 c-light-primary font22"})))),!(l==null||((_=l.setting)===null||_===void 0)?void 0:_.is_local)&&e.a.createElement(D.a,{placement:"left",getPopupContainer:function(){return document.getElementById("wechat_QR_code_id")},title:e.a.createElement("div",null,e.a.createElement("img",{src:"".concat(W.a.IMG_SERVER,"/images/educoder/EWM.jpg"),width:"158px",height:"158px"}),e.a.createElement("div",{className:"tc font15"},"\u5FAE\u4FE1\u626B\u4E00\u626B"),e.a.createElement("div",{className:"tc font15"},"\u5173\u6CE8\u516C\u4F17\u53F7"))},e.a.createElement("div",{className:T.a.wrap},e.a.createElement("i",{className:"iconfont icon-erweima1 c-light-primary font22"}))),!(l==null||((g=l.setting)===null||g===void 0)?void 0:g.is_local)&&e.a.createElement(D.a,{placement:"left",title:"\u5728\u7EBF\u54A8\u8BE2"},e.a.createElement("div",{className:T.a.wrap},e.a.createElement("a",{onClick:A,className:"c-white"},e.a.createElement("i",{className:"iconfont icon-QQ1 c-light-primary font22"})))),y&&e.a.createElement(D.a,{placement:"left",title:"\u8FD4\u56DE\u9876\u90E8"},e.a.createElement(Re,{className:"".concat(T.a.wrap," ").concat(T.a.backTop),visibilityHeight:0},e.a.createElement("i",{className:"iconfont icon-huidaodingbu c-light-primary font14"})))),e.a.createElement($.a,{centered:!0,destroyOnClose:!0,visible:h,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:"500px",footer:null,onCancel:function(){return v(!1)}},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("p",null,"\u626B\u7801\u6216\u641C\u7D22\u52A0\u5165\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41QQ\u7FA4\uFF1A612934990 "),e.a.createElement("img",{src:Z.a,width:200,height:200}))))},Ne=Object(L.a)(function(d){var n=d.loading,u=d.globalSetting,o=d.user;return{globalSetting:u,user:o,loading:n.models.index}})(Pe),Ie=t("+L6B"),Le=t("2/Rp"),Te=t("WmNS"),k=t.n(Te),je=t("9og8"),ye=function(n){var u=n.user,o=n.dispatch,_=n.classroomList;return e.a.createElement($.a,{title:"\u6E29\u99A8\u63D0\u793A",zIndex:9999,footer:null,visible:_.actionTabs.key==="\u5BFC\u51FA\u63D0\u9192",onCancel:function(){o({type:"classroomList/setActionTabs",payload:{}})}},e.a.createElement("div",null,e.a.createElement("span",null,"\u60A8\u5728\u5F53\u524D\u680F\u76EE\u4E2D\u6709\u5DF2\u5BFC\u51FA\u7684\u8868\u683C\u672A\u4E0B\u8F7D\uFF0C\u8BF7\u5148\u4E0B\u8F7D\u5DF2\u6709\u8868\u683C\uFF0C\u7136\u540E\u518D\u5BFC\u51FA\u65B0\u7684\u8868\u683C\u3002"),e.a.createElement("br",null),e.a.createElement("div",{style:{textAlign:"end"}},e.a.createElement(Le.a,{type:"primary",onClick:Object(je.a)(k.a.mark(function g(){return k.a.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:o({type:"classroomList/setActionTabs",payload:{}});case 1:case"end":return f.stop()}},g)}))},"\u77E5\u9053\u4E86"))))},Oe=Object(L.a)(function(d){var n=d.user,u=d.classroomList;return{user:n,classroomList:u}})(ye),Fe=t("H4Hi"),Se=t.n(Fe),De=function(n){var u=n.loading,o=n.children,_=Object(R.a)(n,["loading","children"]);return e.a.createElement(M.a,{locale:I.default},e.a.createElement(F.a,_),e.a.createElement("section",{className:Se.a.layoutMainClass},o),e.a.createElement(Ne,null),e.a.createElement(ie,null),e.a.createElement(Oe,null))},He=r.default=Object(L.a)(function(d){var n=d.loading;return{loading:n}})(De)},NaGD:function(c,r,t){c.exports={flex_box_center:"flex_box_center___VTqUm",flex_space_between:"flex_space_between___3f-Ja",flex_box_vertical_center:"flex_box_vertical_center___u4Jjr",flex_box_center_end:"flex_box_center_end___1QKJE",flex_box_column:"flex_box_column___1OBJc",newFooter:"newFooter___UNzWw"}},O7MS:function(c,r,t){c.exports=t.p+"static/AssistantCode.61c5ef8d.png"},ZtMN:function(c,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var N={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};r.default=N},d5bv:function(c,r,t){c.exports=t.p+"static/beian.0c577066.png"},eMAm:function(c,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var N=M(t("EcEk"));function M(a){return a&&a.__esModule?a:{default:a}}var R=N;r.default=R,c.exports=R},iHkK:function(c,r,t){c.exports={sideBar:"sideBar___DNWGT",wrap:"wrap___2rWVP",backTop:"backTop___3cAkP"}}}]); diff --git a/layouts__SimpleLayouts.layouts__user.6e7532c1.async.js b/layouts__SimpleLayouts.layouts__user.65341e7d.async.js similarity index 79% rename from layouts__SimpleLayouts.layouts__user.6e7532c1.async.js rename to layouts__SimpleLayouts.layouts__user.65341e7d.async.js index b199d00361..c28349c2a6 100644 --- a/layouts__SimpleLayouts.layouts__user.6e7532c1.async.js +++ b/layouts__SimpleLayouts.layouts__user.65341e7d.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{"1Sn+":function(c,b,t){},SMhR:function(c,b){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},ruvs:function(c,b,t){"use strict";t.d(b,"b",function(){return z});var Ne=t("2qtc"),M=t("kLXV"),Re=t("miYZ"),q=t("tsqr"),X=t("c1Ei"),R=t.n(X),G=t("5Tp6"),v=t("k16G"),V=t("SIvP"),d=t("XEnU"),Ae=t("5NDa"),$=t("5rEg"),pe=t("B9cy"),U=t("Ol7k"),k=t("q1tI"),a=t.n(k),ee=t("WHYC"),y=t("uYtH"),te=t("9kvl"),ne=t("xKgJ"),ae=t("xrsn"),S=t.n(ae),ie=t("1Sn+"),Ie=t.n(ie),oe=t("m3rI"),C=t("jb+D"),se=t("1vsH"),le=U.a.Header,me=$.a.Search,ue=function(i){var u,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(u=document.cookie.match(e))?decodeURIComponent(u[2]):null},Q=function(i){var u=new Date;u.setTime(u.getTime()-1);var e=ue(i);e!=null&&(document.cookie=i+"="+e+";expires="+u.toGMTString())};function z(){var m,i,u=window.location.pathname,e=u.split("/"),n={};return e[1]=="classrooms"&&e.length>3&&!((m=e[4])===null||m===void 0?void 0:m.includes("newgold"))&&!((i=e[5])===null||i===void 0?void 0:i.includes("newgold"))&&e[2]!=="coursesId"&&(n.course_id=e[2]),e[1]==="shixuns"&&e.length>3&&(n.objective_type="shixun",n.objective_id=e[2]),e[1]==="paths"&&e.length>3&&(n.objective_type="path",n.objective_id=e[2]),Object(d.a)(Object(d.a)({},n),{school:1})}var ve={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},re=function(i){var u=i.homePage,e=i.user,n=i.globalSetting,ye=i.loading,A=i.dispatch,_=i.location,K=i.isLogin,Ze=K===void 0?!1:K,ge=Object(V.a)(i,["homePage","user","globalSetting","loading","dispatch","location","isLogin"]),L=Object(ee.k)(),ke=Object(k.useState)(!1),w=Object(v.a)(ke,2),_e=w[0],W=w[1],Ee=Object(k.useState)(-1),F=Object(v.a)(Ee,2),de=F[0],Se=F[1],Je=Object(k.useState)(!1),H=Object(v.a)(Je,2),ce=H[0],Y=H[1],p=z();Object(k.useEffect)(function(){A({type:"user/getNavigationInfo",payload:Object(d.a)({},p)})},[n.name]),Object(k.useEffect)(function(){A({type:"user/getUserInfo",payload:Object(d.a)({},p)})},[_.pathname]),Object(k.useEffect)(function(){if(n==null?void 0:n.setting){var s,l;n==null||((s=n.setting)===null||s===void 0||((l=s.navbar)===null||l===void 0))||l.map(function(r,E){_.pathname.indexOf(r.link)>-1&&Se(E)})}},[n==null?void 0:n.setting]);function be(s){L.push("/search?value="+s)}var De=function(){return _e?a.a.createElement("div",{onBlur:function(){setTimeout(function(){W(!1)},300)}},a.a.createElement(me,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:be,autoFocus:!0})):a.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){W(!0)}})},Te=function(){var s=Object(G.a)(R.a.mark(function l(r){var E,o,I;return R.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return r.preventDefault(),N.next=3,Object(C.i)();case 3:o=N.sent,(o==null||((E=o.data)===null||E===void 0)?void 0:E.engineer_url)?document.location.href=o==null||((I=o.data)===null||I===void 0)?void 0:I.engineer_url:(o==null?void 0:o.status)!=401&&Y(!0);case 5:case"end":return N.stop()}},l)}));return function(r){return s.apply(this,arguments)}}();if(n.showHeader&&n.showHeaderFooter){var Z,g,D,T,O,f,h,B,j,P,x;return a.a.createElement(U.a,{className:"".concat(S.a.header," ").concat(n.showHeaderFixed?S.a.headerFixed:"")},a.a.createElement(le,{className:"header"},a.a.createElement("section",{className:S.a["edu-menu"]},!!(n==null||((Z=n.setting)===null||Z===void 0||((g=Z.nav_logo_url)===null||g===void 0))?void 0:g.length)&&a.a.createElement(y.Link,{style:{pointerEvents:(e==null||((D=e.userInfo)===null||D===void 0)?void 0:D.login)?"all":"none"},to:"/exam"},a.a.createElement("img",{className:S.a.logo,title:"\u5934\u6B4C",src:"".concat(oe.a.IMG_SERVER,"/").concat(n==null||((T=n.setting)===null||T===void 0)?void 0:T.nav_logo_url)})),a.a.createElement("ul",{style:{visibility:(_==null||((O=_.query)===null||O===void 0)?void 0:O.loginOut)==="true"?"hidden":"visible"},className:S.a.menu},n.setting&&n.setting.navbar.map(function(s,l){if(!s.hidden){var r;return a.a.createElement("li",{key:l,className:de===l?S.a.actived:""},!!(e==null||((r=e.userInfo)===null||r===void 0)?void 0:r.login)&&a.a.createElement(y.Link,{dangerouslySetInnerHTML:{__html:s.name},to:s.link}))}})),a.a.createElement("div",{style:{visibility:(_==null||((f=_.query)===null||f===void 0)?void 0:f.loginOut)==="true"?"hidden":"visible"},className:"search-bar font16"},(e==null||((h=e.userInfo)===null||h===void 0)?void 0:h.login)?a.a.createElement(k.Fragment,null,e==null||((B=e.userInfo)===null||B===void 0)?void 0:B.username," \uFF08",ne.a[e==null||((j=e.userInfo)===null||j===void 0)?void 0:j.role],"\uFF09",(e==null||((P=e.userInfo)===null||P===void 0)?void 0:P.student_id)&&a.a.createElement("span",null,"\xA0\xA0",a.a.createElement("span",{className:"c-grey-999"},"\u5B66\u53F7\uFF1A"),e==null||((x=e.userInfo)===null||x===void 0)?void 0:x.student_id),a.a.createElement("a",{className:"ml20",onClick:function(){var l=function(){var r=Object(G.a)(R.a.mark(function E(){var o;return R.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,Object(C.b)({});case 2:o=J.sent,(o==null?void 0:o.status)===1&&(A({type:"user/getUserInfo",payload:Object(d.a)({},p)}),A({type:"user/getNavigationInfo",payload:Object(d.a)({},p)}),Q("autologin_trustie"),Q("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),q.b.success(o==null?void 0:o.message),L.replace("/login"));case 4:case"end":return J.stop()}},E)}));return function(){return r.apply(this,arguments)}}();M.a.confirm({title:"\u8BF7\u786E\u8BA4\u662F\u5426\u9000\u51FA\u5F53\u524D\u8D26\u53F7?",onOk:l,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"})}},"\u9000\u51FA\u767B\u5F55")):a.a.createElement(y.Link,{to:"/login"},"\u767B\u5F55"))),a.a.createElement(M.a,{centered:!0,destroyOnClose:!0,visible:ce,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(se.L)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return Y(!1)}},a.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},a.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),a.a.createElement("img",{src:t("SMhR"),width:200,height:200}),a.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))))}else return a.a.createElement(a.a.Fragment,null)};b.a=Object(te.a)(function(m){var i=m.homePage,u=m.loading,e=m.user,n=m.globalSetting;return{homePage:i,user:e,globalSetting:n,loading:u.models.index}})(re)},xrsn:function(c,b,t){c.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",headerFixed:"headerFixed___1V7d4",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3"}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{"1Sn+":function(c,b,t){},SMhR:function(c,b){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkCe1zZPaZgNk0zYbIJu2eRKQJwF5S9vcAPIkIJu2uQFk0zY32kbf6USSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnS+MmXa5t/WdtsgGza5psB+WRt8xQgN4DcaJtv1jYbIDfa5pO1jf5/J5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGTz4ckH9Z22yAbNpmA2TTNhsgm7bZANm0zQbIpm02QDZtswFyA8h/aZsbbbMBsmmbDZBN22yAbNpmA2TTNhsgm7bZALkBZNM2N4Doz5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX9LGAvKltNkA2bXMDyJvaZgNk0zZPAfLN2mYD5EbbPAnIk9pG7ziRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7y4YBs2uYGkE3bbIBs2mYD5Ebb/Mva5klAbgB5S9tsgGza5gaQDZBN2zwJyJPaZgNkA2TTNhsgN9pmA2TTNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdKgv/IPA3KjbW4AeVLb3ADyzdrmBpAntc2nAnKjbTZANm1zA8gna5sNkH9Z27zlRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZcDcqNtbgDZtM2mbTZANm1zA8imbTZANm1zA8iTgGza5gaQpwDZtM2NttkAudE2b2qbDZAbbbMB8qa20f/vRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4ycuA3GibDZANkBttswHyJCA32uZJQDZt8yQgTwKyaZsNkD/VNk8CsmmbDZA3tc0GyI222QDZtM0NIJu2eRKQTdt8qxNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4yf/uLbZANkA2bTNDSBPAnKjbd7UNhsgN4Bs2uZG27wFyKZtbrTNBsimbW4AudE2N9pmA+RG29wAsmmbJwHZtM1bTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3w5IJu2udE2N4DcaJsbQDZtswGyAfIvA7Jpmz8F5EbbPAnIpm1uANm0zZuAbNpm0zYbIBsgm7a5AeRJbfOpTiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNn3y4ttkAuQFk0zYbIDfa5gaQN7XNk4A8qW02QG4A+VNtswHyzdpmA+RJbfMkIJu2eVPbbIBs2uZvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/ERX2kb/DcimbW4AuQFk0zYbIDfa5i1t8yYgm7a50TYbIN+sbW4A2bTNk4Bs2uYtJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT/5yQDZtswHypLbZAHlT29xomw2QTdvcAHIDyKdqmze1zZuAvKltNkCeBOSTAflWJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUPBuRG22yAbNrmBpAbbbMBcqNtNkA2bbMBsmmbDZBN2zwJyFvaZgNk0zYbIDfaZgNk0zYbIG9qm08GZNM2GyCbttkA2bTNtzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiBPAvIkIN8MyA0gm7bZALkB5Elt8yQgf6pt9N/aZgPkTUA2bbNpmycB+VedSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRr0V/5iQDZt882AbNrmBpBN22yAbNpmA+RG2zwJyKZt/hSQTds8CcimbW4A2bTNk4B8s7bZALnRNhsgm7bZANm0zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDggm7bZtM0GyJvaZgPkBpBN2zypbTZAbrTNBsimbZ4E5ClAbrTNNwOyaZsbbXMDyI222QDZtM0GyAbIDSCbtvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZV/GJAbbbMB8qa22QDZtM0GyKZtbgDZtM0NIJu22QC50Tb/BciNttkAeVLbbIDcaJsNkE3bbIA8qW02QN7UNv+qE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8DcqNt3gTkkwH5ZECeBOSTAXkKkE3bbIA8qW2e1DY32mYDZNM2GyD6TCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSxk++HJBN29xomycB2bTNm4Bs2mYD5JsBudE2TwGyaZsNkCcBudE2N4C8CciNtnkSkBtAbrTNpzqRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7ysrb5ZkA2bXMDyI22eRKQTds8CcimbTZANm2zAXIDyH9pmye1zQbIpm02QG4A+WRtswHyJCCbtnlT23yrE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0vjJy4A8qW2e1DZvapsbQDZtswFyA8imbTZtc6Nt3tQ2TwGyaZtN22yA3GibDZBN22yAPAnIm9rmSUA2bbMBcqNt3nIiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAfLN2mYD5Ebb3AByo202QPSOttkA2bTNm4Bs2uYGEP25tvlUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZIG/ZUXAbnRNjeA3GibG0ButM03A/LJ2mYDZNM2fwrIJ2ubG0A2bXMDyI22uQFk0zY3gNxomxtANm3zrU4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkDforLwKyaZsNkE3bPAnIpm02QJ7UNk8CcqNtNkButM0GyJPaZgPkT7XNBsiNttkA+Ze1zQ0gN9pmA+RNbbMBsmmbt5xIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGvRX/mJANm3zzYDcaJsbQG60zQ0gm7a5AeRJbfMWIE9qmw2QG22zAXKjbTZANm2zAfKktrkB5E1t85YTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeMnLwOyaZsbbbMB8qa2udE2GyBvapsNkE3bbNrmTW2zAbIB8l/a5kltswHypLZ5U9s8CciNtnkSkE3b/KtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2fvKxtbgDZtM2NtvlmbbMB8iQgTwKyaZsNkG8F5Elt8yYgm7Z5EpBN2zwJyCcDcqNtPtWJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTDwdk0zY32uYGkE3b3ACyaZtP1jZvArJpmw2QDZBN22yA/Bcgm7bZALkB5Ebb6L8B2bTNDSCbttkAudE2GyCbtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRBf+UvBmTTNhsgm7a5AeSTtc2TgNxomw2QG22zAbJpmz8F5EbbbIC8qW2+GZBN2zwJyKZtNkButM0GyI22ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpEF/5UVAbrTNk4DcaJsNkG/WNk8C8qS22QDZtM0GyKZtPhWQN7XNk4Bs2mYD5Elt8yQgN9rmb3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBfeRGQN7XNk4Bs2uabAdm0zQbIm9rmUwHZtM0GyI222QB5U9tsgDypbZ4EZNM2bwKyaZtvdSJJksaJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRp/OTDtc0GyJOA3GibDZAbbXMDyKZtntQ23wzIjbb5L21zo21uALnRNhsgn6xtNkA2bfMmIG8CsmmbT3UiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkadBf+WBANm2zAbJpmw2QTdv8y4DcaJsbQDZtswFyo202QDZt8xQgm7a5AeRG23wzIDfa5k1ANm1zA8iNtnnLiSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxk79c2zwJyI222QDZtM2TgGzaZgNkA+RNbbMBcqNtNkD+VNvcALJpmzcB2bTNBsimbT4ZkE3bvAnIpm2+1YkkSRonkiRpnEiSpHEiSZLGiSRJGieSJGmcSJKkQX/lgwF5Uts8CciNtrkB5EltcwPIjbbZANm0zQbIp2qbJwHZtM0NIG9qmzcB2bTNBsiNttkAeVLbfKoTSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSYP+youAPKltngRk0zY3gGza5klAntQ2N4A8qW02QL5V22yAfLK22QC50TYbIJu22QD5Zm2zAXKjbd5yIkmSxokkSRonkiRpnEiSpHEiSZLGiSRJGieSJGnQX9FrgGzaZgNk0zYbIDfaZgNk0zYbIJu22QDZtM0NIJu2eQqQG21zA8imbTZANm3zJiBvapsnAbnRNn+rE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJy8D8jdrm03b3GibDZA3tc2NtnkSkDcB+S9tc6NtntQ2N9rmBpAbbXOjbW4AuQFk0zZPAnKjbT7ViSRJGieSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqTxkw/XNp8MyJOAbNrmRts8CcimbT5Z22yA3GibpwDZtM0NIJ+sbTZAbgB5U9s8qW02QDZt861OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI2ffDkgT2qbJwF5UttsgLwJyJPa5gaQG0De0jY3gGza5gaQG22zAXKjbZ4EZAPkTUBuANm0zac6kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjR+ole1zZvaZgPkRtvcAPIkIJu22QDZtM3fCsiNttkAudE2TwKyaZtN22yAbNrmBpAbbbMBsgGyaZu3nEiSpHEiSZLGiSRJGieSJGmcSJKkcSJJksaJJEkaP9FHA3KjbTZAngRk0zafDMiTgPyptrkB5Eltc6Nt3gTkTW1zA8imbZ7UNt/qRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdL4yZdrm28G5JO1zQ0gN9pmA2QDZNM2GyCbtrnRNk8BcqNtNkA2QN7UNhsgTwKyaZsNkE3bvAnIjbb5VCeSJGmcSJKkcSJJksaJJEkaJ5IkaZxIkqRxIkmSBv2VFwH5m7XNk4Bs2uZJQJ7UNjeA3GibTwXkRttsgNxomw2QG22zAXKjbW4AeVLbbIDcaJsNkCe1zVtOJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJA36K5Ik6X9OJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},ruvs:function(c,b,t){"use strict";t.d(b,"b",function(){return Q});var Ne=t("2qtc"),M=t("kLXV"),Re=t("miYZ"),Y=t("tsqr"),V=t("WmNS"),R=t.n(V),G=t("9og8"),v=t("tJVT"),X=t("PpiC"),E=t("k1fw"),Ae=t("5NDa"),$=t("5rEg"),Ie=t("B9cy"),U=t("Ol7k"),k=t("q1tI"),a=t.n(k),ee=t("Ty5D"),y=t("55Ip"),te=t("9kvl"),ne=t("xKgJ"),ae=t("xrsn"),S=t.n(ae),ie=t("1Sn+"),pe=t.n(ie),oe=t("m3rI"),C=t("jb+D"),se=t("1vsH"),me=U.a.Header,le=$.a.Search,ue=function(i){var u,e=RegExp("(^| )"+i+"=([^;]+)(;|$)");return(u=document.cookie.match(e))?decodeURIComponent(u[2]):null},z=function(i){var u=new Date;u.setTime(u.getTime()-1);var e=ue(i);e!=null&&(document.cookie=i+"="+e+";expires="+u.toGMTString())};function Q(){var l,i,u=window.location.pathname,e=u.split("/"),n={};return e[1]=="classrooms"&&e.length>3&&!((l=e[4])===null||l===void 0?void 0:l.includes("newgold"))&&!((i=e[5])===null||i===void 0?void 0:i.includes("newgold"))&&e[2]!=="coursesId"&&(n.course_id=e[2]),e[1]==="shixuns"&&e.length>3&&(n.objective_type="shixun",n.objective_id=e[2]),e[1]==="paths"&&e.length>3&&(n.objective_type="path",n.objective_id=e[2]),Object(E.a)(Object(E.a)({},n),{school:1})}var ve={\u9996\u9875:"/","/paths":{link:"/paths",key:1},"/shixuns":{link:"/shixuns",key:2},"/classrooms":{link:"/classrooms",key:3},"/competitions":{link:"/competitions",key:4},"/moop_cases":{link:"/moop_cases",key:5},"/forums":{link:"/forums",key:6},"/recruitment":{link:"/competitions/index",key:7},"/three":{link:"/three",key:7}},re=function(i){var u=i.homePage,e=i.user,n=i.globalSetting,ye=i.loading,A=i.dispatch,_=i.location,K=i.isLogin,ge=K===void 0?!1:K,Ze=Object(X.a)(i,["homePage","user","globalSetting","loading","dispatch","location","isLogin"]),L=Object(ee.k)(),ke=Object(k.useState)(!1),w=Object(v.a)(ke,2),_e=w[0],W=w[1],de=Object(k.useState)(-1),F=Object(v.a)(de,2),Ee=F[0],Se=F[1],Je=Object(k.useState)(!1),H=Object(v.a)(Je,2),ce=H[0],q=H[1],I=Q();Object(k.useEffect)(function(){A({type:"user/getNavigationInfo",payload:Object(E.a)({},I)})},[n.name]),Object(k.useEffect)(function(){A({type:"user/getUserInfo",payload:Object(E.a)({},I)})},[_.pathname]),Object(k.useEffect)(function(){if(n==null?void 0:n.setting){var s,m;n==null||((s=n.setting)===null||s===void 0||((m=s.navbar)===null||m===void 0))||m.map(function(r,d){_.pathname.indexOf(r.link)>-1&&Se(d)})}},[n==null?void 0:n.setting]);function be(s){L.push("/search?value="+s)}var De=function(){return _e?a.a.createElement("div",{onBlur:function(){setTimeout(function(){W(!1)},300)}},a.a.createElement(le,{placeholder:"\u5B9E\u8DF5\u8BFE\u7A0B/\u6559\u5B66\u8BFE\u5802/\u5B9E\u8DF5\u9879\u76EE/\u4EA4\u6D41\u95EE\u7B54",className:"search-input mr20",onSearch:be,autoFocus:!0})):a.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){W(!0)}})},Te=function(){var s=Object(G.a)(R.a.mark(function m(r){var d,o,p;return R.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return r.preventDefault(),N.next=3,Object(C.i)();case 3:o=N.sent,(o==null||((d=o.data)===null||d===void 0)?void 0:d.engineer_url)?document.location.href=o==null||((p=o.data)===null||p===void 0)?void 0:p.engineer_url:(o==null?void 0:o.status)!=401&&q(!0);case 5:case"end":return N.stop()}},m)}));return function(r){return s.apply(this,arguments)}}();if(n.showHeader&&n.showHeaderFooter){var g,Z,D,T,O,f,h,B,j,P,x;return a.a.createElement(U.a,{className:"".concat(S.a.header," ").concat(n.showHeaderFixed?S.a.headerFixed:"")},a.a.createElement(me,{className:"header"},a.a.createElement("section",{className:S.a["edu-menu"]},!!(n==null||((g=n.setting)===null||g===void 0||((Z=g.nav_logo_url)===null||Z===void 0))?void 0:Z.length)&&a.a.createElement(y.Link,{style:{pointerEvents:(e==null||((D=e.userInfo)===null||D===void 0)?void 0:D.login)?"all":"none"},to:"/exam"},a.a.createElement("img",{className:S.a.logo,title:"\u5934\u6B4C",src:"".concat(oe.a.IMG_SERVER,"/").concat(n==null||((T=n.setting)===null||T===void 0)?void 0:T.nav_logo_url)})),a.a.createElement("ul",{style:{visibility:(_==null||((O=_.query)===null||O===void 0)?void 0:O.loginOut)==="true"?"hidden":"visible"},className:S.a.menu},n.setting&&n.setting.navbar.map(function(s,m){if(!s.hidden){var r;return a.a.createElement("li",{key:m,className:Ee===m?S.a.actived:""},!!(e==null||((r=e.userInfo)===null||r===void 0)?void 0:r.login)&&a.a.createElement(y.Link,{dangerouslySetInnerHTML:{__html:s.name},to:s.link}))}})),a.a.createElement("div",{style:{visibility:(_==null||((f=_.query)===null||f===void 0)?void 0:f.loginOut)==="true"?"hidden":"visible"},className:"search-bar font16"},(e==null||((h=e.userInfo)===null||h===void 0)?void 0:h.login)?a.a.createElement(k.Fragment,null,e==null||((B=e.userInfo)===null||B===void 0)?void 0:B.username," \uFF08",ne.a[e==null||((j=e.userInfo)===null||j===void 0)?void 0:j.role],"\uFF09",(e==null||((P=e.userInfo)===null||P===void 0)?void 0:P.student_id)&&a.a.createElement("span",null,"\xA0\xA0",a.a.createElement("span",{className:"c-grey-999"},"\u5B66\u53F7\uFF1A"),e==null||((x=e.userInfo)===null||x===void 0)?void 0:x.student_id),a.a.createElement("a",{className:"ml20",onClick:function(){var m=function(){var r=Object(G.a)(R.a.mark(function d(){var o;return R.a.wrap(function(J){for(;;)switch(J.prev=J.next){case 0:return J.next=2,Object(C.b)({});case 2:o=J.sent,(o==null?void 0:o.status)===1&&(A({type:"user/getUserInfo",payload:Object(E.a)({},I)}),A({type:"user/getNavigationInfo",payload:Object(E.a)({},I)}),z("autologin_trustie"),z("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),Y.b.success(o==null?void 0:o.message),L.replace("/login"));case 4:case"end":return J.stop()}},d)}));return function(){return r.apply(this,arguments)}}();M.a.confirm({title:"\u8BF7\u786E\u8BA4\u662F\u5426\u9000\u51FA\u5F53\u524D\u8D26\u53F7?",onOk:m,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88"})}},"\u9000\u51FA\u767B\u5F55")):a.a.createElement(y.Link,{to:"/login"},"\u767B\u5F55"))),a.a.createElement(M.a,{centered:!0,destroyOnClose:!0,visible:ce,title:"\u63D0\u793A",width:"500px",okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(se.L)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return q(!1)}},a.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},a.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),a.a.createElement("img",{src:t("SMhR"),width:200,height:200}),a.a.createElement("p",null,"\u7FA4\u53F7\uFF1A693542422 ")))))}else return a.a.createElement(a.a.Fragment,null)};b.a=Object(te.a)(function(l){var i=l.homePage,u=l.loading,e=l.user,n=l.globalSetting;return{homePage:i,user:e,globalSetting:n,loading:u.models.index}})(re)},xrsn:function(c,b,t){c.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",headerFixed:"headerFixed___1V7d4",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3"}}}]); diff --git a/layouts__index.cf28ead8.async.js b/layouts__index.006c5d91.async.js similarity index 63% rename from layouts__index.cf28ead8.async.js rename to layouts__index.006c5d91.async.js index 828bc8cea1..31a0961f2b 100644 --- a/layouts__index.cf28ead8.async.js +++ b/layouts__index.006c5d91.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[30],{"+ego":function(m,L,e){"use strict";e.r(L);var te=e("GNNt"),_=e("wEI+"),oe=e("T2oS"),N=e("W9HT"),ne=e("2qtc"),P=e("kLXV"),D=e("XEnU"),X=e("SIvP"),p=e("q1tI"),o=e.n(p),F=e("+Gva"),O=e("9kvl"),k=e("k16G"),B=e("Y8AM"),W=e("XmPC"),q=e.n(W),Q=e("p3IR"),I=e.n(Q),r=e("1vsH"),ae=e("RhLm"),z=e("m3rI"),w=window.location.host,x=z.a.QQLoginCB,G=function(i){var n=i.onWechatLogin;function d(){Object(r.H)()?window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(x,"%2fotherloginqq&state=null,").concat(w,"&response_type=code"):Object(r.L)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(x,"%2fotherloginqq&state=null,").concat(w,"&response_type=code"))}return o.a.createElement(o.a.Fragment,null,o.a.createElement("p",{className:"driver"}," \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 ",o.a.createElement("span",{style:{color:"#444444"}},"\u5FEB\u901F\u767B\u5F55")," \u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014 "),o.a.createElement("div",{className:"other-login"},o.a.createElement("a",{title:"\u5FAE\u4FE1\u767B\u5F55",onClick:n},o.a.createElement("img",{src:q.a,alt:"\u5FAE\u4FE1",width:46})),o.a.createElement("a",{title:"qq\u767B\u5F55",onClick:d},o.a.createElement("img",{src:I.a,alt:"QQ",width:46}))))};function H(i){var n=i.onBack;return o.a.createElement(o.a.Fragment,null,o.a.createElement("iframe",{className:"wechat-qrcode",frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(x,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=null,").concat(w,"#wechat_redirect")}),o.a.createElement("a",{className:"btn-link",onClick:n},"\u8FD4\u56DE\u8D26\u53F7\u767B\u5F55"))}var le=e("1bfj"),J=function(i){var n=i.is_main_site,d=i.is_local,l=i.style,g=l===void 0?{}:l,t=Object(p.useState)(!1),E=Object(k.a)(t,2),c=E[0],C=E[1];function b(){C(!1)}function U(){C(!0)}return o.a.createElement("div",{className:"login-panel-wrapper",style:g},c?o.a.createElement(H,{onBack:b}):o.a.createElement(o.a.Fragment,null,o.a.createElement(B.a,null),n&&!d&&o.a.createElement(G,{onWechatLogin:U})))},V=e("PNBd"),Y=e.n(V),K=function(n){var d,l,g=n.user,t=n.globalSetting,E=n.loading,c=n.dispatch,C=function(){c({type:"user/showPopLogin",payload:{showPopLogin:!1,showClosable:!1}})},b=(d=t.setting)===null||d===void 0?void 0:d.main_site,U=(l=t.setting)===null||l===void 0?void 0:l.is_local;return o.a.createElement(P.a,{centered:!0,title:"\u767B\u5F55",visible:g.showPopLogin,footer:null,width:420,keyboard:!1,maskClosable:!1,wrapClassName:Y.a.popLogin,closable:g.showClosable,onCancel:C},g.showPopLogin&&o.a.createElement(J,{is_main_site:b,is_local:U}))},Z=Object(O.a)(function(i){var n=i.user,d=i.loading,l=i.globalSetting;return{user:n,globalSetting:l,loading:d.models.index}})(K),$=e("wd/R"),A=e.n($),ee=function(n){var d=n.loading,l=n.globalSetting,g=n.children,t=n.user,E=n.dispatch,c=n.location,C=Object(X.a)(n,["loading","globalSetting","children","user","dispatch","location"]),b=l.globalLoading;Object(p.useEffect)(function(){var s=new WebSocket("ws://localhost:8082");s.onopen=function(){s.send(JSON.stringify({type:"getAppList"}))},s.onmessage=function(a){a=JSON.parse(a.data),console.log("dataL:",a),a.type==="deviceStatus"&&E({type:"globalSetting/setDeviceStatus",payload:Object(D.a)({},a.target)})}},[]),Object(p.useEffect)(function(){if(document.body.scrollIntoView(),E({type:"globalSetting/query",payload:{}}),E({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}}),console.log(c,":location"),c.pathname==="/admins"||c.pathname==="/sidekiq"){var s=document.domain;if(s.indexOf("educoder.net")>-1)switch(s){case"www.educoder.net":case"educoder.net":window.location.href="https://data.educoder.net".concat(c.pathname);break;default:var a=document.domain.split(".");a[0]=a[0]+"-data",window.location.href="https://".concat(a.join(".")).concat(c.pathname);break}}P.a.destroyAll(),Object(O.e)("zh-CN",!1)},[c.pathname]),Object(p.useEffect)(function(){l.updateData.system_update?localStorage.updateEndTime||new Date().getTime()-1)switch(s){case"www.educoder.net":case"educoder.net":window.location.href="https://data.educoder.net".concat(d.pathname);break;default:var a=document.domain.split(".");a[0]=a[0]+"-data",window.location.href="https://".concat(a.join(".")).concat(d.pathname);break}}P.a.destroyAll(),Object(O.e)("zh-CN",!1)},[d.pathname]),Object(p.useEffect)(function(){l.updateData.system_update?localStorage.updateEndTime||new Date().getTime()U.getLineMinColumn(x)?u=u-I.G(U.getLineContent(x),u-1):x>1&&(x=x-1,u=U.getLineMaxColumn(x)),new re.a(x,u)},O.left=function(U,x,u,y){var w=O.leftPosition(x,u,y);return new H(w.lineNumber,w.column,0)},O.moveLeft=function(U,x,u,y,w){var f,v;if(u.hasSelection()&&!y)f=u.selection.startLineNumber,v=u.selection.startColumn;else{var _=O.left(U,x,u.position.lineNumber,u.position.column-(w-1));f=_.lineNumber,v=_.column}return u.move(y,f,v,0)},O.rightPosition=function(U,x,u){return up?(u=p,v?y=x.getLineMaxColumn(u):y=Math.min(x.getLineMaxColumn(u),y)):y=T.a.columnFromVisibleColumn2(U,x,u,_),w=_-T.a.visibleColumnFromColumn(x.getLineContent(u),y,U.tabSize),new H(u,y,w)},O.moveDown=function(U,x,u,y,w){var f,v;u.hasSelection()&&!y?(f=u.selection.endLineNumber,v=u.selection.endColumn):(f=u.position.lineNumber,v=u.position.column);var _=O.down(U,x,f,v,u.leftoverVisibleColumns,w,!0);return u.move(y,_.lineNumber,_.column,_.leftoverVisibleColumns)},O.translateDown=function(U,x,u){var y=u.selection,w=O.down(U,x,y.selectionStartLineNumber,y.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),f=O.down(U,x,y.positionLineNumber,y.positionColumn,u.leftoverVisibleColumns,1,!1);return new T.f(new J.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.up=function(U,x,u,y,w,f,v){var _=T.a.visibleColumnFromColumn(x.getLineContent(u),y,U.tabSize)+w;return u=u-f,u<1?(u=1,v?y=x.getLineMinColumn(u):y=Math.min(x.getLineMaxColumn(u),y)):y=T.a.columnFromVisibleColumn2(U,x,u,_),w=_-T.a.visibleColumnFromColumn(x.getLineContent(u),y,U.tabSize),new H(u,y,w)},O.moveUp=function(U,x,u,y,w){var f,v;u.hasSelection()&&!y?(f=u.selection.startLineNumber,v=u.selection.startColumn):(f=u.position.lineNumber,v=u.position.column);var _=O.up(U,x,f,v,u.leftoverVisibleColumns,w,!0);return u.move(y,_.lineNumber,_.column,_.leftoverVisibleColumns)},O.translateUp=function(U,x,u){var y=u.selection,w=O.up(U,x,y.selectionStartLineNumber,y.selectionStartColumn,u.selectionStartLeftoverVisibleColumns,1,!1),f=O.up(U,x,y.positionLineNumber,y.positionColumn,u.leftoverVisibleColumns,1,!1);return new T.f(new J.a(w.lineNumber,w.column,w.lineNumber,w.column),w.leftoverVisibleColumns,new re.a(f.lineNumber,f.column),f.leftoverVisibleColumns)},O.moveToBeginningOfLine=function(U,x,u,y){var w=u.position.lineNumber,f=x.getLineMinColumn(w),v=x.getLineFirstNonWhitespaceColumn(w)||f,_,p=u.position.column;return p===v?_=f:_=v,u.move(y,w,_,0)},O.moveToEndOfLine=function(U,x,u,y){var w=u.position.lineNumber,f=x.getLineMaxColumn(w);return u.move(y,w,f,0)},O.moveToBeginningOfBuffer=function(U,x,u,y){return u.move(y,1,1,0)},O.moveToEndOfBuffer=function(U,x,u,y){var w=x.getLineCount(),f=x.getLineMaxColumn(w);return u.move(y,w,f,0)},O}()},"+a1H":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars"],mimetypes:["text/x-handlebars-template"],loader:function(){return e.e(287).then(e.bind(null,"O3xE"))}})},"+hIS":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=typeof monaco=="undefined"?self.monaco:monaco,re={},J={},I=function(){function O(U){var x=this;this._languageId=U,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise(function(u,y){x._lazyLoadPromiseResolve=u,x._lazyLoadPromiseReject=y})}return O.getOrCreate=function(U){return J[U]||(J[U]=new O(U)),J[U]},O.prototype.whenLoaded=function(){return this._lazyLoadPromise},O.prototype.load=function(){var U=this;return this._loadingTriggered||(this._loadingTriggered=!0,re[this._languageId].loader().then(function(x){return U._lazyLoadPromiseResolve(x)},function(x){return U._lazyLoadPromiseReject(x)})),this._lazyLoadPromise},O}();function H(O){return I.getOrCreate(O).load()}function z(O){var U=O.id;re[U]=O,T.languages.register(O);var x=I.getOrCreate(U);T.languages.setMonarchTokensProvider(U,x.whenLoaded().then(function(u){return u.language})),T.languages.onLanguage(U,function(){x.load().then(function(u){T.languages.setLanguageConfiguration(U,u.conf)})})}},"/RFl":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DragAndDropController",function(){return w});var T=e("OhnE"),re=e("pmY6"),J=e("MNsG"),I=e("sswD"),H=e("cGHE"),z=e("aokT"),O=e("gCVg"),U=function(){function f(v,_,p){this.selection=v,this.targetPosition=_,this.copy=p,this.targetSelection=null}return f.prototype.getEditOperations=function(v,_){var p=v.getValueInRange(this.selection);if(this.copy||_.addEditOperation(this.selection,null),_.addEditOperation(new z.a(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),p),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new O.a(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new O.a(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumberVe?Ve:De},be.float=function(De,Se){if(typeof De=="number")return De;if(typeof De=="undefined")return Se;var Ve=parseFloat(De);return isNaN(Ve)?Se:Ve},be.prototype.validate=function(De){return this.validationFn(be.float(De,this.defaultValue))},be}(y),_=function(oe){I(be,oe);function be(De,Se,Ve,Qe){Qe===void 0&&(Qe=void 0);var it=this;return typeof Qe!="undefined"&&(Qe.type="string",Qe.default=Ve),it=oe.call(this,De,Se,Ve,Qe)||this,it}return be.string=function(De,Se){return typeof De!="string"?Se:De},be.prototype.validate=function(De){return be.string(De,this.defaultValue)},be}(y),p=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it){it===void 0&&(it=void 0);var pt=this;return typeof it!="undefined"&&(it.type="string",it.enum=Qe,it.default=Ve),pt=oe.call(this,De,Se,Ve,it)||this,pt._allowedValues=Qe,pt}return be.stringSet=function(De,Se,Ve){return typeof De!="string"||Ve.indexOf(De)===-1?Se:De},be.prototype.validate=function(De){return be.stringSet(De,this.defaultValue,this._allowedValues)},be}(y),c=function(oe){I(be,oe);function be(De,Se,Ve,Qe,it,pt,Rt){Rt===void 0&&(Rt=void 0);var Mt=this;return typeof Rt!="undefined"&&(Rt.type="string",Rt.enum=it,Rt.default=Qe),Mt=oe.call(this,De,Se,Ve,Rt)||this,Mt._allowedValues=it,Mt._convert=pt,Mt}return be.prototype.validate=function(De){return typeof De!="string"?this.defaultValue:this._allowedValues.indexOf(De)===-1?this.defaultValue:this._convert(De)},be}(x);function s(oe){switch(oe){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var l=function(oe){I(be,oe);function be(){return oe.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[T.a("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),T.a("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),T.a("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:T.a("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return be.prototype.validate=function(De){switch(De){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},be.prototype.compute=function(De,Se,Ve){return Ve===0?De.accessibilitySupport:Ve},be}(x),d=function(oe){I(be,oe);function be(){var De=this,Se={insertSpace:!0};return De=oe.call(this,13,"comments",Se,{"editor.comments.insertSpace":{type:"boolean",default:Se.insertSpace,description:T.a("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{insertSpace:w.boolean(Se.insertSpace,this.defaultValue.insertSpace)}},be}(x);function m(oe){switch(oe){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var E;(function(oe){oe[oe.Line=1]="Line",oe[oe.Block=2]="Block",oe[oe.Underline=3]="Underline",oe[oe.LineThin=4]="LineThin",oe[oe.BlockOutline=5]="BlockOutline",oe[oe.UnderlineThin=6]="UnderlineThin"})(E||(E={}));function L(oe){switch(oe){case"line":return E.Line;case"block":return E.Block;case"underline":return E.Underline;case"line-thin":return E.LineThin;case"block-outline":return E.BlockOutline;case"underline-thin":return E.UnderlineThin}}var A=function(oe){I(be,oe);function be(){return oe.call(this,104,[55,26])||this}return be.prototype.compute=function(De,Se,Ve){var Qe="monaco-editor";return Se.get(26)&&(Qe+=" "+Se.get(26)),De.extraEditorClassName&&(Qe+=" "+De.extraEditorClassName),Se.get(55)==="default"?Qe+=" mouse-default":Se.get(55)==="copy"&&(Qe+=" mouse-copy"),Se.get(85)&&(Qe+=" showUnused"),Qe},be}(u),k=function(oe){I(be,oe);function be(){return oe.call(this,25,"emptySelectionClipboard",!0,{description:T.a("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return be.prototype.compute=function(De,Se,Ve){return Ve&&De.emptySelectionClipboard},be}(w),R=function(oe){I(be,oe);function be(){var De=this,Se={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return De=oe.call(this,28,"find",Se,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:Se.seedSearchStringFromSelection,description:T.a("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:Se.autoFindInSelection,enumDescriptions:[T.a("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),T.a("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),T.a("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:T.a("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:Se.globalFindClipboard,description:T.a("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:re.e},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:Se.addExtraSpaceOnTop,description:T.a("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{seedSearchStringFromSelection:w.boolean(Se.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:typeof De.autoFindInSelection=="boolean"?De.autoFindInSelection?"always":"never":p.stringSet(Se.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(Se.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(Se.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},be}(x),$=function(oe){I(be,oe);function be(){return oe.call(this,35,"fontLigatures",be.OFF,{anyOf:[{type:"boolean",description:T.a("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:T.a("fontFeatureSettings","Explicit font-feature-settings.")}],description:T.a("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return be.prototype.validate=function(De){return typeof De=="undefined"?this.defaultValue:typeof De=="string"?De==="false"?be.OFF:De==="true"?be.ON:De:Boolean(De)?be.ON:be.OFF},be.OFF='"liga" off, "calt" off',be.ON='"liga" on, "calt" on',be}(x),ie=function(oe){I(be,oe);function be(){return oe.call(this,34)||this}return be.prototype.compute=function(De,Se,Ve){return De.fontInfo},be}(u),W=function(oe){I(be,oe);function be(){return oe.call(this,36,"fontSize",ve.fontSize,{type:"number",minimum:6,maximum:100,default:ve.fontSize,description:T.a("fontSize","Controls the font size in pixels.")})||this}return be.prototype.validate=function(De){var Se=v.float(De,this.defaultValue);return Se===0?ve.fontSize:v.clamp(Se,6,100)},be.prototype.compute=function(De,Se,Ve){return De.fontInfo.fontSize},be}(y),B=function(oe){I(be,oe);function be(){var De=this,Se={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},Ve={type:"string",enum:["peek","gotoAndPeek","goto"],default:Se.multiple,enumDescriptions:[T.a("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),T.a("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),T.a("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return De=oe.call(this,41,"gotoLocation",Se,{"editor.gotoLocation.multiple":{deprecationMessage:T.a("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":H({description:T.a("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleTypeDefinitions":H({description:T.a("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleDeclarations":H({description:T.a("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleImplementations":H({description:T.a("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.multipleReferences":H({description:T.a("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},Ve),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:Se.alternativeDefinitionCommand,description:T.a("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:Se.alternativeTypeDefinitionCommand,description:T.a("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:Se.alternativeDeclarationCommand,description:T.a("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:Se.alternativeImplementationCommand,description:T.a("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:Se.alternativeReferenceCommand,description:T.a("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,De}return be.prototype.validate=function(De){var Se,Ve,Qe,it,pt;if(typeof De!="object")return this.defaultValue;var Rt=De;return{multiple:p.stringSet(Rt.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(Se=Rt.multipleDefinitions)!==null&&Se!==void 0?Se:p.stringSet(Rt.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(Ve=Rt.multipleTypeDefinitions)!==null&&Ve!==void 0?Ve:p.stringSet(Rt.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(Qe=Rt.multipleDeclarations)!==null&&Qe!==void 0?Qe:p.stringSet(Rt.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(it=Rt.multipleImplementations)!==null&&it!==void 0?it:p.stringSet(Rt.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(pt=Rt.multipleReferences)!==null&&pt!==void 0?pt:p.stringSet(Rt.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:_.string(Rt.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:_.string(Rt.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:_.string(Rt.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:_.string(Rt.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:_.string(Rt.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},be}(x),le=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,delay:300,sticky:!0};return De=oe.call(this,44,"hover",Se,{"editor.hover.enabled":{type:"boolean",default:Se.enabled,description:T.a("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:Se.delay,description:T.a("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:Se.sticky,description:T.a("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:w.boolean(Se.enabled,this.defaultValue.enabled),delay:f.clampedInt(Se.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(Se.sticky,this.defaultValue.sticky)}},be}(x),Ce=function(oe){I(be,oe);function be(){return oe.call(this,107,[40,48,30,54,78,50])||this}return be.prototype.compute=function(De,Se,Ve){return be.computeLayout(Se,{outerWidth:De.outerWidth,outerHeight:De.outerHeight,lineHeight:De.fontInfo.lineHeight,lineNumbersDigitCount:De.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:De.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:De.fontInfo.maxDigitWidth,pixelRatio:De.pixelRatio})},be.computeLayout=function(De,Se){var Ve=Se.outerWidth|0,Qe=Se.outerHeight|0,it=Se.lineHeight|0,pt=Se.lineNumbersDigitCount|0,Rt=Se.typicalHalfwidthCharacterWidth,Mt=Se.maxDigitWidth,zt=Se.pixelRatio,uo=De.get(40),ao=De.get(50).renderType!==0,so=De.get(51)|0,Pt=De.get(54),ft=Pt.enabled,vt=Pt.side,At=Pt.renderCharacters,at=zt>=2?Math.round(Pt.scale*2):Pt.scale,tt=Pt.maxColumn|0,ut=De.get(78),Ct=ut.verticalScrollbarSize|0,gt=ut.verticalHasArrows,bt=ut.arrowSize|0,Gt=ut.horizontalScrollbarSize|0,Nt=De.get(48),Et=De.get(30),Je;if(typeof Nt=="string"&&/^\d+(\.\d+)?ch$/.test(Nt)){var $e=parseFloat(Nt.substr(0,Nt.length-2));Je=f.clampedInt($e*Rt,0,0,1e3)}else Je=f.clampedInt(Nt,0,0,1e3);Et&&(Je+=16);var ze=0;if(ao){var Ke=Math.max(pt,so);ze=Math.round(Ke*Mt)}var fe=0;uo&&(fe=it);var G=0,te=G+fe,Y=te+ze,de=Y+Je,ke=Ve-fe-ze-Je,lt,Tt,Jt,eo;if(!ft)Tt=0,Jt=0,lt=0,eo=ke;else{var po=at/zt;lt=At?1:2,Jt=Math.max(0,Math.floor((ke-Ct-2)*po/(Rt+po)))+z;var co=Jt/po;co>tt&&(Jt=Math.floor(tt*po)),eo=ke-Jt,vt==="left"?(Tt=0,G+=Jt,te+=Jt,Y+=Jt,de+=Jt):Tt=Ve-Jt-Ct}var Eo=Math.max(1,Math.floor((eo-Ct-2)/Rt)),Oo=gt?bt:0;return{width:Ve,height:Qe,glyphMarginLeft:G,glyphMarginWidth:fe,lineNumbersLeft:te,lineNumbersWidth:ze,decorationsLeft:Y,decorationsWidth:Je,contentLeft:de,contentWidth:eo,renderMinimap:lt,minimapLeft:Tt,minimapWidth:Jt,viewportColumn:Eo,verticalScrollbarWidth:Ct,horizontalScrollbarHeight:Gt,overviewRuler:{top:Oo,width:Ct,height:Qe-2*Oo,right:0}}},be}(u),Me=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0};return De=oe.call(this,47,"lightbulb",Se,{"editor.lightbulb.enabled":{type:"boolean",default:Se.enabled,description:T.a("codeActions","Enables the code action lightbulb in the editor.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:w.boolean(Se.enabled,this.defaultValue.enabled)}},be}(x),Te=function(oe){I(be,oe);function be(){return oe.call(this,49,"lineHeight",ve.lineHeight,0,150,{description:T.a("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return be.prototype.compute=function(De,Se,Ve){return De.fontInfo.lineHeight},be}(f),Fe=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return De=oe.call(this,54,"minimap",Se,{"editor.minimap.enabled":{type:"boolean",default:Se.enabled,description:T.a("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:Se.side,description:T.a("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:Se.showSlider,description:T.a("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:Se.scale,minimum:1,maximum:3,description:T.a("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:Se.renderCharacters,description:T.a("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:Se.maxColumn,description:T.a("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:w.boolean(Se.enabled,this.defaultValue.enabled),side:p.stringSet(Se.side,this.defaultValue.side,["right","left"]),showSlider:p.stringSet(Se.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(Se.renderCharacters,this.defaultValue.renderCharacters),scale:f.clampedInt(Se.scale,1,1,3),maxColumn:f.clampedInt(Se.maxColumn,this.defaultValue.maxColumn,1,1e4)}},be}(x);function He(oe){return oe==="ctrlCmd"?re.e?"metaKey":"ctrlKey":"altKey"}var Pe=function(oe){I(be,oe);function be(){var De=this,Se={enabled:!0,cycle:!1};return De=oe.call(this,64,"parameterHints",Se,{"editor.parameterHints.enabled":{type:"boolean",default:Se.enabled,description:T.a("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:Se.cycle,description:T.a("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,De}return be.prototype.validate=function(De){if(typeof De!="object")return this.defaultValue;var Se=De;return{enabled:w.boolean(Se.enabled,this.defaultValue.enabled),cycle:w.boolean(Se.cycle,this.defaultValue.cycle)}},be}(x),ne=function(oe){I(be,oe);function be(){return oe.call(this,105)||this}return be.prototype.compute=function(De,Se,Ve){return De.pixelRatio},be}(u),ee=function(oe){I(be,oe);function be(){var De=this,Se={other:!0,comments:!1,strings:!1};return De=oe.call(this,66,"quickSuggestions",Se,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:Se.strings,description:T.a("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:Se.comments,description:T.a("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:Se.other,description:T.a("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:Se,description:T.a("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,De.defaultValue=Se,De}return be.prototype.validate=function(De){if(typeof De=="boolean")return De;if(typeof De=="object"){var Se=De,Ve={other:w.boolean(Se.other,this.defaultValue.other),comments:w.boolean(Se.comments,this.defaultValue.comments),strings:w.boolean(Se.strings,this.defaultValue.strings)};return Ve.other&&Ve.comments&&Ve.strings?!0:!Ve.other&&!Ve.comments&&!Ve.strings?!1:Ve}return this.defaultValue},be}(x),ae=function(oe){I(be,oe);function be(){return oe.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[T.a("lineNumbers.off","Line numbers are not rendered."),T.a("lineNumbers.on","Line numbers are rendered as absolute number."),T.a("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),T.a("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:T.a("lineNumbers","Controls the display of line numbers.")})||this}return be.prototype.validate=function(De){var Se=this.defaultValue.renderType,Ve=this.defaultValue.renderFn;return typeof De!="undefined"&&(typeof De=="function"?(Se=4,Ve=De):De==="interval"?Se=3:De==="relative"?Se=2:De==="on"?Se=1:Se=0),{renderType:Se,renderFn:Ve}},be}(x);function q(oe){var be=oe.get(73);return be==="editable"?oe.get(68):!(be==="on")}var ue=function(oe){I(be,oe);function be(){var De=this,Se=[];return De=oe.call(this,77,"rulers",Se,{type:"array",items:{type:"number"},default:Se,description:T.a("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,De}return be.prototype.validate=function(De){if(Array.isArray(De)){for(var Se=[],Ve=0,Qe=De;Ve",it},X.prototype.image=function(Se,Ve,Qe){if(Se=Re(this.options.sanitize,this.options.baseUrl,Se),Se===null)return Qe;var it=''+Qe+'":">",it},X.prototype.text=function(Se){return Se};function he(){}he.prototype.strong=he.prototype.em=he.prototype.codespan=he.prototype.del=he.prototype.text=function(Se){return Se},he.prototype.link=he.prototype.image=function(Se,Ve,Qe){return""+Qe},he.prototype.br=function(){return""};function je(Se){this.tokens=[],this.token=null,this.options=Se||De.defaults,this.options.renderer=this.options.renderer||new X,this.renderer=this.options.renderer,this.renderer.options=this.options,this.slugger=new Xe}je.parse=function(Se,Ve){var Qe=new je(Ve);return Qe.parse(Se)},je.prototype.parse=function(Se){this.inline=new ue(Se.links,this.options),this.inlineText=new ue(Se.links,F({},this.options,{renderer:new he})),this.tokens=Se.reverse();for(var Ve="";this.next();)Ve+=this.tok();return Ve},je.prototype.next=function(){return this.token=this.tokens.pop()},je.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},je.prototype.parseText=function(){for(var Se=this.token.text;this.peek().type==="text";)Se+=` -`+this.next().text;return this.inline.output(Se)},je.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,ge(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":{var Se="",Ve="",Qe,it,pt,Rt;for(pt="",Qe=0;Qe?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ve)){var Qe=Ve;do this.seen[Qe]++,Ve=Qe+"-"+this.seen[Qe];while(this.seen.hasOwnProperty(Ve))}return this.seen[Ve]=0,Ve};function me(Se,Ve){if(Ve){if(me.escapeTest.test(Se))return Se.replace(me.escapeReplace,function(Qe){return me.replacements[Qe]})}else if(me.escapeTestNoEncode.test(Se))return Se.replace(me.escapeReplaceNoEncode,function(Qe){return me.replacements[Qe]});return Se}me.escapeTest=/[&<>"']/,me.escapeReplace=/[&<>"']/g,me.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},me.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,me.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ge(Se){return Se.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(Ve,Qe){return Qe=Qe.toLowerCase(),Qe==="colon"?":":Qe.charAt(0)==="#"?Qe.charAt(1)==="x"?String.fromCharCode(parseInt(Qe.substring(2),16)):String.fromCharCode(+Qe.substring(1)):""})}function _e(Se,Ve){return Se=Se.source||Se,Ve=Ve||"",{replace:function(it,pt){return pt=pt.source||pt,pt=pt.replace(/(^|[^\[])\^/g,"$1"),Se=Se.replace(it,pt),this},getRegex:function(){return new RegExp(Se,Ve)}}}function Re(Se,Ve,Qe){if(Se){try{var it=decodeURIComponent(ge(Qe)).replace(/[^\w:]/g,"").toLowerCase()}catch(pt){return null}if(it.indexOf("javascript:")===0||it.indexOf("vbscript:")===0||it.indexOf("data:")===0)return null}Ve&&!Q.test(Qe)&&(Qe=Ee(Ve,Qe));try{Qe=encodeURI(Qe).replace(/%25/g,"%")}catch(pt){return null}return Qe}function Ee(Se,Ve){return ve[" "+Se]||(/^[^:]+:\/*[^/]*$/.test(Se)?ve[" "+Se]=Se+"/":ve[" "+Se]=oe(Se,"/",!0)),Se=ve[" "+Se],Ve.slice(0,2)==="//"?Se.replace(/:[\s\S]*/,":")+Ve:Ve.charAt(0)==="/"?Se.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ve:Se+Ve}var ve={},Q=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(){}C.exec=C;function F(Se){for(var Ve=1,Qe,it;Ve=0&&zt[ao]==="\\";)uo=!uo;return uo?"|":" |"}),it=Qe.split(/ \|/),pt=0;if(it.length>Ve)it.splice(Ve);else for(;it.lengthAn error occurred:

"+me(uo.message+"",!0)+"
";throw uo}}De.options=De.setOptions=function(Se){return F(De.defaults,Se),De},De.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new X,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},De.defaults=De.getDefaults(),De.Parser=je,De.parser=je.parse,De.Renderer=X,De.TextRenderer=he,De.Lexer=ae,De.lexer=ae.lex,De.InlineLexer=ue,De.inlineLexer=ue.output,De.Slugger=Xe,De.parse=De,z=De}).call(void 0);var O=z,U=z.Parser,x=z.parser,u=z.Renderer,y=z.TextRenderer,w=z.Lexer,f=z.lexer,v=z.InlineLexer,_=z.inlineLexer,p=z.parse,c,c,s;(function(){function ne(ee,ae,q){function ue(je,Xe){if(!ae[je]){if(!ee[je]){var me=typeof c=="function"&&c;if(!Xe&&me)return c(je,!0);if(X)return X(je,!0);var ge=new Error("Cannot find module '"+je+"'");throw ge.code="MODULE_NOT_FOUND",ge}var _e=ae[je]={exports:{}};ee[je][0].call(_e.exports,function(Re){var Ee=ee[je][1][Re];return ue(Ee||Re)},_e,_e.exports,ne,ee,ae,q)}return ae[je].exports}for(var X=typeof c=="function"&&c,he=0;he\s]+))?)*)\s*(\/?)\s*>/,Xe=/^<\s*\/\s*([\w:-]+)[^>]*>/,me=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,ge=/^");pt>=0&&(Q.comment&&Q.comment(ve.substring(4,pt)),ve=ve.substring(pt+3),se=!1)}function Ve(){if(!se)return;var pt,Rt=ve.indexOf("<");Rt>=0?(pt=ve.substring(0,Rt),ve=ve.substring(Rt)):(pt=ve,ve=""),Q.chars&&Q.chars(pt)}function Qe(pt,Rt,Mt,zt){var uo={},ao=ue(Rt),so=he.voids[ao]||!!zt;Mt.replace(me,Pt),so||C.push(ao),Q.start&&Q.start(ao,uo,so);function Pt(ft,vt,At,at,tt){At===void 0&&at===void 0&&tt===void 0?uo[vt]=void 0:uo[vt]=q.decode(At||at||tt||"")}}function it(pt,Rt){var Mt,zt=0,uo=ue(Rt);if(uo)for(zt=C.length-1;zt>=0&&!(C[zt]===uo);zt--);if(zt>=0){for(Mt=C.length-1;Mt>=zt;Mt--)Q.end&&Q.end(C[Mt]);C.length=zt}}}ee.exports=Ee},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ne,ee,ae){"use strict";var q=ne("he"),ue=ne("./lowercase"),X=ne("./attributes"),he=ne("./elements");function je(Xe,me){var ge,_e,Re=me||{};return be(),{start:ve,end:Q,chars:F};function Ee(De){Xe.push(De)}function ve(De,Se,Ve){var Qe=ue(De);if(_e.ignoring){se(Qe);return}if((Re.allowedTags||[]).indexOf(Qe)===-1){se(Qe);return}if(Re.filter&&!Re.filter({tag:Qe,attrs:Se})){se(Qe);return}Ee("<"),Ee(Qe),Object.keys(Se).forEach(it),Ee(Ve?"/>":">");function it(pt){var Rt=Se[pt],Mt=(Re.allowedClasses||{})[Qe]||[],zt=(Re.allowedAttributes||{})[Qe]||[];zt=zt.concat((Re.allowedAttributes||{})["*"]||[]);var uo,ao=ue(pt);ao==="class"&&zt.indexOf(ao)===-1?(Rt=Rt.split(" ").filter(so).join(" ").trim(),uo=Rt.length):uo=zt.indexOf(ao)!==-1&&(X.uris[ao]!==!0||C(Rt)),uo&&(Ee(" "),Ee(pt),typeof Rt=="string"&&(Ee('="'),Ee(q.encode(Rt)),Ee('"')));function so(Pt){return Mt&&Mt.indexOf(Pt)!==-1}}}function Q(De){var Se=ue(De),Ve=(Re.allowedTags||[]).indexOf(Se)!==-1;Ve&&_e.ignoring===!1?(Ee("")):oe(Se)}function C(De){var Se=De[0];if(Se==="#"||Se==="/")return!0;var Ve=De.indexOf(":");if(Ve===-1)return!0;var Qe=De.indexOf("?");if(Qe!==-1&&Ve>Qe)return!0;var it=De.indexOf("#");if(it!==-1&&Ve>it)return!0;return Re.allowedSchemes.some(pt);function pt(Rt){return De.indexOf(Rt+":")===0}}function F(De){_e.ignoring===!1&&Ee(Re.transformText?Re.transformText(De):De)}function se(De){if(he.voids[De])return;_e.ignoring===!1?_e={ignoring:De,depth:1}:_e.ignoring===De&&_e.depth++}function oe(De){_e.ignoring===De&&(--_e.depth<=0&&be())}function be(){_e={ignoring:!1,depth:0}}}ee.exports=je},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ne,ee,ae){"use strict";var q={"&":"&","<":"<",">":">",'"':""","'":"'"},ue={"&":"&","<":"<",">":">",""":'"',"'":"'"},X=/(&|<|>|"|')/g,he=/[&<>"']/g;function je(_e){return q[_e]}function Xe(_e){return ue[_e]}function me(_e){return _e==null?"":String(_e).replace(he,je)}function ge(_e){return _e==null?"":String(_e).replace(X,Xe)}me.options=ge.options={},ee.exports={encode:me,escape:me,decode:ge,unescape:ge,version:"1.0.0-browser"}},{}],10:[function(ne,ee,ae){"use strict";function q(X){return X.reduce(ue,{})}function ue(X,he){return X[he]=!0,X}ee.exports=q},{}]},{},[4]);var l=s,d=e("Q4rV"),m=e("qj0h"),E=e("N0LK"),L=e("bY76"),A=e("tYmi"),k=e("Vhoy");function R(ne,ee){ee===void 0&&(ee={});var ae=Object(re.a)(ee),q=function(Ee){var ve;try{ve=Object(d.a)(decodeURIComponent(Ee))}catch(Q){}return ve?(ve=Object(m.b)(ve,function(Q){return ne.uris&&ne.uris[Q]?L.a.revive(ne.uris[Q]):void 0}),encodeURIComponent(JSON.stringify(ve))):Ee},ue=function(Ee,ve){var Q=ne.uris&&ne.uris[Ee];if(!Q)return Ee;var C=L.a.revive(Q);return L.a.parse(Ee).toString()===C.toString()?Ee:(ve&&(C=T.s(C)),C.query&&(C=C.with({query:q(C.query)})),C.toString(!0))},X,he=new Promise(function(Re){return X=Re}),je=new u;je.image=function(Re,Ee,ve){var Q,C=[],F=[];return Re&&(Q=Object(I.d)(Re),Re=Q.href,C=Q.dimensions,Re=ue(Re,!0),F.push('src="'+Re+'"')),ve&&F.push('alt="'+ve+'"'),Ee&&F.push('title="'+Ee+'"'),C.length&&(F=F.concat(C)),""},je.link=function(Re,Ee,ve){return Re===ve&&(ve=Object(I.e)(ve)),Re=ue(Re,!1),Ee=Object(I.e)(Ee),Re=Object(I.e)(Re),!Re||Re.match(/^data:|javascript:/i)||Re.match(/^command:/i)&&!ne.isTrusted||Re.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?ve:(Re=Re.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),'
'+ve+"")},je.paragraph=function(Re){return"

"+(ne.supportThemeIcons?Object(k.c)(Re):Re)+"

"},ee.codeBlockRenderer&&(je.code=function(Re,Ee){var ve=ee.codeBlockRenderer(Ee,Re),Q=H.b.nextId(),C=Promise.all([ve,he]).then(function(F){var se=F[0],oe=ae.querySelector('div[data-code="'+Q+'"]');oe&&(oe.innerHTML=se)}).catch(function(F){});return ee.codeBlockRenderCallback&&C.then(ee.codeBlockRenderCallback),'
'+Object(E.o)(Re)+"
"});var Xe=ee.actionHandler;Xe&&Xe.disposeables.add(T.o(ae,"click",function(Re){var Ee=Re.target;if(Ee.tagName!=="A"&&(Ee=Ee.parentElement,!Ee||Ee.tagName!=="A"))return;try{var ve=Ee.dataset.href;ve&&Xe.callback(ve,Re)}catch(Q){Object(J.e)(Q)}finally{Re.preventDefault()}}));var me={sanitize:!0,renderer:je},ge=[A.b.http,A.b.https,A.b.mailto,A.b.data,A.b.file,A.b.vscodeRemote,A.b.vscodeRemoteResource];ne.isTrusted&&ge.push(A.b.command);var _e=p(ne.supportThemeIcons?Object(k.b)(ne.value):ne.value,me);return ae.innerHTML=l(_e,{allowedSchemes:ge,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),X(),ae}var $=e("W9cx"),ie=e("WBhO"),W=e("TQUy"),B=e("Cg/j"),le=e("MI8n"),Ce=e("pmY6"),Me=e("twdY"),Te=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),Fe=function(ne,ee,ae,q){var ue=arguments.length,X=ue<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ae):q,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(ne,ee,ae,q);else for(var je=ne.length-1;je>=0;je--)(he=ne[je])&&(X=(ue<3?he(X):ue>3?he(ee,ae,X):he(ee,ae))||X);return ue>3&&X&&Object.defineProperty(ee,ae,X),X},He=function(ne,ee){return function(ae,q){ee(ae,q,ne)}},Pe=function(ne){Te(ee,ne);function ee(ae,q,ue){ue===void 0&&(ue=$.b);var X=ne.call(this)||this;return X._editor=ae,X._modeService=q,X._openerService=ue,X._onDidRenderCodeBlock=X._register(new le.a),X.onDidRenderCodeBlock=X._onDidRenderCodeBlock.event,X}return ee.prototype.getOptions=function(ae){var q=this;return{codeBlockRenderer:function(X,he){var je=null;if(X)je=q._modeService.getModeIdForLanguageName(X);else{var Xe=q._editor.getModel();Xe&&(je=Xe.getLanguageIdentifier().language)}return q._modeService.triggerMode(je||""),Promise.resolve(!0).then(function(me){var ge=Me.B.getPromise(je||"");return ge?ge.then(function(_e){return Object(W.b)(he,_e)}):Object(W.b)(he,void 0)}).then(function(me){return''+me+""})},codeBlockRenderCallback:function(){return q._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(X){q._openerService.open(X,{fromUserGesture:!0}).catch(J.e)},disposeables:ae}}},ee.prototype.render=function(ae){var q=new Ce.b,ue;return ae?ue=R(ae,this.getOptions(q)):ue=document.createElement("span"),{element:ue,dispose:function(){return q.dispose()}}},ee=Fe([He(1,ie.a),He(2,Object(B.d)($.a))],ee),ee}(Ce.a)},"3rx1":function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return U}),e.d(j,"c",function(){return u});var T=e("bY76"),re=e("MrjW"),J=e("N0LK"),I=e("tYmi"),H=e("MNsG"),z=e("gslv");function O(f,v,_){if(typeof f=="string"&&(f=T.a.file(f)),_){var p=_.getWorkspaceFolder(f);if(p){var c=_.getWorkspace().folders.length>1,s=void 0;if(Object(z.e)(p.uri,f)?s="":s=Object(z.h)(p.uri,f),c){var l=p.name?p.name:Object(z.b)(p.uri);s=s?l+" \u2022 "+s:l}return s}}if(f.scheme!==I.b.file&&f.scheme!==I.b.untitled)return f.with({query:null,fragment:null}).toString(!0);if(x(f.fsPath))return Object(re.normalize)(u(f.fsPath));var d=Object(re.normalize)(f.fsPath);return!H.h&&v&&(d=w(d,v.userHome)),d}function U(f){if(!f)return;typeof f=="string"&&(f=T.a.file(f));var v=Object(z.b)(f)||(f.scheme===I.b.file?f.fsPath:f.path);return x(v)?u(v):v}function x(f){return!!(H.h&&f&&f[1]===":")}function u(f){return x(f)?f.charAt(0).toUpperCase()+f.slice(1):f}var y=Object.create(null);function w(f,v){if(H.h||!f||!v)return f;var _=y.original===v?y.normalized:void 0;return _||(_=""+Object(J.K)(v,re.posix.sep)+re.posix.sep,y={original:v,normalized:_}),(H.d?Object(J.N)(f,_):Object(J.O)(f,_))&&(f="~/"+f.substr(_.length)),f}},"4bUh":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("twdY"),re=function(){function I(H,z){this._tokens=H,this._tokensCount=this._tokens.length>>>1,this._text=z}return I.prototype.equals=function(H){return H instanceof I?this.slicedEquals(H,0,this._tokensCount):!1},I.prototype.slicedEquals=function(H,z,O){if(this._text!==H._text)return!1;if(this._tokensCount!==H._tokensCount)return!1;for(var U=z<<1,x=U+(O<<1),u=U;u0?this._tokens[H-1<<1]:0},I.prototype.getMetadata=function(H){var z=this._tokens[(H<<1)+1];return z},I.prototype.getLanguageId=function(H){var z=this._tokens[(H<<1)+1];return T.A.getLanguageId(z)},I.prototype.getStandardTokenType=function(H){var z=this._tokens[(H<<1)+1];return T.A.getTokenType(z)},I.prototype.getForeground=function(H){var z=this._tokens[(H<<1)+1];return T.A.getForeground(z)},I.prototype.getClassName=function(H){var z=this._tokens[(H<<1)+1];return T.A.getClassNameFromMetadata(z)},I.prototype.getInlineStyle=function(H,z){var O=this._tokens[(H<<1)+1];return T.A.getInlineStyleFromMetadata(O,z)},I.prototype.getEndOffset=function(H){return this._tokens[H<<1]},I.prototype.findTokenIndexAtOffset=function(H){return I.findIndexInTokensArray(this._tokens,H)},I.prototype.inflate=function(){return this},I.prototype.sliceAndInflate=function(H,z,O){return new J(this,H,z,O)},I.convertToEndOffset=function(H,z){for(var O=H.length>>>1,U=O-1,x=0;x>>1)-1;Oz&&(U=x)}return O},I}(),J=function(){function I(H,z,O,U){this._source=H,this._startOffset=z,this._endOffset=O,this._deltaOffset=U,this._firstTokenIndex=H.findTokenIndexAtOffset(z),this._tokensCount=0;for(var x=this._firstTokenIndex,u=H.getCount();x=O)break;this._tokensCount++}}return I.prototype.equals=function(H){return H instanceof I?this._startOffset===H._startOffset&&this._endOffset===H._endOffset&&this._deltaOffset===H._deltaOffset&&this._source.slicedEquals(H._source,this._firstTokenIndex,this._tokensCount):!1},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getForeground=function(H){return this._source.getForeground(this._firstTokenIndex+H)},I.prototype.getEndOffset=function(H){var z=this._source.getEndOffset(this._firstTokenIndex+H);return Math.min(this._endOffset,z)-this._startOffset+this._deltaOffset},I.prototype.getClassName=function(H){return this._source.getClassName(this._firstTokenIndex+H)},I.prototype.getInlineStyle=function(H,z){return this._source.getInlineStyle(this._firstTokenIndex+H,z)},I.prototype.findTokenIndexAtOffset=function(H){return this._source.findTokenIndexAtOffset(H+this._startOffset-this._deltaOffset)-this._firstTokenIndex},I}()},"4rho":function(Lt,j,e){},"4sI4":function(Lt,j,e){"use strict";e.r(j),e.d(j,"StandaloneReferencesController",function(){return w});var T=e("sswD"),re=e("Vxe3"),J=e("QY8A"),I=e("+7oY"),H=e("T8No"),z=e("Cg/j"),O=e("sM1p"),U=e("A+jI"),x=function(){var f=function(_,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var l in s)s.hasOwnProperty(l)&&(c[l]=s[l])},f(_,p)};return function(v,_){f(v,_);function p(){this.constructor=v}v.prototype=_===null?Object.create(_):(p.prototype=_.prototype,new p)}}(),u=function(f,v,_,p){var c=arguments.length,s=c<3?v:p===null?p=Object.getOwnPropertyDescriptor(v,_):p,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(f,v,_,p);else for(var d=f.length-1;d>=0;d--)(l=f[d])&&(s=(c<3?l(s):c>3?l(v,_,s):l(v,_))||s);return c>3&&s&&Object.defineProperty(v,_,s),s},y=function(f,v){return function(_,p){v(_,p,f)}},w=function(f){x(v,f);function v(_,p,c,s,l,d,m){return f.call(this,!0,_,p,c,s,l,d,m)||this}return v=u([y(1,H.c),y(2,re.a),y(3,O.a),y(4,z.a),y(5,U.a),y(6,I.a)],v),v}(J.a);Object(T.h)(J.a.ID,w)},"4y0V":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("MI8n"),re=function(H,z,O){var U=function(y){return x.fire(y)},x=new T.a({onFirstListenerAdd:function(){H.addEventListener(z,U,O)},onLastListenerRemove:function(){H.removeEventListener(z,U,O)}});return x.event};function J(I){return T.b.map(I,function(H){return H.preventDefault(),H.stopPropagation(),H})}},"51B1":function(Lt,j,e){},"51f4":function(Lt,j,e){"use strict";e.d(j,"a",function(){return H});var T=!1,re=null;function J(z){if(!z.parent||z.parent===z)return null;try{var O=z.location,U=z.parent.location;if(O.protocol!==U.protocol||O.hostname!==U.hostname||O.port!==U.port)return T=!0,null}catch(x){return T=!0,null}return z.parent}function I(z,O){for(var U=z.document.getElementsByTagName("iframe"),x,u=0,y=U.length;u0&&v._undoStack[v._undoStack.length-1].cursorState.equals(p);c||(v._undoStack.push(new O(p,f.getScrollTop(),f.getScrollLeft())),v._redoStack=[],v._undoStack.length>50&&v._undoStack.shift())})),v}return w.get=function(f){return f.getContribution(w.ID)},w.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},w.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},w.prototype._applyState=function(f){this._isCursorUndoRedo=!0,this._editor.setSelections(f.cursorState.selections),this._editor.setScrollPosition({scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),this._isCursorUndoRedo=!1},w.ID="editor.contrib.cursorUndoRedoController",w}(re.a),x=function(y){H(w,y);function w(){return y.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:2048|51,weight:100}})||this}return w.prototype.run=function(f,v,_){U.get(v).cursorUndo()},w}(J.b),u=function(y){H(w,y);function w(){return y.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return w.prototype.run=function(f,v,_){U.get(v).cursorRedo()},w}(J.b);Object(J.h)(U.ID,U),Object(J.f)(x),Object(J.f)(u)},"5TxY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return w}),e.d(j,"b",function(){return v});var T=e("D3Dy"),re=e("EffR"),J=e("X+cX"),I=e("MI8n"),H=e("pmY6"),z=e("MNsG"),O=e("N0LK"),U=e("Comh"),x=e("gCVg"),u=e("CjF5"),y=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),w={forceCopyWithSyntaxHighlighting:!1},f=function(){function c(){this._lastState=null}return c.prototype.set=function(s,l){this._lastState={lastCopiedValue:s,data:l}},c.prototype.get=function(s){return this._lastState&&this._lastState.lastCopiedValue===s?this._lastState.data:(this._lastState=null,null)},c.INSTANCE=new c,c}(),v=function(c){y(s,c);function s(l,d){var m=c.call(this)||this;m.textArea=d,m._onFocus=m._register(new I.a),m.onFocus=m._onFocus.event,m._onBlur=m._register(new I.a),m.onBlur=m._onBlur.event,m._onKeyDown=m._register(new I.a),m.onKeyDown=m._onKeyDown.event,m._onKeyUp=m._register(new I.a),m.onKeyUp=m._onKeyUp.event,m._onCut=m._register(new I.a),m.onCut=m._onCut.event,m._onPaste=m._register(new I.a),m.onPaste=m._onPaste.event,m._onType=m._register(new I.a),m.onType=m._onType.event,m._onCompositionStart=m._register(new I.a),m.onCompositionStart=m._onCompositionStart.event,m._onCompositionUpdate=m._register(new I.a),m.onCompositionUpdate=m._onCompositionUpdate.event,m._onCompositionEnd=m._register(new I.a),m.onCompositionEnd=m._onCompositionEnd.event,m._onSelectionChangeRequest=m._register(new I.a),m.onSelectionChangeRequest=m._onSelectionChangeRequest.event,m._host=l,m._textArea=m._register(new p(d)),m._asyncTriggerCut=m._register(new J.d(function(){return m._onCut.fire()},0)),m._textAreaState=U.b.EMPTY,m._selectionChangeListener=null,m.writeScreenReaderContent("ctor"),m._hasFocus=!1,m._isDoingComposition=!1,m._nextCommand=0,m._register(re.o(d.domNode,"keydown",function(k){m._isDoingComposition&&(k.keyCode===109||k.keyCode===1)&&k.stopPropagation(),k.equals(9)&&k.preventDefault(),m._onKeyDown.fire(k)})),m._register(re.o(d.domNode,"keyup",function(k){m._onKeyUp.fire(k)})),m._register(re.j(d.domNode,"compositionstart",function(k){if(m._isDoingComposition)return;m._isDoingComposition=!0,T.f||m._setAndWriteTextAreaState("compositionstart",U.b.EMPTY),m._onCompositionStart.fire()}));var E=function(R){var $=m._textAreaState,ie=U.b.readFromTextArea(m._textArea);return[ie,U.b.deduceInput($,ie,R)]},L=function(R){var $=m._textAreaState,ie=U.b.selectedText(R),W={text:ie.value,replaceCharCnt:$.selectionEnd-$.selectionStart};return[ie,W]},A=function(R){return T.f&&R==="ja"?!0:!!(T.i&&R.indexOf("zh-Han")===0)};return m._register(re.j(d.domNode,"compositionupdate",function(k){if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie),m._onCompositionUpdate.fire(k);return}var W=L(k.data),B=W[0],le=W[1];m._textAreaState=B,m._onType.fire(le),m._onCompositionUpdate.fire(k)})),m._register(re.j(d.domNode,"compositionend",function(k){if(!m._isDoingComposition)return;if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie)}else{var W=L(k.data),$=W[0],ie=W[1];m._textAreaState=$,m._onType.fire(ie)}if((T.f||T.d)&&(m._textAreaState=U.b.readFromTextArea(m._textArea)),!m._isDoingComposition)return;m._isDoingComposition=!1,m._onCompositionEnd.fire()})),m._register(re.j(d.domNode,"input",function(){if(m._textArea.setIgnoreSelectionChangeTime("received input event"),m._isDoingComposition)return;var k=E(z.e),R=k[0],$=k[1];if($.replaceCharCnt===0&&$.text.length===1&&O.z($.text.charCodeAt(0)))return;m._textAreaState=R,m._nextCommand===0?$.text!==""&&m._onType.fire($):(($.text!==""||$.replaceCharCnt!==0)&&m._firePaste($.text,null),m._nextCommand=0)})),m._register(re.j(d.domNode,"cut",function(k){m._textArea.setIgnoreSelectionChangeTime("received cut event"),m._ensureClipboardGetsEditorSelection(k),m._asyncTriggerCut.schedule()})),m._register(re.j(d.domNode,"copy",function(k){m._ensureClipboardGetsEditorSelection(k)})),m._register(re.j(d.domNode,"paste",function(k){if(m._textArea.setIgnoreSelectionChangeTime("received paste event"),_.canUseTextData(k)){var R=_.getTextData(k),$=R[0],ie=R[1];$!==""&&m._firePaste($,ie)}else m._textArea.getSelectionStart()!==m._textArea.getSelectionEnd()&&m._setAndWriteTextAreaState("paste",U.b.EMPTY),m._nextCommand=1})),m._register(re.j(d.domNode,"focus",function(){m._setHasFocus(!0)})),m._register(re.j(d.domNode,"blur",function(){m._setHasFocus(!1)})),m}return s.prototype._installSelectionChangeListener=function(){var l=this,d=0;return re.j(document,"selectionchange",function(m){if(!l._hasFocus)return;if(l._isDoingComposition)return;if(!T.d||!z.h)return;var E=Date.now(),L=E-d;if(d=E,L<5)return;var A=E-l._textArea.getIgnoreSelectionChangeTime();if(l._textArea.resetSelectionChangeTime(),A<100)return;if(!l._textAreaState.selectionStartPosition||!l._textAreaState.selectionEndPosition)return;var k=l._textArea.getValue();if(l._textAreaState.value!==k)return;var R=l._textArea.getSelectionStart(),$=l._textArea.getSelectionEnd();if(l._textAreaState.selectionStart===R&&l._textAreaState.selectionEnd===$)return;var ie=l._textAreaState.deduceEditorPosition(R),W=l._host.deduceModelPosition(ie[0],ie[1],ie[2]),B=l._textAreaState.deduceEditorPosition($),le=l._host.deduceModelPosition(B[0],B[1],B[2]),Ce=new x.a(W.lineNumber,W.column,le.lineNumber,le.column);l._onSelectionChangeRequest.fire(Ce)})},s.prototype.dispose=function(){c.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},s.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},s.prototype.isFocused=function(){return this._hasFocus},s.prototype.refreshFocusState=function(){var l=re.E(this.textArea.domNode);l?this._setHasFocus(l.activeElement===this.textArea.domNode):re.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},s.prototype._setHasFocus=function(l){if(this._hasFocus===l)return;this._hasFocus=l,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(T.e?this._setAndWriteTextAreaState("focusgain",U.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},s.prototype._setAndWriteTextAreaState=function(l,d){this._hasFocus||(d=d.collapseSelection()),d.writeToTextArea(l,this._textArea,this._hasFocus),this._textAreaState=d},s.prototype.writeScreenReaderContent=function(l){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(l,this._host.getScreenReaderContent(this._textAreaState))},s.prototype._ensureClipboardGetsEditorSelection=function(l){var d=this._host.getDataToCopy(_.canUseTextData(l)&&u.a.clipboard.richText),m={version:1,isFromEmptySelection:d.isFromEmptySelection,multicursorText:d.multicursorText,mode:d.mode};if(f.INSTANCE.set(T.h?d.text.replace(/\r\n/g,` -`):d.text,m),!_.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",U.b.selectedText(d.text));return}_.setTextData(l,d.text,d.html,m)},s.prototype._firePaste=function(l,d){d||(d=f.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:d})},s}(H.a),_=function(){function c(){}return c.canUseTextData=function(s){return s.clipboardData?!0:!!window.clipboardData},c.getTextData=function(s){if(s.clipboardData){s.preventDefault();var l=s.clipboardData.getData("text/plain"),d=null,m=s.clipboardData.getData("vscode-editor-data");if(typeof m=="string")try{d=JSON.parse(m),d.version!==1&&(d=null)}catch(E){}return[l,d]}if(window.clipboardData){s.preventDefault();var l=window.clipboardData.getData("Text");return[l,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},c.setTextData=function(s,l,d,m){if(s.clipboardData){s.clipboardData.setData("text/plain",l),typeof d=="string"&&s.clipboardData.setData("text/html",d),s.clipboardData.setData("vscode-editor-data",JSON.stringify(m)),s.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",l),s.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},c}(),p=function(c){y(s,c);function s(l){var d=c.call(this)||this;return d._actual=l,d._ignoreSelectionChangeTime=0,d}return s.prototype.setIgnoreSelectionChangeTime=function(l){this._ignoreSelectionChangeTime=Date.now()},s.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},s.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},s.prototype.getValue=function(){return this._actual.domNode.value},s.prototype.setValue=function(l,d){var m=this._actual.domNode;if(m.value===d)return;this.setIgnoreSelectionChangeTime("setValue"),m.value=d},s.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},s.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},s.prototype.setSelectionRange=function(l,d,m){var E=this._actual.domNode,L=null,A=re.E(E);A?L=A.activeElement:L=document.activeElement;var k=L===E,R=E.selectionStart,$=E.selectionEnd;if(k&&R===d&&$===m){T.h&&window.parent!==window&&E.focus();return}if(k){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(d,m),T.h&&window.parent!==window&&E.focus();return}try{var ie=re.V(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(d,m),re.T(E,ie)}catch(W){}},s}(H.a)},"5Y4S":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("MNsG"),re=T.b.performance&&typeof T.b.performance.now=="function",J=function(){function I(H){this._highResolution=re&&H,this._startTime=this._now(),this._stopTime=-1}return I.create=function(H){return H===void 0&&(H=!0),new I(H)},I.prototype.stop=function(){this._stopTime=this._now()},I.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},I.prototype._now=function(){return this._highResolution?T.b.performance.now():new Date().getTime()},I}()},"5v8Y":function(Lt,j,e){"use strict";e.d(j,"a",function(){return H});var T=e("MXAL"),re=function(){var z=function(U,x){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var w in y)y.hasOwnProperty(w)&&(u[w]=y[w])},z(U,x)};return function(O,U){z(O,U);function x(){this.constructor=O}O.prototype=U===null?Object.create(U):(x.prototype=U.prototype,new x)}}(),J=function(z){re(O,z);function O(U){for(var x=z.call(this,0)||this,u=0,y=U.length;u0)B=le-1;else return le}return-(W+1)}function H(R,$){var ie=0,W=R.length;if(W===0)return 0;for(;ieW?R[Te]=le[Me++]:Me>B?R[Te]=le[Ce++]:$(le[Me],le[Ce])<0?R[Te]=le[Me++]:R[Te]=le[Ce++]}function U(R,$,ie,W,B){if(W<=ie)return;var le=ie+(W-ie)/2|0;if(U(R,$,ie,le,B),U(R,$,le+1,W,B),$(R[le],R[le+1])<=0)return;O(R,$,ie,le,W,B)}function x(R,$){for(var ie=[],W=void 0,B=0,le=z(R.slice(0),$);B0}function f(R,$){if(!$)return R.filter(function(W,B){return R.indexOf(W)===B});var ie=Object.create(null);return R.filter(function(W){var B=$(W);return ie[B]?!1:(ie[B]=!0,!0)})}function v(R){var $=new Set;return R.filter(function(ie){return $.has(ie)?!1:($.add(ie),!0)})}function _(R){var $=[];return R.forEach(function(ie){return $.push(ie)}),$}function p(R,$){for(var ie=0;ie0?R[0]:$}function l(R){var $;return($=[]).concat.apply($,R)}function d(R,$){var ie=typeof $=="number"?R:0;typeof $=="number"?ie=R:(ie=0,$=R);var W=[];if(ie<=$)for(var B=ie;B<$;B++)W.push(B);else for(var B=ie;B>$;B--)W.push(B);return W}function m(R,$,ie){var W=R.slice(0,$),B=R.slice($);return W.concat(ie,B)}function E(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.unshift($))}function L(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.push($))}function A(R,$){for(var ie=0;ie";var y=this.text.substring(O,u.start);z+=this.supportCodicons?Object(re.c)(Object(J.o)(y)):Object(J.o)(y),z+="",O=u.end}u.extraClasses?z+='':z+='';var w=this.text.substring(u.start,u.end);z+=this.supportCodicons?Object(re.c)(Object(J.o)(w)):Object(J.o)(w),z+="",O=u.end}if(O";var w=this.text.substring(O);z+=this.supportCodicons?Object(re.c)(Object(J.o)(w)):Object(J.o)(w),z+=""}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},H.escapeNewLines=function(z,O){var U=0,x=0;return z.replace(/\r\n|\r|\n/g,function(u,y){x=u===`\r -`?-1:0,y+=U;for(var w=0,f=O;w=y&&(v.start+=x),v.end>=y&&(v.end+=x)}return U+=x,"\u23CE"})},H}()},"7zd4":function(Lt,j,e){},"8ATB":function(Lt,j,e){},"8HAY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O});var T=e("pmY6"),re=e("MI8n"),J=function(){var U=function(u,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},U(u,y)};return function(x,u){U(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),I=function(U,x,u,y){function w(f){return f instanceof u?f:new u(function(v){v(f)})}return new(u||(u=Promise))(function(f,v){function _(s){try{c(y.next(s))}catch(l){v(l)}}function p(s){try{c(y.throw(s))}catch(l){v(l)}}function c(s){s.done?f(s.value):w(s.value).then(_,p)}c((y=y.apply(U,x||[])).next())})},H=function(U,x){var u={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,w,f,v;return v={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function _(c){return function(s){return p([c,s])}}function p(c){if(y)throw new TypeError("Generator is already executing.");for(;u;)try{if(y=1,w&&(f=c[0]&2?w.return:c[0]?w.throw||((f=w.return)&&f.call(w),0):w.next)&&!(f=f.call(w,c[1])).done)return f;(w=0,f)&&(c=[c[0]&2,f.value]);switch(c[0]){case 0:case 1:f=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,w=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(f=u.trys,f=f.length>0&&f[f.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!f||c[1]>f[0]&&c[1]1&&q.push(new U.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},ne.prototype.run=function(ee,ae){var q=this;if(!ae.hasModel())return;var ue=ae.getModel(),X=ae.getSelections(),he=[];X.forEach(function(je){return q.getCursorsForSelection(je,ue,he)}),he.length>0&&ae.setSelections(he)},ne}(H.b),m=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=ae.getModel().getLineCount(),X=[],he=q[0].startLineNumber;he<=ue;he++)X.push(new U.a(he,q[0].startColumn,he,q[0].endColumn));X.length>0&&ae.setSelections(X)},ne}(H.b),E=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=[],X=q[0].startLineNumber;X>=1;X--)ue.push(new U.a(X,q[0].startColumn,X,q[0].endColumn));ue.length>0&&ae.setSelections(ue)},ne}(H.b),L=function(){function Pe(ne,ee,ae){this.selections=ne,this.revealRange=ee,this.revealScrollType=ae}return Pe}(),A=function(){function Pe(ne,ee,ae,q,ue,X,he){this._editor=ne,this.findController=ee,this.isDisconnectedFromFindController=ae,this.searchText=q,this.wholeWord=ue,this.matchCase=X,this.currentMatch=he}return Pe.create=function(ne,ee){if(!ne.hasModel())return null;var ae=ee.getState();if(!ne.hasTextFocus()&&ae.isRevealed&&ae.searchString.length>0)return new Pe(ne,ee,!1,ae.searchString,ae.wholeWord,ae.matchCase,null);var q=!1,ue,X,he=ne.getSelections();he.length===1&&he[0].isEmpty()?(q=!0,ue=!0,X=!0):(ue=ae.wholeWord,X=ae.matchCase);var je=ne.getSelection(),Xe,me=null;if(je.isEmpty()){var ge=ne.getModel().getWordAtPosition(je.getStartPosition());if(!ge)return null;Xe=ge.word,me=new U.a(je.startLineNumber,ge.startColumn,je.startLineNumber,ge.endColumn)}else Xe=ne.getModel().getValueInRange(je).replace(/\r\n/g,` -`);return new Pe(ne,ee,q,Xe,ue,X,me)},Pe.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ae.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ae.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new U.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},Pe}(),k=function(Pe){c(ne,Pe);function ne(ee){var ae=Pe.call(this)||this;return ae._sessionDispose=ae._register(new I.b),ae._editor=ee,ae._ignoreSelectionChange=!1,ae._session=null,ae}return ne.get=function(ee){return ee.getContribution(ne.ID)},ne.prototype.dispose=function(){this._endSession(),Pe.prototype.dispose.call(this)},ne.prototype._beginSessionIfNeeded=function(ee){var ae=this;if(!this._session){var q=A.create(this._editor,ee);if(!q)return;this._session=q;var ue={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ue.wholeWordOverride=1,ue.matchCaseOverride=1,ue.isRegexOverride=2),ee.getState().change(ue,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(X){if(ae._ignoreSelectionChange)return;ae._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ae._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(X){(X.matchCase||X.wholeWord)&&ae._endSession()}))}},ne.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},ne.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},ne.prototype._expandEmptyToWord=function(ee,ae){if(!ae.isEmpty())return ae;var q=ee.getWordAtPosition(ae.getStartPosition());return q?new U.a(ae.startLineNumber,q.startColumn,ae.startLineNumber,q.endColumn):ae},ne.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},ne.prototype.getSession=function(ee){return this._session},ne.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ae=this._editor.getSelections();if(ae.length>1){var q=ee.getState(),ue=q.matchCase,X=Fe(this._editor.getModel(),ae,ue);if(!X){for(var he=this._editor.getModel(),je=[],Xe=0,me=ae.length;Xe0&&q.isRegex)ae=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ae=this._session.selectAll()}if(q.searchScope){for(var ue=q.searchScope,X=[],he=0;he=ue.startLineNumber&&X.push(ae[he]);ae=X}if(ae.length>0){for(var je=this._editor.getSelection(),he=0,Xe=ae.length;he1){var Xe=X.getState(),me=Xe.matchCase,ge=Fe(ae.getModel(),je,me);if(!ge)return null}he=A.create(ae,X)}if(!he)return null;if(he.currentMatch)return null;if(/^[ \t]+$/.test(he.searchText))return null;if(he.searchText.length>200)return null;var _e=X.getState(),Re=_e.matchCase;if(_e.isRevealed){var Ee=_e.searchString;Re||(Ee=Ee.toLowerCase());var ve=he.searchText;if(Re||(ve=ve.toLowerCase()),Ee===ve&&he.matchCase===_e.matchCase&&he.wholeWord===_e.wholeWord&&!_e.isRegex)return null}return new Me(he.searchText,he.matchCase,he.wholeWord?ae.getOption(96):null)},ne.prototype._setState=function(ee){if(Me.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ae=this.editor.getModel();if(ae.isTooLargeForTokenization())return;var q=w.i.has(ae),ue=ae.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(ve){return ve.range});ue.sort(O.a.compareRangesUsingStarts);var X=this.editor.getSelections();X.sort(O.a.compareRangesUsingStarts);for(var he=[],je=0,Xe=0,me=ue.length,ge=X.length;je=ge)he.push(_e),je++;else{var Re=O.a.compareRangesUsingStarts(_e,X[Xe]);Re<0?((X[Xe].isEmpty()||!O.a.areIntersecting(_e,X[Xe]))&&he.push(_e),je++):(Re>0||je++,Xe++)}}var Ee=he.map(function(ve){return{range:ve,options:q?ne._SELECTION_HIGHLIGHT:ne._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ee)},ne.prototype.dispose=function(){this._setState(null),Pe.prototype.dispose.call(this)},ne.ID="editor.contrib.selectionHighlighter",ne._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(_.f)(v.Mb),position:u.d.Center}}),ne._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),ne}(I.a);function Fe(Pe,ne,ee){for(var ae=He(Pe,ne[0],!ee),q=1,ue=ne.length;q=0;uo--)(zt=Ve[uo])&&(Mt=(Rt<3?zt(Mt):Rt>3?zt(Qe,it,Mt):zt(Qe,it))||Mt);return Rt>3&&Mt&&Object.defineProperty(Qe,it,Mt),Mt},Me=function(Ve,Qe){return function(it,pt){Qe(it,pt,Ve)}},Te=new s.d("hasSymbols",!1),Fe=Object(A.c)("ISymbolNavigationService"),He=function(){function Ve(Qe,it,pt,Rt){this._editorService=it,this._notificationService=pt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Te.bindTo(Qe)}return Ve.prototype.reset=function(){this._ctxHasSymbols.reset(),Object($.f)(this._currentState),Object($.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ve.prototype.put=function(Qe){var it=this,pt=Qe.parent.parent;if(pt.references.length<=1){this.reset();return}this._currentModel=pt,this._currentIdx=pt.references.indexOf(Qe),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new Pe(this._editorService),Mt=Rt.onDidChange(function(zt){if(it._ignoreEditorChange)return;var uo=it._editorService.getActiveCodeEditor();if(!uo)return;var ao=uo.getModel(),so=uo.getPosition();if(!ao||!so)return;for(var Pt=!1,ft=!1,vt=0,At=pt.references;vt0&&Mt[Mt.length-1])&&(so[0]===6||so[0]===2)){it=0;continue}if(so[0]===3&&(!Mt||so[1]>Mt[0]&&so[1]1)?(this._openInPeek(Rt,Mt),[3,3]):[3,1];case 1:return uo=Mt.firstReference(),ao=Mt.references.length>1&&zt==="gotoAndPeek",[4,this._openReference(Rt,it,uo,this._configuration.openToSide,!ao)];case 2:so=Pt.sent(),ao&&so?this._openInPeek(so,Mt):Mt.dispose(),zt==="goto"&&pt.put(uo),Pt.label=3;case 3:return[2]}})})},Qe.prototype._openReference=function(it,pt,Rt,Mt,zt){return X(this,void 0,void 0,function(){var uo,ao,so,Pt;return he(this,function(ft){switch(ft.label){case 0:return uo=void 0,Object(y.G)(Rt)&&(uo=Rt.targetSelectionRange),uo||(uo=Rt.range),[4,pt.openCodeEditor({resource:Rt.uri,options:{selection:x.a.collapseToStart(uo),revealInCenterIfOutsideViewport:!0}},it,Mt)];case 1:return ao=ft.sent(),ao?(zt&&(so=ao.getModel(),Pt=ao.deltaDecorations([],[{range:uo,options:{className:"symbolHighlight"}}]),setTimeout(function(){ao.getModel()===so&&ao.deltaDecorations(Pt,[])},350)),[2,ao]):[2,void 0]}})})},Qe.prototype._openInPeek=function(it,pt){var Rt=v.a.get(it);Rt&&it.hasModel()?Rt.toggleWidget(it.getSelection(),Object(re.f)(function(Mt){return Promise.resolve(pt)}),this._configuration.openInPeek):pt.dispose()},Qe}(z.b),C=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.b)(it,pt,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("def.title","Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("noResultWord","No definition found for '{0}'",it.word):p.a("generic.noResults","No definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDefinitions},Qe}(Q),F=I.g&&!ne.l?2048|70:70;Object(z.f)((je=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:F,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:p.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Qe.id),it}return Qe}(C),je.id="editor.action.revealDefinition",je)),Object(z.f)((Xe=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:Object(J.a)(2048|41,F),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Qe.id),it}return Qe}(C),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(z.f)((me=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.id,label:p.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(u.a.hasDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",Qe.id),it}return Qe}(C),me.id="editor.action.peekDefinition",me));var se=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.a)(it,pt,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("decl.title","Declarations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.a("decl.generic.noResults","No declaration found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDeclarationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDeclarations},Qe}(Q);Object(z.f)((ge=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.a("decl.generic.noResults","No declaration found")},Qe}(se),ge.id="editor.action.revealDeclaration",ge)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Qe}(se));var oe=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.e)(it,pt,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("typedef.title","Type Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",it.word):p.a("goToTypeDefinition.generic.noResults","No type definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeTypeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleTypeDefinitions},Qe}(Q);Object(z.f)((_e=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Qe}(oe),_e.ID="editor.action.goToTypeDefinition",_e)),Object(z.f)((Re=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Qe}(oe),Re.ID="editor.action.peekTypeDefinition",Re));var be=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.c)(it,pt,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("impl.title","Implementations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToImplementation.noResultWord","No implementation found for '{0}'",it.word):p.a("goToImplementation.generic.noResults","No implementation found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeImplementationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleImplementations},Qe}(Q);Object(z.f)((Ee=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(u.a.hasImplementationProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:p.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Qe}(be),Ee.ID="editor.action.goToImplementation",Ee)),Object(z.f)((ve=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(u.a.hasImplementationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Qe}(be),ve.ID="editor.action.peekImplementation",ve));var De=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it?p.a("references.no","No references found for '{0}'",it.word):p.a("references.noGeneric","No references found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeReferenceCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleReferences},Qe}(Q);Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:p.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.d)(it,pt,!0,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=_.c.bind,[4,Object(m.d)(it,pt,!1,Rt)];case 1:return[2,new(Mt.apply(_.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De));var Se=function(Ve){ue(Qe,Ve);function Qe(it,pt,Rt){var Mt=Ve.call(this,it,{id:"editor.action.goToLocation",label:p.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated())})||this;return Mt._references=pt,Mt._gotoMultipleBehaviour=Rt,Mt}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){return he(this,function(Mt){return[2,new _.c(this._references,p.a("generic.title","Locations"))]})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&p.a("generic.noResult","No results for '{0}'",it.word)||""},Qe.prototype._getGoToPreference=function(it){var pt;return(pt=this._gotoMultipleBehaviour)!==null&&pt!==void 0?pt:it.getOption(41).multipleReferences},Qe.prototype._getAlternativeCommand=function(){return""},Qe}(Q);E.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Qe,it,pt,Rt,Mt,zt){return X(void 0,void 0,void 0,function(){var uo,ao;return he(this,function(so){switch(so.label){case 0:return Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(U.a.isIPosition(pt)),Object(ae.a)(Array.isArray(Rt)),Object(ae.a)(typeof Mt=="undefined"||typeof Mt=="string"),Object(ae.a)(typeof zt=="undefined"||typeof zt=="boolean"),uo=Qe.get(O.a),[4,uo.openCodeEditor({resource:it},uo.getFocusedCodeEditor())];case 1:return ao=so.sent(),Object(H.a)(ao)?(ao.setPosition(pt),ao.revealPositionInCenterIfOutsideViewport(pt,0),[2,ao.invokeWithinContext(function(Pt){var ft=new Se({muteMessage:!0,openInPeek:Boolean(zt),openToSide:!1},Rt,Mt);Pt.get(A.a).invokeFunction(ft.run.bind(ft),ao)})]):[2]}})})}}),E.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:U.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Qe,it,pt,Rt,Mt){return X(void 0,void 0,void 0,function(){return he(this,function(zt){return Qe.get(E.b).executeCommand("editor.action.goToLocations",it,pt,Rt,Mt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Qe,it,pt){Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(U.a.isIPosition(pt));var Rt=Qe.get(O.a);return Rt.openCodeEditor({resource:it},Rt.getFocusedCodeEditor()).then(function(Mt){if(!Object(H.a)(Mt)||!Mt.hasModel())return;var zt=v.a.get(Mt);if(!zt)return;var uo=Object(re.f)(function(so){return Object(m.d)(Mt.getModel(),U.a.lift(pt),!1,so).then(function(Pt){return new _.c(Pt,p.a("ref.title","References"))})}),ao=new x.a(pt.lineNumber,pt.column,pt.lineNumber,pt.column);return Promise.resolve(zt.toggleWidget(ao,uo,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Lt,j,e){},"8z58":function(Lt,j,e){"use strict";e.r(j),e.d(j,"CancellationTokenSource",function(){return Wd}),e.d(j,"Emitter",function(){return Bd}),e.d(j,"KeyCode",function(){return Ud}),e.d(j,"KeyMod",function(){return Hd}),e.d(j,"Position",function(){return Vd}),e.d(j,"Range",function(){return zd}),e.d(j,"Selection",function(){return Kd}),e.d(j,"SelectionDirection",function(){return Gd}),e.d(j,"MarkerSeverity",function(){return Xd}),e.d(j,"MarkerTag",function(){return Yd}),e.d(j,"Uri",function(){return Zd}),e.d(j,"Token",function(){return Qd}),e.d(j,"editor",function(){return $d}),e.d(j,"languages",function(){return Jd});var T=e("/UlZ"),re=e("URDS"),J=e("JQT/"),I=e("MI8n"),H=e("/kV6"),z=e("bY76"),O=e("cGHE"),U=e("aokT"),x=e("gCVg"),u=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var w;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(w||(w={}));var f;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.Snippet=25]="Snippet"})(f||(f={}));var v;(function(a){a[a.Deprecated=1]="Deprecated"})(v||(v={}));var _;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(_||(_={}));var p;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(p||(p={}));var c;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(c||(c={}));var s;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(s||(s={}));var l;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(l||(l={}));var d;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(d||(d={}));var m;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingOvertype=6]="autoClosingOvertype",a[a.autoClosingQuotes=7]="autoClosingQuotes",a[a.autoIndent=8]="autoIndent",a[a.automaticLayout=9]="automaticLayout",a[a.autoSurround=10]="autoSurround",a[a.codeLens=11]="codeLens",a[a.colorDecorators=12]="colorDecorators",a[a.comments=13]="comments",a[a.contextmenu=14]="contextmenu",a[a.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",a[a.cursorBlinking=16]="cursorBlinking",a[a.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",a[a.cursorStyle=18]="cursorStyle",a[a.cursorSurroundingLines=19]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",a[a.cursorWidth=21]="cursorWidth",a[a.disableLayerHinting=22]="disableLayerHinting",a[a.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",a[a.dragAndDrop=24]="dragAndDrop",a[a.emptySelectionClipboard=25]="emptySelectionClipboard",a[a.extraEditorClassName=26]="extraEditorClassName",a[a.fastScrollSensitivity=27]="fastScrollSensitivity",a[a.find=28]="find",a[a.fixedOverflowWidgets=29]="fixedOverflowWidgets",a[a.folding=30]="folding",a[a.foldingStrategy=31]="foldingStrategy",a[a.foldingHighlight=32]="foldingHighlight",a[a.fontFamily=33]="fontFamily",a[a.fontInfo=34]="fontInfo",a[a.fontLigatures=35]="fontLigatures",a[a.fontSize=36]="fontSize",a[a.fontWeight=37]="fontWeight",a[a.formatOnPaste=38]="formatOnPaste",a[a.formatOnType=39]="formatOnType",a[a.glyphMargin=40]="glyphMargin",a[a.gotoLocation=41]="gotoLocation",a[a.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",a[a.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",a[a.hover=44]="hover",a[a.inDiffEditor=45]="inDiffEditor",a[a.letterSpacing=46]="letterSpacing",a[a.lightbulb=47]="lightbulb",a[a.lineDecorationsWidth=48]="lineDecorationsWidth",a[a.lineHeight=49]="lineHeight",a[a.lineNumbers=50]="lineNumbers",a[a.lineNumbersMinChars=51]="lineNumbersMinChars",a[a.links=52]="links",a[a.matchBrackets=53]="matchBrackets",a[a.minimap=54]="minimap",a[a.mouseStyle=55]="mouseStyle",a[a.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=57]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",a[a.multiCursorModifier=59]="multiCursorModifier",a[a.multiCursorPaste=60]="multiCursorPaste",a[a.occurrencesHighlight=61]="occurrencesHighlight",a[a.overviewRulerBorder=62]="overviewRulerBorder",a[a.overviewRulerLanes=63]="overviewRulerLanes",a[a.parameterHints=64]="parameterHints",a[a.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",a[a.quickSuggestions=66]="quickSuggestions",a[a.quickSuggestionsDelay=67]="quickSuggestionsDelay",a[a.readOnly=68]="readOnly",a[a.renderControlCharacters=69]="renderControlCharacters",a[a.renderIndentGuides=70]="renderIndentGuides",a[a.renderFinalNewline=71]="renderFinalNewline",a[a.renderLineHighlight=72]="renderLineHighlight",a[a.renderValidationDecorations=73]="renderValidationDecorations",a[a.renderWhitespace=74]="renderWhitespace",a[a.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",a[a.roundedSelection=76]="roundedSelection",a[a.rulers=77]="rulers",a[a.scrollbar=78]="scrollbar",a[a.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=80]="scrollBeyondLastLine",a[a.selectionClipboard=81]="selectionClipboard",a[a.selectionHighlight=82]="selectionHighlight",a[a.selectOnLineNumbers=83]="selectOnLineNumbers",a[a.showFoldingControls=84]="showFoldingControls",a[a.showUnused=85]="showUnused",a[a.snippetSuggestions=86]="snippetSuggestions",a[a.smoothScrolling=87]="smoothScrolling",a[a.stopRenderingLineAfter=88]="stopRenderingLineAfter",a[a.suggest=89]="suggest",a[a.suggestFontSize=90]="suggestFontSize",a[a.suggestLineHeight=91]="suggestLineHeight",a[a.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",a[a.suggestSelection=93]="suggestSelection",a[a.tabCompletion=94]="tabCompletion",a[a.useTabStops=95]="useTabStops",a[a.wordSeparators=96]="wordSeparators",a[a.wordWrap=97]="wordWrap",a[a.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=100]="wordWrapColumn",a[a.wordWrapMinified=101]="wordWrapMinified",a[a.wrappingIndent=102]="wrappingIndent",a[a.wrappingStrategy=103]="wrappingStrategy",a[a.editorClassName=104]="editorClassName",a[a.pixelRatio=105]="pixelRatio",a[a.tabFocusMode=106]="tabFocusMode",a[a.layoutInfo=107]="layoutInfo",a[a.wrappingInfo=108]="wrappingInfo"})(m||(m={}));var E;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(E||(E={}));var L;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(L||(L={}));var A;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(A||(A={}));var k;(function(a){a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.KEY_0=21]="KEY_0",a[a.KEY_1=22]="KEY_1",a[a.KEY_2=23]="KEY_2",a[a.KEY_3=24]="KEY_3",a[a.KEY_4=25]="KEY_4",a[a.KEY_5=26]="KEY_5",a[a.KEY_6=27]="KEY_6",a[a.KEY_7=28]="KEY_7",a[a.KEY_8=29]="KEY_8",a[a.KEY_9=30]="KEY_9",a[a.KEY_A=31]="KEY_A",a[a.KEY_B=32]="KEY_B",a[a.KEY_C=33]="KEY_C",a[a.KEY_D=34]="KEY_D",a[a.KEY_E=35]="KEY_E",a[a.KEY_F=36]="KEY_F",a[a.KEY_G=37]="KEY_G",a[a.KEY_H=38]="KEY_H",a[a.KEY_I=39]="KEY_I",a[a.KEY_J=40]="KEY_J",a[a.KEY_K=41]="KEY_K",a[a.KEY_L=42]="KEY_L",a[a.KEY_M=43]="KEY_M",a[a.KEY_N=44]="KEY_N",a[a.KEY_O=45]="KEY_O",a[a.KEY_P=46]="KEY_P",a[a.KEY_Q=47]="KEY_Q",a[a.KEY_R=48]="KEY_R",a[a.KEY_S=49]="KEY_S",a[a.KEY_T=50]="KEY_T",a[a.KEY_U=51]="KEY_U",a[a.KEY_V=52]="KEY_V",a[a.KEY_W=53]="KEY_W",a[a.KEY_X=54]="KEY_X",a[a.KEY_Y=55]="KEY_Y",a[a.KEY_Z=56]="KEY_Z",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.US_SEMICOLON=80]="US_SEMICOLON",a[a.US_EQUAL=81]="US_EQUAL",a[a.US_COMMA=82]="US_COMMA",a[a.US_MINUS=83]="US_MINUS",a[a.US_DOT=84]="US_DOT",a[a.US_SLASH=85]="US_SLASH",a[a.US_BACKTICK=86]="US_BACKTICK",a[a.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",a[a.US_BACKSLASH=88]="US_BACKSLASH",a[a.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",a[a.US_QUOTE=90]="US_QUOTE",a[a.OEM_8=91]="OEM_8",a[a.OEM_102=92]="OEM_102",a[a.NUMPAD_0=93]="NUMPAD_0",a[a.NUMPAD_1=94]="NUMPAD_1",a[a.NUMPAD_2=95]="NUMPAD_2",a[a.NUMPAD_3=96]="NUMPAD_3",a[a.NUMPAD_4=97]="NUMPAD_4",a[a.NUMPAD_5=98]="NUMPAD_5",a[a.NUMPAD_6=99]="NUMPAD_6",a[a.NUMPAD_7=100]="NUMPAD_7",a[a.NUMPAD_8=101]="NUMPAD_8",a[a.NUMPAD_9=102]="NUMPAD_9",a[a.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",a[a.NUMPAD_ADD=104]="NUMPAD_ADD",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",a[a.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",a[a.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.MAX_VALUE=112]="MAX_VALUE"})(k||(k={}));var R;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(R||(R={}));var $;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})($||($={}));var ie;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(ie||(ie={}));var W;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(W||(W={}));var B;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(B||(B={}));var le;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(le||(le={}));var Ce;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(Ce||(Ce={}));var Me;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Me||(Me={}));var Te;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Te||(Te={}));var Fe;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(Fe||(Fe={}));var He;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(He||(He={}));var Pe;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(Pe||(Pe={}));var ne;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(ne||(ne={}));var ee;(function(a){a[a.Deprecated=1]="Deprecated"})(ee||(ee={}));var ae;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(ae||(ae={}));var q;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var ue;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ue||(ue={}));var X;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(X||(X={}));var he=function(){function a(){}return a.chord=function(r,n){return Object(H.a)(r,n)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function je(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:I.a,KeyCode:k,KeyMod:he,Position:O.a,Range:U.a,Selection:x.a,SelectionDirection:He,MarkerSeverity:R,MarkerTag:$,Uri:z.a,Token:u.a}}var Xe=e("siPX"),me=e("Vxe3"),ge=e("EffR"),_e=e("24hK"),Re=e("Q4rV"),Ee=e("tYmi"),ve=e("gslv"),Q=e("nnTU"),C=e("W9cx"),F;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(F||(F={}));var se=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},oe=function(a,r){return function(n,h){r(n,h,a)}},be=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(wt){try{Ye(h.next(wt))}catch(Ot){ce(Ot)}}function Ge(wt){try{Ye(h.throw(wt))}catch(Ot){ce(Ot)}}function Ye(wt){wt.done?N(wt.value):S(wt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},De=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(wt){return Ge([Ye,wt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var N=S.range.getStartPosition();this._editor.setPosition(N),this._editor.revealPositionInCenter(N,h)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),Pt=e("iuje"),ft=e("M1Kb"),vt=e("twdY"),At=e("i/Ef"),at=e("pAvP"),tt=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),gt=e("MNsG"),bt=e("746U"),Gt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Nt="$initialize",Et=!1;function Je(a){if(!gt.g)return;Et||(Et=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(a.message)}var $e=function(){function a(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return a.prototype.setWorkerId=function(r){this._workerId=r},a.prototype.sendMessage=function(r,n){var h=this,S=String(++this._lastSentReq);return new Promise(function(N,ce){h._pendingReplies[S]={resolve:N,reject:ce},h._send({vsWorker:h._workerId,req:S,method:r,args:n})})},a.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},a.prototype._handleMessage=function(r){var n=this;if(r.seq){var h=r;if(!this._pendingReplies[h.seq]){console.warn("Got reply to unknown seq");return}var S=this._pendingReplies[h.seq];if(delete this._pendingReplies[h.seq],h.err){var N=h.err;h.err.$isError&&(N=new Error,N.name=h.err.name,N.message=h.err.message,N.stack=h.err.stack),S.reject(N);return}S.resolve(h.res);return}var ce=r,Be=ce.req,Ge=this._handler.handleMessage(ce.method,ce.args);Ge.then(function(Ye){n._send({vsWorker:n._workerId,seq:Be,res:Ye,err:void 0})},function(Ye){Ye.detail instanceof Error&&(Ye.detail=Object(Ct.g)(Ye.detail)),n._send({vsWorker:n._workerId,seq:Be,res:void 0,err:Object(Ct.g)(Ye)})})},a.prototype._send=function(r){var n=[];if(r.req)for(var h=r,S=0;S0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&N()){var jt=h.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=S.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),to=co(jt,ro,N,!0).changes;Be&&(to=Zo(to)),Ft=[];for(var Yt=0,Qt=to.length;Yt1&&Qt>1;){var ho=ro.charCodeAt(Yt-2),So=to.charCodeAt(Qt-2);if(ho!==So)break;Yt--,Qt--}(Yt>1||Qt>1)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,1,Yt,Ye+1,1,Qt)}{for(var To=Bo(ro,1),Io=Bo(to,1),ko=ro.length+1,Ko=to.length+1;Ton&&(n=Ge),Be>h&&(h=Be),Ye>h&&(h=Ye)}n++,h++;for(var wt=new yn(h,n,0),S=0,N=r.length;S=this._maxCharCode?0:this._states.get(r,n)},a}(),rn=null;function pn(){return rn===null&&(rn=new dn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),rn}var zo=null;function Uo(){if(zo===null){zo=new mn.a(0);for(var a=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;rS);if(S>0){var Ye=n.charCodeAt(S-1),wt=n.charCodeAt(ce);(Ye===40&&wt===41||Ye===91&&wt===93||Ye===123&&wt===125)&&ce--}return{range:{startLineNumber:h,startColumn:S+1,endLineNumber:h,endColumn:ce+2},url:n.substring(S,ce+1)}},a.computeLinks=function(r,n){n===void 0&&(n=pn());for(var h=Uo(),S=[],N=1,ce=r.getLineCount();N<=ce;N++){for(var Be=r.getLineContent(N),Ge=Be.length,Ye=0,wt=0,Ot=0,Ft=1,jt=!1,ro=!1,to=!1;Ye=0?(S+=h?1:-1,S<0?S=r.length-1:S%=r.length,r[S]):null},a.INSTANCE=new a,a}(),Dt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),we=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(wt){try{Ye(h.next(wt))}catch(Ot){ce(Ot)}}function Ge(wt){try{Ye(h.throw(wt))}catch(Ot){ce(Ot)}}function Ye(wt){wt.done?N(wt.value):S(wt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},M=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(wt){return Ge([Ye,wt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]=h._lines.length?Jt.c:(ce=h._lines[N],Ge=h._wordenize(ce,n),Be=0,N+=1,wt())};return{next:Ye}},r.prototype.getLineWords=function(n,h){for(var S=this._lines[n-1],N=this._wordenize(S,h),ce=[],Be=0,Ge=N;Bethis._lines.length)h=this._lines.length,S=this._lines[h-1].length+1,N=!0;else{var ce=this._lines[h-1].length+1;S<1?(S=1,N=!0):S>ce&&(S=ce,N=!0)}return N?{lineNumber:h,column:S}:n},r}(fn),Z=function(){function a(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return a.prototype.dispose=function(){this._models=Object.create(null)},a.prototype._getModel=function(r){return this._models[r]},a.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(h){return n.push(r._models[h])}),n},a.prototype.acceptNewModel=function(r){this._models[r.url]=new P(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var h=this._models[r];h.onEvents(n)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,n,h,S){return we(this,void 0,void 0,function(){var N,ce,Be,Ge,Ye,wt,Ot;return M(this,function(Ft){return N=this._getModel(r),ce=this._getModel(n),!N||!ce?[2,null]:(Be=N.getLinesContent(),Ge=ce.getLinesContent(),Ye=new Wo(Be,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:h,shouldMakePrettyDiff:!0,maxComputationTime:S}),wt=Ye.computeDiff(),Ot=wt.changes.length>0?!1:this._modelsAreIdentical(N,ce),[2,{quitEarly:wt.quitEarly,identical:Ot,changes:wt.changes}])})})},a.prototype._modelsAreIdentical=function(r,n){var h=r.getLineCount(),S=n.getLineCount();if(h!==S)return!1;for(var N=1;N<=h;N++){var ce=r.getLineContent(N),Be=n.getLineContent(N);if(ce!==Be)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,n){return we(this,void 0,void 0,function(){var h,S,N,ce,Be,Ge,Ye,wt,Ot,Ft,jt,ro,to,Yt,Qt,ho,So,To;return M(this,function(Io){if(h=this._getModel(r),!h)return[2,n];for(S=[],N=void 0,n=Object(lt.r)(n,function(ko,Ko){if(ko.range&&Ko.range)return U.a.compareRangesUsingStarts(ko.range,Ko.range);var ln=ko.range?0:1,_n=Ko.range?0:1;return ln-_n}),ce=0,Be=n;cea._diffLimit){S.push({range:Ye,text:wt});continue}for(jt=Object(Tt.b)(Ft,wt,!1),ro=h.offsetAt(U.a.lift(Ye).getStartPosition()),to=0,Yt=jt;to=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Ut=function(a,r){return function(n,h){r(n,h,a)}},Ht=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(wt){try{Ye(h.next(wt))}catch(Ot){ce(Ot)}}function Ge(wt){try{Ye(h.throw(wt))}catch(Ot){ce(Ot)}}function Ye(wt){wt.done?N(wt.value):S(wt.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},oo=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(wt){return Ge([Ye,wt])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]fo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ye(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),It=function(a){xt(r,a);function r(n,h,S){var N=a.call(this)||this;if(N._syncedModels=Object.create(null),N._syncedModelsLastUsedTime=Object.create(null),N._proxy=n,N._modelService=h,!S){var ce=new ut.c;ce.cancelAndSet(function(){return N._checkStopModelSync()},Math.round(Zt/2)),N._register(ce)}return N}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var h=0,S=n;hZt&&h.push(S)}for(var ce=0,Be=h;ce'"_]/g,"-")}function Ho(a,r){console.log(a.languageId+": "+r)}function Do(a,r){return new Error(a.languageId+": "+r)}function xo(a,r,n,h,S){var N=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,ce=null;return r.replace(N,function(Be,Ge,Ye,wt,Ot,Ft,jt,ro,to){return _o(Ye)?_o(wt)?!_o(Ot)&&Ot0;){var h=a.tokenizer[n];if(h)return h;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return null}function gn(a,r){for(var n=r;n&&n.length>0;){var h=a.stateNames[n];if(h)return!0;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return!1}var En=5,on=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new On(r,n);var h=On.getStackElementId(r);h.length>0&&(h+="|"),h+=n;var S=this._entries[h];return S||(S=new On(r,n),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),On=function(){function a(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},a._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return on.create(this,r)},a.prototype.pop=function(){return this.parent},a.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},a.prototype.switchTo=function(r){return on.create(this.parent,r)},a}(),Un=function(){function a(r,n){this.modeId=r,this.state=n}return a.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},a.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new a(this.modeId,this.state)},a}(),Rn=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(n!==null)return new ai(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new ai(r,n);var h=On.getStackElementId(r),S=this._entries[h];return S||(S=new ai(r,null),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),ai=function(){function a(r,n){this.stack=r,this.embeddedModeData=n}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:Rn.create(this.stack,this.embeddedModeData)},a.prototype.equals=function(r){return r instanceof a&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},a}(),bi=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,n){this._language=n},a.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new u.a(r,n,this._language))},a.prototype.nestedModeTokenize=function(r,n,h){var S=n.modeId,N=n.state,ce=vt.B.get(S);if(!ce)return this.enterMode(h,S),this.emit(h,""),N;var Be=ce.tokenize(r,N,h);return this._tokens=this._tokens.concat(Be.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,Be.endState},a.prototype.finalize=function(r){return new u.b(this._tokens,r)},a}(),kn=function(){function a(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},a.prototype.emit=function(r,n){var h=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===h)return;this._lastTokenMetadata=h,this._tokens.push(r),this._tokens.push(h)},a._merge=function(r,n,h){var S=r!==null?r.length:0,N=n.length,ce=h!==null?h.length:0;if(S===0&&N===0&&ce===0)return new Uint32Array(0);if(S===0&&N===0)return h;if(N===0&&ce===0)return r;var Be=new Uint32Array(S+N+ce);r!==null&&Be.set(r);for(var Ge=0;Ge0&&S.nestedModeTokenize(Be,n.embeddedModeData,h);var Ge=r.substring(N);return this._myTokenize(Ge,n,h+N,S)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,n,h,S){S.enterMode(h,this._modeId);for(var N=r.length,ce=n.embeddedModeData,Be=n.stack,Ge=0,Ye=null,wt=!0;wt||Ge=N)break;wt=!1;var Io=this._lexer.tokenizer[ro];if(!Io&&(Io=tn(this._lexer,ro),!Io))throw Do(this._lexer,"tokenizer state is not defined: "+ro);for(var ko=r.substr(Ge),Ko=0,ln=Io;Ko=this._lexer.maxStack)throw Do(this._lexer,"maximum tokenizer stack size reached: ["+Be.state+","+Be.parent.state+",...]");Be=Be.push(ro)}else if(Qt.next==="@pop"){if(Be.depth<=1)throw Do(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(ho));Be=Be.pop()}else if(Qt.next==="@popall")Be=Be.popall();else{var Yo=xo(this._lexer,Qt.next,Yt,to,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),tn(this._lexer,Yo))Be=Be.push(Yo);else throw Do(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(ho))}}Qt.log&&typeof Qt.log=="string"&&Ho(this._lexer,this._lexer.languageId+": "+xo(this._lexer,Qt.log,Yt,to,ro))}if(qo===null)throw Do(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(ho));if(Array.isArray(qo)){if(Ye&&Ye.groups.length>0)throw Do(this._lexer,"groups cannot be nested: "+this._safeRuleName(ho));if(to.length!==qo.length+1)throw Do(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(ho));for(var un=0,en=1;en=0&&ro()})})},a.colorizeLine=function(r,n,h,S,N){N===void 0&&(N=4);var ce=Xt.d.isBasicASCII(r,n),Be=Xt.d.containsRTL(r,ce,h),Ge=Object(Kt.e)(new Kt.c(!1,!0,r,!1,ce,Be,0,S,[],N,0,0,0,-1,"none",!1,!1,null));return Ge.html},a.colorizeModelLine=function(r,n,h){h===void 0&&(h=4);var S=r.getLineContent(n);r.forceTokenization(n);var N=r.getLineTokens(n),ce=N.inflate();return this.colorizeLine(S,r.mightContainNonBasicASCII(),r.mightContainRTL(),ce,h)},a}();function Ki(a,r,n){return new Promise(function(h,S){var N=function ce(){var Be=Gi(a,r,n);if(n instanceof Qn){var Ge=n.getLoadStatus();if(Ge.loaded===!1){Ge.promise.then(ce,S);return}}h(Be)};N()})}function Zr(a,r){var n=[],h=(0<<11|1<<14|2<<23)>>>0,S=new Uint32Array(2);S[0]=0,S[1]=h;for(var N=0,ce=a.length;N")}return n.join("")}function Gi(a,r,n){for(var h=[],S=n.getInitialState(),N=0,ce=a.length;N"),S=Ge.endState}return h.join("")}var $o=e("uDWl"),li=e("S3by"),Tn=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),xn=e("+7oY"),$n=e("QDVR"),Xi=e("CRAX"),br=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Yi=function(){for(var a=0,r=0,n=arguments.length;r5e3&&S._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,h){return this._doDispatch(this.resolveKeyboardEvent(n),h)},r.prototype._doDispatch=function(n,h){var S=this,N=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var ce=n.getDispatchParts()[0];if(ce===null)return N;var Be=this._contextKeyService.getContext(h),Ge=this._currentChord?this._currentChord.keypress:null,Ye=n.getLabel(),wt=this._getResolver().resolve(Be,Ge,ce);return wt&&wt.enterChord?(N=!0,this._enterChordMode(ce,Ye),N):(this._currentChord&&((!wt||!wt.commandId)&&(this._notificationService.status(wn.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ye),{hideAfter:10*1e3}),N=!0)),this._leaveChordMode(),wt&&wt.commandId&&(wt.bubble||(N=!0),typeof wt.commandArgs=="undefined"?this._commandService.executeCommand(wt.commandId).then(void 0,function(Ot){return S._notificationService.warn(Ot)}):this._commandService.executeCommand(wt.commandId,wt.commandArgs).then(void 0,function(Ot){return S._notificationService.warn(Ot)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:wt.commandId,from:"keybinding"})),N)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),Sn=e("T8No"),Qi=function(){function a(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var h=0,S=r.length;h=0;Ot--)this._isTargetedForRemoval(r[Ot],Ge,Ye,Be,wt)&&r.splice(Ot,1)}return r.concat(h)},a.prototype._addKeyPress=function(r,n){var h=this._map.get(r);if(typeof h=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var S=h.length-1;S>=0;S--){var N=h[S];if(N.command===n.command)continue;var ce=N.keypressParts.length>1,Be=n.keypressParts.length>1;if(ce&&Be&&N.keypressParts[1]!==n.keypressParts[1])continue;a.whenIsEntirelyIncluded(N.when,n.when)&&this._removeFromLookupMap(N)}h.push(n),this._addToLookupMap(n)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var h=0,S=n.length;h1&&Ye.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Ye.command,commandArgs:Ye.commandArgs,bubble:Ye.bubble}:null},a.prototype._findCommand=function(r,n){for(var h=n.length-1;h>=0;h--){var S=n[h];if(!a.contextMatchesRules(r,S.when))continue;return S}return null},a.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,n,h,S,N){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=h,this.when=S,this.isDefault=N}return a}();function Er(a){for(var r=[],n=0,h=a.length;n1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(h){return n._getPart(h)})},r.prototype._getPart=function(n){return new H.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(h){return n._getDispatchPart(h)})},r}(H.c),ts=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),wr=function(a){ts(r,a);function r(n,h){return a.call(this,h,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return H.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":H.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var h="";return n.ctrlKey&&(h+="ctrl+"),n.shiftKey&&(h+="shift+"),n.altKey&&(h+="alt+"),n.metaKey&&(h+="meta+"),h+=H.b.toString(n.keyCode),h},r}(na),Hn=e("sM1p"),Sr=e("EWX2"),Oi=e("A9l+"),os=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ns=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},is=function(a,r){return function(n,h){r(n,h,a)}},rs=function(){for(var a=0,r=0,n=arguments.length;r?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(Ve)){var Qe=Ve;do this.seen[Qe]++,Ve=Qe+"-"+this.seen[Qe];while(this.seen.hasOwnProperty(Ve))}return this.seen[Ve]=0,Ve};function me(Se,Ve){if(Ve){if(me.escapeTest.test(Se))return Se.replace(me.escapeReplace,function(Qe){return me.replacements[Qe]})}else if(me.escapeTestNoEncode.test(Se))return Se.replace(me.escapeReplaceNoEncode,function(Qe){return me.replacements[Qe]});return Se}me.escapeTest=/[&<>"']/,me.escapeReplace=/[&<>"']/g,me.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},me.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,me.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;function ge(Se){return Se.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(Ve,Qe){return Qe=Qe.toLowerCase(),Qe==="colon"?":":Qe.charAt(0)==="#"?Qe.charAt(1)==="x"?String.fromCharCode(parseInt(Qe.substring(2),16)):String.fromCharCode(+Qe.substring(1)):""})}function we(Se,Ve){return Se=Se.source||Se,Ve=Ve||"",{replace:function(it,pt){return pt=pt.source||pt,pt=pt.replace(/(^|[^\[])\^/g,"$1"),Se=Se.replace(it,pt),this},getRegex:function(){return new RegExp(Se,Ve)}}}function Re(Se,Ve,Qe){if(Se){try{var it=decodeURIComponent(ge(Qe)).replace(/[^\w:]/g,"").toLowerCase()}catch(pt){return null}if(it.indexOf("javascript:")===0||it.indexOf("vbscript:")===0||it.indexOf("data:")===0)return null}Ve&&!Q.test(Qe)&&(Qe=Ee(Ve,Qe));try{Qe=encodeURI(Qe).replace(/%25/g,"%")}catch(pt){return null}return Qe}function Ee(Se,Ve){return ve[" "+Se]||(/^[^:]+:\/*[^/]*$/.test(Se)?ve[" "+Se]=Se+"/":ve[" "+Se]=oe(Se,"/",!0)),Se=ve[" "+Se],Ve.slice(0,2)==="//"?Se.replace(/:[\s\S]*/,":")+Ve:Ve.charAt(0)==="/"?Se.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+Ve:Se+Ve}var ve={},Q=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(){}C.exec=C;function F(Se){for(var Ve=1,Qe,it;Ve=0&&zt[ao]==="\\";)uo=!uo;return uo?"|":" |"}),it=Qe.split(/ \|/),pt=0;if(it.length>Ve)it.splice(Ve);else for(;it.lengthAn error occurred:

"+me(uo.message+"",!0)+"
";throw uo}}De.options=De.setOptions=function(Se){return F(De.defaults,Se),De},De.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new X,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}},De.defaults=De.getDefaults(),De.Parser=je,De.parser=je.parse,De.Renderer=X,De.TextRenderer=he,De.Lexer=ae,De.lexer=ae.lex,De.InlineLexer=ue,De.inlineLexer=ue.output,De.Slugger=Xe,De.parse=De,z=De}).call(void 0);var O=z,H=z.Parser,x=z.parser,u=z.Renderer,y=z.TextRenderer,_=z.Lexer,f=z.lexer,v=z.InlineLexer,w=z.inlineLexer,p=z.parse,c,c,s;(function(){function ne(ee,ae,q){function ue(je,Xe){if(!ae[je]){if(!ee[je]){var me=typeof c=="function"&&c;if(!Xe&&me)return c(je,!0);if(X)return X(je,!0);var ge=new Error("Cannot find module '"+je+"'");throw ge.code="MODULE_NOT_FOUND",ge}var we=ae[je]={exports:{}};ee[je][0].call(we.exports,function(Re){var Ee=ee[je][1][Re];return ue(Ee||Re)},we,we.exports,ne,ee,ae,q)}return ae[je].exports}for(var X=typeof c=="function"&&c,he=0;he\s]+))?)*)\s*(\/?)\s*>/,Xe=/^<\s*\/\s*([\w:-]+)[^>]*>/,me=/([\w:-]+)(?:\s*=\s*(?:(?:"((?:[^"])*)")|(?:'((?:[^'])*)')|([^>\s]+)))?/g,ge=/^");pt>=0&&(Q.comment&&Q.comment(ve.substring(4,pt)),ve=ve.substring(pt+3),se=!1)}function Ve(){if(!se)return;var pt,Rt=ve.indexOf("<");Rt>=0?(pt=ve.substring(0,Rt),ve=ve.substring(Rt)):(pt=ve,ve=""),Q.chars&&Q.chars(pt)}function Qe(pt,Rt,Mt,zt){var uo={},ao=ue(Rt),so=he.voids[ao]||!!zt;Mt.replace(me,Pt),so||C.push(ao),Q.start&&Q.start(ao,uo,so);function Pt(ft,vt,At,at,tt){At===void 0&&at===void 0&&tt===void 0?uo[vt]=void 0:uo[vt]=q.decode(At||at||tt||"")}}function it(pt,Rt){var Mt,zt=0,uo=ue(Rt);if(uo)for(zt=C.length-1;zt>=0&&!(C[zt]===uo);zt--);if(zt>=0){for(Mt=C.length-1;Mt>=zt;Mt--)Q.end&&Q.end(C[Mt]);C.length=zt}}}ee.exports=Ee},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],8:[function(ne,ee,ae){"use strict";var q=ne("he"),ue=ne("./lowercase"),X=ne("./attributes"),he=ne("./elements");function je(Xe,me){var ge,we,Re=me||{};return be(),{start:ve,end:Q,chars:F};function Ee(De){Xe.push(De)}function ve(De,Se,Ve){var Qe=ue(De);if(we.ignoring){se(Qe);return}if((Re.allowedTags||[]).indexOf(Qe)===-1){se(Qe);return}if(Re.filter&&!Re.filter({tag:Qe,attrs:Se})){se(Qe);return}Ee("<"),Ee(Qe),Object.keys(Se).forEach(it),Ee(Ve?"/>":">");function it(pt){var Rt=Se[pt],Mt=(Re.allowedClasses||{})[Qe]||[],zt=(Re.allowedAttributes||{})[Qe]||[];zt=zt.concat((Re.allowedAttributes||{})["*"]||[]);var uo,ao=ue(pt);ao==="class"&&zt.indexOf(ao)===-1?(Rt=Rt.split(" ").filter(so).join(" ").trim(),uo=Rt.length):uo=zt.indexOf(ao)!==-1&&(X.uris[ao]!==!0||C(Rt)),uo&&(Ee(" "),Ee(pt),typeof Rt=="string"&&(Ee('="'),Ee(q.encode(Rt)),Ee('"')));function so(Pt){return Mt&&Mt.indexOf(Pt)!==-1}}}function Q(De){var Se=ue(De),Ve=(Re.allowedTags||[]).indexOf(Se)!==-1;Ve&&we.ignoring===!1?(Ee("")):oe(Se)}function C(De){var Se=De[0];if(Se==="#"||Se==="/")return!0;var Ve=De.indexOf(":");if(Ve===-1)return!0;var Qe=De.indexOf("?");if(Qe!==-1&&Ve>Qe)return!0;var it=De.indexOf("#");if(it!==-1&&Ve>it)return!0;return Re.allowedSchemes.some(pt);function pt(Rt){return De.indexOf(Rt+":")===0}}function F(De){we.ignoring===!1&&Ee(Re.transformText?Re.transformText(De):De)}function se(De){if(he.voids[De])return;we.ignoring===!1?we={ignoring:De,depth:1}:we.ignoring===De&&we.depth++}function oe(De){we.ignoring===De&&(--we.depth<=0&&be())}function be(){we={ignoring:!1,depth:0}}}ee.exports=je},{"./attributes":1,"./elements":3,"./lowercase":5,he:9}],9:[function(ne,ee,ae){"use strict";var q={"&":"&","<":"<",">":">",'"':""","'":"'"},ue={"&":"&","<":"<",">":">",""":'"',"'":"'"},X=/(&|<|>|"|')/g,he=/[&<>"']/g;function je(we){return q[we]}function Xe(we){return ue[we]}function me(we){return we==null?"":String(we).replace(he,je)}function ge(we){return we==null?"":String(we).replace(X,Xe)}me.options=ge.options={},ee.exports={encode:me,escape:me,decode:ge,unescape:ge,version:"1.0.0-browser"}},{}],10:[function(ne,ee,ae){"use strict";function q(X){return X.reduce(ue,{})}function ue(X,he){return X[he]=!0,X}ee.exports=q},{}]},{},[4]);var l=s,d=e("Q4rV"),m=e("qj0h"),E=e("N0LK"),L=e("bY76"),A=e("tYmi"),k=e("Vhoy");function R(ne,ee){ee===void 0&&(ee={});var ae=Object(re.a)(ee),q=function(Ee){var ve;try{ve=Object(d.a)(decodeURIComponent(Ee))}catch(Q){}return ve?(ve=Object(m.b)(ve,function(Q){return ne.uris&&ne.uris[Q]?L.a.revive(ne.uris[Q]):void 0}),encodeURIComponent(JSON.stringify(ve))):Ee},ue=function(Ee,ve){var Q=ne.uris&&ne.uris[Ee];if(!Q)return Ee;var C=L.a.revive(Q);return L.a.parse(Ee).toString()===C.toString()?Ee:(ve&&(C=T.s(C)),C.query&&(C=C.with({query:q(C.query)})),C.toString(!0))},X,he=new Promise(function(Re){return X=Re}),je=new u;je.image=function(Re,Ee,ve){var Q,C=[],F=[];return Re&&(Q=Object(I.d)(Re),Re=Q.href,C=Q.dimensions,Re=ue(Re,!0),F.push('src="'+Re+'"')),ve&&F.push('alt="'+ve+'"'),Ee&&F.push('title="'+Ee+'"'),C.length&&(F=F.concat(C)),""},je.link=function(Re,Ee,ve){return Re===ve&&(ve=Object(I.e)(ve)),Re=ue(Re,!1),Ee=Object(I.e)(Ee),Re=Object(I.e)(Re),!Re||Re.match(/^data:|javascript:/i)||Re.match(/^command:/i)&&!ne.isTrusted||Re.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?ve:(Re=Re.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),''+ve+"")},je.paragraph=function(Re){return"

"+(ne.supportThemeIcons?Object(k.c)(Re):Re)+"

"},ee.codeBlockRenderer&&(je.code=function(Re,Ee){var ve=ee.codeBlockRenderer(Ee,Re),Q=U.b.nextId(),C=Promise.all([ve,he]).then(function(F){var se=F[0],oe=ae.querySelector('div[data-code="'+Q+'"]');oe&&(oe.innerHTML=se)}).catch(function(F){});return ee.codeBlockRenderCallback&&C.then(ee.codeBlockRenderCallback),'
'+Object(E.o)(Re)+"
"});var Xe=ee.actionHandler;Xe&&Xe.disposeables.add(T.o(ae,"click",function(Re){var Ee=Re.target;if(Ee.tagName!=="A"&&(Ee=Ee.parentElement,!Ee||Ee.tagName!=="A"))return;try{var ve=Ee.dataset.href;ve&&Xe.callback(ve,Re)}catch(Q){Object(J.e)(Q)}finally{Re.preventDefault()}}));var me={sanitize:!0,renderer:je},ge=[A.b.http,A.b.https,A.b.mailto,A.b.data,A.b.file,A.b.vscodeRemote,A.b.vscodeRemoteResource];ne.isTrusted&&ge.push(A.b.command);var we=p(ne.supportThemeIcons?Object(k.b)(ne.value):ne.value,me);return ae.innerHTML=l(we,{allowedSchemes:ge,allowedAttributes:{a:["href","name","target","data-href"],iframe:["allowfullscreen","frameborder","src"],img:["src","title","alt","width","height"],div:["class","data-code"],span:["class"]}}),X(),ae}var $=e("W9cx"),ie=e("WBhO"),W=e("TQUy"),B=e("Cg/j"),le=e("MI8n"),Ce=e("pmY6"),Me=e("twdY"),Te=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),Fe=function(ne,ee,ae,q){var ue=arguments.length,X=ue<3?ee:q===null?q=Object.getOwnPropertyDescriptor(ee,ae):q,he;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(ne,ee,ae,q);else for(var je=ne.length-1;je>=0;je--)(he=ne[je])&&(X=(ue<3?he(X):ue>3?he(ee,ae,X):he(ee,ae))||X);return ue>3&&X&&Object.defineProperty(ee,ae,X),X},Ue=function(ne,ee){return function(ae,q){ee(ae,q,ne)}},Pe=function(ne){Te(ee,ne);function ee(ae,q,ue){ue===void 0&&(ue=$.b);var X=ne.call(this)||this;return X._editor=ae,X._modeService=q,X._openerService=ue,X._onDidRenderCodeBlock=X._register(new le.a),X.onDidRenderCodeBlock=X._onDidRenderCodeBlock.event,X}return ee.prototype.getOptions=function(ae){var q=this;return{codeBlockRenderer:function(X,he){var je=null;if(X)je=q._modeService.getModeIdForLanguageName(X);else{var Xe=q._editor.getModel();Xe&&(je=Xe.getLanguageIdentifier().language)}return q._modeService.triggerMode(je||""),Promise.resolve(!0).then(function(me){var ge=Me.B.getPromise(je||"");return ge?ge.then(function(we){return Object(W.b)(he,we)}):Object(W.b)(he,void 0)}).then(function(me){return''+me+""})},codeBlockRenderCallback:function(){return q._onDidRenderCodeBlock.fire()},actionHandler:{callback:function(X){q._openerService.open(X,{fromUserGesture:!0}).catch(J.e)},disposeables:ae}}},ee.prototype.render=function(ae){var q=new Ce.b,ue;return ae?ue=R(ae,this.getOptions(q)):ue=document.createElement("span"),{element:ue,dispose:function(){return q.dispose()}}},ee=Fe([Ue(1,ie.a),Ue(2,Object(B.d)($.a))],ee),ee}(Ce.a)},"3rx1":function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return H}),e.d(j,"c",function(){return u});var T=e("bY76"),re=e("MrjW"),J=e("N0LK"),I=e("tYmi"),U=e("MNsG"),z=e("gslv");function O(f,v,w){if(typeof f=="string"&&(f=T.a.file(f)),w){var p=w.getWorkspaceFolder(f);if(p){var c=w.getWorkspace().folders.length>1,s=void 0;if(Object(z.e)(p.uri,f)?s="":s=Object(z.h)(p.uri,f),c){var l=p.name?p.name:Object(z.b)(p.uri);s=s?l+" \u2022 "+s:l}return s}}if(f.scheme!==I.b.file&&f.scheme!==I.b.untitled)return f.with({query:null,fragment:null}).toString(!0);if(x(f.fsPath))return Object(re.normalize)(u(f.fsPath));var d=Object(re.normalize)(f.fsPath);return!U.h&&v&&(d=_(d,v.userHome)),d}function H(f){if(!f)return;typeof f=="string"&&(f=T.a.file(f));var v=Object(z.b)(f)||(f.scheme===I.b.file?f.fsPath:f.path);return x(v)?u(v):v}function x(f){return!!(U.h&&f&&f[1]===":")}function u(f){return x(f)?f.charAt(0).toUpperCase()+f.slice(1):f}var y=Object.create(null);function _(f,v){if(U.h||!f||!v)return f;var w=y.original===v?y.normalized:void 0;return w||(w=""+Object(J.K)(v,re.posix.sep)+re.posix.sep,y={original:v,normalized:w}),(U.d?Object(J.N)(f,w):Object(J.O)(f,w))&&(f="~/"+f.substr(w.length)),f}},"4bUh":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("twdY"),re=function(){function I(U,z){this._tokens=U,this._tokensCount=this._tokens.length>>>1,this._text=z}return I.prototype.equals=function(U){return U instanceof I?this.slicedEquals(U,0,this._tokensCount):!1},I.prototype.slicedEquals=function(U,z,O){if(this._text!==U._text)return!1;if(this._tokensCount!==U._tokensCount)return!1;for(var H=z<<1,x=H+(O<<1),u=H;u0?this._tokens[U-1<<1]:0},I.prototype.getMetadata=function(U){var z=this._tokens[(U<<1)+1];return z},I.prototype.getLanguageId=function(U){var z=this._tokens[(U<<1)+1];return T.A.getLanguageId(z)},I.prototype.getStandardTokenType=function(U){var z=this._tokens[(U<<1)+1];return T.A.getTokenType(z)},I.prototype.getForeground=function(U){var z=this._tokens[(U<<1)+1];return T.A.getForeground(z)},I.prototype.getClassName=function(U){var z=this._tokens[(U<<1)+1];return T.A.getClassNameFromMetadata(z)},I.prototype.getInlineStyle=function(U,z){var O=this._tokens[(U<<1)+1];return T.A.getInlineStyleFromMetadata(O,z)},I.prototype.getEndOffset=function(U){return this._tokens[U<<1]},I.prototype.findTokenIndexAtOffset=function(U){return I.findIndexInTokensArray(this._tokens,U)},I.prototype.inflate=function(){return this},I.prototype.sliceAndInflate=function(U,z,O){return new J(this,U,z,O)},I.convertToEndOffset=function(U,z){for(var O=U.length>>>1,H=O-1,x=0;x>>1)-1;Oz&&(H=x)}return O},I}(),J=function(){function I(U,z,O,H){this._source=U,this._startOffset=z,this._endOffset=O,this._deltaOffset=H,this._firstTokenIndex=U.findTokenIndexAtOffset(z),this._tokensCount=0;for(var x=this._firstTokenIndex,u=U.getCount();x=O)break;this._tokensCount++}}return I.prototype.equals=function(U){return U instanceof I?this._startOffset===U._startOffset&&this._endOffset===U._endOffset&&this._deltaOffset===U._deltaOffset&&this._source.slicedEquals(U._source,this._firstTokenIndex,this._tokensCount):!1},I.prototype.getCount=function(){return this._tokensCount},I.prototype.getForeground=function(U){return this._source.getForeground(this._firstTokenIndex+U)},I.prototype.getEndOffset=function(U){var z=this._source.getEndOffset(this._firstTokenIndex+U);return Math.min(this._endOffset,z)-this._startOffset+this._deltaOffset},I.prototype.getClassName=function(U){return this._source.getClassName(this._firstTokenIndex+U)},I.prototype.getInlineStyle=function(U,z){return this._source.getInlineStyle(this._firstTokenIndex+U,z)},I.prototype.findTokenIndexAtOffset=function(U){return this._source.findTokenIndexAtOffset(U+this._startOffset-this._deltaOffset)-this._firstTokenIndex},I}()},"4rho":function(Lt,j,e){},"4sI4":function(Lt,j,e){"use strict";e.r(j),e.d(j,"StandaloneReferencesController",function(){return _});var T=e("sswD"),re=e("Vxe3"),J=e("QY8A"),I=e("+7oY"),U=e("T8No"),z=e("Cg/j"),O=e("sM1p"),H=e("A+jI"),x=function(){var f=function(w,p){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,s){c.__proto__=s}||function(c,s){for(var l in s)s.hasOwnProperty(l)&&(c[l]=s[l])},f(w,p)};return function(v,w){f(v,w);function p(){this.constructor=v}v.prototype=w===null?Object.create(w):(p.prototype=w.prototype,new p)}}(),u=function(f,v,w,p){var c=arguments.length,s=c<3?v:p===null?p=Object.getOwnPropertyDescriptor(v,w):p,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(f,v,w,p);else for(var d=f.length-1;d>=0;d--)(l=f[d])&&(s=(c<3?l(s):c>3?l(v,w,s):l(v,w))||s);return c>3&&s&&Object.defineProperty(v,w,s),s},y=function(f,v){return function(w,p){v(w,p,f)}},_=function(f){x(v,f);function v(w,p,c,s,l,d,m){return f.call(this,!0,w,p,c,s,l,d,m)||this}return v=u([y(1,U.c),y(2,re.a),y(3,O.a),y(4,z.a),y(5,H.a),y(6,I.a)],v),v}(J.a);Object(T.h)(J.a.ID,_)},"4y0V":function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=e("MI8n"),re=function(U,z,O){var H=function(y){return x.fire(y)},x=new T.a({onFirstListenerAdd:function(){U.addEventListener(z,H,O)},onLastListenerRemove:function(){U.removeEventListener(z,H,O)}});return x.event};function J(I){return T.b.map(I,function(U){return U.preventDefault(),U.stopPropagation(),U})}},"51B1":function(Lt,j,e){},"51f4":function(Lt,j,e){"use strict";e.d(j,"a",function(){return U});var T=!1,re=null;function J(z){if(!z.parent||z.parent===z)return null;try{var O=z.location,H=z.parent.location;if(O.protocol!==H.protocol||O.hostname!==H.hostname||O.port!==H.port)return T=!0,null}catch(x){return T=!0,null}return z.parent}function I(z,O){for(var H=z.document.getElementsByTagName("iframe"),x,u=0,y=H.length;u0&&v._undoStack[v._undoStack.length-1].cursorState.equals(p);c||(v._undoStack.push(new O(p,f.getScrollTop(),f.getScrollLeft())),v._redoStack=[],v._undoStack.length>50&&v._undoStack.shift())})),v}return _.get=function(f){return f.getContribution(_.ID)},_.prototype.cursorUndo=function(){if(!this._editor.hasModel()||this._undoStack.length===0)return;this._redoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop())},_.prototype.cursorRedo=function(){if(!this._editor.hasModel()||this._redoStack.length===0)return;this._undoStack.push(new O(new z(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop())},_.prototype._applyState=function(f){this._isCursorUndoRedo=!0,this._editor.setSelections(f.cursorState.selections),this._editor.setScrollPosition({scrollTop:f.scrollTop,scrollLeft:f.scrollLeft}),this._isCursorUndoRedo=!1},_.ID="editor.contrib.cursorUndoRedoController",_}(re.a),x=function(y){U(_,y);function _(){return y.call(this,{id:"cursorUndo",label:T.a("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:I.a.textInputFocus,primary:2048|51,weight:100}})||this}return _.prototype.run=function(f,v,w){H.get(v).cursorUndo()},_}(J.b),u=function(y){U(_,y);function _(){return y.call(this,{id:"cursorRedo",label:T.a("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})||this}return _.prototype.run=function(f,v,w){H.get(v).cursorRedo()},_}(J.b);Object(J.h)(H.ID,H),Object(J.f)(x),Object(J.f)(u)},"5TxY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return _}),e.d(j,"b",function(){return v});var T=e("D3Dy"),re=e("EffR"),J=e("X+cX"),I=e("MI8n"),U=e("pmY6"),z=e("MNsG"),O=e("N0LK"),H=e("Comh"),x=e("gCVg"),u=e("CjF5"),y=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),_={forceCopyWithSyntaxHighlighting:!1},f=function(){function c(){this._lastState=null}return c.prototype.set=function(s,l){this._lastState={lastCopiedValue:s,data:l}},c.prototype.get=function(s){return this._lastState&&this._lastState.lastCopiedValue===s?this._lastState.data:(this._lastState=null,null)},c.INSTANCE=new c,c}(),v=function(c){y(s,c);function s(l,d){var m=c.call(this)||this;m.textArea=d,m._onFocus=m._register(new I.a),m.onFocus=m._onFocus.event,m._onBlur=m._register(new I.a),m.onBlur=m._onBlur.event,m._onKeyDown=m._register(new I.a),m.onKeyDown=m._onKeyDown.event,m._onKeyUp=m._register(new I.a),m.onKeyUp=m._onKeyUp.event,m._onCut=m._register(new I.a),m.onCut=m._onCut.event,m._onPaste=m._register(new I.a),m.onPaste=m._onPaste.event,m._onType=m._register(new I.a),m.onType=m._onType.event,m._onCompositionStart=m._register(new I.a),m.onCompositionStart=m._onCompositionStart.event,m._onCompositionUpdate=m._register(new I.a),m.onCompositionUpdate=m._onCompositionUpdate.event,m._onCompositionEnd=m._register(new I.a),m.onCompositionEnd=m._onCompositionEnd.event,m._onSelectionChangeRequest=m._register(new I.a),m.onSelectionChangeRequest=m._onSelectionChangeRequest.event,m._host=l,m._textArea=m._register(new p(d)),m._asyncTriggerCut=m._register(new J.d(function(){return m._onCut.fire()},0)),m._textAreaState=H.b.EMPTY,m._selectionChangeListener=null,m.writeScreenReaderContent("ctor"),m._hasFocus=!1,m._isDoingComposition=!1,m._nextCommand=0,m._register(re.o(d.domNode,"keydown",function(k){m._isDoingComposition&&(k.keyCode===109||k.keyCode===1)&&k.stopPropagation(),k.equals(9)&&k.preventDefault(),m._onKeyDown.fire(k)})),m._register(re.o(d.domNode,"keyup",function(k){m._onKeyUp.fire(k)})),m._register(re.j(d.domNode,"compositionstart",function(k){if(m._isDoingComposition)return;m._isDoingComposition=!0,T.f||m._setAndWriteTextAreaState("compositionstart",H.b.EMPTY),m._onCompositionStart.fire()}));var E=function(R){var $=m._textAreaState,ie=H.b.readFromTextArea(m._textArea);return[ie,H.b.deduceInput($,ie,R)]},L=function(R){var $=m._textAreaState,ie=H.b.selectedText(R),W={text:ie.value,replaceCharCnt:$.selectionEnd-$.selectionStart};return[ie,W]},A=function(R){return T.f&&R==="ja"?!0:!!(T.i&&R.indexOf("zh-Han")===0)};return m._register(re.j(d.domNode,"compositionupdate",function(k){if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie),m._onCompositionUpdate.fire(k);return}var W=L(k.data),B=W[0],le=W[1];m._textAreaState=B,m._onType.fire(le),m._onCompositionUpdate.fire(k)})),m._register(re.j(d.domNode,"compositionend",function(k){if(!m._isDoingComposition)return;if(A(k.locale)){var R=E(!1),$=R[0],ie=R[1];m._textAreaState=$,m._onType.fire(ie)}else{var W=L(k.data),$=W[0],ie=W[1];m._textAreaState=$,m._onType.fire(ie)}if((T.f||T.d)&&(m._textAreaState=H.b.readFromTextArea(m._textArea)),!m._isDoingComposition)return;m._isDoingComposition=!1,m._onCompositionEnd.fire()})),m._register(re.j(d.domNode,"input",function(){if(m._textArea.setIgnoreSelectionChangeTime("received input event"),m._isDoingComposition)return;var k=E(z.e),R=k[0],$=k[1];if($.replaceCharCnt===0&&$.text.length===1&&O.z($.text.charCodeAt(0)))return;m._textAreaState=R,m._nextCommand===0?$.text!==""&&m._onType.fire($):(($.text!==""||$.replaceCharCnt!==0)&&m._firePaste($.text,null),m._nextCommand=0)})),m._register(re.j(d.domNode,"cut",function(k){m._textArea.setIgnoreSelectionChangeTime("received cut event"),m._ensureClipboardGetsEditorSelection(k),m._asyncTriggerCut.schedule()})),m._register(re.j(d.domNode,"copy",function(k){m._ensureClipboardGetsEditorSelection(k)})),m._register(re.j(d.domNode,"paste",function(k){if(m._textArea.setIgnoreSelectionChangeTime("received paste event"),w.canUseTextData(k)){var R=w.getTextData(k),$=R[0],ie=R[1];$!==""&&m._firePaste($,ie)}else m._textArea.getSelectionStart()!==m._textArea.getSelectionEnd()&&m._setAndWriteTextAreaState("paste",H.b.EMPTY),m._nextCommand=1})),m._register(re.j(d.domNode,"focus",function(){m._setHasFocus(!0)})),m._register(re.j(d.domNode,"blur",function(){m._setHasFocus(!1)})),m}return s.prototype._installSelectionChangeListener=function(){var l=this,d=0;return re.j(document,"selectionchange",function(m){if(!l._hasFocus)return;if(l._isDoingComposition)return;if(!T.d||!z.h)return;var E=Date.now(),L=E-d;if(d=E,L<5)return;var A=E-l._textArea.getIgnoreSelectionChangeTime();if(l._textArea.resetSelectionChangeTime(),A<100)return;if(!l._textAreaState.selectionStartPosition||!l._textAreaState.selectionEndPosition)return;var k=l._textArea.getValue();if(l._textAreaState.value!==k)return;var R=l._textArea.getSelectionStart(),$=l._textArea.getSelectionEnd();if(l._textAreaState.selectionStart===R&&l._textAreaState.selectionEnd===$)return;var ie=l._textAreaState.deduceEditorPosition(R),W=l._host.deduceModelPosition(ie[0],ie[1],ie[2]),B=l._textAreaState.deduceEditorPosition($),le=l._host.deduceModelPosition(B[0],B[1],B[2]),Ce=new x.a(W.lineNumber,W.column,le.lineNumber,le.column);l._onSelectionChangeRequest.fire(Ce)})},s.prototype.dispose=function(){c.prototype.dispose.call(this),this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null)},s.prototype.focusTextArea=function(){this._setHasFocus(!0),this.refreshFocusState()},s.prototype.isFocused=function(){return this._hasFocus},s.prototype.refreshFocusState=function(){var l=re.E(this.textArea.domNode);l?this._setHasFocus(l.activeElement===this.textArea.domNode):re.M(this.textArea.domNode)?this._setHasFocus(document.activeElement===this.textArea.domNode):this._setHasFocus(!1)},s.prototype._setHasFocus=function(l){if(this._hasFocus===l)return;this._hasFocus=l,this._selectionChangeListener&&(this._selectionChangeListener.dispose(),this._selectionChangeListener=null),this._hasFocus&&(this._selectionChangeListener=this._installSelectionChangeListener()),this._hasFocus&&(T.e?this._setAndWriteTextAreaState("focusgain",H.b.EMPTY):this.writeScreenReaderContent("focusgain")),this._hasFocus?this._onFocus.fire():this._onBlur.fire()},s.prototype._setAndWriteTextAreaState=function(l,d){this._hasFocus||(d=d.collapseSelection()),d.writeToTextArea(l,this._textArea,this._hasFocus),this._textAreaState=d},s.prototype.writeScreenReaderContent=function(l){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(l,this._host.getScreenReaderContent(this._textAreaState))},s.prototype._ensureClipboardGetsEditorSelection=function(l){var d=this._host.getDataToCopy(w.canUseTextData(l)&&u.a.clipboard.richText),m={version:1,isFromEmptySelection:d.isFromEmptySelection,multicursorText:d.multicursorText,mode:d.mode};if(f.INSTANCE.set(T.h?d.text.replace(/\r\n/g,` +`):d.text,m),!w.canUseTextData(l)){this._setAndWriteTextAreaState("copy or cut",H.b.selectedText(d.text));return}w.setTextData(l,d.text,d.html,m)},s.prototype._firePaste=function(l,d){d||(d=f.INSTANCE.get(l)),this._onPaste.fire({text:l,metadata:d})},s}(U.a),w=function(){function c(){}return c.canUseTextData=function(s){return s.clipboardData?!0:!!window.clipboardData},c.getTextData=function(s){if(s.clipboardData){s.preventDefault();var l=s.clipboardData.getData("text/plain"),d=null,m=s.clipboardData.getData("vscode-editor-data");if(typeof m=="string")try{d=JSON.parse(m),d.version!==1&&(d=null)}catch(E){}return[l,d]}if(window.clipboardData){s.preventDefault();var l=window.clipboardData.getData("Text");return[l,null]}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")},c.setTextData=function(s,l,d,m){if(s.clipboardData){s.clipboardData.setData("text/plain",l),typeof d=="string"&&s.clipboardData.setData("text/html",d),s.clipboardData.setData("vscode-editor-data",JSON.stringify(m)),s.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",l),s.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")},c}(),p=function(c){y(s,c);function s(l){var d=c.call(this)||this;return d._actual=l,d._ignoreSelectionChangeTime=0,d}return s.prototype.setIgnoreSelectionChangeTime=function(l){this._ignoreSelectionChangeTime=Date.now()},s.prototype.getIgnoreSelectionChangeTime=function(){return this._ignoreSelectionChangeTime},s.prototype.resetSelectionChangeTime=function(){this._ignoreSelectionChangeTime=0},s.prototype.getValue=function(){return this._actual.domNode.value},s.prototype.setValue=function(l,d){var m=this._actual.domNode;if(m.value===d)return;this.setIgnoreSelectionChangeTime("setValue"),m.value=d},s.prototype.getSelectionStart=function(){return this._actual.domNode.selectionStart},s.prototype.getSelectionEnd=function(){return this._actual.domNode.selectionEnd},s.prototype.setSelectionRange=function(l,d,m){var E=this._actual.domNode,L=null,A=re.E(E);A?L=A.activeElement:L=document.activeElement;var k=L===E,R=E.selectionStart,$=E.selectionEnd;if(k&&R===d&&$===m){T.h&&window.parent!==window&&E.focus();return}if(k){this.setIgnoreSelectionChangeTime("setSelectionRange"),E.setSelectionRange(d,m),T.h&&window.parent!==window&&E.focus();return}try{var ie=re.V(E);this.setIgnoreSelectionChangeTime("setSelectionRange"),E.focus(),E.setSelectionRange(d,m),re.T(E,ie)}catch(W){}},s}(U.a)},"5Y4S":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("MNsG"),re=T.b.performance&&typeof T.b.performance.now=="function",J=function(){function I(U){this._highResolution=re&&U,this._startTime=this._now(),this._stopTime=-1}return I.create=function(U){return U===void 0&&(U=!0),new I(U)},I.prototype.stop=function(){this._stopTime=this._now()},I.prototype.elapsed=function(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime},I.prototype._now=function(){return this._highResolution?T.b.performance.now():new Date().getTime()},I}()},"5v8Y":function(Lt,j,e){"use strict";e.d(j,"a",function(){return U});var T=e("MXAL"),re=function(){var z=function(H,x){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,y){u.__proto__=y}||function(u,y){for(var _ in y)y.hasOwnProperty(_)&&(u[_]=y[_])},z(H,x)};return function(O,H){z(O,H);function x(){this.constructor=O}O.prototype=H===null?Object.create(H):(x.prototype=H.prototype,new x)}}(),J=function(z){re(O,z);function O(H){for(var x=z.call(this,0)||this,u=0,y=H.length;u0)B=le-1;else return le}return-(W+1)}function U(R,$){var ie=0,W=R.length;if(W===0)return 0;for(;ieW?R[Te]=le[Me++]:Me>B?R[Te]=le[Ce++]:$(le[Me],le[Ce])<0?R[Te]=le[Me++]:R[Te]=le[Ce++]}function H(R,$,ie,W,B){if(W<=ie)return;var le=ie+(W-ie)/2|0;if(H(R,$,ie,le,B),H(R,$,le+1,W,B),$(R[le],R[le+1])<=0)return;O(R,$,ie,le,W,B)}function x(R,$){for(var ie=[],W=void 0,B=0,le=z(R.slice(0),$);B0}function f(R,$){if(!$)return R.filter(function(W,B){return R.indexOf(W)===B});var ie=Object.create(null);return R.filter(function(W){var B=$(W);return ie[B]?!1:(ie[B]=!0,!0)})}function v(R){var $=new Set;return R.filter(function(ie){return $.has(ie)?!1:($.add(ie),!0)})}function w(R){var $=[];return R.forEach(function(ie){return $.push(ie)}),$}function p(R,$){for(var ie=0;ie0?R[0]:$}function l(R){var $;return($=[]).concat.apply($,R)}function d(R,$){var ie=typeof $=="number"?R:0;typeof $=="number"?ie=R:(ie=0,$=R);var W=[];if(ie<=$)for(var B=ie;B<$;B++)W.push(B);else for(var B=ie;B>$;B--)W.push(B);return W}function m(R,$,ie){var W=R.slice(0,$),B=R.slice($);return W.concat(ie,B)}function E(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.unshift($))}function L(R,$){var ie=R.indexOf($);ie>-1&&(R.splice(ie,1),R.push($))}function A(R,$){for(var ie=0;ie";var y=this.text.substring(O,u.start);z+=this.supportCodicons?Object(re.c)(Object(J.o)(y)):Object(J.o)(y),z+="",O=u.end}u.extraClasses?z+='':z+='';var _=this.text.substring(u.start,u.end);z+=this.supportCodicons?Object(re.c)(Object(J.o)(_)):Object(J.o)(_),z+="",O=u.end}if(O";var _=this.text.substring(O);z+=this.supportCodicons?Object(re.c)(Object(J.o)(_)):Object(J.o)(_),z+=""}this.domNode.innerHTML=z,this.title?this.domNode.title=this.title:this.domNode.removeAttribute("title"),this.didEverRender=!0},U.escapeNewLines=function(z,O){var H=0,x=0;return z.replace(/\r\n|\r|\n/g,function(u,y){x=u===`\r +`?-1:0,y+=H;for(var _=0,f=O;_=y&&(v.start+=x),v.end>=y&&(v.end+=x)}return H+=x,"\u23CE"})},U}()},"7zd4":function(Lt,j,e){},"8ATB":function(Lt,j,e){},"8HAY":function(Lt,j,e){"use strict";e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O});var T=e("pmY6"),re=e("MI8n"),J=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),I=function(H,x,u,y){function _(f){return f instanceof u?f:new u(function(v){v(f)})}return new(u||(u=Promise))(function(f,v){function w(s){try{c(y.next(s))}catch(l){v(l)}}function p(s){try{c(y.throw(s))}catch(l){v(l)}}function c(s){s.done?f(s.value):_(s.value).then(w,p)}c((y=y.apply(H,x||[])).next())})},U=function(H,x){var u={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},y,_,f,v;return v={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function w(c){return function(s){return p([c,s])}}function p(c){if(y)throw new TypeError("Generator is already executing.");for(;u;)try{if(y=1,_&&(f=c[0]&2?_.return:c[0]?_.throw||((f=_.return)&&f.call(_),0):_.next)&&!(f=f.call(_,c[1])).done)return f;(_=0,f)&&(c=[c[0]&2,f.value]);switch(c[0]){case 0:case 1:f=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,_=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(f=u.trys,f=f.length>0&&f[f.length-1])&&(c[0]===6||c[0]===2)){u=0;continue}if(c[0]===3&&(!f||c[1]>f[0]&&c[1]1&&q.push(new H.a(ee.endLineNumber,ee.endColumn,ee.endLineNumber,ee.endColumn))},ne.prototype.run=function(ee,ae){var q=this;if(!ae.hasModel())return;var ue=ae.getModel(),X=ae.getSelections(),he=[];X.forEach(function(je){return q.getCursorsForSelection(je,ue,he)}),he.length>0&&ae.setSelections(he)},ne}(U.b),m=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.addCursorsToBottom",label:T.a("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})||this}return ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=ae.getModel().getLineCount(),X=[],he=q[0].startLineNumber;he<=ue;he++)X.push(new H.a(he,q[0].startColumn,he,q[0].endColumn));X.length>0&&ae.setSelections(X)},ne}(U.b),E=function(Pe){c(ne,Pe);function ne(){return Pe.call(this,{id:"editor.action.addCursorsToTop",label:T.a("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})||this}return ne.prototype.run=function(ee,ae){if(!ae.hasModel())return;for(var q=ae.getSelections(),ue=[],X=q[0].startLineNumber;X>=1;X--)ue.push(new H.a(X,q[0].startColumn,X,q[0].endColumn));ue.length>0&&ae.setSelections(ue)},ne}(U.b),L=function(){function Pe(ne,ee,ae){this.selections=ne,this.revealRange=ee,this.revealScrollType=ae}return Pe}(),A=function(){function Pe(ne,ee,ae,q,ue,X,he){this._editor=ne,this.findController=ee,this.isDisconnectedFromFindController=ae,this.searchText=q,this.wholeWord=ue,this.matchCase=X,this.currentMatch=he}return Pe.create=function(ne,ee){if(!ne.hasModel())return null;var ae=ee.getState();if(!ne.hasTextFocus()&&ae.isRevealed&&ae.searchString.length>0)return new Pe(ne,ee,!1,ae.searchString,ae.wholeWord,ae.matchCase,null);var q=!1,ue,X,he=ne.getSelections();he.length===1&&he[0].isEmpty()?(q=!0,ue=!0,X=!0):(ue=ae.wholeWord,X=ae.matchCase);var je=ne.getSelection(),Xe,me=null;if(je.isEmpty()){var ge=ne.getModel().getWordAtPosition(je.getStartPosition());if(!ge)return null;Xe=ge.word,me=new H.a(je.startLineNumber,ge.startColumn,je.startLineNumber,ge.endColumn)}else Xe=ne.getModel().getValueInRange(je).replace(/\r\n/g,` +`);return new Pe(ne,ee,q,Xe,ue,X,me)},Pe.prototype.addSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToNextFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getNextMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getNextMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findNextMatch(this.searchText,ae.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new H.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.prototype.addSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.concat(ne),ne,0)},Pe.prototype.moveSelectionToPreviousFindMatch=function(){if(!this._editor.hasModel())return null;var ne=this._getPreviousMatch();if(!ne)return null;var ee=this._editor.getSelections();return new L(ee.slice(0,ee.length-1).concat(ne),ne,0)},Pe.prototype._getPreviousMatch=function(){if(!this._editor.hasModel())return null;if(this.currentMatch){var ne=this.currentMatch;return this.currentMatch=null,ne}this.findController.highlightFindOptions();var ee=this._editor.getSelections(),ae=ee[ee.length-1],q=this._editor.getModel().findPreviousMatch(this.searchText,ae.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1);return q?new H.a(q.range.startLineNumber,q.range.startColumn,q.range.endLineNumber,q.range.endColumn):null},Pe.prototype.selectAll=function(){return this._editor.hasModel()?(this.findController.highlightFindOptions(),this._editor.getModel().findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(96):null,!1,1073741824)):[]},Pe}(),k=function(Pe){c(ne,Pe);function ne(ee){var ae=Pe.call(this)||this;return ae._sessionDispose=ae._register(new I.b),ae._editor=ee,ae._ignoreSelectionChange=!1,ae._session=null,ae}return ne.get=function(ee){return ee.getContribution(ne.ID)},ne.prototype.dispose=function(){this._endSession(),Pe.prototype.dispose.call(this)},ne.prototype._beginSessionIfNeeded=function(ee){var ae=this;if(!this._session){var q=A.create(this._editor,ee);if(!q)return;this._session=q;var ue={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(ue.wholeWordOverride=1,ue.matchCaseOverride=1,ue.isRegexOverride=2),ee.getState().change(ue,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(function(X){if(ae._ignoreSelectionChange)return;ae._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(function(){ae._endSession()})),this._sessionDispose.add(ee.getState().onFindReplaceStateChange(function(X){(X.matchCase||X.wholeWord)&&ae._endSession()}))}},ne.prototype._endSession=function(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){var ee={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(ee,!1)}this._session=null},ne.prototype._setSelections=function(ee){this._ignoreSelectionChange=!0,this._editor.setSelections(ee),this._ignoreSelectionChange=!1},ne.prototype._expandEmptyToWord=function(ee,ae){if(!ae.isEmpty())return ae;var q=ee.getWordAtPosition(ae.getStartPosition());return q?new H.a(ae.startLineNumber,q.startColumn,ae.startLineNumber,q.endColumn):ae},ne.prototype._applySessionResult=function(ee){if(!ee)return;this._setSelections(ee.selections),ee.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(ee.revealRange,ee.revealScrollType)},ne.prototype.getSession=function(ee){return this._session},ne.prototype.addSelectionToNextFindMatch=function(ee){if(!this._editor.hasModel())return;if(!this._session){var ae=this._editor.getSelections();if(ae.length>1){var q=ee.getState(),ue=q.matchCase,X=Fe(this._editor.getModel(),ae,ue);if(!X){for(var he=this._editor.getModel(),je=[],Xe=0,me=ae.length;Xe0&&q.isRegex)ae=this._editor.getModel().findMatches(q.searchString,!0,q.isRegex,q.matchCase,q.wholeWord?this._editor.getOption(96):null,!1,1073741824);else{if(this._beginSessionIfNeeded(ee),!this._session)return;ae=this._session.selectAll()}if(q.searchScope){for(var ue=q.searchScope,X=[],he=0;he=ue.startLineNumber&&X.push(ae[he]);ae=X}if(ae.length>0){for(var je=this._editor.getSelection(),he=0,Xe=ae.length;he1){var Xe=X.getState(),me=Xe.matchCase,ge=Fe(ae.getModel(),je,me);if(!ge)return null}he=A.create(ae,X)}if(!he)return null;if(he.currentMatch)return null;if(/^[ \t]+$/.test(he.searchText))return null;if(he.searchText.length>200)return null;var we=X.getState(),Re=we.matchCase;if(we.isRevealed){var Ee=we.searchString;Re||(Ee=Ee.toLowerCase());var ve=he.searchText;if(Re||(ve=ve.toLowerCase()),Ee===ve&&he.matchCase===we.matchCase&&he.wholeWord===we.wholeWord&&!we.isRegex)return null}return new Me(he.searchText,he.matchCase,he.wholeWord?ae.getOption(96):null)},ne.prototype._setState=function(ee){if(Me.softEquals(this.state,ee)){this.state=ee;return}if(this.state=ee,!this.state){this.decorations=this.editor.deltaDecorations(this.decorations,[]);return}if(!this.editor.hasModel())return;var ae=this.editor.getModel();if(ae.isTooLargeForTokenization())return;var q=_.i.has(ae),ue=ae.findMatches(this.state.searchText,!0,!1,this.state.matchCase,this.state.wordSeparators,!1).map(function(ve){return ve.range});ue.sort(O.a.compareRangesUsingStarts);var X=this.editor.getSelections();X.sort(O.a.compareRangesUsingStarts);for(var he=[],je=0,Xe=0,me=ue.length,ge=X.length;je=ge)he.push(we),je++;else{var Re=O.a.compareRangesUsingStarts(we,X[Xe]);Re<0?((X[Xe].isEmpty()||!O.a.areIntersecting(we,X[Xe]))&&he.push(we),je++):(Re>0||je++,Xe++)}}var Ee=he.map(function(ve){return{range:ve,options:q?ne._SELECTION_HIGHLIGHT:ne._SELECTION_HIGHLIGHT_OVERVIEW}});this.decorations=this.editor.deltaDecorations(this.decorations,Ee)},ne.prototype.dispose=function(){this._setState(null),Pe.prototype.dispose.call(this)},ne.ID="editor.contrib.selectionHighlighter",ne._SELECTION_HIGHLIGHT_OVERVIEW=y.a.register({stickiness:1,className:"selectionHighlight",overviewRuler:{color:Object(w.f)(v.Mb),position:u.d.Center}}),ne._SELECTION_HIGHLIGHT=y.a.register({stickiness:1,className:"selectionHighlight"}),ne}(I.a);function Fe(Pe,ne,ee){for(var ae=Ue(Pe,ne[0],!ee),q=1,ue=ne.length;q=0;uo--)(zt=Ve[uo])&&(Mt=(Rt<3?zt(Mt):Rt>3?zt(Qe,it,Mt):zt(Qe,it))||Mt);return Rt>3&&Mt&&Object.defineProperty(Qe,it,Mt),Mt},Me=function(Ve,Qe){return function(it,pt){Qe(it,pt,Ve)}},Te=new s.d("hasSymbols",!1),Fe=Object(A.c)("ISymbolNavigationService"),Ue=function(){function Ve(Qe,it,pt,Rt){this._editorService=it,this._notificationService=pt,this._keybindingService=Rt,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=Te.bindTo(Qe)}return Ve.prototype.reset=function(){this._ctxHasSymbols.reset(),Object($.f)(this._currentState),Object($.f)(this._currentMessage),this._currentModel=void 0,this._currentIdx=-1},Ve.prototype.put=function(Qe){var it=this,pt=Qe.parent.parent;if(pt.references.length<=1){this.reset();return}this._currentModel=pt,this._currentIdx=pt.references.indexOf(Qe),this._ctxHasSymbols.set(!0),this._showMessage();var Rt=new Pe(this._editorService),Mt=Rt.onDidChange(function(zt){if(it._ignoreEditorChange)return;var uo=it._editorService.getActiveCodeEditor();if(!uo)return;var ao=uo.getModel(),so=uo.getPosition();if(!ao||!so)return;for(var Pt=!1,ft=!1,vt=0,At=pt.references;vt0&&Mt[Mt.length-1])&&(so[0]===6||so[0]===2)){it=0;continue}if(so[0]===3&&(!Mt||so[1]>Mt[0]&&so[1]1)?(this._openInPeek(Rt,Mt),[3,3]):[3,1];case 1:return uo=Mt.firstReference(),ao=Mt.references.length>1&&zt==="gotoAndPeek",[4,this._openReference(Rt,it,uo,this._configuration.openToSide,!ao)];case 2:so=Pt.sent(),ao&&so?this._openInPeek(so,Mt):Mt.dispose(),zt==="goto"&&pt.put(uo),Pt.label=3;case 3:return[2]}})})},Qe.prototype._openReference=function(it,pt,Rt,Mt,zt){return X(this,void 0,void 0,function(){var uo,ao,so,Pt;return he(this,function(ft){switch(ft.label){case 0:return uo=void 0,Object(y.G)(Rt)&&(uo=Rt.targetSelectionRange),uo||(uo=Rt.range),[4,pt.openCodeEditor({resource:Rt.uri,options:{selection:x.a.collapseToStart(uo),revealInCenterIfOutsideViewport:!0}},it,Mt)];case 1:return ao=ft.sent(),ao?(zt&&(so=ao.getModel(),Pt=ao.deltaDecorations([],[{range:uo,options:{className:"symbolHighlight"}}]),setTimeout(function(){ao.getModel()===so&&ao.deltaDecorations(Pt,[])},350)),[2,ao]):[2,void 0]}})})},Qe.prototype._openInPeek=function(it,pt){var Rt=v.a.get(it);Rt&&it.hasModel()?Rt.toggleWidget(it.getSelection(),Object(re.f)(function(Mt){return Promise.resolve(pt)}),this._configuration.openInPeek):pt.dispose()},Qe}(z.b),C=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.b)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("def.title","Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("noResultWord","No definition found for '{0}'",it.word):p.a("generic.noResults","No definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDefinitions},Qe}(Q),F=I.g&&!ne.l?2048|70:70;Object(z.f)((je=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDecl.label","Go to Definition"),alias:"Go to Definition",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:F,weight:100},contextMenuOpts:{group:"navigation",order:1.1},menuOpts:{menuId:19,group:"4_symbol_nav",order:2,title:p.a({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")}})||this;return E.a.registerCommandAlias("editor.action.goToDeclaration",Qe.id),it}return Qe}(C),je.id="editor.action.revealDefinition",je)),Object(z.f)((Xe=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclToSide.label","Open Definition to the Side"),alias:"Open Definition to the Side",precondition:s.a.and(u.a.hasDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:Object(J.a)(2048|41,F),weight:100}})||this;return E.a.registerCommandAlias("editor.action.openDeclarationToTheSide",Qe.id),it}return Qe}(C),Xe.id="editor.action.revealDefinitionAside",Xe)),Object(z.f)((me=function(Ve){ue(Qe,Ve);function Qe(){var it=Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.id,label:p.a("actions.previewDecl.label","Peek Definition"),alias:"Peek Definition",precondition:s.a.and(u.a.hasDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:512|70,linux:{primary:2048|1024|68},weight:100},contextMenuOpts:{menuId:8,group:"peek",order:2}})||this;return E.a.registerCommandAlias("editor.action.previewDeclaration",Qe.id),it}return Qe}(C),me.id="editor.action.peekDefinition",me));var se=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.a)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("decl.title","Declarations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.a("decl.generic.noResults","No declaration found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeDeclarationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleDeclarations},Qe}(Q);Object(z.f)((ge=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.id,label:p.a("actions.goToDeclaration.label","Go to Declaration"),alias:"Go to Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{group:"navigation",order:1.3},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")}})||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("decl.noResultWord","No declaration found for '{0}'",it.word):p.a("decl.generic.noResults","No declaration found")},Qe}(se),ge.id="editor.action.revealDeclaration",ge)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",label:p.a("actions.peekDecl.label","Peek Declaration"),alias:"Peek Declaration",precondition:s.a.and(u.a.hasDeclarationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:3}})||this}return Qe}(se));var oe=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.e)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("typedef.title","Type Definitions")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToTypeDefinition.noResultWord","No type definition found for '{0}'",it.word):p.a("goToTypeDefinition.generic.noResults","No type definition found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeTypeDefinitionCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleTypeDefinitions},Qe}(Q);Object(z.f)((we=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToTypeDefinition.label","Go to Type Definition"),alias:"Go to Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:0,weight:100},contextMenuOpts:{group:"navigation",order:1.4},menuOpts:{menuId:19,group:"4_symbol_nav",order:3,title:p.a({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")}})||this}return Qe}(oe),we.ID="editor.action.goToTypeDefinition",we)),Object(z.f)((Re=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekTypeDefinition.label","Peek Type Definition"),alias:"Peek Type Definition",precondition:s.a.and(u.a.hasTypeDefinitionProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:4}})||this}return Qe}(oe),Re.ID="editor.action.peekTypeDefinition",Re));var be=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.c)(it,pt,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("impl.title","Implementations")]))]}})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&it.word?p.a("goToImplementation.noResultWord","No implementation found for '{0}'",it.word):p.a("goToImplementation.generic.noResults","No implementation found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeImplementationCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleImplementations},Qe}(Q);Object(z.f)((Ee=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qe.ID,label:p.a("actions.goToImplementation.label","Go to Implementations"),alias:"Go to Implementations",precondition:s.a.and(u.a.hasImplementationProvider,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|70,weight:100},menuOpts:{menuId:19,group:"4_symbol_nav",order:4,title:p.a({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},contextMenuOpts:{group:"navigation",order:1.45}})||this}return Qe}(be),Ee.ID="editor.action.goToImplementation",Ee)),Object(z.f)((ve=function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Qe.ID,label:p.a("actions.peekImplementation.label","Peek Implementations"),alias:"Peek Implementations",precondition:s.a.and(u.a.hasImplementationProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|70,weight:100},contextMenuOpts:{menuId:8,group:"peek",order:5}})||this}return Qe}(be),ve.ID="editor.action.peekImplementation",ve));var De=function(Ve){ue(Qe,Ve);function Qe(){return Ve!==null&&Ve.apply(this,arguments)||this}return Qe.prototype._getNoResultFoundMessage=function(it){return it?p.a("references.no","No references found for '{0}'",it.word):p.a("references.noGeneric","No references found")},Qe.prototype._getAlternativeCommand=function(it){return it.getOption(41).alternativeReferenceCommand},Qe.prototype._getGoToPreference=function(it){return it.getOption(41).multipleReferences},Qe}(Q);Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",label:p.a("goToReferences.label","Go to References"),alias:"Go to References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),kbOpts:{kbExpr:u.a.editorTextFocus,primary:1024|70,weight:100},contextMenuOpts:{group:"navigation",order:1.45},menuOpts:{menuId:19,group:"4_symbol_nav",order:5,title:p.a({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.d)(it,pt,!0,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De)),Object(z.f)(function(Ve){ue(Qe,Ve);function Qe(){return Ve.call(this,{openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",label:p.a("references.action.label","Peek References"),alias:"Peek References",precondition:s.a.and(u.a.hasReferenceProvider,f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated()),contextMenuOpts:{menuId:8,group:"peek",order:6}})||this}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){var Mt;return he(this,function(zt){switch(zt.label){case 0:return Mt=w.c.bind,[4,Object(m.d)(it,pt,!1,Rt)];case 1:return[2,new(Mt.apply(w.c,[void 0,zt.sent(),p.a("ref.title","References")]))]}})})},Qe}(De));var Se=function(Ve){ue(Qe,Ve);function Qe(it,pt,Rt){var Mt=Ve.call(this,it,{id:"editor.action.goToLocation",label:p.a("label.generic","Go To Any Symbol"),alias:"Go To Any Symbol",precondition:s.a.and(f.b.notInPeekEditor,u.a.isInEmbeddedEditor.toNegated())})||this;return Mt._references=pt,Mt._gotoMultipleBehaviour=Rt,Mt}return Qe.prototype._getLocationModel=function(it,pt,Rt){return X(this,void 0,void 0,function(){return he(this,function(Mt){return[2,new w.c(this._references,p.a("generic.title","Locations"))]})})},Qe.prototype._getNoResultFoundMessage=function(it){return it&&p.a("generic.noResult","No results for '{0}'",it.word)||""},Qe.prototype._getGoToPreference=function(it){var pt;return(pt=this._gotoMultipleBehaviour)!==null&&pt!==void 0?pt:it.getOption(41).multipleReferences},Qe.prototype._getAlternativeCommand=function(){return""},Qe}(Q);E.a.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:H.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Qe,it,pt,Rt,Mt,zt){return X(void 0,void 0,void 0,function(){var uo,ao;return he(this,function(so){switch(so.label){case 0:return Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(H.a.isIPosition(pt)),Object(ae.a)(Array.isArray(Rt)),Object(ae.a)(typeof Mt=="undefined"||typeof Mt=="string"),Object(ae.a)(typeof zt=="undefined"||typeof zt=="boolean"),uo=Qe.get(O.a),[4,uo.openCodeEditor({resource:it},uo.getFocusedCodeEditor())];case 1:return ao=so.sent(),Object(U.a)(ao)?(ao.setPosition(pt),ao.revealPositionInCenterIfOutsideViewport(pt,0),[2,ao.invokeWithinContext(function(Pt){var ft=new Se({muteMessage:!0,openInPeek:Boolean(zt),openToSide:!1},Rt,Mt);Pt.get(A.a).invokeFunction(ft.run.bind(ft),ao)})]):[2]}})})}}),E.a.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ee.a},{name:"position",description:"The position at which to start",constraint:H.a.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:function(Qe,it,pt,Rt,Mt){return X(void 0,void 0,void 0,function(){return he(this,function(zt){return Qe.get(E.b).executeCommand("editor.action.goToLocations",it,pt,Rt,Mt,!0),[2]})})}}),E.a.registerCommand({id:"editor.action.findReferences",handler:function(Qe,it,pt){Object(ae.a)(ee.a.isUri(it)),Object(ae.a)(H.a.isIPosition(pt));var Rt=Qe.get(O.a);return Rt.openCodeEditor({resource:it},Rt.getFocusedCodeEditor()).then(function(Mt){if(!Object(U.a)(Mt)||!Mt.hasModel())return;var zt=v.a.get(Mt);if(!zt)return;var uo=Object(re.f)(function(so){return Object(m.d)(Mt.getModel(),H.a.lift(pt),!1,so).then(function(Pt){return new w.c(Pt,p.a("ref.title","References"))})}),ao=new x.a(pt.lineNumber,pt.column,pt.lineNumber,pt.column);return Promise.resolve(zt.toggleWidget(ao,uo,!1))})}}),E.a.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")},"8gvo":function(Lt,j,e){},"8z58":function(Lt,j,e){"use strict";e.r(j),e.d(j,"CancellationTokenSource",function(){return Wd}),e.d(j,"Emitter",function(){return Bd}),e.d(j,"KeyCode",function(){return Hd}),e.d(j,"KeyMod",function(){return Ud}),e.d(j,"Position",function(){return Vd}),e.d(j,"Range",function(){return zd}),e.d(j,"Selection",function(){return Kd}),e.d(j,"SelectionDirection",function(){return Gd}),e.d(j,"MarkerSeverity",function(){return Xd}),e.d(j,"MarkerTag",function(){return Yd}),e.d(j,"Uri",function(){return Zd}),e.d(j,"Token",function(){return Qd}),e.d(j,"editor",function(){return $d}),e.d(j,"languages",function(){return Jd});var T=e("/UlZ"),re=e("URDS"),J=e("JQT/"),I=e("MI8n"),U=e("/kV6"),z=e("bY76"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("Tcc1"),y;(function(a){a[a.Unknown=0]="Unknown",a[a.Disabled=1]="Disabled",a[a.Enabled=2]="Enabled"})(y||(y={}));var _;(function(a){a[a.KeepWhitespace=1]="KeepWhitespace",a[a.InsertAsSnippet=4]="InsertAsSnippet"})(_||(_={}));var f;(function(a){a[a.Method=0]="Method",a[a.Function=1]="Function",a[a.Constructor=2]="Constructor",a[a.Field=3]="Field",a[a.Variable=4]="Variable",a[a.Class=5]="Class",a[a.Struct=6]="Struct",a[a.Interface=7]="Interface",a[a.Module=8]="Module",a[a.Property=9]="Property",a[a.Event=10]="Event",a[a.Operator=11]="Operator",a[a.Unit=12]="Unit",a[a.Value=13]="Value",a[a.Constant=14]="Constant",a[a.Enum=15]="Enum",a[a.EnumMember=16]="EnumMember",a[a.Keyword=17]="Keyword",a[a.Text=18]="Text",a[a.Color=19]="Color",a[a.File=20]="File",a[a.Reference=21]="Reference",a[a.Customcolor=22]="Customcolor",a[a.Folder=23]="Folder",a[a.TypeParameter=24]="TypeParameter",a[a.Snippet=25]="Snippet"})(f||(f={}));var v;(function(a){a[a.Deprecated=1]="Deprecated"})(v||(v={}));var w;(function(a){a[a.Invoke=0]="Invoke",a[a.TriggerCharacter=1]="TriggerCharacter",a[a.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(w||(w={}));var p;(function(a){a[a.EXACT=0]="EXACT",a[a.ABOVE=1]="ABOVE",a[a.BELOW=2]="BELOW"})(p||(p={}));var c;(function(a){a[a.NotSet=0]="NotSet",a[a.ContentFlush=1]="ContentFlush",a[a.RecoverFromMarkers=2]="RecoverFromMarkers",a[a.Explicit=3]="Explicit",a[a.Paste=4]="Paste",a[a.Undo=5]="Undo",a[a.Redo=6]="Redo"})(c||(c={}));var s;(function(a){a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(s||(s={}));var l;(function(a){a[a.Text=0]="Text",a[a.Read=1]="Read",a[a.Write=2]="Write"})(l||(l={}));var d;(function(a){a[a.None=0]="None",a[a.Keep=1]="Keep",a[a.Brackets=2]="Brackets",a[a.Advanced=3]="Advanced",a[a.Full=4]="Full"})(d||(d={}));var m;(function(a){a[a.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",a[a.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",a[a.accessibilitySupport=2]="accessibilitySupport",a[a.accessibilityPageSize=3]="accessibilityPageSize",a[a.ariaLabel=4]="ariaLabel",a[a.autoClosingBrackets=5]="autoClosingBrackets",a[a.autoClosingOvertype=6]="autoClosingOvertype",a[a.autoClosingQuotes=7]="autoClosingQuotes",a[a.autoIndent=8]="autoIndent",a[a.automaticLayout=9]="automaticLayout",a[a.autoSurround=10]="autoSurround",a[a.codeLens=11]="codeLens",a[a.colorDecorators=12]="colorDecorators",a[a.comments=13]="comments",a[a.contextmenu=14]="contextmenu",a[a.copyWithSyntaxHighlighting=15]="copyWithSyntaxHighlighting",a[a.cursorBlinking=16]="cursorBlinking",a[a.cursorSmoothCaretAnimation=17]="cursorSmoothCaretAnimation",a[a.cursorStyle=18]="cursorStyle",a[a.cursorSurroundingLines=19]="cursorSurroundingLines",a[a.cursorSurroundingLinesStyle=20]="cursorSurroundingLinesStyle",a[a.cursorWidth=21]="cursorWidth",a[a.disableLayerHinting=22]="disableLayerHinting",a[a.disableMonospaceOptimizations=23]="disableMonospaceOptimizations",a[a.dragAndDrop=24]="dragAndDrop",a[a.emptySelectionClipboard=25]="emptySelectionClipboard",a[a.extraEditorClassName=26]="extraEditorClassName",a[a.fastScrollSensitivity=27]="fastScrollSensitivity",a[a.find=28]="find",a[a.fixedOverflowWidgets=29]="fixedOverflowWidgets",a[a.folding=30]="folding",a[a.foldingStrategy=31]="foldingStrategy",a[a.foldingHighlight=32]="foldingHighlight",a[a.fontFamily=33]="fontFamily",a[a.fontInfo=34]="fontInfo",a[a.fontLigatures=35]="fontLigatures",a[a.fontSize=36]="fontSize",a[a.fontWeight=37]="fontWeight",a[a.formatOnPaste=38]="formatOnPaste",a[a.formatOnType=39]="formatOnType",a[a.glyphMargin=40]="glyphMargin",a[a.gotoLocation=41]="gotoLocation",a[a.hideCursorInOverviewRuler=42]="hideCursorInOverviewRuler",a[a.highlightActiveIndentGuide=43]="highlightActiveIndentGuide",a[a.hover=44]="hover",a[a.inDiffEditor=45]="inDiffEditor",a[a.letterSpacing=46]="letterSpacing",a[a.lightbulb=47]="lightbulb",a[a.lineDecorationsWidth=48]="lineDecorationsWidth",a[a.lineHeight=49]="lineHeight",a[a.lineNumbers=50]="lineNumbers",a[a.lineNumbersMinChars=51]="lineNumbersMinChars",a[a.links=52]="links",a[a.matchBrackets=53]="matchBrackets",a[a.minimap=54]="minimap",a[a.mouseStyle=55]="mouseStyle",a[a.mouseWheelScrollSensitivity=56]="mouseWheelScrollSensitivity",a[a.mouseWheelZoom=57]="mouseWheelZoom",a[a.multiCursorMergeOverlapping=58]="multiCursorMergeOverlapping",a[a.multiCursorModifier=59]="multiCursorModifier",a[a.multiCursorPaste=60]="multiCursorPaste",a[a.occurrencesHighlight=61]="occurrencesHighlight",a[a.overviewRulerBorder=62]="overviewRulerBorder",a[a.overviewRulerLanes=63]="overviewRulerLanes",a[a.parameterHints=64]="parameterHints",a[a.peekWidgetDefaultFocus=65]="peekWidgetDefaultFocus",a[a.quickSuggestions=66]="quickSuggestions",a[a.quickSuggestionsDelay=67]="quickSuggestionsDelay",a[a.readOnly=68]="readOnly",a[a.renderControlCharacters=69]="renderControlCharacters",a[a.renderIndentGuides=70]="renderIndentGuides",a[a.renderFinalNewline=71]="renderFinalNewline",a[a.renderLineHighlight=72]="renderLineHighlight",a[a.renderValidationDecorations=73]="renderValidationDecorations",a[a.renderWhitespace=74]="renderWhitespace",a[a.revealHorizontalRightPadding=75]="revealHorizontalRightPadding",a[a.roundedSelection=76]="roundedSelection",a[a.rulers=77]="rulers",a[a.scrollbar=78]="scrollbar",a[a.scrollBeyondLastColumn=79]="scrollBeyondLastColumn",a[a.scrollBeyondLastLine=80]="scrollBeyondLastLine",a[a.selectionClipboard=81]="selectionClipboard",a[a.selectionHighlight=82]="selectionHighlight",a[a.selectOnLineNumbers=83]="selectOnLineNumbers",a[a.showFoldingControls=84]="showFoldingControls",a[a.showUnused=85]="showUnused",a[a.snippetSuggestions=86]="snippetSuggestions",a[a.smoothScrolling=87]="smoothScrolling",a[a.stopRenderingLineAfter=88]="stopRenderingLineAfter",a[a.suggest=89]="suggest",a[a.suggestFontSize=90]="suggestFontSize",a[a.suggestLineHeight=91]="suggestLineHeight",a[a.suggestOnTriggerCharacters=92]="suggestOnTriggerCharacters",a[a.suggestSelection=93]="suggestSelection",a[a.tabCompletion=94]="tabCompletion",a[a.useTabStops=95]="useTabStops",a[a.wordSeparators=96]="wordSeparators",a[a.wordWrap=97]="wordWrap",a[a.wordWrapBreakAfterCharacters=98]="wordWrapBreakAfterCharacters",a[a.wordWrapBreakBeforeCharacters=99]="wordWrapBreakBeforeCharacters",a[a.wordWrapColumn=100]="wordWrapColumn",a[a.wordWrapMinified=101]="wordWrapMinified",a[a.wrappingIndent=102]="wrappingIndent",a[a.wrappingStrategy=103]="wrappingStrategy",a[a.editorClassName=104]="editorClassName",a[a.pixelRatio=105]="pixelRatio",a[a.tabFocusMode=106]="tabFocusMode",a[a.layoutInfo=107]="layoutInfo",a[a.wrappingInfo=108]="wrappingInfo"})(m||(m={}));var E;(function(a){a[a.TextDefined=0]="TextDefined",a[a.LF=1]="LF",a[a.CRLF=2]="CRLF"})(E||(E={}));var L;(function(a){a[a.LF=0]="LF",a[a.CRLF=1]="CRLF"})(L||(L={}));var A;(function(a){a[a.None=0]="None",a[a.Indent=1]="Indent",a[a.IndentOutdent=2]="IndentOutdent",a[a.Outdent=3]="Outdent"})(A||(A={}));var k;(function(a){a[a.Unknown=0]="Unknown",a[a.Backspace=1]="Backspace",a[a.Tab=2]="Tab",a[a.Enter=3]="Enter",a[a.Shift=4]="Shift",a[a.Ctrl=5]="Ctrl",a[a.Alt=6]="Alt",a[a.PauseBreak=7]="PauseBreak",a[a.CapsLock=8]="CapsLock",a[a.Escape=9]="Escape",a[a.Space=10]="Space",a[a.PageUp=11]="PageUp",a[a.PageDown=12]="PageDown",a[a.End=13]="End",a[a.Home=14]="Home",a[a.LeftArrow=15]="LeftArrow",a[a.UpArrow=16]="UpArrow",a[a.RightArrow=17]="RightArrow",a[a.DownArrow=18]="DownArrow",a[a.Insert=19]="Insert",a[a.Delete=20]="Delete",a[a.KEY_0=21]="KEY_0",a[a.KEY_1=22]="KEY_1",a[a.KEY_2=23]="KEY_2",a[a.KEY_3=24]="KEY_3",a[a.KEY_4=25]="KEY_4",a[a.KEY_5=26]="KEY_5",a[a.KEY_6=27]="KEY_6",a[a.KEY_7=28]="KEY_7",a[a.KEY_8=29]="KEY_8",a[a.KEY_9=30]="KEY_9",a[a.KEY_A=31]="KEY_A",a[a.KEY_B=32]="KEY_B",a[a.KEY_C=33]="KEY_C",a[a.KEY_D=34]="KEY_D",a[a.KEY_E=35]="KEY_E",a[a.KEY_F=36]="KEY_F",a[a.KEY_G=37]="KEY_G",a[a.KEY_H=38]="KEY_H",a[a.KEY_I=39]="KEY_I",a[a.KEY_J=40]="KEY_J",a[a.KEY_K=41]="KEY_K",a[a.KEY_L=42]="KEY_L",a[a.KEY_M=43]="KEY_M",a[a.KEY_N=44]="KEY_N",a[a.KEY_O=45]="KEY_O",a[a.KEY_P=46]="KEY_P",a[a.KEY_Q=47]="KEY_Q",a[a.KEY_R=48]="KEY_R",a[a.KEY_S=49]="KEY_S",a[a.KEY_T=50]="KEY_T",a[a.KEY_U=51]="KEY_U",a[a.KEY_V=52]="KEY_V",a[a.KEY_W=53]="KEY_W",a[a.KEY_X=54]="KEY_X",a[a.KEY_Y=55]="KEY_Y",a[a.KEY_Z=56]="KEY_Z",a[a.Meta=57]="Meta",a[a.ContextMenu=58]="ContextMenu",a[a.F1=59]="F1",a[a.F2=60]="F2",a[a.F3=61]="F3",a[a.F4=62]="F4",a[a.F5=63]="F5",a[a.F6=64]="F6",a[a.F7=65]="F7",a[a.F8=66]="F8",a[a.F9=67]="F9",a[a.F10=68]="F10",a[a.F11=69]="F11",a[a.F12=70]="F12",a[a.F13=71]="F13",a[a.F14=72]="F14",a[a.F15=73]="F15",a[a.F16=74]="F16",a[a.F17=75]="F17",a[a.F18=76]="F18",a[a.F19=77]="F19",a[a.NumLock=78]="NumLock",a[a.ScrollLock=79]="ScrollLock",a[a.US_SEMICOLON=80]="US_SEMICOLON",a[a.US_EQUAL=81]="US_EQUAL",a[a.US_COMMA=82]="US_COMMA",a[a.US_MINUS=83]="US_MINUS",a[a.US_DOT=84]="US_DOT",a[a.US_SLASH=85]="US_SLASH",a[a.US_BACKTICK=86]="US_BACKTICK",a[a.US_OPEN_SQUARE_BRACKET=87]="US_OPEN_SQUARE_BRACKET",a[a.US_BACKSLASH=88]="US_BACKSLASH",a[a.US_CLOSE_SQUARE_BRACKET=89]="US_CLOSE_SQUARE_BRACKET",a[a.US_QUOTE=90]="US_QUOTE",a[a.OEM_8=91]="OEM_8",a[a.OEM_102=92]="OEM_102",a[a.NUMPAD_0=93]="NUMPAD_0",a[a.NUMPAD_1=94]="NUMPAD_1",a[a.NUMPAD_2=95]="NUMPAD_2",a[a.NUMPAD_3=96]="NUMPAD_3",a[a.NUMPAD_4=97]="NUMPAD_4",a[a.NUMPAD_5=98]="NUMPAD_5",a[a.NUMPAD_6=99]="NUMPAD_6",a[a.NUMPAD_7=100]="NUMPAD_7",a[a.NUMPAD_8=101]="NUMPAD_8",a[a.NUMPAD_9=102]="NUMPAD_9",a[a.NUMPAD_MULTIPLY=103]="NUMPAD_MULTIPLY",a[a.NUMPAD_ADD=104]="NUMPAD_ADD",a[a.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",a[a.NUMPAD_SUBTRACT=106]="NUMPAD_SUBTRACT",a[a.NUMPAD_DECIMAL=107]="NUMPAD_DECIMAL",a[a.NUMPAD_DIVIDE=108]="NUMPAD_DIVIDE",a[a.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",a[a.ABNT_C1=110]="ABNT_C1",a[a.ABNT_C2=111]="ABNT_C2",a[a.MAX_VALUE=112]="MAX_VALUE"})(k||(k={}));var R;(function(a){a[a.Hint=1]="Hint",a[a.Info=2]="Info",a[a.Warning=4]="Warning",a[a.Error=8]="Error"})(R||(R={}));var $;(function(a){a[a.Unnecessary=1]="Unnecessary",a[a.Deprecated=2]="Deprecated"})($||($={}));var ie;(function(a){a[a.Inline=1]="Inline",a[a.Gutter=2]="Gutter"})(ie||(ie={}));var W;(function(a){a[a.UNKNOWN=0]="UNKNOWN",a[a.TEXTAREA=1]="TEXTAREA",a[a.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",a[a.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",a[a.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",a[a.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",a[a.CONTENT_TEXT=6]="CONTENT_TEXT",a[a.CONTENT_EMPTY=7]="CONTENT_EMPTY",a[a.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",a[a.CONTENT_WIDGET=9]="CONTENT_WIDGET",a[a.OVERVIEW_RULER=10]="OVERVIEW_RULER",a[a.SCROLLBAR=11]="SCROLLBAR",a[a.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",a[a.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(W||(W={}));var B;(function(a){a[a.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",a[a.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",a[a.TOP_CENTER=2]="TOP_CENTER"})(B||(B={}));var le;(function(a){a[a.Left=1]="Left",a[a.Center=2]="Center",a[a.Right=4]="Right",a[a.Full=7]="Full"})(le||(le={}));var Ce;(function(a){a[a.Off=0]="Off",a[a.On=1]="On",a[a.Relative=2]="Relative",a[a.Interval=3]="Interval",a[a.Custom=4]="Custom"})(Ce||(Ce={}));var Me;(function(a){a[a.None=0]="None",a[a.Text=1]="Text",a[a.Blocks=2]="Blocks"})(Me||(Me={}));var Te;(function(a){a[a.Smooth=0]="Smooth",a[a.Immediate=1]="Immediate"})(Te||(Te={}));var Fe;(function(a){a[a.Auto=1]="Auto",a[a.Hidden=2]="Hidden",a[a.Visible=3]="Visible"})(Fe||(Fe={}));var Ue;(function(a){a[a.LTR=0]="LTR",a[a.RTL=1]="RTL"})(Ue||(Ue={}));var Pe;(function(a){a[a.Invoke=1]="Invoke",a[a.TriggerCharacter=2]="TriggerCharacter",a[a.ContentChange=3]="ContentChange"})(Pe||(Pe={}));var ne;(function(a){a[a.File=0]="File",a[a.Module=1]="Module",a[a.Namespace=2]="Namespace",a[a.Package=3]="Package",a[a.Class=4]="Class",a[a.Method=5]="Method",a[a.Property=6]="Property",a[a.Field=7]="Field",a[a.Constructor=8]="Constructor",a[a.Enum=9]="Enum",a[a.Interface=10]="Interface",a[a.Function=11]="Function",a[a.Variable=12]="Variable",a[a.Constant=13]="Constant",a[a.String=14]="String",a[a.Number=15]="Number",a[a.Boolean=16]="Boolean",a[a.Array=17]="Array",a[a.Object=18]="Object",a[a.Key=19]="Key",a[a.Null=20]="Null",a[a.EnumMember=21]="EnumMember",a[a.Struct=22]="Struct",a[a.Event=23]="Event",a[a.Operator=24]="Operator",a[a.TypeParameter=25]="TypeParameter"})(ne||(ne={}));var ee;(function(a){a[a.Deprecated=1]="Deprecated"})(ee||(ee={}));var ae;(function(a){a[a.Hidden=0]="Hidden",a[a.Blink=1]="Blink",a[a.Smooth=2]="Smooth",a[a.Phase=3]="Phase",a[a.Expand=4]="Expand",a[a.Solid=5]="Solid"})(ae||(ae={}));var q;(function(a){a[a.Line=1]="Line",a[a.Block=2]="Block",a[a.Underline=3]="Underline",a[a.LineThin=4]="LineThin",a[a.BlockOutline=5]="BlockOutline",a[a.UnderlineThin=6]="UnderlineThin"})(q||(q={}));var ue;(function(a){a[a.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",a[a.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",a[a.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",a[a.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(ue||(ue={}));var X;(function(a){a[a.None=0]="None",a[a.Same=1]="Same",a[a.Indent=2]="Indent",a[a.DeepIndent=3]="DeepIndent"})(X||(X={}));var he=function(){function a(){}return a.chord=function(r,n){return Object(U.a)(r,n)},a.CtrlCmd=2048,a.Shift=1024,a.Alt=512,a.WinCtrl=256,a}();function je(){return{editor:void 0,languages:void 0,CancellationTokenSource:J.b,Emitter:I.a,KeyCode:k,KeyMod:he,Position:O.a,Range:H.a,Selection:x.a,SelectionDirection:Ue,MarkerSeverity:R,MarkerTag:$,Uri:z.a,Token:u.a}}var Xe=e("siPX"),me=e("Vxe3"),ge=e("EffR"),we=e("24hK"),Re=e("Q4rV"),Ee=e("tYmi"),ve=e("gslv"),Q=e("nnTU"),C=e("W9cx"),F;(function(a){a[a.API=0]="API",a[a.USER=1]="USER"})(F||(F={}));var se=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},oe=function(a,r){return function(n,h){r(n,h,a)}},be=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},De=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));var S=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var N=S.range.getStartPosition();this._editor.setPosition(N),this._editor.revealPositionInCenter(N,h)}finally{this.ignoreSelectionChange=!1}},r.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0},r.prototype.next=function(n){n===void 0&&(n=0),this._move(!0,n)},r.prototype.previous=function(n){n===void 0&&(n=0),this._move(!1,n)},r.prototype.dispose=function(){a.prototype.dispose.call(this),this.ranges=[],this.disposed=!0},r}(Rt.a),so=e("+3Gp"),Pt=e("iuje"),ft=e("M1Kb"),vt=e("twdY"),At=e("i/Ef"),at=e("pAvP"),tt=e("t49l"),ut=e("X+cX"),Ct=e("/cxE"),gt=e("MNsG"),bt=e("746U"),Gt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Nt="$initialize",Et=!1;function Je(a){if(!gt.g)return;Et||(Et=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq")),console.warn(a.message)}var $e=function(){function a(r){this._workerId=-1,this._handler=r,this._lastSentReq=0,this._pendingReplies=Object.create(null)}return a.prototype.setWorkerId=function(r){this._workerId=r},a.prototype.sendMessage=function(r,n){var h=this,S=String(++this._lastSentReq);return new Promise(function(N,ce){h._pendingReplies[S]={resolve:N,reject:ce},h._send({vsWorker:h._workerId,req:S,method:r,args:n})})},a.prototype.handleMessage=function(r){if(!r||!r.vsWorker)return;if(this._workerId!==-1&&r.vsWorker!==this._workerId)return;this._handleMessage(r)},a.prototype._handleMessage=function(r){var n=this;if(r.seq){var h=r;if(!this._pendingReplies[h.seq]){console.warn("Got reply to unknown seq");return}var S=this._pendingReplies[h.seq];if(delete this._pendingReplies[h.seq],h.err){var N=h.err;h.err.$isError&&(N=new Error,N.name=h.err.name,N.message=h.err.message,N.stack=h.err.stack),S.reject(N);return}S.resolve(h.res);return}var ce=r,Be=ce.req,Ge=this._handler.handleMessage(ce.method,ce.args);Ge.then(function(Ye){n._send({vsWorker:n._workerId,seq:Be,res:Ye,err:void 0})},function(Ye){Ye.detail instanceof Error&&(Ye.detail=Object(Ct.g)(Ye.detail)),n._send({vsWorker:n._workerId,seq:Be,res:void 0,err:Object(Ct.g)(Ye)})})},a.prototype._send=function(r){var n=[];if(r.req)for(var h=r,S=0;S0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&N()){var jt=h.createCharSequence(r,n.originalStart,n.originalStart+n.originalLength-1),ro=S.createCharSequence(r,n.modifiedStart,n.modifiedStart+n.modifiedLength-1),to=co(jt,ro,N,!0).changes;Be&&(to=Zo(to)),Ft=[];for(var Yt=0,Qt=to.length;Yt1&&Qt>1;){var ho=ro.charCodeAt(Yt-2),So=to.charCodeAt(Qt-2);if(ho!==So)break;Yt--,Qt--}(Yt>1||Qt>1)&&this._pushTrimWhitespaceCharChange(Be,Ge+1,1,Yt,Ye+1,1,Qt)}{for(var To=Bo(ro,1),Io=Bo(to,1),ko=ro.length+1,Ko=to.length+1;Ton&&(n=Ge),Be>h&&(h=Be),Ye>h&&(h=Ye)}n++,h++;for(var _t=new yn(h,n,0),S=0,N=r.length;S=this._maxCharCode?0:this._states.get(r,n)},a}(),rn=null;function pn(){return rn===null&&(rn=new dn([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),rn}var zo=null;function Ho(){if(zo===null){zo=new mn.a(0);for(var a=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF01\uFF20\uFF03\uFF04\uFF05\uFF06\uFF0A\u2018\u201C\u3008\u300A\u300C\u300E\u3010\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u3011\u300F\u300D\u300B\u3009\u201D\u2019\uFF40\uFF5E\u2026`,r=0;rS);if(S>0){var Ye=n.charCodeAt(S-1),_t=n.charCodeAt(ce);(Ye===40&&_t===41||Ye===91&&_t===93||Ye===123&&_t===125)&&ce--}return{range:{startLineNumber:h,startColumn:S+1,endLineNumber:h,endColumn:ce+2},url:n.substring(S,ce+1)}},a.computeLinks=function(r,n){n===void 0&&(n=pn());for(var h=Ho(),S=[],N=1,ce=r.getLineCount();N<=ce;N++){for(var Be=r.getLineContent(N),Ge=Be.length,Ye=0,_t=0,Ot=0,Ft=1,jt=!1,ro=!1,to=!1;Ye=0?(S+=h?1:-1,S<0?S=r.length-1:S%=r.length,r[S]):null},a.INSTANCE=new a,a}(),Dt=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_e=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},M=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]=h._lines.length?Jt.c:(ce=h._lines[N],Ge=h._wordenize(ce,n),Be=0,N+=1,_t())};return{next:Ye}},r.prototype.getLineWords=function(n,h){for(var S=this._lines[n-1],N=this._wordenize(S,h),ce=[],Be=0,Ge=N;Bethis._lines.length)h=this._lines.length,S=this._lines[h-1].length+1,N=!0;else{var ce=this._lines[h-1].length+1;S<1?(S=1,N=!0):S>ce&&(S=ce,N=!0)}return N?{lineNumber:h,column:S}:n},r}(fn),Z=function(){function a(r,n){this._host=r,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}return a.prototype.dispose=function(){this._models=Object.create(null)},a.prototype._getModel=function(r){return this._models[r]},a.prototype._getModels=function(){var r=this,n=[];return Object.keys(this._models).forEach(function(h){return n.push(r._models[h])}),n},a.prototype.acceptNewModel=function(r){this._models[r.url]=new P(z.a.parse(r.url),r.lines,r.EOL,r.versionId)},a.prototype.acceptModelChanged=function(r,n){if(!this._models[r])return;var h=this._models[r];h.onEvents(n)},a.prototype.acceptRemovedModel=function(r){if(!this._models[r])return;delete this._models[r]},a.prototype.computeDiff=function(r,n,h,S){return _e(this,void 0,void 0,function(){var N,ce,Be,Ge,Ye,_t,Ot;return M(this,function(Ft){return N=this._getModel(r),ce=this._getModel(n),!N||!ce?[2,null]:(Be=N.getLinesContent(),Ge=ce.getLinesContent(),Ye=new Wo(Be,Ge,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:h,shouldMakePrettyDiff:!0,maxComputationTime:S}),_t=Ye.computeDiff(),Ot=_t.changes.length>0?!1:this._modelsAreIdentical(N,ce),[2,{quitEarly:_t.quitEarly,identical:Ot,changes:_t.changes}])})})},a.prototype._modelsAreIdentical=function(r,n){var h=r.getLineCount(),S=n.getLineCount();if(h!==S)return!1;for(var N=1;N<=h;N++){var ce=r.getLineContent(N),Be=n.getLineContent(N);if(ce!==Be)return!1}return!0},a.prototype.computeMoreMinimalEdits=function(r,n){return _e(this,void 0,void 0,function(){var h,S,N,ce,Be,Ge,Ye,_t,Ot,Ft,jt,ro,to,Yt,Qt,ho,So,To;return M(this,function(Io){if(h=this._getModel(r),!h)return[2,n];for(S=[],N=void 0,n=Object(lt.r)(n,function(ko,Ko){if(ko.range&&Ko.range)return H.a.compareRangesUsingStarts(ko.range,Ko.range);var ln=ko.range?0:1,wn=Ko.range?0:1;return ln-wn}),ce=0,Be=n;cea._diffLimit){S.push({range:Ye,text:_t});continue}for(jt=Object(Tt.b)(Ft,_t,!1),ro=h.offsetAt(H.a.lift(Ye).getStartPosition()),to=0,Yt=jt;to=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Ht=function(a,r){return function(n,h){r(n,h,a)}},Ut=function(a,r,n,h){function S(N){return N instanceof n?N:new n(function(ce){ce(N)})}return new(n||(n=Promise))(function(N,ce){function Be(_t){try{Ye(h.next(_t))}catch(Ot){ce(Ot)}}function Ge(_t){try{Ye(h.throw(_t))}catch(Ot){ce(Ot)}}function Ye(_t){_t.done?N(_t.value):S(_t.value).then(Be,Ge)}Ye((h=h.apply(a,r||[])).next())})},oo=function(a,r){var n={label:0,sent:function(){if(N[0]&1)throw N[1];return N[1]},trys:[],ops:[]},h,S,N,ce;return ce={next:Be(0),throw:Be(1),return:Be(2)},typeof Symbol=="function"&&(ce[Symbol.iterator]=function(){return this}),ce;function Be(Ye){return function(_t){return Ge([Ye,_t])}}function Ge(Ye){if(h)throw new TypeError("Generator is already executing.");for(;n;)try{if(h=1,S&&(N=Ye[0]&2?S.return:Ye[0]?S.throw||((N=S.return)&&N.call(S),0):S.next)&&!(N=N.call(S,Ye[1])).done)return N;(S=0,N)&&(Ye=[Ye[0]&2,N.value]);switch(Ye[0]){case 0:case 1:N=Ye;break;case 4:return n.label++,{value:Ye[1],done:!1};case 5:n.label++,S=Ye[1],Ye=[0];continue;case 7:Ye=n.ops.pop(),n.trys.pop();continue;default:if(!(N=n.trys,N=N.length>0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]fo&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)},r.prototype.withWorker=function(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new ye(this._modelService,!1,"editorWorkerService")),Promise.resolve(this._editorWorkerClient)},r}(Rt.a),It=function(a){xt(r,a);function r(n,h,S){var N=a.call(this)||this;if(N._syncedModels=Object.create(null),N._syncedModelsLastUsedTime=Object.create(null),N._proxy=n,N._modelService=h,!S){var ce=new ut.c;ce.cancelAndSet(function(){return N._checkStopModelSync()},Math.round(Zt/2)),N._register(ce)}return N}return r.prototype.dispose=function(){for(var n in this._syncedModels)Object(Rt.f)(this._syncedModels[n]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),a.prototype.dispose.call(this)},r.prototype.ensureSyncedResources=function(n){for(var h=0,S=n;hZt&&h.push(S)}for(var ce=0,Be=h;ce'"_]/g,"-")}function Uo(a,r){console.log(a.languageId+": "+r)}function Do(a,r){return new Error(a.languageId+": "+r)}function xo(a,r,n,h,S){var N=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g,ce=null;return r.replace(N,function(Be,Ge,Ye,_t,Ot,Ft,jt,ro,to){return wo(Ye)?wo(_t)?!wo(Ot)&&Ot0;){var h=a.tokenizer[n];if(h)return h;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return null}function gn(a,r){for(var n=r;n&&n.length>0;){var h=a.stateNames[n];if(h)return!0;var S=n.lastIndexOf(".");S<0?n=null:n=n.substr(0,S)}return!1}var En=5,on=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(r!==null&&r.depth>=this._maxCacheDepth)return new On(r,n);var h=On.getStackElementId(r);h.length>0&&(h+="|"),h+=n;var S=this._entries[h];return S||(S=new On(r,n),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),On=function(){function a(r,n){this.parent=r,this.state=n,this.depth=(this.parent?this.parent.depth:0)+1}return a.getStackElementId=function(r){for(var n="";r!==null;)n.length>0&&(n+="|"),n+=r.state,r=r.parent;return n},a._equals=function(r,n){for(;r!==null&&n!==null;){if(r===n)return!0;if(r.state!==n.state)return!1;r=r.parent,n=n.parent}return r===null&&n===null},a.prototype.equals=function(r){return a._equals(this,r)},a.prototype.push=function(r){return on.create(this,r)},a.prototype.pop=function(){return this.parent},a.prototype.popall=function(){for(var r=this;r.parent;)r=r.parent;return r},a.prototype.switchTo=function(r){return on.create(this.parent,r)},a}(),Hn=function(){function a(r,n){this.modeId=r,this.state=n}return a.prototype.equals=function(r){return this.modeId===r.modeId&&this.state.equals(r.state)},a.prototype.clone=function(){var r=this.state.clone();return r===this.state?this:new a(this.modeId,this.state)},a}(),Rn=function(){function a(r){this._maxCacheDepth=r,this._entries=Object.create(null)}return a.create=function(r,n){return this._INSTANCE.create(r,n)},a.prototype.create=function(r,n){if(n!==null)return new ai(r,n);if(r!==null&&r.depth>=this._maxCacheDepth)return new ai(r,n);var h=On.getStackElementId(r),S=this._entries[h];return S||(S=new ai(r,null),this._entries[h]=S,S)},a._INSTANCE=new a(En),a}(),ai=function(){function a(r,n){this.stack=r,this.embeddedModeData=n}return a.prototype.clone=function(){var r=this.embeddedModeData?this.embeddedModeData.clone():null;return r===this.embeddedModeData?this:Rn.create(this.stack,this.embeddedModeData)},a.prototype.equals=function(r){return r instanceof a&&this.stack.equals(r.stack)?this.embeddedModeData===null&&r.embeddedModeData===null?!0:this.embeddedModeData===null||r.embeddedModeData===null?!1:this.embeddedModeData.equals(r.embeddedModeData):!1},a}(),bi=function(){function a(){this._tokens=[],this._language=null,this._lastTokenType=null,this._lastTokenLanguage=null}return a.prototype.enterMode=function(r,n){this._language=n},a.prototype.emit=function(r,n){if(this._lastTokenType===n&&this._lastTokenLanguage===this._language)return;this._lastTokenType=n,this._lastTokenLanguage=this._language,this._tokens.push(new u.a(r,n,this._language))},a.prototype.nestedModeTokenize=function(r,n,h){var S=n.modeId,N=n.state,ce=vt.B.get(S);if(!ce)return this.enterMode(h,S),this.emit(h,""),N;var Be=ce.tokenize(r,N,h);return this._tokens=this._tokens.concat(Be.tokens),this._lastTokenType=null,this._lastTokenLanguage=null,this._language=null,Be.endState},a.prototype.finalize=function(r){return new u.b(this._tokens,r)},a}(),kn=function(){function a(r,n){this._modeService=r,this._theme=n,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}return a.prototype.enterMode=function(r,n){this._currentLanguageId=this._modeService.getLanguageIdentifier(n).id},a.prototype.emit=function(r,n){var h=this._theme.match(this._currentLanguageId,n);if(this._lastTokenMetadata===h)return;this._lastTokenMetadata=h,this._tokens.push(r),this._tokens.push(h)},a._merge=function(r,n,h){var S=r!==null?r.length:0,N=n.length,ce=h!==null?h.length:0;if(S===0&&N===0&&ce===0)return new Uint32Array(0);if(S===0&&N===0)return h;if(N===0&&ce===0)return r;var Be=new Uint32Array(S+N+ce);r!==null&&Be.set(r);for(var Ge=0;Ge0&&S.nestedModeTokenize(Be,n.embeddedModeData,h);var Ge=r.substring(N);return this._myTokenize(Ge,n,h+N,S)},a.prototype._safeRuleName=function(r){return r?r.name:"(unknown)"},a.prototype._myTokenize=function(r,n,h,S){S.enterMode(h,this._modeId);for(var N=r.length,ce=n.embeddedModeData,Be=n.stack,Ge=0,Ye=null,_t=!0;_t||Ge=N)break;_t=!1;var Io=this._lexer.tokenizer[ro];if(!Io&&(Io=tn(this._lexer,ro),!Io))throw Do(this._lexer,"tokenizer state is not defined: "+ro);for(var ko=r.substr(Ge),Ko=0,ln=Io;Ko=this._lexer.maxStack)throw Do(this._lexer,"maximum tokenizer stack size reached: ["+Be.state+","+Be.parent.state+",...]");Be=Be.push(ro)}else if(Qt.next==="@pop"){if(Be.depth<=1)throw Do(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(ho));Be=Be.pop()}else if(Qt.next==="@popall")Be=Be.popall();else{var Yo=xo(this._lexer,Qt.next,Yt,to,ro);if(Yo[0]==="@"&&(Yo=Yo.substr(1)),tn(this._lexer,Yo))Be=Be.push(Yo);else throw Do(this._lexer,"trying to set a next state '"+Yo+"' that is undefined in rule: "+this._safeRuleName(ho))}}Qt.log&&typeof Qt.log=="string"&&Uo(this._lexer,this._lexer.languageId+": "+xo(this._lexer,Qt.log,Yt,to,ro))}if(qo===null)throw Do(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(ho));if(Array.isArray(qo)){if(Ye&&Ye.groups.length>0)throw Do(this._lexer,"groups cannot be nested: "+this._safeRuleName(ho));if(to.length!==qo.length+1)throw Do(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(ho));for(var un=0,en=1;en=0&&ro()})})},a.colorizeLine=function(r,n,h,S,N){N===void 0&&(N=4);var ce=Xt.d.isBasicASCII(r,n),Be=Xt.d.containsRTL(r,ce,h),Ge=Object(Kt.e)(new Kt.c(!1,!0,r,!1,ce,Be,0,S,[],N,0,0,0,-1,"none",!1,!1,null));return Ge.html},a.colorizeModelLine=function(r,n,h){h===void 0&&(h=4);var S=r.getLineContent(n);r.forceTokenization(n);var N=r.getLineTokens(n),ce=N.inflate();return this.colorizeLine(S,r.mightContainNonBasicASCII(),r.mightContainRTL(),ce,h)},a}();function Ki(a,r,n){return new Promise(function(h,S){var N=function ce(){var Be=Gi(a,r,n);if(n instanceof Qn){var Ge=n.getLoadStatus();if(Ge.loaded===!1){Ge.promise.then(ce,S);return}}h(Be)};N()})}function Zr(a,r){var n=[],h=(0<<11|1<<14|2<<23)>>>0,S=new Uint32Array(2);S[0]=0,S[1]=h;for(var N=0,ce=a.length;N")}return n.join("")}function Gi(a,r,n){for(var h=[],S=n.getInitialState(),N=0,ce=a.length;N"),S=Ge.endState}return h.join("")}var $o=e("uDWl"),li=e("S3by"),Tn=e("sFUC"),yr=e("iDAx"),Qr=e("0/Sa"),xn=e("+7oY"),$n=e("QDVR"),Xi=e("CRAX"),br=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Yi=function(){for(var a=0,r=0,n=arguments.length;r5e3&&S._leaveChordMode()},500)},r.prototype._leaveChordMode=function(){this._currentChordStatusMessage&&(this._currentChordStatusMessage.dispose(),this._currentChordStatusMessage=null),this._currentChordChecker.cancel(),this._currentChord=null},r.prototype._dispatch=function(n,h){return this._doDispatch(this.resolveKeyboardEvent(n),h)},r.prototype._doDispatch=function(n,h){var S=this,N=!1;if(n.isChord())return console.warn("Unexpected keyboard event mapped to a chord"),!1;var ce=n.getDispatchParts()[0];if(ce===null)return N;var Be=this._contextKeyService.getContext(h),Ge=this._currentChord?this._currentChord.keypress:null,Ye=n.getLabel(),_t=this._getResolver().resolve(Be,Ge,ce);return _t&&_t.enterChord?(N=!0,this._enterChordMode(ce,Ye),N):(this._currentChord&&((!_t||!_t.commandId)&&(this._notificationService.status(_n.a("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,Ye),{hideAfter:10*1e3}),N=!0)),this._leaveChordMode(),_t&&_t.commandId&&(_t.bubble||(N=!0),typeof _t.commandArgs=="undefined"?this._commandService.executeCommand(_t.commandId).then(void 0,function(Ot){return S._notificationService.warn(Ot)}):this._commandService.executeCommand(_t.commandId,_t.commandArgs).then(void 0,function(Ot){return S._notificationService.warn(Ot)}),this._telemetryService.publicLog2("workbenchActionExecuted",{id:_t.commandId,from:"keybinding"})),N)},r.prototype.mightProducePrintableCharacter=function(n){return n.ctrlKey||n.metaKey?!1:n.keyCode>=31&&n.keyCode<=56||n.keyCode>=21&&n.keyCode<=30},r}(Rt.a),Sn=e("T8No"),Qi=function(){function a(r,n){this._defaultKeybindings=r,this._defaultBoundCommands=new Map;for(var h=0,S=r.length;h=0;Ot--)this._isTargetedForRemoval(r[Ot],Ge,Ye,Be,_t)&&r.splice(Ot,1)}return r.concat(h)},a.prototype._addKeyPress=function(r,n){var h=this._map.get(r);if(typeof h=="undefined"){this._map.set(r,[n]),this._addToLookupMap(n);return}for(var S=h.length-1;S>=0;S--){var N=h[S];if(N.command===n.command)continue;var ce=N.keypressParts.length>1,Be=n.keypressParts.length>1;if(ce&&Be&&N.keypressParts[1]!==n.keypressParts[1])continue;a.whenIsEntirelyIncluded(N.when,n.when)&&this._removeFromLookupMap(N)}h.push(n),this._addToLookupMap(n)},a.prototype._addToLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);typeof n=="undefined"?(n=[r],this._lookupMap.set(r.command,n)):n.push(r)},a.prototype._removeFromLookupMap=function(r){if(!r.command)return;var n=this._lookupMap.get(r.command);if(typeof n=="undefined")return;for(var h=0,S=n.length;h1&&Ye.keypressParts[1]!==null?{enterChord:!0,commandId:null,commandArgs:null,bubble:!1}:{enterChord:!1,commandId:Ye.command,commandArgs:Ye.commandArgs,bubble:Ye.bubble}:null},a.prototype._findCommand=function(r,n){for(var h=n.length-1;h>=0;h--){var S=n[h];if(!a.contextMatchesRules(r,S.when))continue;return S}return null},a.contextMatchesRules=function(r,n){return n?n.evaluate(r):!0},a}(),qr=e("nrhi"),$i=function(){function a(r,n,h,S,N){this.resolvedKeybinding=r,this.keypressParts=r?Er(r.getDispatchParts()):[],this.bubble=n?n.charCodeAt(0)===94:!1,this.command=this.bubble?n.substr(1):n,this.commandArgs=h,this.when=S,this.isDefault=N}return a}();function Er(a){for(var r=[],n=0,h=a.length;n1},r.prototype.getParts=function(){var n=this;return this._parts.map(function(h){return n._getPart(h)})},r.prototype._getPart=function(n){return new U.d(n.ctrlKey,n.shiftKey,n.altKey,n.metaKey,this._getLabel(n),this._getAriaLabel(n))},r.prototype.getDispatchParts=function(){var n=this;return this._parts.map(function(h){return n._getDispatchPart(h)})},r}(U.c),ts=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_r=function(a){ts(r,a);function r(n,h){return a.call(this,h,n.parts)||this}return r.prototype._keyCodeToUILabel=function(n){if(this._os===2)switch(n){case 15:return"\u2190";case 16:return"\u2191";case 17:return"\u2192";case 18:return"\u2193"}return U.b.toString(n)},r.prototype._getLabel=function(n){return n.isDuplicateModifierCase()?"":this._keyCodeToUILabel(n.keyCode)},r.prototype._getAriaLabel=function(n){return n.isDuplicateModifierCase()?"":U.b.toString(n.keyCode)},r.prototype._getDispatchPart=function(n){return r.getDispatchStr(n)},r.getDispatchStr=function(n){if(n.isModifierKey())return null;var h="";return n.ctrlKey&&(h+="ctrl+"),n.shiftKey&&(h+="shift+"),n.altKey&&(h+="alt+"),n.metaKey&&(h+="meta+"),h+=U.b.toString(n.keyCode),h},r}(na),Un=e("sM1p"),Sr=e("EWX2"),Oi=e("A9l+"),os=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ns=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},is=function(a,r){return function(n,h){r(n,h,a)}},rs=function(){for(var a=0,r=0,n=arguments.length;r0){var To=n[Be-1];To.originalEndLineNumber===0?ho=To.originalStartLineNumber+1:ho=To.originalEndLineNumber+1,To.modifiedEndLineNumber===0?So=To.modifiedStartLineNumber+1:So=To.modifiedEndLineNumber+1}var Io=Yt-xi+1,ko=Qt-xi+1;if(Ioqo){var Ko=qo-en;en=en+Ko,Dn=Dn+Ko}if(Dn>Yo){var Ko=Yo-Dn;en=en+Ko,Dn=Dn+Ko}ro[to++]=new Ei(ln,en,_n,Dn)}N[ce++]=new Ji(ro)}for(var Cn=N[0].entries,Bn=[],Pn=0,Be=1,Ge=N.length;BeFt)&&(Ft=So),To!==0&&(jt===0||Toro)&&(ro=Io)}var ko=document.createElement("div");ko.className="diff-review-row";var Ko=document.createElement("div");Ko.className="diff-review-cell diff-review-summary";var ln=Ft-Ot+1,_n=ro-jt+1;Ko.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+Ot+","+ln+" +"+jt+","+_n+" @@")),ko.setAttribute("data-line",String(jt));var qo=function(Cn){return Cn===0?wn.a("no_lines","no lines"):Cn===1?wn.a("one_line","1 line"):wn.a("more_lines","{0} lines",Cn)},Yo=qo(ln),un=qo(_n);ko.setAttribute("aria-label",wn.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ge+1,this._diffs.length,Ot,Yo,jt,un)),ko.appendChild(Ko),ko.setAttribute("role","listitem"),wt.appendChild(ko);for(var en=jt,to=0,Yt=Ye.length;to>>0,Ye=new Uint32Array(2);Ye[0]=ce.length,Ye[1]=Ge;var wt=new mt.a(Ye,ce),Ot=Xt.d.isBasicASCII(ce,n.mightContainNonBasicASCII()),Ft=Xt.d.containsRTL(ce,Ot,n.mightContainRTL()),jt=Object(Kt.e)(new Kt.c(Be.isMonospace&&!h.get(23),Be.canUseHalfwidthRightwardsArrow,ce,!1,Ot,Ft,0,wt,[],S,0,Be.spaceWidth,Be.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==T.d.OFF,null));return jt.html},r}(Rt.a);Object(Mn.e)(function(a,r){var n=a.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var h=a.getColor(bn.Vb);h&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+h+" 0 -6px 6px -6px inset; }")});var er=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:wn.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewNext()},r}(ui.b),Rr=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:wn.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewPrev()},r}(ui.b);function Ir(a){for(var r=a.get(me.a),n=r.listDiffEditors(),h=0,S=n.length;h0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]N.modifiedStartLineNumber?wn.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):wn.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent.join(wt)+wt)];case 1:return Yt.sent(),[2]}})})}));var Ft=0,jt=void 0;N.originalEndLineNumber>N.modifiedStartLineNumber&&(jt=new ci.a("diff.clipboard.copyDeletedLineContent",wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent[Ft])];case 1:return Yt.sent(),[2]}})})}),Ot.push(jt));var ro=S.getOption(68);ro||Ot.push(new ci.a("diff.inline.revertChange",wn.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){var Yt,Yt;return tr(this,function(Qt){return N.modifiedEndLineNumber===0?(Yt=S.getModel().getLineMaxColumn(N.modifiedStartLineNumber),S.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,Yt,N.modifiedStartLineNumber,Yt),text:wt+N.originalContent.join(wt)}])):(Yt=S.getModel().getLineMaxColumn(N.modifiedEndLineNumber),S.executeEdits("diffEditor",[{range:new U.a(N.modifiedStartLineNumber,1,N.modifiedEndLineNumber,Yt),text:N.originalContent.join(wt)}])),[2]})})}));var to=function(Qt,ho){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Qt,y:ho}},getActions:function(){return jt&&(jt.label=wn.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber+Ft)),Ot},autoSelectFirstItem:!0})};return Ge._register(ge.o(Ge._diffActions,"mousedown",function(Yt){var Qt=ge.C(Ge._diffActions),ho=Qt.top,So=Qt.height,To=Math.floor(Ye/3);Yt.preventDefault(),to(Yt.posx,ho+So+To)})),Ge._register(S.onMouseMove(function(Yt){if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId?(Ge.visibility=!0,Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(S.onMouseDown(function(Yt){if(!Yt.event.rightButton)return;if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId&&(Yt.event.preventDefault(),Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye),to(Yt.event.posx,Yt.event.posy+Ye))}})),Ge}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(h){this._visibility!==h&&(this._visibility=h,h?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,h,S){var N=ge.C(n).top,ce=h-N,Be=Math.floor(ce/S),Ge=Be*S;return this._diffActions.style.top=Ge+"px",Be},r}(Rt.a),Ii=e("tTk5"),ws=e("o39E"),hi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ss=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Jn=function(a,r){return function(n,h){r(n,h,a)}},qn=function(){function a(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(h){return!n._zonesMap[String(h.id)]})},a.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(h){for(var S=0,N=n._zones.length;S0?ce/S:0,Ge=Math.max(0,Math.floor(n.height*Be)),Ye=Math.floor(h*Be);return{height:Ge,top:Ye}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,h){var S=this._diffComputationResult?this._diffComputationResult.changes:[];if(S.length===0||n=Ye?N=Be+1:(N=Be,ce=Be)}return S[N]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.originalStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-S;return Ge<=ce?N+Math.min(Ge,Be):N+Be-ce+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.modifiedStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-N;return Ge<=Be?S+Math.min(Ge,ce):S+ce-Be+Ge},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([Jn(3,at.a),Jn(4,Sn.c),Jn(5,In.a),Jn(6,me.a),Jn(7,Mn.c),Jn(8,Hn.a),Jn(9,Xn.a),Jn(10,Ii.a)],r),r}(Rt.a),Nr=function(a){hi(r,a);function r(n){var h=a.call(this)||this;return h._dataSource=n,h._insertColor=null,h._removeColor=null,h}return r.prototype.applyColors=function(n){var h=(n.getColor(bn.j)||bn.g).transparent(2),S=(n.getColor(bn.l)||bn.h).transparent(2),N=!h.equals(this._insertColor)||!S.equals(this._removeColor);return this._insertColor=h,this._removeColor=S,N},r.prototype.getEditorsDiffDecorations=function(n,h,S,N,ce,Be,Ge){ce=ce.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber}),N=N.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber});var Ye=this._getViewZones(n,N,ce,Be,Ge,S),wt=this._getOriginalEditorDecorations(n,h,S,Be,Ge),Ot=this._getModifiedEditorDecorations(n,h,S,Be,Ge);return{original:{decorations:wt.decorations,overviewZones:wt.overviewZones,zones:Ye.original},modified:{decorations:Ot.decorations,overviewZones:Ot.overviewZones,zones:Ye.modified}}},r}(Rt.a),nr=function(){function a(r){this._source=r,this._index=-1,this.current=null,this.advance()}return a.prototype.advance=function(){this._index++,this._index0){var en=Yo[Yo.length-1];if(en.afterLineNumber===un.afterLineNumber&&en.domNode===null){en.heightInLines+=un.heightInLines;return}}Yo.push(un)},wt=new nr(this.modifiedForeignVZ),Ot=new nr(this.originalForeignVZ),Ft=0,jt=this.lineChanges.length;Ft<=jt;Ft++){var ro=Ft0?-1:0),N=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),h=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,ce=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),Be=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(S+=1e7+h,N+=1e7+n,ce=S,Be=N);for(var to=[],Yt=[];wt.current&&wt.current.afterLineNumber<=Be;){var Qt=void 0;wt.current.afterLineNumber<=N?Qt=S-N+wt.current.afterLineNumber:Qt=ce;var ho=null;ro&&ro.modifiedStartLineNumber<=wt.current.afterLineNumber&&wt.current.afterLineNumber<=ro.modifiedEndLineNumber&&(ho=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),to.push({afterLineNumber:Qt,heightInLines:wt.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:ho}),wt.advance()}for(;Ot.current&&Ot.current.afterLineNumber<=ce;){var Qt=void 0;Ot.current.afterLineNumber<=S?Qt=N-S+Ot.current.afterLineNumber:Qt=Be,Yt.push({afterLineNumber:Qt,heightInLines:Ot.current.height/this.originalLineHeight,domNode:null}),Ot.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,h,n);So&&to.push(So)}if(ro!==null&&ni(ro)){var So=this._produceModifiedFromDiff(ro,h,n);So&&Yt.push(So)}var To=0,Io=0;for(to=to.sort(Ge),Yt=Yt.sort(Ge);To=Ko.heightInLines?(ko.heightInLines-=Ko.heightInLines,Io++):(Ko.heightInLines-=ko.heightInLines,To++)}for(;Tor.MINIMUM_EDITOR_WIDTH*2?(NS-r.MINIMUM_EDITOR_WIDTH&&(N=S-r.MINIMUM_EDITOR_WIDTH)):N=ce,this._sashPosition!==N&&(this._sashPosition=N,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var h=this._dataSource.getWidth(),S=h-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=this.layout((this._startSashPosition+(n.currentX-n.startX))/S);this._sashRatio=N/S,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,h,S,N,ce){var Be=new Ms(n,h,N.getOption(49),S,ce.getOption(49));return Be.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=N.getModel(),wt=0,Ot=n.length;wth?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S-h,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,h,S){return h>S?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:h-S,domNode:null}:null},r}(ir),Ni=function(a){hi(r,a);function r(n,h){var S=a.call(this,n)||this;return S.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,S._register(n.getOriginalEditor().onDidLayoutChange(function(N){S.decorationsLeft!==N.decorationsLeft&&(S.decorationsLeft=N.decorationsLeft,n.relayoutEditors())})),S}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,h,S,N,ce,Be){var Ge=new Ds(n,h,S,N,ce,Be);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=0,wt=n.length;Ye
'])}Yt+=this.modifiedEditorOptions.get(79);var To=document.createElement("div");To.className="view-lines line-delete",To.innerHTML=Ye.build(),Ti.a.applyFontInfoSlow(To,Ft);var Io=document.createElement("div");return Io.className="inline-deleted-margin-view-zone",Io.innerHTML=wt.join(""),Ti.a.applyFontInfoSlow(Io,Ft),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:h,minWidthInPx:Yt*to,domNode:To,marginDomNode:Io,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Qt}}},r.prototype._renderOriginalLine=function(n,h,S,N,ce,Be,Ge){var Ye=h.getLineTokens(ce),wt=Ye.getLineContent(),Ot=S.get(34),Ft=_s.a.filter(Be,ce,1,wt.length+1);Ge.appendASCIIString('
');var jt=Xt.d.isBasicASCII(wt,h.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(wt,jt,h.mightContainRTL()),to=Object(Kt.d)(new Kt.c(Ot.isMonospace&&!S.get(23),Ot.canUseHalfwidthRightwardsArrow,wt,!1,jt,ro,0,Ye,Ft,N,0,Ot.spaceWidth,Ot.middotWidth,S.get(88),S.get(74),S.get(69),S.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("
");var Yt=to.characterMapping.getAbsoluteOffsets();return Yt.length>0?Yt[Yt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function ni(a){return a.originalEndLineNumber>0}function Os(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Mn.e)(function(a,r){var n=a.getColor(bn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var h=a.getColor(bn.l);h&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+h+"; }"));var S=a.getColor(bn.k);S&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+S+"; }");var N=a.getColor(bn.m);N&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+N+"; }");var ce=a.getColor(bn.Vb);ce&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+ce+"; }");var Be=a.getColor(bn.i);Be&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+Be+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ii=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ar=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},an=function(a,r){return function(n,h){r(n,h,a)}},As=function(){for(var a=0,r=0,n=arguments.length;r> to now point to mime <<"+n.mime+">>"),n.filename&&h.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&h.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&h.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(a){return{id:a.id,mime:a.mime,filename:a.filename,extension:a.extension,filepattern:a.filepattern,firstline:a.firstline,userConfigured:a.userConfigured,filenameLowercase:a.filename?a.filename.toLowerCase():void 0,extensionLowercase:a.extension?a.extension.toLowerCase():void 0,filepatternLowercase:a.filepattern?a.filepattern.toLowerCase():void 0,filepatternOnPath:a.filepattern?a.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(a,r){var n;if(a)switch(a.scheme){case Ee.b.file:n=a.fsPath;break;case Ee.b.data:var h=ve.a.parseMetaData(a);n=h.get(ve.a.META_DATA_LABEL);break;default:n=a.path}if(!n)return[Pr];n=n.toLowerCase();var S=Object(dr.basename)(n),N=Wr(n,S,Fr);if(N)return[N,ki];var ce=Wr(n,S,kr);if(ce)return[ce,ki];if(r){var Be=ri(r);if(Be)return[Be,ki]}return[Pr]}function Wr(a,r,n){for(var h=null,S=null,N=null,ce=n.length-1;ce>=0;ce--){var Be=n[ce];if(r===Be.filenameLowercase){h=Be;break}if(Be.filepattern&&(!S||Be.filepattern.length>S.filepattern.length)){var Ge=Be.filepatternOnPath?a:r;Object(cr.a)(Be.filepatternLowercase,Ge)&&(S=Be)}Be.extension&&((!N||Be.extension.length>N.extension.length)&&(Object(eo.m)(r,Be.extensionLowercase)&&(N=Be)))}return h?h.mime:S?S.mime:N?N.mime:null}function ri(a){if(Object(eo.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var h=a.match(n.firstline);if(h&&h.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ei=Object.prototype.hasOwnProperty,Fs=function(a){ks(r,a);function r(n,h){n===void 0&&(n=!0),h===void 0&&(h=!1);var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._warnOnOverwrite=h,S._nextLanguageId2=1,S._languageIdToLanguage=[],S._languageToLanguageId=Object.create(null),S._languages={},S._mimeTypesMap={},S._nameMap={},S._lowercaseNameMap={},n&&(S._initializeFromRegistry(),S._register(gi.a.onDidChangeLanguages(function(N){return S._initializeFromRegistry()}))),S}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var h=this,S=0,N=n;S0&&((S=n.mimetypes).push.apply(S,h.mimetypes),ce=h.mimetypes[0]),ce||(ce="text/x-"+N,n.mimetypes.push(ce)),Array.isArray(h.extensions))for(var Be=0,Ge=h.extensions;Be0){var Yt=h.firstLine;Yt.charAt(0)!=="^"&&(Yt="^"+Yt);try{var Qt=new RegExp(Yt);eo.I(Qt)||pi({id:N,mime:ce,firstline:Qt},this._warnOnOverwrite)}catch(ln){Object(Ct.e)(ln)}}n.aliases.push(N);var ho=null;if(typeof h.aliases!="undefined"&&Array.isArray(h.aliases)&&(h.aliases.length===0?ho=[null]:ho=h.aliases),ho!==null)for(var So=0,To=ho;So0;if(!(ko&&ho[0]===null)){var Ko=(ko?ho[0]:null)||N;(ko||!n.name)&&(n.name=Ko)}h.configuration&&n.configurationFiles.push(h.configuration)},r.prototype.isRegisteredMode=function(n){return ei.call(this._mimeTypesMap,n)?!0:ei.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return ei.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var h=this;return n?n.split(",").map(function(S){return S.trim()}).map(function(S){return ei.call(h._mimeTypesMap,S)?h._mimeTypesMap[S].language:S}).filter(function(S){return ei.call(h._languages,S)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===At.b||n===0)return At.a;var h;if(typeof n=="string")h=n;else if(h=this._languageIdToLanguage[n],!h)return null;return ei.call(this._languages,h)?this._languages[h].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,h){if(!n&&!h)return[];var S=Li(n,h);return this.extractModeIds(S.join(","))},r}(Rt.a),Ws=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Br=function(a){Ws(r,a);function r(n,h){var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._selector=h,S.languageIdentifier=S._selector(),S._register(n(function(){return S._evaluate()})),S}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new I.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new I.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return a.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},a.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},a.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var h=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(lt.l)(h,null)},a.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(lt.l)(n,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var h=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(h)})},a.prototype.createByFilepathOrFirstLine=function(r,n){var h=this;return new Br(this.onLanguagesMaybeChanged,function(){var S=h.getModeIdByFilepathOrFirstLine(r,n);return h._createModeAndGetLanguageIdentifier(S)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||At.a;return this._getOrCreateMode(n.language),n},a.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||At.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Ur=e("QRHv"),vi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Us=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Wi=function(a,r){return function(n,h){r(n,h,a)}};function Bi(a){return a.toString()}var V=function(){function a(r,n,h){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(S){return h(r,S)}))}return a.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},a.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},a.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),o=gt.d||gt.e?1:2,t=function(a){vi(r,a);function r(n,h,S,N){var ce=a.call(this)||this;return ce._onModelAdded=ce._register(new I.a),ce.onModelAdded=ce._onModelAdded.event,ce._onModelRemoved=ce._register(new I.a),ce.onModelRemoved=ce._onModelRemoved.event,ce._onModelModeChanged=ce._register(new I.a),ce.onModelModeChanged=ce._onModelModeChanged.event,ce._configurationService=n,ce._resourcePropertiesService=h,ce._models={},ce._modelCreationOptionsByLanguageAndResource=Object.create(null),ce._configurationServiceSubscription=ce._configurationService.onDidChangeConfiguration(function(Be){return ce._updateModelOptions()}),ce._updateModelOptions(),ce._register(new i(ce,S,n,N)),ce}return r._readModelOptions=function(n,h){var S=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var N=parseInt(n.editor.tabSize,10);isNaN(N)||(S=N),S<1&&(S=1)}var ce=S;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var Be=parseInt(n.editor.indentSize,10);isNaN(Be)||(ce=Be),ce<1&&(ce=1)}var Ge=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Ge=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Ye=o,wt=n.eol;wt===`\r -`?Ye=2:wt===` -`&&(Ye=1);var Ot=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(Ot=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Ft=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Ft=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var jt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(jt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:h,tabSize:S,indentSize:ce,insertSpaces:Ge,detectIndentation:Ft,defaultEOL:Ye,trimAutoWhitespace:Ot,largeFileOptimizations:jt}},r.prototype.getCreationOptions=function(n,h,S){var N=this._modelCreationOptionsByLanguageAndResource[n+h];if(!N){var ce=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:h}),Be=this._resourcePropertiesService.getEOL(h,n);N=r._readModelOptions({editor:ce,eol:Be},S),this._modelCreationOptionsByLanguageAndResource[n+h]=N}return N},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var h=Object.keys(this._models),S=0,N=h.length;S=this._growCount){var S=this._elements;this._currentLengthIndex++,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10&&Ge>1;var Ye=this._themeService.getTheme().getTokenStyleMetadata(N,ce);if(typeof Ye=="undefined")S=2147483647;else{if(S=0,typeof Ye.italic!="undefined"){var wt=(Ye.italic?1:0)<<11;S|=wt|1}if(typeof Ye.bold!="undefined"){var Ot=(Ye.bold?2:0)<<11;S|=Ot|2}if(typeof Ye.underline!="undefined"){var Ft=(Ye.underline?4:0)<<11;S|=Ft|4}if(Ye.foreground){var jt=Ye.foreground<<14;S|=jt|8}S===0&&(S=2147483647)}this._hashTable.add(r,n,S)}if(this._logService.getLevel()===dt.b.Trace){var ro=this._legend.tokenTypes[r],to=n?" "+this._legend.tokenModifiers.filter(function(Yt,Qt){return n&1<0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,h,S,N,ce){for(var Be=0;Be=0;to--){var wt=h.edits[to],Yt=jt-(wt.start+wt.deleteCount);Yt>0&&(r._copy(Ot,jt-Yt,Ft,ro-Yt,Yt),ro-=Yt),wt.data&&(r._copy(wt.data,0,Ft,ro-wt.data.length,wt.data.length),ro-=wt.data.length),jt=wt.start}jt>0&&r._copy(Ot,0,Ft,0,jt),h={resultId:h.resultId,data:Ft}}}if(r._isSemanticTokens(h)){this._currentResponse=new Le(n,h.resultId,h.data);for(var Ot=h.data,Qt=h.data.length/5|0,ho=Math.max(Math.ceil(Qt/1024),400),So=[],To=0,Io=1,ko=0;ToKo&&Ot[5*_n]===0;)_n--;if(_n-1===Ko){for(var qo=ln;qo+10){for(var qs=0,Ra=N;qs0?n[0]:null},r}(Rt.a),ct=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_t=function(a){ct(r,a);function r(){var n=a.call(this)||this;return n._onCodeEditorAdd=n._register(new I.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new I.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new I.a),n._onDiffEditorRemove=n._register(new I.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(h){return n._codeEditors[h]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(h){return n._diffEditors[h]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,h=this.listCodeEditors(),S=0,N=h;S=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},kt=function(a,r){return function(n,h){r(n,h,a)}},Vt=function(){function a(r,n,h){this._parent=r,this._editorId=n,this.styleSheet=h,this._refCount=0}return a.prototype.ref=function(){this._refCount++},a.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},a}(),qt=function(){function a(r){this.styleSheet=r}return a.prototype.ref=function(){},a.prototype.unref=function(){},a}(),$t=function(a){et(r,a);function r(n,h){h===void 0&&(h=null);var S=a.call(this)||this;return S._decorationOptionProviders=new Map,S._editorStyleSheets=new Map,S._globalStyleSheet=h?new qt(h):null,S._themeService=n,S}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ge.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var h=n.getContainerDomNode();if(!ge.N(h))return this._getOrCreateGlobalStyleSheet();var S=n.getId();if(!this._editorStyleSheets.has(S)){var N=new Vt(this,S,ge.w(h));this._editorStyleSheets.set(S,N)}return this._editorStyleSheets.get(S)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,h,S,N){var ce=this._decorationOptionProviders.get(n);if(!ce){var Be=this._getOrCreateStyleSheet(N),Ge={styleSheet:Be.styleSheet,key:n,parentTypeKey:S,options:h||Object.create(null)};S?ce=new io(this._themeService,Be,Ge):ce=new yo(this._themeService,Be,Ge),this._decorationOptionProviders.set(n,ce)}ce.refCount++},r.prototype.removeDecorationType=function(n){var h=this._decorationOptionProviders.get(n);h&&(h.refCount--,h.refCount<=0&&(this._decorationOptionProviders.delete(n),h.dispose(),this.listCodeEditors().forEach(function(S){return S.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,h){var S=this._decorationOptionProviders.get(n);if(!S)throw new Error("Unknown decoration type key: "+n);return S.getOptions(this,h)},r=Wt([kt(0,Mn.c)],r),r}(_t),io=function(){function a(r,n,h){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=h.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,h,r),this._afterContentRules=new bo(4,h,r)}return a.prototype.getOptions=function(r,n){var h=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(h.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(h.afterContentClassName=this._afterContentRules.className),h},a.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},a}(),yo=function(){function a(r,n,h){var S=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var N=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?jt.className:void 0},ce=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?{className:jt.className,hasLetterSpacing:jt.hasLetterSpacing}:null};this.className=N(0);var Be=ce(1);Be&&(this.inlineClassName=Be.className,this.inlineClassNameAffectsLetterSpacing=Be.hasLetterSpacing),this.beforeContentClassName=N(3),this.afterContentClassName=N(4),this.glyphMarginClassName=N(2);var Ge=h.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Ye=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,wt=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Ye!="undefined"||typeof wt!="undefined")&&(this.overviewRuler={color:Ye||wt,darkColor:wt||Ye,position:Ge.overviewRulerLane||ft.d.Center})}return a.prototype.getOptions=function(r,n){return n?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},a.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},a}(),mo={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},bo=function(){function a(r,n,h){var S=this;this._theme=h.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var N=go.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(N=N+" "+go.getClassName(this._providerArgs.parentTypeKey,r)),this._className=N,this._unThemedSelector=go.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=h.onThemeChange(function(ce){S._theme=h.getTheme(),S._removeCSS(),S._buildCSS()}):this._themeListener=null}return a.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(a.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),a.prototype._buildCSS=function(){var r=this._providerArgs.options,n,h,S;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),h=this.getCSSTextForModelDecorationClassName(r.light),S=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),h=this.getCSSTextForModelDecorationInlineClassName(r.light),S=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),h=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),S=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var N=this._providerArgs.styleSheet.sheet,ce=!1;n.length>0&&(N.insertRule(this._unThemedSelector+" {"+n+"}",0),ce=!0),h.length>0&&(N.insertRule(".vs"+this._unThemedSelector+" {"+h+"}",0),ce=!0),S.length>0&&(N.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+S+"}",0),ce=!0),this._hasContent=ce},a.prototype._removeCSS=function(){ge.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(eo.r(mo.contentIconPath,ge.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var h=r.contentText.match(/^.*$/m)[0],S=h.replace(/['\\]/g,"\\$&");n.push(eo.r(mo.contentText,S))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(eo.r(mo.gutterIconPath,ge.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(eo.r(mo.gutterIconSize,r.gutterIconSize))),n.join("")},a.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(eo.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,n,h){for(var S=h.length,N=0,ce=n;N=1&&a[0].token==="";){var N=a.shift();N.fontStyle!==-1&&(n=N.fontStyle),N.foreground!==null&&(h=N.foreground),N.background!==null&&(S=N.background)}for(var ce=new cn,Be=0,Ge=r;Be>>0,this._cache.set(n,h)}return(h|r<<0)>>>0},a}(),hn=/\b(comment|string|regex|regexp)\b/;function Wn(a){var r=a.match(hn);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Fn(a,r){return ar?1:0}var Ui=function(){function a(r,n,h){this._fontStyle=r,this._foreground=n,this._background=h,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return a.prototype.clone=function(){return new a(this._fontStyle,this._foreground,this._background)},a.prototype.acceptOverwrite=function(r,n,h){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),h!==0&&(this._background=h),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},a}(),fr=function(){function a(r){this._mainRule=r,this._children=new Map}return a.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),h,S;n===-1?(h=r,S=""):(h=r.substring(0,n),S=r.substring(n+1));var N=this._children.get(h);return typeof N!="undefined"?N.match(S):this._mainRule},a.prototype.insert=function(r,n,h,S){if(r===""){this._mainRule.acceptOverwrite(n,h,S);return}var N=r.indexOf("."),ce,Be;N===-1?(ce=r,Be=""):(ce=r.substring(0,N),Be=r.substring(N+1));var Ge=this._children.get(ce);typeof Ge=="undefined"&&(Ge=new a(this._mainRule.clone()),this._children.set(ce,Ge)),Ge.insert(Be,n,h,S)},a}();function Hr(a){for(var r=[],n=1,h=a.length;n0?(this.id=h+" "+r,this.themeName=r):(this.id=h,this.themeName=h),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(a.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),a.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},a.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Fo.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var h=Vs(this.themeData.base);for(var n in h.colors)r.has(n)||r.set(n,Fo.a.fromHex(h.colors[n]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,n){var h=this.getColors().get(r);return h||(n!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var n=[],h=[];if(this.themeData.inherit){var S=Vs(this.themeData.base);n=S.rules,S.encodedTokensColors&&(h=S.encodedTokensColors)}n=n.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(h=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(n,h)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,n){return},a}();function Hs(a){return a===Mi||a===Vr||a===mr}function Vs(a){switch(a){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(a){var r=Vs(a);return new la(a,r)}var Ha=function(a){Wa(r,a);function r(){var n=a.call(this)||this;return n._onThemeChange=n._register(new I.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ge.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ge.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var h=this,S=ge.w(n);return S.className="monaco-colors",S.innerHTML=this._css,this._styleElements.push(S),{dispose:function(){for(var ce=0;ce=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},za=function(a,r){return function(n,h){r(n,h,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(n,h){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(n,h,S){var N=a.call(this,n,null)||this;return N._configurationService=h,N._values=new Map,N._listener=N._configurationService.onDidChangeConfiguration(function(ce){if(ce.source===6){var Be=Object($n.d)(N._values);N._values.clear(),S.fire(new ca(Be))}else{for(var Ge=[],Ye=0,wt=ce.affectedKeys;Ye=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},pr=function(a,r){return function(n,h){r(n,h,a)}},nl=function(a){tl(r,a);function r(n,h,S,N,ce){var Be=a.call(this)||this;return Be._onDidContextMenu=Be._register(new I.a),Be.contextMenuHandler=new el(S,n,h,N,ce),Be}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Hn.a),pr(2,Xn.b),pr(3,ii.a),pr(4,Mn.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}();function fa(a,r,n){var h=n.offset+n.size;return n.position===0?r<=a-h?h:r<=n.offset?n.offset-r:Math.max(a-r,0):r<=n.offset?n.offset-r:r<=a-h?h:0}var al=function(a){sl(r,a);function r(n){var h=a.call(this)||this;return h.container=null,h.delegate=null,h.toDisposeOnClean=Rt.a.None,h.toDisposeOnSetContainer=Rt.a.None,h.view=ge.a(".context-view"),ge.J(h.view),h.setContainer(n),h._register(Object(Rt.h)(function(){return h.setContainer(null)})),h}return r.prototype.setContainer=function(n){var h=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var S=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!0)},!0))}),this.toDisposeOnSetContainer=S}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ge.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ge.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(gt.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),h;if(ge.L(n)){var S=ge.C(n);h={top:S.top,left:S.left,width:S.width,height:S.height}}else h={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var N=ge.H(this.view),ce=ge.G(this.view),Be=this.delegate.anchorPosition||0,Ge=this.delegate.anchorAlignment||0,Ye={offset:h.top-window.pageYOffset,size:h.height,position:Be===0?0:1},wt;Ge===0?wt={offset:h.left,size:0,position:0}:wt={offset:h.left+h.width,size:0,position:1};var Ot=fa(window.innerHeight,ce,Ye)+window.pageYOffset;il.a.intersects({start:Ot,end:Ot+ce},{start:Ye.offset,end:Ye.offset+Ye.size})&&(wt.size=h.width,Ge===1&&(wt.offset=h.left));var Ft=fa(window.innerWidth,N,wt);ge.Q(this.view,"top","bottom","left","right"),ge.f(this.view,Be===0?"bottom":"top"),ge.f(this.view,Ge===0?"left":"right");var jt=ge.C(this.container);this.view.style.top=Ot-jt.top+"px",this.view.style.left=Ft-jt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var h=this.delegate;this.delegate=null,(h==null?void 0:h.onHide)&&h.onHide(n),this.toDisposeOnClean.dispose(),ge.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,h){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):h&&!ge.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),a.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(In.c)("layoutService"),ll=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},cl=function(a,r){return function(n,h){r(n,h,a)}},ul=function(a){ll(r,a);function r(n){var h=a.call(this)||this;return h.layoutService=n,h.contextView=h._register(new al(n.container)),h.layout(),h._register(n.onLayout(function(){return h.layout()})),h}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(In.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function a(r){this._hashFn=r,this._nodes=Object.create(null)}return a.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(bt.f)(n.value.outgoing)&&r.push(n.value)}),r},a.prototype.insertEdge=function(r,n){var h=this.lookupOrInsertNode(r),S=this.lookupOrInsertNode(n);h.outgoing[this._hashFn(n)]=S,S.incoming[this._hashFn(r)]=h},a.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(h){delete h.value.outgoing[n],delete h.value.incoming[n]})},a.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),h=this._nodes[n];return h||(h=fl(r),this._nodes[n]=h),h},a.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},a.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(` -`)},a}(),gr=e("r0BQ"),pa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ys=function(){for(var a=0,r=0,n=arguments.length;r0?S[0].index:n.length;if(n.length!==wt){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(wt+1)+" conflicts with "+n.length+" static arguments");var Ot=wt-n.length;Ot>0?n=n.concat(new Array(Ot)):n=n.slice(0,wt)}return new(r.bind.apply(r,Ys([void 0],Ys(n,N))))},a.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},a.prototype._getOrCreateServiceInstance=function(r,n){var h=this._getServiceInstanceOrDescriptor(r);return h instanceof gr.a?this._createAndCacheServiceInstance(r,h,n.branch(r,!0)):(n.branch(r,!1),h)},a.prototype._createAndCacheServiceInstance=function(r,n,h){for(var S=new ml(function(ho){return ho.id.toString()}),N=0,ce=[{id:r,desc:n,_trace:h}];ce.length;){var Be=ce.pop();if(S.lookupOrInsertNode(Be),N++>150)throw new va(S);for(var Ge=0,Ye=In.b.getServiceDependencies(Be.desc.ctor);Ge "+Ft);var to=h(N+1,ro);to&&Be.push(to)}else Be.push(Ge+"uses -> "+Ft)}return Be.join(` +`},a=ns([is(0,xn.a)],a),a}(),fs=function(){function a(){}return a.prototype.publicLog=function(r,n){return Promise.resolve(void 0)},a.prototype.publicLog2=function(r,n){return this.publicLog(r,n)},a}(),ms=function(){function a(){var r=z.a.from({scheme:a.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new Sr.b({uri:r,name:"",index:0})]}}return a.prototype.getWorkspace=function(){return this.workspace},a.prototype.getWorkspaceFolder=function(r){return r&&r.scheme===a.SCHEME?this.workspace.folders[0]:null},a.SCHEME="inmemory",a}();function oi(a,r,n){if(!r)return;if(!(a instanceof Dr))return;Object.keys(r).forEach(function(h){Object(yr.d)(h)&&a.updateValue("editor."+h,r[h]),n&&Object(yr.c)(h)&&a.updateValue("diffEditor."+h,r[h])})}var sa=function(){function a(r){this._modelService=r}return a.prototype.hasPreviewHandler=function(){return!1},a.prototype.apply=function(r,n){var h=new Map;if(r.edits)for(var S=0,N=r.edits;S0){var To=n[Be-1];To.originalEndLineNumber===0?ho=To.originalStartLineNumber+1:ho=To.originalEndLineNumber+1,To.modifiedEndLineNumber===0?So=To.modifiedStartLineNumber+1:So=To.modifiedEndLineNumber+1}var Io=Yt-xi+1,ko=Qt-xi+1;if(Ioqo){var Ko=qo-en;en=en+Ko,Dn=Dn+Ko}if(Dn>Yo){var Ko=Yo-Dn;en=en+Ko,Dn=Dn+Ko}ro[to++]=new Ei(ln,en,wn,Dn)}N[ce++]=new Ji(ro)}for(var Cn=N[0].entries,Bn=[],Pn=0,Be=1,Ge=N.length;BeFt)&&(Ft=So),To!==0&&(jt===0||Toro)&&(ro=Io)}var ko=document.createElement("div");ko.className="diff-review-row";var Ko=document.createElement("div");Ko.className="diff-review-cell diff-review-summary";var ln=Ft-Ot+1,wn=ro-jt+1;Ko.appendChild(document.createTextNode(Ge+1+"/"+this._diffs.length+": @@ -"+Ot+","+ln+" +"+jt+","+wn+" @@")),ko.setAttribute("data-line",String(jt));var qo=function(Cn){return Cn===0?_n.a("no_lines","no lines"):Cn===1?_n.a("one_line","1 line"):_n.a("more_lines","{0} lines",Cn)},Yo=qo(ln),un=qo(wn);ko.setAttribute("aria-label",_n.a({key:"header",comment:["This is the ARIA label for a git diff header.","A git diff header looks like this: @@ -154,12 +159,39 @@.","That encodes that at original line 154 (which is now line 159), 12 lines were removed/changed with 39 lines.","Variables 0 and 1 refer to the diff index out of total number of diffs.","Variables 2 and 4 will be numbers (a line number).",'Variables 3 and 5 will be "no lines", "1 line" or "X lines", localized separately.']},"Difference {0} of {1}: original {2}, {3}, modified {4}, {5}",Ge+1,this._diffs.length,Ot,Yo,jt,un)),ko.appendChild(Ko),ko.setAttribute("role","listitem"),_t.appendChild(ko);for(var en=jt,to=0,Yt=Ye.length;to>>0,Ye=new Uint32Array(2);Ye[0]=ce.length,Ye[1]=Ge;var _t=new mt.a(Ye,ce),Ot=Xt.d.isBasicASCII(ce,n.mightContainNonBasicASCII()),Ft=Xt.d.containsRTL(ce,Ot,n.mightContainRTL()),jt=Object(Kt.e)(new Kt.c(Be.isMonospace&&!h.get(23),Be.canUseHalfwidthRightwardsArrow,ce,!1,Ot,Ft,0,_t,[],S,0,Be.spaceWidth,Be.middotWidth,h.get(88),h.get(74),h.get(69),h.get(35)!==T.d.OFF,null));return jt.html},r}(Rt.a);Object(Mn.e)(function(a,r){var n=a.getColor(Vn.k);n&&r.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var h=a.getColor(bn.Vb);h&&r.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+h+" 0 -6px 6px -6px inset; }")});var er=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.next",label:_n.a("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewNext()},r}(ui.b),Rr=function(a){Ln(r,a);function r(){return a.call(this,{id:"editor.action.diffReview.prev",label:_n.a("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Sn.a.has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1024|65,weight:100}})||this}return r.prototype.run=function(n,h){var S=Ir(n);S&&S.diffReviewPrev()},r}(ui.b);function Ir(a){for(var r=a.get(me.a),n=r.listDiffEditors(),h=0,S=n.length;h0&&N[N.length-1])&&(Ye[0]===6||Ye[0]===2)){n=0;continue}if(Ye[0]===3&&(!N||Ye[1]>N[0]&&Ye[1]N.modifiedStartLineNumber?_n.a("diff.clipboard.copyDeletedLinesContent.label","Copy deleted lines"):_n.a("diff.clipboard.copyDeletedLinesContent.single.label","Copy deleted line"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent.join(_t)+_t)];case 1:return Yt.sent(),[2]}})})}));var Ft=0,jt=void 0;N.originalEndLineNumber>N.modifiedStartLineNumber&&(jt=new ci.a("diff.clipboard.copyDeletedLineContent",_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){return tr(this,function(Yt){switch(Yt.label){case 0:return[4,this._clipboardService.writeText(N.originalContent[Ft])];case 1:return Yt.sent(),[2]}})})}),Ot.push(jt));var ro=S.getOption(68);ro||Ot.push(new ci.a("diff.inline.revertChange",_n.a("diff.inline.revertChange.label","Revert this change"),void 0,!0,function(){return Ri(Ge,void 0,void 0,function(){var Yt,Yt;return tr(this,function(Qt){return N.modifiedEndLineNumber===0?(Yt=S.getModel().getLineMaxColumn(N.modifiedStartLineNumber),S.executeEdits("diffEditor",[{range:new H.a(N.modifiedStartLineNumber,Yt,N.modifiedStartLineNumber,Yt),text:_t+N.originalContent.join(_t)}])):(Yt=S.getModel().getLineMaxColumn(N.modifiedEndLineNumber),S.executeEdits("diffEditor",[{range:new H.a(N.modifiedStartLineNumber,1,N.modifiedEndLineNumber,Yt),text:N.originalContent.join(_t)}])),[2]})})}));var to=function(Qt,ho){Ge._contextMenuService.showContextMenu({getAnchor:function(){return{x:Qt,y:ho}},getActions:function(){return jt&&(jt.label=_n.a("diff.clipboard.copyDeletedLineContent.label","Copy deleted line ({0})",N.originalStartLineNumber+Ft)),Ot},autoSelectFirstItem:!0})};return Ge._register(ge.o(Ge._diffActions,"mousedown",function(Yt){var Qt=ge.C(Ge._diffActions),ho=Qt.top,So=Qt.height,To=Math.floor(Ye/3);Yt.preventDefault(),to(Yt.posx,ho+So+To)})),Ge._register(S.onMouseMove(function(Yt){if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId?(Ge.visibility=!0,Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye)):Ge.visibility=!1}else Ge.visibility=!1})),Ge._register(S.onMouseDown(function(Yt){if(!Yt.event.rightButton)return;if(Yt.target.type===8||Yt.target.type===5){var Qt=Yt.target.detail.viewZoneId;Qt===Ge._viewZoneId&&(Yt.event.preventDefault(),Ft=Ge._updateLightBulbPosition(Ge._marginDomNode,Yt.event.browserEvent.y,Ye),to(Yt.event.posx,Yt.event.posy+Ye))}})),Ge}return Object.defineProperty(r.prototype,"visibility",{get:function(){return this._visibility},set:function(h){this._visibility!==h&&(this._visibility=h,h?this._diffActions.style.visibility="visible":this._diffActions.style.visibility="hidden")},enumerable:!0,configurable:!0}),r.prototype._updateLightBulbPosition=function(n,h,S){var N=ge.C(n).top,ce=h-N,Be=Math.floor(ce/S),Ge=Be*S;return this._diffActions.style.top=Ge+"px",Be},r}(Rt.a),Ii=e("tTk5"),_s=e("o39E"),hi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ss=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Jn=function(a,r){return function(n,h){r(n,h,a)}},qn=function(){function a(r,n){this._contextMenuService=r,this._clipboardService=n,this._zones=[],this.inlineDiffMargins=[],this._zonesMap={},this._decorations=[]}return a.prototype.getForeignViewZones=function(r){var n=this;return r.filter(function(h){return!n._zonesMap[String(h.id)]})},a.prototype.clean=function(r){var n=this;this._zones.length>0&&r.changeViewZones(function(h){for(var S=0,N=n._zones.length;S0?ce/S:0,Ge=Math.max(0,Math.floor(n.height*Be)),Ye=Math.floor(h*Be);return{height:Ge,top:Ye}},r.prototype._createDataSource=function(){var n=this;return{getWidth:function(){return n._elementSizeObserver.getWidth()},getHeight:function(){return n._elementSizeObserver.getHeight()-n._getReviewHeight()},getContainerDomNode:function(){return n._containerDomElement},relayoutEditors:function(){n._doLayout()},getOriginalEditor:function(){return n.originalEditor},getModifiedEditor:function(){return n.modifiedEditor}}},r.prototype._setStrategy=function(n){this._strategy&&this._strategy.dispose(),this._strategy=n,n.applyColors(this._themeService.getTheme()),this._diffComputationResult&&this._updateDecorations(),this._doLayout()},r.prototype._getLineChangeAtOrBeforeLineNumber=function(n,h){var S=this._diffComputationResult?this._diffComputationResult.changes:[];if(S.length===0||n=Ye?N=Be+1:(N=Be,ce=Be)}return S[N]},r.prototype._getEquivalentLineForOriginalLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.originalStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-S;return Ge<=ce?N+Math.min(Ge,Be):N+Be-ce+Ge},r.prototype._getEquivalentLineForModifiedLineNumber=function(n){var h=this._getLineChangeAtOrBeforeLineNumber(n,function(Ye){return Ye.modifiedStartLineNumber});if(!h)return n;var S=h.originalStartLineNumber+(h.originalEndLineNumber>0?-1:0),N=h.modifiedStartLineNumber+(h.modifiedEndLineNumber>0?-1:0),ce=h.originalEndLineNumber>0?h.originalEndLineNumber-h.originalStartLineNumber+1:0,Be=h.modifiedEndLineNumber>0?h.modifiedEndLineNumber-h.modifiedStartLineNumber+1:0,Ge=n-N;return Ge<=Be?S+Math.min(Ge,ce):S+ce-Be+Ge},r.prototype.getDiffLineInformationForOriginal=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(n)}:null},r.prototype.getDiffLineInformationForModified=function(n){return this._diffComputationResult?{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(n)}:null},r.ONE_OVERVIEW_WIDTH=15,r.ENTIRE_DIFF_OVERVIEW_WIDTH=30,r.UPDATE_DIFF_DECORATIONS_DELAY=200,r=Ss([Jn(3,at.a),Jn(4,Sn.c),Jn(5,In.a),Jn(6,me.a),Jn(7,Mn.c),Jn(8,Un.a),Jn(9,Xn.a),Jn(10,Ii.a)],r),r}(Rt.a),Nr=function(a){hi(r,a);function r(n){var h=a.call(this)||this;return h._dataSource=n,h._insertColor=null,h._removeColor=null,h}return r.prototype.applyColors=function(n){var h=(n.getColor(bn.j)||bn.g).transparent(2),S=(n.getColor(bn.l)||bn.h).transparent(2),N=!h.equals(this._insertColor)||!S.equals(this._removeColor);return this._insertColor=h,this._removeColor=S,N},r.prototype.getEditorsDiffDecorations=function(n,h,S,N,ce,Be,Ge){ce=ce.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber}),N=N.sort(function(Ft,jt){return Ft.afterLineNumber-jt.afterLineNumber});var Ye=this._getViewZones(n,N,ce,Be,Ge,S),_t=this._getOriginalEditorDecorations(n,h,S,Be,Ge),Ot=this._getModifiedEditorDecorations(n,h,S,Be,Ge);return{original:{decorations:_t.decorations,overviewZones:_t.overviewZones,zones:Ye.original},modified:{decorations:Ot.decorations,overviewZones:Ot.overviewZones,zones:Ye.modified}}},r}(Rt.a),nr=function(){function a(r){this._source=r,this._index=-1,this.current=null,this.advance()}return a.prototype.advance=function(){this._index++,this._index0){var en=Yo[Yo.length-1];if(en.afterLineNumber===un.afterLineNumber&&en.domNode===null){en.heightInLines+=un.heightInLines;return}}Yo.push(un)},_t=new nr(this.modifiedForeignVZ),Ot=new nr(this.originalForeignVZ),Ft=0,jt=this.lineChanges.length;Ft<=jt;Ft++){var ro=Ft0?-1:0),N=ro.modifiedStartLineNumber+(ro.modifiedEndLineNumber>0?-1:0),h=ro.originalEndLineNumber>0?ro.originalEndLineNumber-ro.originalStartLineNumber+1:0,n=ro.modifiedEndLineNumber>0?ro.modifiedEndLineNumber-ro.modifiedStartLineNumber+1:0,ce=Math.max(ro.originalStartLineNumber,ro.originalEndLineNumber),Be=Math.max(ro.modifiedStartLineNumber,ro.modifiedEndLineNumber)):(S+=1e7+h,N+=1e7+n,ce=S,Be=N);for(var to=[],Yt=[];_t.current&&_t.current.afterLineNumber<=Be;){var Qt=void 0;_t.current.afterLineNumber<=N?Qt=S-N+_t.current.afterLineNumber:Qt=ce;var ho=null;ro&&ro.modifiedStartLineNumber<=_t.current.afterLineNumber&&_t.current.afterLineNumber<=ro.modifiedEndLineNumber&&(ho=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion()),to.push({afterLineNumber:Qt,heightInLines:_t.current.height/this.modifiedLineHeight,domNode:null,marginDomNode:ho}),_t.advance()}for(;Ot.current&&Ot.current.afterLineNumber<=ce;){var Qt=void 0;Ot.current.afterLineNumber<=S?Qt=N-S+Ot.current.afterLineNumber:Qt=Be,Yt.push({afterLineNumber:Qt,heightInLines:Ot.current.height/this.originalLineHeight,domNode:null}),Ot.advance()}if(ro!==null&&fi(ro)){var So=this._produceOriginalFromDiff(ro,h,n);So&&to.push(So)}if(ro!==null&&ni(ro)){var So=this._produceModifiedFromDiff(ro,h,n);So&&Yt.push(So)}var To=0,Io=0;for(to=to.sort(Ge),Yt=Yt.sort(Ge);To=Ko.heightInLines?(ko.heightInLines-=Ko.heightInLines,Io++):(Ko.heightInLines-=ko.heightInLines,To++)}for(;Tor.MINIMUM_EDITOR_WIDTH*2?(NS-r.MINIMUM_EDITOR_WIDTH&&(N=S-r.MINIMUM_EDITOR_WIDTH)):N=ce,this._sashPosition!==N&&(this._sashPosition=N,this._sash.layout()),this._sashPosition},r.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition},r.prototype.onSashDrag=function(n){var h=this._dataSource.getWidth(),S=h-or.ENTIRE_DIFF_OVERVIEW_WIDTH,N=this.layout((this._startSashPosition+(n.currentX-n.startX))/S);this._sashRatio=N/S,this._dataSource.relayoutEditors()},r.prototype.onSashDragEnd=function(){this._sash.layout()},r.prototype.onSashReset=function(){this._sashRatio=.5,this._dataSource.relayoutEditors(),this._sash.layout()},r.prototype.getVerticalSashTop=function(n){return 0},r.prototype.getVerticalSashLeft=function(n){return this._sashPosition},r.prototype.getVerticalSashHeight=function(n){return this._dataSource.getHeight()},r.prototype._getViewZones=function(n,h,S,N,ce){var Be=new Ms(n,h,N.getOption(49),S,ce.getOption(49));return Be.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=N.getModel(),_t=0,Ot=n.length;_th?{afterLineNumber:Math.max(n.originalStartLineNumber,n.originalEndLineNumber),heightInLines:S-h,domNode:null}:null},r.prototype._produceModifiedFromDiff=function(n,h,S){return h>S?{afterLineNumber:Math.max(n.modifiedStartLineNumber,n.modifiedEndLineNumber),heightInLines:h-S,domNode:null}:null},r}(ir),Ni=function(a){hi(r,a);function r(n,h){var S=a.call(this,n)||this;return S.decorationsLeft=n.getOriginalEditor().getLayoutInfo().decorationsLeft,S._register(n.getOriginalEditor().onDidLayoutChange(function(N){S.decorationsLeft!==N.decorationsLeft&&(S.decorationsLeft=N.decorationsLeft,n.relayoutEditors())})),S}return r.prototype.setEnableSplitViewResizing=function(n){},r.prototype._getViewZones=function(n,h,S,N,ce,Be){var Ge=new Ds(n,h,S,N,ce,Be);return Ge.getViewZones()},r.prototype._getOriginalEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._removeColor),Ge={decorations:[],overviewZones:[]},Ye=0,_t=n.length;Ye<_t;Ye++){var Ot=n[Ye];ni(Ot)&&(Ge.decorations.push({range:new H.a(Ot.originalStartLineNumber,1,Ot.originalEndLineNumber,1073741824),options:An.lineDeleteMargin}),Ge.overviewZones.push(new Ai.a(Ot.originalStartLineNumber,Ot.originalEndLineNumber,Be)))}return Ge},r.prototype._getModifiedEditorDecorations=function(n,h,S,N,ce){for(var Be=String(this._insertColor),Ge={decorations:[],overviewZones:[]},Ye=ce.getModel(),_t=0,Ot=n.length;_t
'])}Yt+=this.modifiedEditorOptions.get(79);var To=document.createElement("div");To.className="view-lines line-delete",To.innerHTML=Ye.build(),Ti.a.applyFontInfoSlow(To,Ft);var Io=document.createElement("div");return Io.className="inline-deleted-margin-view-zone",Io.innerHTML=_t.join(""),Ti.a.applyFontInfoSlow(Io,Ft),{shouldNotShrink:!0,afterLineNumber:n.modifiedEndLineNumber===0?n.modifiedStartLineNumber:n.modifiedStartLineNumber-1,heightInLines:h,minWidthInPx:Yt*to,domNode:To,marginDomNode:Io,diff:{originalStartLineNumber:n.originalStartLineNumber,originalEndLineNumber:n.originalEndLineNumber,modifiedStartLineNumber:n.modifiedStartLineNumber,modifiedEndLineNumber:n.modifiedEndLineNumber,originalContent:Qt}}},r.prototype._renderOriginalLine=function(n,h,S,N,ce,Be,Ge){var Ye=h.getLineTokens(ce),_t=Ye.getLineContent(),Ot=S.get(34),Ft=ws.a.filter(Be,ce,1,_t.length+1);Ge.appendASCIIString('
');var jt=Xt.d.isBasicASCII(_t,h.mightContainNonBasicASCII()),ro=Xt.d.containsRTL(_t,jt,h.mightContainRTL()),to=Object(Kt.d)(new Kt.c(Ot.isMonospace&&!S.get(23),Ot.canUseHalfwidthRightwardsArrow,_t,!1,jt,ro,0,Ye,Ft,N,0,Ot.spaceWidth,Ot.middotWidth,S.get(88),S.get(74),S.get(69),S.get(35)!==T.d.OFF,null),Ge);Ge.appendASCIIString("
");var Yt=to.characterMapping.getAbsoluteOffsets();return Yt.length>0?Yt[Yt.length-1]:0},r}(ir);function fi(a){return a.modifiedEndLineNumber>0}function ni(a){return a.originalEndLineNumber>0}function Os(){var a=document.createElement("div");return a.className="diagonal-fill",a}Object(Mn.e)(function(a,r){var n=a.getColor(bn.j);n&&(r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }"),r.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }"));var h=a.getColor(bn.l);h&&(r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+h+"; }"),r.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+h+"; }"));var S=a.getColor(bn.k);S&&r.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+S+"; }");var N=a.getColor(bn.m);N&&r.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+(a.type==="hc"?"dashed":"solid")+" "+N+"; }");var ce=a.getColor(bn.Vb);ce&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+ce+"; }");var Be=a.getColor(bn.i);Be&&r.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+Be+"; }")});var Ts=e("9Y+e"),Si=e("scqD"),Kn=e("fjLI"),ii=e("bexQ"),mi=e("R3nR"),xs=e("9XeP"),sr=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ar=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},an=function(a,r){return function(n,h){r(n,h,a)}},As=function(){for(var a=0,r=0,n=arguments.length;r> to now point to mime <<"+n.mime+">>"),n.filename&&h.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>"),n.filepattern&&h.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>"),n.firstline&&h.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function ur(a){return{id:a.id,mime:a.mime,filename:a.filename,extension:a.extension,filepattern:a.filepattern,firstline:a.firstline,userConfigured:a.userConfigured,filenameLowercase:a.filename?a.filename.toLowerCase():void 0,extensionLowercase:a.extension?a.extension.toLowerCase():void 0,filepatternLowercase:a.filepattern?a.filepattern.toLowerCase():void 0,filepatternOnPath:a.filepattern?a.filepattern.indexOf(dr.posix.sep)>=0:!1}}function Li(a,r){var n;if(a)switch(a.scheme){case Ee.b.file:n=a.fsPath;break;case Ee.b.data:var h=ve.a.parseMetaData(a);n=h.get(ve.a.META_DATA_LABEL);break;default:n=a.path}if(!n)return[Pr];n=n.toLowerCase();var S=Object(dr.basename)(n),N=Wr(n,S,Fr);if(N)return[N,ki];var ce=Wr(n,S,kr);if(ce)return[ce,ki];if(r){var Be=ri(r);if(Be)return[Be,ki]}return[Pr]}function Wr(a,r,n){for(var h=null,S=null,N=null,ce=n.length-1;ce>=0;ce--){var Be=n[ce];if(r===Be.filenameLowercase){h=Be;break}if(Be.filepattern&&(!S||Be.filepattern.length>S.filepattern.length)){var Ge=Be.filepatternOnPath?a:r;Object(cr.a)(Be.filepatternLowercase,Ge)&&(S=Be)}Be.extension&&((!N||Be.extension.length>N.extension.length)&&(Object(eo.m)(r,Be.extensionLowercase)&&(N=Be)))}return h?h.mime:S?S.mime:N?N.mime:null}function ri(a){if(Object(eo.P)(a)&&(a=a.substr(1)),a.length>0)for(var r=Fi.length-1;r>=0;r--){var n=Fi[r];if(!n.firstline)continue;var h=a.match(n.firstline);if(h&&h.length>0)return n.mime}return null}var gi=e("MqQJ"),hr=e("ic2d"),ks=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),ei=Object.prototype.hasOwnProperty,Fs=function(a){ks(r,a);function r(n,h){n===void 0&&(n=!0),h===void 0&&(h=!1);var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._warnOnOverwrite=h,S._nextLanguageId2=1,S._languageIdToLanguage=[],S._languageToLanguageId=Object.create(null),S._languages={},S._mimeTypesMap={},S._nameMap={},S._lowercaseNameMap={},n&&(S._initializeFromRegistry(),S._register(gi.a.onDidChangeLanguages(function(N){return S._initializeFromRegistry()}))),S}return r.prototype._initializeFromRegistry=function(){this._languages={},this._mimeTypesMap={},this._nameMap={},this._lowercaseNameMap={};var n=gi.a.getLanguages();this._registerLanguages(n)},r.prototype._registerLanguages=function(n){for(var h=this,S=0,N=n;S0&&((S=n.mimetypes).push.apply(S,h.mimetypes),ce=h.mimetypes[0]),ce||(ce="text/x-"+N,n.mimetypes.push(ce)),Array.isArray(h.extensions))for(var Be=0,Ge=h.extensions;Be0){var Yt=h.firstLine;Yt.charAt(0)!=="^"&&(Yt="^"+Yt);try{var Qt=new RegExp(Yt);eo.I(Qt)||pi({id:N,mime:ce,firstline:Qt},this._warnOnOverwrite)}catch(ln){Object(Ct.e)(ln)}}n.aliases.push(N);var ho=null;if(typeof h.aliases!="undefined"&&Array.isArray(h.aliases)&&(h.aliases.length===0?ho=[null]:ho=h.aliases),ho!==null)for(var So=0,To=ho;So0;if(!(ko&&ho[0]===null)){var Ko=(ko?ho[0]:null)||N;(ko||!n.name)&&(n.name=Ko)}h.configuration&&n.configurationFiles.push(h.configuration)},r.prototype.isRegisteredMode=function(n){return ei.call(this._mimeTypesMap,n)?!0:ei.call(this._languages,n)},r.prototype.getModeIdForLanguageNameLowercase=function(n){return ei.call(this._lowercaseNameMap,n)?this._lowercaseNameMap[n].language:null},r.prototype.extractModeIds=function(n){var h=this;return n?n.split(",").map(function(S){return S.trim()}).map(function(S){return ei.call(h._mimeTypesMap,S)?h._mimeTypesMap[S].language:S}).filter(function(S){return ei.call(h._languages,S)}):[]},r.prototype.getLanguageIdentifier=function(n){if(n===At.b||n===0)return At.a;var h;if(typeof n=="string")h=n;else if(h=this._languageIdToLanguage[n],!h)return null;return ei.call(this._languages,h)?this._languages[h].identifier:null},r.prototype.getModeIdsFromFilepathOrFirstLine=function(n,h){if(!n&&!h)return[];var S=Li(n,h);return this.extractModeIds(S.join(","))},r}(Rt.a),Ws=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Br=function(a){Ws(r,a);function r(n,h){var S=a.call(this)||this;return S._onDidChange=S._register(new I.a),S.onDidChange=S._onDidChange.event,S._selector=h,S.languageIdentifier=S._selector(),S._register(n(function(){return S._evaluate()})),S}return r.prototype._evaluate=function(){var n=this._selector();if(n.id===this.languageIdentifier.id)return;this.languageIdentifier=n,this._onDidChange.fire(this.languageIdentifier)},r}(Rt.a),Bs=function(){function a(r){var n=this;r===void 0&&(r=!1),this._onDidCreateMode=new I.a,this.onDidCreateMode=this._onDidCreateMode.event,this._onLanguagesMaybeChanged=new I.a,this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event,this._instantiatedModes={},this._registry=new Fs(!0,r),this._registry.onDidChange(function(){return n._onLanguagesMaybeChanged.fire()})}return a.prototype.isRegisteredMode=function(r){return this._registry.isRegisteredMode(r)},a.prototype.getModeIdForLanguageName=function(r){return this._registry.getModeIdForLanguageNameLowercase(r)},a.prototype.getModeIdByFilepathOrFirstLine=function(r,n){var h=this._registry.getModeIdsFromFilepathOrFirstLine(r,n);return Object(lt.l)(h,null)},a.prototype.getModeId=function(r){var n=this._registry.extractModeIds(r);return Object(lt.l)(n,null)},a.prototype.getLanguageIdentifier=function(r){return this._registry.getLanguageIdentifier(r)},a.prototype.create=function(r){var n=this;return new Br(this.onLanguagesMaybeChanged,function(){var h=n.getModeId(r);return n._createModeAndGetLanguageIdentifier(h)})},a.prototype.createByFilepathOrFirstLine=function(r,n){var h=this;return new Br(this.onLanguagesMaybeChanged,function(){var S=h.getModeIdByFilepathOrFirstLine(r,n);return h._createModeAndGetLanguageIdentifier(S)})},a.prototype._createModeAndGetLanguageIdentifier=function(r){var n=this.getLanguageIdentifier(r||"plaintext")||At.a;return this._getOrCreateMode(n.language),n},a.prototype.triggerMode=function(r){var n=this.getModeId(r);this._getOrCreateMode(n||"plaintext")},a.prototype._getOrCreateMode=function(r){if(!this._instantiatedModes.hasOwnProperty(r)){var n=this.getLanguageIdentifier(r)||At.a;this._instantiatedModes[r]=new Pi(n),this._onDidCreateMode.fire(this._instantiatedModes[r])}return this._instantiatedModes[r]},a}(),Hr=e("QRHv"),vi=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Hs=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Wi=function(a,r){return function(n,h){r(n,h,a)}};function Bi(a){return a.toString()}var V=function(){function a(r,n,h){this._modelEventListeners=new Rt.b,this.model=r,this._languageSelection=null,this._languageSelectionListener=null,this._modelEventListeners.add(r.onWillDispose(function(){return n(r)})),this._modelEventListeners.add(r.onDidChangeLanguage(function(S){return h(r,S)}))}return a.prototype._disposeLanguageSelection=function(){this._languageSelectionListener&&(this._languageSelectionListener.dispose(),this._languageSelectionListener=null),this._languageSelection&&(this._languageSelection.dispose(),this._languageSelection=null)},a.prototype.dispose=function(){this._modelEventListeners.dispose(),this._disposeLanguageSelection()},a.prototype.setLanguage=function(r){var n=this;this._disposeLanguageSelection(),this._languageSelection=r,this._languageSelectionListener=this._languageSelection.onDidChange(function(){return n.model.setMode(r.languageIdentifier)}),this.model.setMode(r.languageIdentifier)},a}(),o=gt.d||gt.e?1:2,t=function(a){vi(r,a);function r(n,h,S,N){var ce=a.call(this)||this;return ce._onModelAdded=ce._register(new I.a),ce.onModelAdded=ce._onModelAdded.event,ce._onModelRemoved=ce._register(new I.a),ce.onModelRemoved=ce._onModelRemoved.event,ce._onModelModeChanged=ce._register(new I.a),ce.onModelModeChanged=ce._onModelModeChanged.event,ce._configurationService=n,ce._resourcePropertiesService=h,ce._models={},ce._modelCreationOptionsByLanguageAndResource=Object.create(null),ce._configurationServiceSubscription=ce._configurationService.onDidChangeConfiguration(function(Be){return ce._updateModelOptions()}),ce._updateModelOptions(),ce._register(new i(ce,S,n,N)),ce}return r._readModelOptions=function(n,h){var S=T.c.tabSize;if(n.editor&&typeof n.editor.tabSize!="undefined"){var N=parseInt(n.editor.tabSize,10);isNaN(N)||(S=N),S<1&&(S=1)}var ce=S;if(n.editor&&typeof n.editor.indentSize!="undefined"&&n.editor.indentSize!=="tabSize"){var Be=parseInt(n.editor.indentSize,10);isNaN(Be)||(ce=Be),ce<1&&(ce=1)}var Ge=T.c.insertSpaces;n.editor&&typeof n.editor.insertSpaces!="undefined"&&(Ge=n.editor.insertSpaces==="false"?!1:Boolean(n.editor.insertSpaces));var Ye=o,_t=n.eol;_t===`\r +`?Ye=2:_t===` +`&&(Ye=1);var Ot=T.c.trimAutoWhitespace;n.editor&&typeof n.editor.trimAutoWhitespace!="undefined"&&(Ot=n.editor.trimAutoWhitespace==="false"?!1:Boolean(n.editor.trimAutoWhitespace));var Ft=T.c.detectIndentation;n.editor&&typeof n.editor.detectIndentation!="undefined"&&(Ft=n.editor.detectIndentation==="false"?!1:Boolean(n.editor.detectIndentation));var jt=T.c.largeFileOptimizations;return n.editor&&typeof n.editor.largeFileOptimizations!="undefined"&&(jt=n.editor.largeFileOptimizations==="false"?!1:Boolean(n.editor.largeFileOptimizations)),{isForSimpleWidget:h,tabSize:S,indentSize:ce,insertSpaces:Ge,detectIndentation:Ft,defaultEOL:Ye,trimAutoWhitespace:Ot,largeFileOptimizations:jt}},r.prototype.getCreationOptions=function(n,h,S){var N=this._modelCreationOptionsByLanguageAndResource[n+h];if(!N){var ce=this._configurationService.getValue("editor",{overrideIdentifier:n,resource:h}),Be=this._resourcePropertiesService.getEOL(h,n);N=r._readModelOptions({editor:ce,eol:Be},S),this._modelCreationOptionsByLanguageAndResource[n+h]=N}return N},r.prototype._updateModelOptions=function(){var n=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);for(var h=Object.keys(this._models),S=0,N=h.length;S=this._growCount){var S=this._elements;this._currentLengthIndex++,this._currentLength=a._SIZES[this._currentLengthIndex],this._growCount=Math.round(this._currentLengthIndex+10&&Ge>1;var Ye=this._themeService.getTheme().getTokenStyleMetadata(N,ce);if(typeof Ye=="undefined")S=2147483647;else{if(S=0,typeof Ye.italic!="undefined"){var _t=(Ye.italic?1:0)<<11;S|=_t|1}if(typeof Ye.bold!="undefined"){var Ot=(Ye.bold?2:0)<<11;S|=Ot|2}if(typeof Ye.underline!="undefined"){var Ft=(Ye.underline?4:0)<<11;S|=Ft|4}if(Ye.foreground){var jt=Ye.foreground<<14;S|=jt|8}S===0&&(S=2147483647)}this._hashTable.add(r,n,S)}if(this._logService.getLevel()===dt.b.Trace){var ro=this._legend.tokenTypes[r],to=n?" "+this._legend.tokenModifiers.filter(function(Yt,Qt){return n&1<0&&(n._fetchSemanticTokens.isScheduled()||n._fetchSemanticTokens.schedule())})},r._isSemanticTokens=function(n){return n&&!!n.data},r._isSemanticTokensEdits=function(n){return n&&Array.isArray(n.edits)},r._copy=function(n,h,S,N,ce){for(var Be=0;Be=0;to--){var _t=h.edits[to],Yt=jt-(_t.start+_t.deleteCount);Yt>0&&(r._copy(Ot,jt-Yt,Ft,ro-Yt,Yt),ro-=Yt),_t.data&&(r._copy(_t.data,0,Ft,ro-_t.data.length,_t.data.length),ro-=_t.data.length),jt=_t.start}jt>0&&r._copy(Ot,0,Ft,0,jt),h={resultId:h.resultId,data:Ft}}}if(r._isSemanticTokens(h)){this._currentResponse=new Le(n,h.resultId,h.data);for(var Ot=h.data,Qt=h.data.length/5|0,ho=Math.max(Math.ceil(Qt/1024),400),So=[],To=0,Io=1,ko=0;ToKo&&Ot[5*wn]===0;)wn--;if(wn-1===Ko){for(var qo=ln;qo+10){for(var qs=0,Ra=N;qs0?n[0]:null},r}(Rt.a),ct=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),wt=function(a){ct(r,a);function r(){var n=a.call(this)||this;return n._onCodeEditorAdd=n._register(new I.a),n.onCodeEditorAdd=n._onCodeEditorAdd.event,n._onCodeEditorRemove=n._register(new I.a),n.onCodeEditorRemove=n._onCodeEditorRemove.event,n._onDiffEditorAdd=n._register(new I.a),n._onDiffEditorRemove=n._register(new I.a),n._codeEditors=Object.create(null),n._diffEditors=Object.create(null),n}return r.prototype.addCodeEditor=function(n){this._codeEditors[n.getId()]=n,this._onCodeEditorAdd.fire(n)},r.prototype.removeCodeEditor=function(n){delete this._codeEditors[n.getId()]&&this._onCodeEditorRemove.fire(n)},r.prototype.listCodeEditors=function(){var n=this;return Object.keys(this._codeEditors).map(function(h){return n._codeEditors[h]})},r.prototype.addDiffEditor=function(n){this._diffEditors[n.getId()]=n,this._onDiffEditorAdd.fire(n)},r.prototype.removeDiffEditor=function(n){delete this._diffEditors[n.getId()]&&this._onDiffEditorRemove.fire(n)},r.prototype.listDiffEditors=function(){var n=this;return Object.keys(this._diffEditors).map(function(h){return n._diffEditors[h]})},r.prototype.getFocusedCodeEditor=function(){for(var n=null,h=this.listCodeEditors(),S=0,N=h;S=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},kt=function(a,r){return function(n,h){r(n,h,a)}},Vt=function(){function a(r,n,h){this._parent=r,this._editorId=n,this.styleSheet=h,this._refCount=0}return a.prototype.ref=function(){this._refCount++},a.prototype.unref=function(){var r;this._refCount--,this._refCount===0&&((r=this.styleSheet.parentNode)===null||r===void 0||r.removeChild(this.styleSheet),this._parent._removeEditorStyleSheets(this._editorId))},a}(),qt=function(){function a(r){this.styleSheet=r}return a.prototype.ref=function(){},a.prototype.unref=function(){},a}(),$t=function(a){et(r,a);function r(n,h){h===void 0&&(h=null);var S=a.call(this)||this;return S._decorationOptionProviders=new Map,S._editorStyleSheets=new Map,S._globalStyleSheet=h?new qt(h):null,S._themeService=n,S}return r.prototype._getOrCreateGlobalStyleSheet=function(){return this._globalStyleSheet||(this._globalStyleSheet=new qt(ge.w())),this._globalStyleSheet},r.prototype._getOrCreateStyleSheet=function(n){if(!n)return this._getOrCreateGlobalStyleSheet();var h=n.getContainerDomNode();if(!ge.N(h))return this._getOrCreateGlobalStyleSheet();var S=n.getId();if(!this._editorStyleSheets.has(S)){var N=new Vt(this,S,ge.w(h));this._editorStyleSheets.set(S,N)}return this._editorStyleSheets.get(S)},r.prototype._removeEditorStyleSheets=function(n){this._editorStyleSheets.delete(n)},r.prototype.registerDecorationType=function(n,h,S,N){var ce=this._decorationOptionProviders.get(n);if(!ce){var Be=this._getOrCreateStyleSheet(N),Ge={styleSheet:Be.styleSheet,key:n,parentTypeKey:S,options:h||Object.create(null)};S?ce=new io(this._themeService,Be,Ge):ce=new yo(this._themeService,Be,Ge),this._decorationOptionProviders.set(n,ce)}ce.refCount++},r.prototype.removeDecorationType=function(n){var h=this._decorationOptionProviders.get(n);h&&(h.refCount--,h.refCount<=0&&(this._decorationOptionProviders.delete(n),h.dispose(),this.listCodeEditors().forEach(function(S){return S.removeDecorations(n)})))},r.prototype.resolveDecorationOptions=function(n,h){var S=this._decorationOptionProviders.get(n);if(!S)throw new Error("Unknown decoration type key: "+n);return S.getOptions(this,h)},r=Wt([kt(0,Mn.c)],r),r}(wt),io=function(){function a(r,n,h){this._styleSheet=n,this._styleSheet.ref(),this._parentTypeKey=h.parentTypeKey,this.refCount=0,this._beforeContentRules=new bo(3,h,r),this._afterContentRules=new bo(4,h,r)}return a.prototype.getOptions=function(r,n){var h=r.resolveDecorationOptions(this._parentTypeKey,!0);return this._beforeContentRules&&(h.beforeContentClassName=this._beforeContentRules.className),this._afterContentRules&&(h.afterContentClassName=this._afterContentRules.className),h},a.prototype.dispose=function(){this._beforeContentRules&&(this._beforeContentRules.dispose(),this._beforeContentRules=null),this._afterContentRules&&(this._afterContentRules.dispose(),this._afterContentRules=null),this._styleSheet.unref()},a}(),yo=function(){function a(r,n,h){var S=this;this._disposables=new Rt.b,this._styleSheet=n,this._styleSheet.ref(),this.refCount=0;var N=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?jt.className:void 0},ce=function(Ft){var jt=new bo(Ft,h,r);return S._disposables.add(jt),jt.hasContent?{className:jt.className,hasLetterSpacing:jt.hasLetterSpacing}:null};this.className=N(0);var Be=ce(1);Be&&(this.inlineClassName=Be.className,this.inlineClassNameAffectsLetterSpacing=Be.hasLetterSpacing),this.beforeContentClassName=N(3),this.afterContentClassName=N(4),this.glyphMarginClassName=N(2);var Ge=h.options;this.isWholeLine=Boolean(Ge.isWholeLine),this.stickiness=Ge.rangeBehavior;var Ye=Ge.light&&Ge.light.overviewRulerColor||Ge.overviewRulerColor,_t=Ge.dark&&Ge.dark.overviewRulerColor||Ge.overviewRulerColor;(typeof Ye!="undefined"||typeof _t!="undefined")&&(this.overviewRuler={color:Ye||_t,darkColor:_t||Ye,position:Ge.overviewRulerLane||ft.d.Center})}return a.prototype.getOptions=function(r,n){return n?{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}:this},a.prototype.dispose=function(){this._disposables.dispose(),this._styleSheet.unref()},a}(),mo={color:"color:{0} !important;",opacity:"opacity:{0};",backgroundColor:"background-color:{0};",outline:"outline:{0};",outlineColor:"outline-color:{0};",outlineStyle:"outline-style:{0};",outlineWidth:"outline-width:{0};",border:"border:{0};",borderColor:"border-color:{0};",borderRadius:"border-radius:{0};",borderSpacing:"border-spacing:{0};",borderStyle:"border-style:{0};",borderWidth:"border-width:{0};",fontStyle:"font-style:{0};",fontWeight:"font-weight:{0};",textDecoration:"text-decoration:{0};",cursor:"cursor:{0};",letterSpacing:"letter-spacing:{0};",gutterIconPath:"background:{0} center center no-repeat;",gutterIconSize:"background-size:{0};",contentText:"content:'{0}';",contentIconPath:"content:{0};",margin:"margin:{0};",width:"width:{0};",height:"height:{0};"},bo=function(){function a(r,n,h){var S=this;this._theme=h.getTheme(),this._ruleType=r,this._providerArgs=n,this._usesThemeColors=!1,this._hasContent=!1,this._hasLetterSpacing=!1;var N=go.getClassName(this._providerArgs.key,r);this._providerArgs.parentTypeKey&&(N=N+" "+go.getClassName(this._providerArgs.parentTypeKey,r)),this._className=N,this._unThemedSelector=go.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,r),this._buildCSS(),this._usesThemeColors?this._themeListener=h.onThemeChange(function(ce){S._theme=h.getTheme(),S._removeCSS(),S._buildCSS()}):this._themeListener=null}return a.prototype.dispose=function(){this._hasContent&&(this._removeCSS(),this._hasContent=!1),this._themeListener&&(this._themeListener.dispose(),this._themeListener=null)},Object.defineProperty(a.prototype,"hasContent",{get:function(){return this._hasContent},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hasLetterSpacing",{get:function(){return this._hasLetterSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"className",{get:function(){return this._className},enumerable:!0,configurable:!0}),a.prototype._buildCSS=function(){var r=this._providerArgs.options,n,h,S;switch(this._ruleType){case 0:n=this.getCSSTextForModelDecorationClassName(r),h=this.getCSSTextForModelDecorationClassName(r.light),S=this.getCSSTextForModelDecorationClassName(r.dark);break;case 1:n=this.getCSSTextForModelDecorationInlineClassName(r),h=this.getCSSTextForModelDecorationInlineClassName(r.light),S=this.getCSSTextForModelDecorationInlineClassName(r.dark);break;case 2:n=this.getCSSTextForModelDecorationGlyphMarginClassName(r),h=this.getCSSTextForModelDecorationGlyphMarginClassName(r.light),S=this.getCSSTextForModelDecorationGlyphMarginClassName(r.dark);break;case 3:n=this.getCSSTextForModelDecorationContentClassName(r.before),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.before),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.before);break;case 4:n=this.getCSSTextForModelDecorationContentClassName(r.after),h=this.getCSSTextForModelDecorationContentClassName(r.light&&r.light.after),S=this.getCSSTextForModelDecorationContentClassName(r.dark&&r.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var N=this._providerArgs.styleSheet.sheet,ce=!1;n.length>0&&(N.insertRule(this._unThemedSelector+" {"+n+"}",0),ce=!0),h.length>0&&(N.insertRule(".vs"+this._unThemedSelector+" {"+h+"}",0),ce=!0),S.length>0&&(N.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+S+"}",0),ce=!0),this._hasContent=ce},a.prototype._removeCSS=function(){ge.O(this._unThemedSelector,this._providerArgs.styleSheet)},a.prototype.getCSSTextForModelDecorationClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["backgroundColor"],n),this.collectCSSText(r,["outline","outlineColor","outlineStyle","outlineWidth"],n),this.collectBorderSettingsCSSText(r,n),n.join("")},a.prototype.getCSSTextForModelDecorationInlineClassName=function(r){if(!r)return"";var n=[];return this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],n),r.letterSpacing&&(this._hasLetterSpacing=!0),n.join("")},a.prototype.getCSSTextForModelDecorationContentClassName=function(r){if(!r)return"";var n=[];if(typeof r!="undefined"){if(this.collectBorderSettingsCSSText(r,n),typeof r.contentIconPath!="undefined"&&n.push(eo.r(mo.contentIconPath,ge.r(z.a.revive(r.contentIconPath)))),typeof r.contentText=="string"){var h=r.contentText.match(/^.*$/m)[0],S=h.replace(/['\\]/g,"\\$&");n.push(eo.r(mo.contentText,S))}this.collectCSSText(r,["fontStyle","fontWeight","textDecoration","color","opacity","backgroundColor","margin"],n),this.collectCSSText(r,["width","height"],n)&&n.push("display:inline-block;")}return n.join("")},a.prototype.getCSSTextForModelDecorationGlyphMarginClassName=function(r){if(!r)return"";var n=[];return typeof r.gutterIconPath!="undefined"&&(n.push(eo.r(mo.gutterIconPath,ge.r(z.a.revive(r.gutterIconPath)))),typeof r.gutterIconSize!="undefined"&&n.push(eo.r(mo.gutterIconSize,r.gutterIconSize))),n.join("")},a.prototype.collectBorderSettingsCSSText=function(r,n){return this.collectCSSText(r,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],n)?(n.push(eo.r("box-sizing: border-box;")),!0):!1},a.prototype.collectCSSText=function(r,n,h){for(var S=h.length,N=0,ce=n;N=1&&a[0].token==="";){var N=a.shift();N.fontStyle!==-1&&(n=N.fontStyle),N.foreground!==null&&(h=N.foreground),N.background!==null&&(S=N.background)}for(var ce=new cn,Be=0,Ge=r;Be>>0,this._cache.set(n,h)}return(h|r<<0)>>>0},a}(),hn=/\b(comment|string|regex|regexp)\b/;function Wn(a){var r=a.match(hn);if(!r)return 0;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 4;case"regexp":return 4}throw new Error("Unexpected match for standard token type!")}function Fn(a,r){return ar?1:0}var Hi=function(){function a(r,n,h){this._fontStyle=r,this._foreground=n,this._background=h,this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}return a.prototype.clone=function(){return new a(this._fontStyle,this._foreground,this._background)},a.prototype.acceptOverwrite=function(r,n,h){r!==-1&&(this._fontStyle=r),n!==0&&(this._foreground=n),h!==0&&(this._background=h),this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0},a}(),fr=function(){function a(r){this._mainRule=r,this._children=new Map}return a.prototype.match=function(r){if(r==="")return this._mainRule;var n=r.indexOf("."),h,S;n===-1?(h=r,S=""):(h=r.substring(0,n),S=r.substring(n+1));var N=this._children.get(h);return typeof N!="undefined"?N.match(S):this._mainRule},a.prototype.insert=function(r,n,h,S){if(r===""){this._mainRule.acceptOverwrite(n,h,S);return}var N=r.indexOf("."),ce,Be;N===-1?(ce=r,Be=""):(ce=r.substring(0,N),Be=r.substring(N+1));var Ge=this._children.get(ce);typeof Ge=="undefined"&&(Ge=new a(this._mainRule.clone()),this._children.set(ce,Ge)),Ge.insert(Be,n,h,S)},a}();function Ur(a){for(var r=[],n=1,h=a.length;n0?(this.id=h+" "+r,this.themeName=r):(this.id=h,this.themeName=h),this.colors=null,this.defaultColors=Object.create(null),this._tokenTheme=null}return Object.defineProperty(a.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0}),a.prototype.notifyBaseUpdated=function(){this.themeData.inherit&&(this.colors=null,this._tokenTheme=null)},a.prototype.getColors=function(){if(!this.colors){var r=new Map;for(var n in this.themeData.colors)r.set(n,Fo.a.fromHex(this.themeData.colors[n]));if(this.themeData.inherit){var h=Vs(this.themeData.base);for(var n in h.colors)r.has(n)||r.set(n,Fo.a.fromHex(h.colors[n]))}this.colors=r}return this.colors},a.prototype.getColor=function(r,n){var h=this.getColors().get(r);return h||(n!==!1?this.getDefault(r):void 0)},a.prototype.getDefault=function(r){var n=this.defaultColors[r];return n||(n=Ba.resolveDefaultColor(r,this),this.defaultColors[r]=n,n)},a.prototype.defines=function(r){return Object.prototype.hasOwnProperty.call(this.getColors(),r)},Object.defineProperty(a.prototype,"type",{get:function(){switch(this.base){case Mi:return"light";case mr:return"hc";default:return"dark"}},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var n=[],h=[];if(this.themeData.inherit){var S=Vs(this.themeData.base);n=S.rules,S.encodedTokensColors&&(h=S.encodedTokensColors)}n=n.concat(this.themeData.rules),this.themeData.encodedTokensColors&&(h=this.themeData.encodedTokensColors),this._tokenTheme=Nn.createFromRawTokenTheme(n,h)}return this._tokenTheme},enumerable:!0,configurable:!0}),a.prototype.getTokenStyleMetadata=function(r,n){return},a}();function Us(a){return a===Mi||a===Vr||a===mr}function Vs(a){switch(a){case Mi:return Pa;case Vr:return ka;case mr:return Fa}}function zs(a){var r=Vs(a);return new la(a,r)}var Ua=function(a){Wa(r,a);function r(){var n=a.call(this)||this;return n._onThemeChange=n._register(new I.a),n.onThemeChange=n._onThemeChange.event,n._environment=Object.create(null),n._knownThemes=new Map,n._knownThemes.set(Mi,zs(Mi)),n._knownThemes.set(Vr,zs(Vr)),n._knownThemes.set(mr,zs(mr)),n._css="",n._globalStyleElement=null,n._styleElements=[],n.setTheme(Mi),n}return r.prototype.registerEditorContainer=function(n){return ge.N(n)?this._registerShadowDomContainer(n):this._registerRegularEditorContainer()},r.prototype._registerRegularEditorContainer=function(){return this._globalStyleElement||(this._globalStyleElement=ge.w(),this._globalStyleElement.className="monaco-colors",this._globalStyleElement.innerHTML=this._css,this._styleElements.push(this._globalStyleElement)),Rt.a.None},r.prototype._registerShadowDomContainer=function(n){var h=this,S=ge.w(n);return S.className="monaco-colors",S.innerHTML=this._css,this._styleElements.push(S),{dispose:function(){for(var ce=0;ce=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},za=function(a,r){return function(n,h){r(n,h,a)}},Kr="data-keybinding-context",Ks=function(){function a(r,n){this._id=r,this._parent=n,this._value=Object.create(null),this._value._contextId=r}return a.prototype.setValue=function(r,n){return this._value[r]!==n?(this._value[r]=n,!0):!1},a.prototype.removeValue=function(r){return r in this._value?(delete this._value[r],!0):!1},a.prototype.getValue=function(r){var n=this._value[r];return typeof n=="undefined"&&this._parent?this._parent.getValue(r):n},a}(),Gr=function(a){zr(r,a);function r(){return a.call(this,-1,null)||this}return r.prototype.setValue=function(n,h){return!1},r.prototype.removeValue=function(n){return!1},r.prototype.getValue=function(n){return},r.INSTANCE=new r,r}(Ks),Ka=function(a){zr(r,a);function r(n,h,S){var N=a.call(this,n,null)||this;return N._configurationService=h,N._values=new Map,N._listener=N._configurationService.onDidChangeConfiguration(function(ce){if(ce.source===6){var Be=Object($n.d)(N._values);N._values.clear(),S.fire(new ca(Be))}else{for(var Ge=[],Ye=0,_t=ce.affectedKeys;Ye<_t.length;Ye++){var Ot=_t[Ye],Ft="config."+Ot;N._values.has(Ft)&&(N._values.delete(Ft),Ge.push(Ft))}S.fire(new ca(Ge))}}),N}return r.prototype.dispose=function(){this._listener.dispose()},r.prototype.getValue=function(n){if(n.indexOf(r._keyPrefix)!==0)return a.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var h=n.substr(r._keyPrefix.length),S=this._configurationService.getValue(h),N=void 0;switch(typeof S){case"number":case"boolean":case"string":N=S;break}return this._values.set(n,N),N},r.prototype.setValue=function(n,h){return a.prototype.setValue.call(this,n,h)},r.prototype.removeValue=function(n){return a.prototype.removeValue.call(this,n)},r._keyPrefix="config.",r}(Ks),Ga=function(){function a(r,n,h){this._service=r,this._key=n,this._defaultValue=h,this.reset()}return a.prototype.set=function(r){this._service.setContext(this._key,r)},a.prototype.reset=function(){typeof this._defaultValue=="undefined"?this._service.removeContext(this._key):this._service.setContext(this._key,this._defaultValue)},a.prototype.get=function(){return this._service.getContextKeyValue(this._key)},a}(),da=function(){function a(r){this.key=r}return a.prototype.affectsSome=function(r){return r.has(this.key)},a}(),ca=function(){function a(r){this.keys=r}return a.prototype.affectsSome=function(r){for(var n=0,h=this.keys;n=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},pr=function(a,r){return function(n,h){r(n,h,a)}},nl=function(a){tl(r,a);function r(n,h,S,N,ce){var Be=a.call(this)||this;return Be._onDidContextMenu=Be._register(new I.a),Be.contextMenuHandler=new el(S,n,h,N,ce),Be}return r.prototype.configure=function(n){this.contextMenuHandler.configure(n)},r.prototype.showContextMenu=function(n){this.contextMenuHandler.showContextMenu(n),this._onDidContextMenu.fire()},r=ol([pr(0,Gs.a),pr(1,Un.a),pr(2,Xn.b),pr(3,ii.a),pr(4,Mn.c)],r),r}(Rt.a),nc=e("TT2d"),il=e("nuFA"),rl=e("CjF5"),sl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}();function fa(a,r,n){var h=n.offset+n.size;return n.position===0?r<=a-h?h:r<=n.offset?n.offset-r:Math.max(a-r,0):r<=n.offset?n.offset-r:r<=a-h?h:0}var al=function(a){sl(r,a);function r(n){var h=a.call(this)||this;return h.container=null,h.delegate=null,h.toDisposeOnClean=Rt.a.None,h.toDisposeOnSetContainer=Rt.a.None,h.view=ge.a(".context-view"),ge.J(h.view),h.setContainer(n),h._register(Object(Rt.h)(function(){return h.setContainer(null)})),h}return r.prototype.setContainer=function(n){var h=this;if(this.container&&(this.toDisposeOnSetContainer.dispose(),this.container.removeChild(this.view),this.container=null),n){this.container=n,this.container.appendChild(this.view);var S=new Rt.b;r.BUBBLE_UP_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!1)}))}),r.BUBBLE_DOWN_EVENTS.forEach(function(N){S.add(ge.o(h.container,N,function(ce){h.onDOMEvent(ce,!0)},!0))}),this.toDisposeOnSetContainer=S}},r.prototype.show=function(n){this.isVisible()&&this.hide(),ge.t(this.view),this.view.className="context-view",this.view.style.top="0px",this.view.style.left="0px",ge.X(this.view),this.toDisposeOnClean=n.render(this.view)||Rt.a.None,this.delegate=n,this.doLayout(),this.delegate.focus&&this.delegate.focus()},r.prototype.layout=function(){if(!this.isVisible())return;if(this.delegate.canRelayout===!1&&!(gt.c&&rl.a.pointerEvents)){this.hide();return}this.delegate.layout&&this.delegate.layout(),this.doLayout()},r.prototype.doLayout=function(){if(!this.isVisible())return;var n=this.delegate.getAnchor(),h;if(ge.L(n)){var S=ge.C(n);h={top:S.top,left:S.left,width:S.width,height:S.height}}else h={top:n.y,left:n.x,width:n.width||1,height:n.height||2};var N=ge.H(this.view),ce=ge.G(this.view),Be=this.delegate.anchorPosition||0,Ge=this.delegate.anchorAlignment||0,Ye={offset:h.top-window.pageYOffset,size:h.height,position:Be===0?0:1},_t;Ge===0?_t={offset:h.left,size:0,position:0}:_t={offset:h.left+h.width,size:0,position:1};var Ot=fa(window.innerHeight,ce,Ye)+window.pageYOffset;il.a.intersects({start:Ot,end:Ot+ce},{start:Ye.offset,end:Ye.offset+Ye.size})&&(_t.size=h.width,Ge===1&&(_t.offset=h.left));var Ft=fa(window.innerWidth,N,_t);ge.Q(this.view,"top","bottom","left","right"),ge.f(this.view,Be===0?"bottom":"top"),ge.f(this.view,Ge===0?"left":"right");var jt=ge.C(this.container);this.view.style.top=Ot-jt.top+"px",this.view.style.left=Ft-jt.left+"px",this.view.style.width="initial"},r.prototype.hide=function(n){var h=this.delegate;this.delegate=null,(h==null?void 0:h.onHide)&&h.onHide(n),this.toDisposeOnClean.dispose(),ge.J(this.view)},r.prototype.isVisible=function(){return!!this.delegate},r.prototype.onDOMEvent=function(n,h){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(n,document.activeElement):h&&!ge.K(n.target,this.container)&&this.hide())},r.prototype.dispose=function(){this.hide(),a.prototype.dispose.call(this)},r.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"],r.BUBBLE_DOWN_EVENTS=["click"],r}(Rt.a),ma=Object(In.c)("layoutService"),ll=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},cl=function(a,r){return function(n,h){r(n,h,a)}},ul=function(a){ll(r,a);function r(n){var h=a.call(this)||this;return h.layoutService=n,h.contextView=h._register(new al(n.container)),h.layout(),h._register(n.onLayout(function(){return h.layout()})),h}return r.prototype.setContainer=function(n){this.contextView.setContainer(n)},r.prototype.showContextView=function(n){this.contextView.show(n)},r.prototype.layout=function(){this.contextView.layout()},r.prototype.hideContextView=function(n){this.contextView.hide(n)},r=dl([cl(0,ma)],r),r}(Rt.a),hl=Object(In.c)("dialogService"),Xs=e("vl9R");function fl(a){return{data:a,incoming:Object.create(null),outgoing:Object.create(null)}}var ml=function(){function a(r){this._hashFn=r,this._nodes=Object.create(null)}return a.prototype.roots=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){Object(bt.f)(n.value.outgoing)&&r.push(n.value)}),r},a.prototype.insertEdge=function(r,n){var h=this.lookupOrInsertNode(r),S=this.lookupOrInsertNode(n);h.outgoing[this._hashFn(n)]=S,S.incoming[this._hashFn(r)]=h},a.prototype.removeNode=function(r){var n=this._hashFn(r);delete this._nodes[n],Object(Xs.c)(this._nodes,function(h){delete h.value.outgoing[n],delete h.value.incoming[n]})},a.prototype.lookupOrInsertNode=function(r){var n=this._hashFn(r),h=this._nodes[n];return h||(h=fl(r),this._nodes[n]=h),h},a.prototype.isEmpty=function(){for(var r in this._nodes)return!1;return!0},a.prototype.toString=function(){var r=[];return Object(Xs.c)(this._nodes,function(n){r.push(n.key+", (incoming)["+Object.keys(n.value.incoming).join(", ")+"], (outgoing)["+Object.keys(n.value.outgoing).join(",")+"]")}),r.join(` +`)},a}(),gr=e("r0BQ"),pa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Ys=function(){for(var a=0,r=0,n=arguments.length;r0?S[0].index:n.length;if(n.length!==_t){console.warn("[createInstance] First service dependency of "+r.name+" at position "+(_t+1)+" conflicts with "+n.length+" static arguments");var Ot=_t-n.length;Ot>0?n=n.concat(new Array(Ot)):n=n.slice(0,_t)}return new(r.bind.apply(r,Ys([void 0],Ys(n,N))))},a.prototype._setServiceInstance=function(r,n){if(this._services.get(r)instanceof gr.a)this._services.set(r,n);else if(this._parent)this._parent._setServiceInstance(r,n);else throw new Error("illegalState - setting UNKNOWN service instance")},a.prototype._getServiceInstanceOrDescriptor=function(r){var n=this._services.get(r);return!n&&this._parent?this._parent._getServiceInstanceOrDescriptor(r):n},a.prototype._getOrCreateServiceInstance=function(r,n){var h=this._getServiceInstanceOrDescriptor(r);return h instanceof gr.a?this._createAndCacheServiceInstance(r,h,n.branch(r,!0)):(n.branch(r,!1),h)},a.prototype._createAndCacheServiceInstance=function(r,n,h){for(var S=new ml(function(ho){return ho.id.toString()}),N=0,ce=[{id:r,desc:n,_trace:h}];ce.length;){var Be=ce.pop();if(S.lookupOrInsertNode(Be),N++>150)throw new va(S);for(var Ge=0,Ye=In.b.getServiceDependencies(Be.desc.ctor);Ge "+Ft);var to=h(N+1,ro);to&&Be.push(to)}else Be.push(Ge+"uses -> "+Ft)}return Be.join(` `)}var S=[(this.type===0?"CREATE":"CALL")+" "+this.name,""+h(1,this),"DONE, took "+r.toFixed(2)+"ms (grand total "+a._totals.toFixed(2)+"ms)"];(r>2||n)&&console.log(S.join(` -`))},a._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(a)),a._totals=0,a}(),gl=e("R8sh"),ba=e("k9mg"),ti=e("tADe"),Di;(function(a){function r(S,N,ce){return S[N]?S[N][ce]:void 0}a.get=r;function n(S,N,ce,Be){S[N]||(S[N]=Object.create(null)),S[N][ce]=Be}a.set=n;function h(S,N,ce){return S[N]&&S[N][ce]?(delete S[N][ce],Object(bt.f)(S[N])&&delete S[N],!0):!1}a.remove=h})(Di||(Di={}));var vl=function(){function a(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return a.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},a.prototype._update=function(r){if(!this._data)return;for(var n=0,h=r;n0?Ge:1,Ye=Ye>0?Ye:1,wt=wt>=Ge?wt:Ge,Ot=Ot>0?Ot:Ye,{resource:n,owner:r,code:S,severity:N,message:ce,source:Be,startLineNumber:Ge,startColumn:Ye,endLineNumber:wt,endColumn:Ot,relatedInformation:Ft,tags:jt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,h=r.resource,S=r.severities,N=r.take;if((!N||N<0)&&(N=-1),n&&h){var ce=Di.get(this._byResource,h.toString(),n);if(ce){for(var Be=[],Ge=0,Ye=ce;Ge0&&Ot===N)break}}return Be}else return[]}else if(!n&&!h){var Be=[];for(var Ft in this._byResource)for(var jt in this._byResource[Ft])for(var ro=0,to=this._byResource[Ft][jt];ro0&&Ot===N)return Be}}return Be}else{var Yt=n?this._byOwner[n]:h?this._byResource[h.toString()]:void 0;if(!Yt)return[];var Be=[];for(var Qt in Yt)for(var ho=0,So=Yt[Qt];ho0&&Ot===N)return Be}}return Be}},a._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},a._debouncer=function(r,n){r||(a._dedupeMap=Object.create(null),r=[]);for(var h=0,S=n;h=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Qs=function(a,r){return function(n,h){r(n,h,a)}},bl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},a=Ea([Qs(0,Q.b)],a),a}(),Cl=function(){function a(r,n,h){var S=this;this._id=r,this._commandService=n,this._contextKeyService=h,this._onDidChange=new I.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(I.b.debounce(I.b.filter(Kn.c.onDidChangeMenu,function(N){return N===S._id}),function(){},50)(this._build,this)),this._dispoables.add(I.b.debounce(this._contextKeyService.onDidChangeContext,function(N,ce){return N||ce.affectsSome(S._contextKeys)},50)(function(N){return N&&S._onDidChange.fire(void 0)},this))}return a.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},a.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(a._compareMenuItems);for(var h=0,S=r;h0&&n.push([ce,Ge])}return n},a._fillInKbExprKeys=function(r,n){if(r)for(var h=0,S=r.keys();hBe?1:a._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},a._compareTitles=function(r,n){var h=typeof r=="string"?r:r.value,S=typeof n=="string"?n:n.value;return h.localeCompare(S)},a=Ea([Qs(1,Q.b),Qs(2,Sn.c)],a),a}(),El=e("79sc"),_a=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),_l=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},wa=function(a,r){return function(n,h){r(n,h,a)}};function vr(a){return a.toString()}var wl=function(a){_a(r,a);function r(n){var h=a.call(this)||this;return h.model=n,h._markersData=new Map,h._register(Object(Rt.h)(function(){h.model.deltaDecorations(Object($n.d)(h._markersData),[]),h._markersData.clear()})),h}return r.prototype.update=function(n,h){var S=Object($n.d)(this._markersData);this._markersData.clear();for(var N=this.model.deltaDecorations(S,h),ce=0;ce=ce?S=new U.a(S.startLineNumber,ce-1,S.endLineNumber,ce):S=new U.a(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+1))}}else if(h.endColumn===Number.MAX_VALUE&&h.startColumn===1&&S.startLineNumber===S.endLineNumber){var Be=n.getLineFirstNonWhitespaceColumn(h.startLineNumber);Be=0:!1},r=_l([wa(0,xe.a),wa(1,ti.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Sa=function(a,r){return function(n,h){r(n,h,a)}},Ol=function(a){Ml(r,a);function r(n,h){var S=a.call(this)||this;S._contextKeyService=n,S._configurationService=h,S._accessibilitySupport=0,S._onDidChangeScreenReaderOptimized=new I.a,S._accessibilityModeEnabledContext=mi.a.bindTo(S._contextKeyService);var N=function(){return S._accessibilityModeEnabledContext.set(S.isScreenReaderOptimized())};return S._register(S._configurationService.onDidChangeConfiguration(function(ce){ce.affectsConfiguration("editor.accessibilitySupport")&&(N(),S._onDidChangeScreenReaderOptimized.fire())})),N(),S.onDidChangeScreenReaderOptimized(function(){return N()}),S}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Dl([Sa(0,Sn.c),Sa(1,xn.a)],r),r}(Rt.a),Tl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),sn;(function(a){var r=new _i.a,n=function(){function Be(Ge,Ye){this._serviceId=Ge,this._factory=Ye,this._value=null}return Object.defineProperty(Be.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),Be.prototype.get=function(Ge){if(!this._value){if(Ge&&(this._value=Ge[this._serviceId.toString()]),this._value||(this._value=this._factory(Ge)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},Be}();a.LazyStaticService=n;var h=[];function S(Be,Ge){var Ye=new n(Be,Ge);return h.push(Ye),Ye}function N(Be){for(var Ge=new _i.a,Ye=0,wt=Object(Ll.a)();Ye=0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(h,S){var N="";if(typeof a[S]=="string")N=a[S];else if(a[S]&&a[S]instanceof RegExp)N=a[S].source;else throw a[S]===void 0?Do(a,"language definition does not contain attribute '"+S+"', used at: "+r):Do(a,"attribute reference '"+S+"' must be a string, used at: "+r);return _o(N)?"":"(?:"+N+")"});return new RegExp(r,a.ignoreCase?"i":"")}function od(a,r,n,h){if(h<0)return a;if(h=100){h=h-100;var S=n.split(".");if(S.unshift(n),h=0&&(h.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")h.bracket=1;else if(n.bracket==="@close")h.bracket=-1;else throw Do(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Do(a,"the next state must be a string value in rule: "+r);var S=n.next;if(!/^(@pop|@push|@popall)$/.test(S)&&(S[0]==="@"&&(S=S.substr(1)),S.indexOf("$")<0&&!gn(a,xo(a,S,"",[],""))))throw Do(a,"the next state '"+n.next+"' is not defined in rule: "+r);h.next=S}return typeof n.goBack=="number"&&(h.goBack=n.goBack),typeof n.switchTo=="string"&&(h.switchTo=n.switchTo),typeof n.log=="string"&&(h.log=n.log),typeof n.nextEmbedded=="string"&&(h.nextEmbedded=n.nextEmbedded,a.usesEmbedded=!0),h}else if(Array.isArray(n)){for(var N=[],ce=0,Be=n.length;ce0&&h[0]==="^",this.name=this.name+": "+h,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?h.substr(1):h)+")")},a.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=a,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Da(r.ignoreCase,!1),n.tokenPostfix=Oa(r.tokenPostfix,"."+n.languageId),n.defaultToken=Oa(r.defaultToken,"source"),n.usesEmbedded=!1;var h=r;h.languageId=a,h.ignoreCase=n.ignoreCase,h.noThrow=n.noThrow,h.usesEmbedded=n.usesEmbedded,h.stateNames=r.tokenizer,h.defaultToken=n.defaultToken;function S(Ft,jt,ro){for(var to=0,Yt=ro;to=1&&Qt.length<=3)if(So.setRegex(h,Qt[0]),Qt.length>=3)if(typeof Qt[1]=="string")So.setAction(h,{token:Qt[1],next:Qt[2]});else if(typeof Qt[1]=="object"){var To=Qt[1];To.next=Qt[2],So.setAction(h,To)}else throw Do(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Ft);else So.setAction(h,Qt[1]);else{if(!Qt.regex)throw Do(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Ft);Qt.name&&(typeof Qt.name=="string"&&(So.name=Qt.name)),Qt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Da(Qt.matchOnlyAtLineStart,!1)),So.setRegex(h,Qt.regex),So.setAction(h,Qt.action)}jt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Do(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var N in r.tokenizer)if(r.tokenizer.hasOwnProperty(N)){n.start||(n.start=N);var ce=r.tokenizer[N];n.tokenizer[N]=new Array,S("tokenizer."+N,n.tokenizer[N],ce)}if(n.usesEmbedded=h.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Do(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var Be=[],Ge=0,Ye=r.brackets;Ge0&&N[ce-1]===Ot)continue;var Ft=wt.startIndex;Ge===0?Ft=0:Ft0?(v?p=(p+1)%c:p=(p+c-1)%c,_.children[p]):(p=_.parent.groups.indexOf(_),v?(p=(p+1)%s,_.parent.groups[p].children[0]):(p=(p+s-1)%s,_.parent.groups[p].children[_.parent.groups[p].children.length-1]))},w.prototype.nearestReference=function(f,v){var _=this.references.map(function(p,c){return{idx:c,prefixLen:H.c(p.uri.toString(),f.toString()),offsetDist:Math.abs(p.range.startLineNumber-v.lineNumber)*100+Math.abs(p.range.startColumn-v.column)}}).sort(function(p,c){return p.prefixLen>c.prefixLen?-1:p.prefixLenc.offsetDist?1:0})[0];return _?this.references[_.idx]:void 0},w.prototype.referenceAt=function(f,v){for(var _=0,p=this.references;_1?L=J.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):L=J.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(d?d.getLineCount():0)?L=J.r(y.b.gotoLineLabelEmptyWithLineLimit,d?d.getLineCount():0):L=J.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,d?d.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:E,label:L}},p.prototype.getLabel=function(){return this.parseResult.label},p.prototype.getAriaLabel=function(){var c=this.editor.getPosition(),s=c?c.lineNumber:0;return J.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},p.prototype.run=function(c,s){return c===1?this.runOpen():this.runPreview()},p.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var c=this.toSelection();return this.editor.setSelection(c),this.editor.revealRangeInCenter(c,0),this.editor.focus(),!0},p.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var c=this.toSelection();return this.editor.revealRangeInCenter(c,0),this.decorator.decorateLine(c,this.editor),!1},p.prototype.toSelection=function(){return new U.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},p}(I.a),v=function(_){w(p,_);function p(){return _.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return p.prototype.run=function(c,s){var l=this;this._show(this.getController(s),{getModel:function(m){return new I.c([new f(m,s,l.getController(s))])},getAutoFocus:function(m){return{autoFocusFirstEntry:m.length>0}}})},p}(u.a);Object(z.f)(v)},ApJL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(278).then(e.bind(null,"AoeA"))}})},BEdG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\0&&I.getLanguageId(u-1)===U;)u--;return new re(I,U,u,x+1,I.getStartOffset(u),I.getEndOffset(x))}var re=function(){function I(H,z,O,U,x,u){this._actual=H,this.languageId=z,this._firstTokenIndex=O,this._lastTokenIndex=U,this.firstCharOffset=x,this._lastCharOffset=u}return I.prototype.getLineContent=function(){var H=this._actual.getLineContent();return H.substring(this.firstCharOffset,this._lastCharOffset)},I.prototype.getActualLineContentBefore=function(H){var z=this._actual.getLineContent();return z.substring(0,this.firstCharOffset+H)},I.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},I.prototype.findTokenIndexAtOffset=function(H){return this._actual.findTokenIndexAtOffset(H+this.firstCharOffset)-this._firstTokenIndex},I.prototype.getStandardTokenType=function(H){return this._actual.getStandardTokenType(H+this._firstTokenIndex)},I}();function J(I){return(I&7)!==0}},BUKB:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return e.e(325).then(e.bind(null,"xT+r"))}})},BjKj:function(Lt,j,e){},"C/vA":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re){var J=this,I=!1,H;return function(){return I||(I=!0,H=re.apply(J,arguments)),H}}},"C1Q+":function(Lt,j,e){"use strict";e.d(j,"f",function(){return Pt}),e.d(j,"e",function(){return at}),e.d(j,"b",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"d",function(){return gt}),e.d(j,"c",function(){return bt}),e.d(j,"a",function(){return Gt});var T=function(){function Nt(Et){this.executor=Et,this._didRun=!1}return Nt.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(Et){this._error=Et}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(Nt.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),Nt}(),re=e("pmY6"),J=e("N0LK"),I=e("sswD"),H=e("x/UI"),z=e("wQH0"),O=e("hJVp"),U=e("6OMU"),x=e("/cxE"),u=e("NR8r"),y=e("Cg/j"),w=e("EffR"),f=e("WqXY"),v=e("8HAY"),_=e("cGHE"),p=e("twdY"),c=e("nlbu"),s=e("Uzvx"),l=e("bexQ"),d=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),m=function(){return m=Object.assign||function(Nt){for(var Et,Je=1,$e=arguments.length;Je<$e;Je++){Et=arguments[Je];for(var ze in Et)Object.prototype.hasOwnProperty.call(Et,ze)&&(Nt[ze]=Et[ze])}return Nt},m.apply(this,arguments)},E=function(Nt,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},L=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},A=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},k=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]=0}).filter(function($e){return $e.resolvedKeybinding}).map(function($e){var ze=$e.commandArgs;return $e.command===O.d?ze={kind:c.b.SourceOrganizeImports.value}:$e.command===O.b&&(ze={kind:c.b.SourceFixAll.value}),m({resolvedKeybinding:$e.resolvedKeybinding},c.a.fromUser(ze,{kind:c.b.None,apply:"never"}))})});return function($e){if($e.kind){var ze=Et.bestKeybindingForCodeAction($e,Je.getValue());return ze==null?void 0:ze.resolvedKeybinding}return}},Nt.prototype.bestKeybindingForCodeAction=function(Et,Je){if(!Et.kind)return;var $e=new c.b(Et.kind);return Je.filter(function(ze){return ze.kind.contains($e)}).filter(function(ze){return ze.preferred?Et.isPreferred:!0}).reduceRight(function(ze,Ke){return ze?ze.kind.contains(Ke.kind)?Ke:ze:Ke},void 0)},Nt.codeActionCommands=[O.e,O.a,O.f,O.d,O.b],Nt}(),B=e("AKMP"),le=e("MI8n"),Ce=e("MNXI"),Me=e("tX9W"),Te=e("3/fG"),Fe=e("t9D7"),He=e("MD5Z"),Pe=e("pg8w"),ne=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),ee=function(Nt,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},ae=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},q;(function(Nt){Nt.Hidden={type:0};var Et=function(){function Je($e,ze,Ke,fe){this.actions=$e,this.trigger=ze,this.editorPosition=Ke,this.widgetPosition=fe,this.type=1}return Je}();Nt.Showing=Et})(q||(q={}));var ue=function(Nt){ne(Et,Nt);function Et(Je,$e,ze,Ke){var fe=Nt.call(this)||this;return fe._editor=Je,fe._quickFixActionId=$e,fe._preferredFixActionId=ze,fe._keybindingService=Ke,fe._onClick=fe._register(new le.a),fe.onClick=fe._onClick.event,fe._state=q.Hidden,fe._domNode=document.createElement("div"),fe._domNode.className="codicon codicon-lightbulb",fe._editor.addContentWidget(fe),fe._register(fe._editor.onDidChangeModelContent(function(G){var te=fe._editor.getModel();(fe.state.type!==1||!te||fe.state.editorPosition.lineNumber>=te.getLineCount())&&fe.hide()})),Pe.b.ignoreTarget(fe._domNode),fe._register(w.n(fe._domNode,function(G){if(fe.state.type!==1)return;fe._editor.focus(),G.preventDefault();var te=w.C(fe._domNode),Y=te.top,de=te.height,ke=fe._editor.getOption(49),lt=Math.floor(ke/3);fe.state.widgetPosition.position!==null&&fe.state.widgetPosition.position.lineNumber22,eo=function(Eo){return Eo>2&&Ke._editor.getTopForLineNumber(Eo)===Ke._editor.getTopForLineNumber(Eo-1)},po=G;if(!Jt){if(G>1&&!eo(G-1))po-=1;else if(!eo(G+1))po+=1;else if(te*ke.spaceWidth<22)return this.hide()}this.state=new q.Showing(Je,$e,ze,{position:{lineNumber:po,column:1},preference:Et._posPref}),w.Y(this._domNode,"codicon-lightbulb-autofix",Je.hasAutoFix),this._editor.layoutContentWidget(this)},Et.prototype.hide=function(){this.state=q.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Et.prototype,"state",{get:function(){return this._state},set:function($e){this._state=$e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Et.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var Je=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(Je){this.title=Te.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",Je.getLabel());return}}var $e=this._keybindingService.lookupKeybinding(this._quickFixActionId);$e?this.title=Te.a("quickFixWithKb","Show Fixes ({0})",$e.getLabel()):this.title=Te.a("quickFix","Show Fixes")},Object.defineProperty(Et.prototype,"title",{set:function($e){this._domNode.title=$e},enumerable:!0,configurable:!0}),Et._posPref=[0],Et=ee([ae(3,l.a)],Et),Et}(re.a);Object(Fe.e)(function(Nt,Et){var Je=Nt.getColor(He.J);Je&&Et.addRule(` +`))},a._None=new(function(r){pa(n,r);function n(){return r.call(this,-1,null)||this}return n.prototype.stop=function(){},n.prototype.branch=function(){return this},n}(a)),a._totals=0,a}(),gl=e("R8sh"),ba=e("k9mg"),ti=e("tADe"),Di;(function(a){function r(S,N,ce){return S[N]?S[N][ce]:void 0}a.get=r;function n(S,N,ce,Be){S[N]||(S[N]=Object.create(null)),S[N][ce]=Be}a.set=n;function h(S,N,ce){return S[N]&&S[N][ce]?(delete S[N][ce],Object(bt.f)(S[N])&&delete S[N],!0):!1}a.remove=h})(Di||(Di={}));var vl=function(){function a(r){this.errors=0,this.infos=0,this.warnings=0,this.unknowns=0,this._data=Object.create(null),this._service=r,this._subscription=r.onMarkerChanged(this._update,this)}return a.prototype.dispose=function(){this._subscription.dispose(),this._data=void 0},a.prototype._update=function(r){if(!this._data)return;for(var n=0,h=r;n0?Ge:1,Ye=Ye>0?Ye:1,_t=_t>=Ge?_t:Ge,Ot=Ot>0?Ot:Ye,{resource:n,owner:r,code:S,severity:N,message:ce,source:Be,startLineNumber:Ge,startColumn:Ye,endLineNumber:_t,endColumn:Ot,relatedInformation:Ft,tags:jt}):void 0},a.prototype.read=function(r){r===void 0&&(r=Object.create(null));var n=r.owner,h=r.resource,S=r.severities,N=r.take;if((!N||N<0)&&(N=-1),n&&h){var ce=Di.get(this._byResource,h.toString(),n);if(ce){for(var Be=[],Ge=0,Ye=ce;Ge0&&Ot===N)break}}return Be}else return[]}else if(!n&&!h){var Be=[];for(var Ft in this._byResource)for(var jt in this._byResource[Ft])for(var ro=0,to=this._byResource[Ft][jt];ro0&&Ot===N)return Be}}return Be}else{var Yt=n?this._byOwner[n]:h?this._byResource[h.toString()]:void 0;if(!Yt)return[];var Be=[];for(var Qt in Yt)for(var ho=0,So=Yt[Qt];ho0&&Ot===N)return Be}}return Be}},a._accept=function(r,n){return n===void 0||(n&r.severity)===r.severity},a._debouncer=function(r,n){r||(a._dedupeMap=Object.create(null),r=[]);for(var h=0,S=n;h=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Qs=function(a,r){return function(n,h){r(n,h,a)}},bl=function(){function a(r){this._commandService=r}return a.prototype.createMenu=function(r,n){return new Cl(r,this._commandService,n)},a=Ea([Qs(0,Q.b)],a),a}(),Cl=function(){function a(r,n,h){var S=this;this._id=r,this._commandService=n,this._contextKeyService=h,this._onDidChange=new I.a,this._dispoables=new Rt.b,this._menuGroups=[],this._contextKeys=new Set,this._build(),this._dispoables.add(I.b.debounce(I.b.filter(Kn.c.onDidChangeMenu,function(N){return N===S._id}),function(){},50)(this._build,this)),this._dispoables.add(I.b.debounce(this._contextKeyService.onDidChangeContext,function(N,ce){return N||ce.affectsSome(S._contextKeys)},50)(function(N){return N&&S._onDidChange.fire(void 0)},this))}return a.prototype.dispose=function(){this._dispoables.dispose(),this._onDidChange.dispose()},a.prototype._build=function(){this._menuGroups.length=0,this._contextKeys.clear();var r=Kn.c.getMenuItems(this._id),n;r.sort(a._compareMenuItems);for(var h=0,S=r;h0&&n.push([ce,Ge])}return n},a._fillInKbExprKeys=function(r,n){if(r)for(var h=0,S=r.keys();hBe?1:a._compareTitles(Object(Kn.e)(r)?r.command.title:r.title,Object(Kn.e)(n)?n.command.title:n.title)},a._compareTitles=function(r,n){var h=typeof r=="string"?r:r.value,S=typeof n=="string"?n:n.value;return h.localeCompare(S)},a=Ea([Qs(1,Q.b),Qs(2,Sn.c)],a),a}(),El=e("79sc"),wa=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),wl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},_a=function(a,r){return function(n,h){r(n,h,a)}};function vr(a){return a.toString()}var _l=function(a){wa(r,a);function r(n){var h=a.call(this)||this;return h.model=n,h._markersData=new Map,h._register(Object(Rt.h)(function(){h.model.deltaDecorations(Object($n.d)(h._markersData),[]),h._markersData.clear()})),h}return r.prototype.update=function(n,h){var S=Object($n.d)(this._markersData);this._markersData.clear();for(var N=this.model.deltaDecorations(S,h),ce=0;ce=ce?S=new H.a(S.startLineNumber,ce-1,S.endLineNumber,ce):S=new H.a(S.startLineNumber,S.startColumn,S.endLineNumber,S.endColumn+1))}}else if(h.endColumn===Number.MAX_VALUE&&h.startColumn===1&&S.startLineNumber===S.endLineNumber){var Be=n.getLineFirstNonWhitespaceColumn(h.startLineNumber);Be=0:!1},r=wl([_a(0,xe.a),_a(1,ti.b)],r),r}(Rt.a),Ll=e("9fML"),Ml=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),Dl=function(a,r,n,h){var S=arguments.length,N=S<3?r:h===null?h=Object.getOwnPropertyDescriptor(r,n):h,ce;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")N=Reflect.decorate(a,r,n,h);else for(var Be=a.length-1;Be>=0;Be--)(ce=a[Be])&&(N=(S<3?ce(N):S>3?ce(r,n,N):ce(r,n))||N);return S>3&&N&&Object.defineProperty(r,n,N),N},Sa=function(a,r){return function(n,h){r(n,h,a)}},Ol=function(a){Ml(r,a);function r(n,h){var S=a.call(this)||this;S._contextKeyService=n,S._configurationService=h,S._accessibilitySupport=0,S._onDidChangeScreenReaderOptimized=new I.a,S._accessibilityModeEnabledContext=mi.a.bindTo(S._contextKeyService);var N=function(){return S._accessibilityModeEnabledContext.set(S.isScreenReaderOptimized())};return S._register(S._configurationService.onDidChangeConfiguration(function(ce){ce.affectsConfiguration("editor.accessibilitySupport")&&(N(),S._onDidChangeScreenReaderOptimized.fire())})),N(),S.onDidChangeScreenReaderOptimized(function(){return N()}),S}return Object.defineProperty(r.prototype,"onDidChangeScreenReaderOptimized",{get:function(){return this._onDidChangeScreenReaderOptimized.event},enumerable:!0,configurable:!0}),r.prototype.isScreenReaderOptimized=function(){var n=this._configurationService.getValue("editor.accessibilitySupport");return n==="on"||n==="auto"&&this._accessibilitySupport===2},r.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport},r=Dl([Sa(0,Sn.c),Sa(1,xn.a)],r),r}(Rt.a),Tl=function(){var a=function(n,h){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,N){S.__proto__=N}||function(S,N){for(var ce in N)N.hasOwnProperty(ce)&&(S[ce]=N[ce])},a(n,h)};return function(r,n){a(r,n);function h(){this.constructor=r}r.prototype=n===null?Object.create(n):(h.prototype=n.prototype,new h)}}(),sn;(function(a){var r=new wi.a,n=function(){function Be(Ge,Ye){this._serviceId=Ge,this._factory=Ye,this._value=null}return Object.defineProperty(Be.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0}),Be.prototype.get=function(Ge){if(!this._value){if(Ge&&(this._value=Ge[this._serviceId.toString()]),this._value||(this._value=this._factory(Ge)),!this._value)throw new Error("Service "+this._serviceId+" is missing!");r.set(this._serviceId,this._value)}return this._value},Be}();a.LazyStaticService=n;var h=[];function S(Be,Ge){var Ye=new n(Be,Ge);return h.push(Ye),Ye}function N(Be){for(var Ge=new wi.a,Ye=0,_t=Object(Ll.a)();Ye<_t.length;Ye++){var Ot=_t[Ye],Ft=Ot[0],jt=Ot[1];Ge.set(Ft,jt)}for(var ro in Be)Be.hasOwnProperty(ro)&&Ge.set(Object(In.c)(ro),Be[ro]);h.forEach(function(Yt){return Ge.set(Yt.id,Yt.get(Be))});var to=new ya(Ge,!0);return Ge.set(In.a,to),[Ge,to]}a.init=N,a.instantiationService=S(In.a,function(){return new ya(r,!0)});var ce=new Dr;a.configurationService=S(xn.a,function(){return ce}),a.resourceConfigurationService=S(Ne.a,function(){return new us(ce)}),a.resourcePropertiesService=S(Ne.b,function(){return new hs(ce)}),a.contextService=S(Sr.a,function(){return new ms}),a.labelService=S(gl.a,function(){return new Or}),a.telemetryService=S(Gs.a,function(){return new fs}),a.dialogService=S(hl,function(){return new ls}),a.notificationService=S(Un.a,function(){return new ds}),a.markerService=S(ti.b,function(){return new yl}),a.modeService=S(Ps.a,function(Be){return new Bs}),a.standaloneThemeService=S(Si.a,function(){return new Ua}),a.logService=S(dt.a,function(){return new dt.c}),a.modelService=S(xe.a,function(Be){return new t(a.configurationService.get(Be),a.resourcePropertiesService.get(Be),a.standaloneThemeService.get(Be),a.logService.get(Be))}),a.markerDecorationsService=S(El.a,function(Be){return new Sl(a.modelService.get(Be),a.markerService.get(Be))}),a.codeEditorService=S(me.a,function(Be){return new No(a.standaloneThemeService.get(Be))}),a.editorProgressService=S(Ii.a,function(){return new ra}),a.storageService=S(Ca.a,function(){return new Ca.b}),a.editorWorkerService=S(at.a,function(Be){return new He(a.modelService.get(Be),a.resourceConfigurationService.get(Be),a.logService.get(Be))})})(sn||(sn={}));var xl=function(a){Tl(r,a);function r(n,h){var S=a.call(this)||this,N=sn.init(h),ce=N[0],Be=N[1];S._serviceCollection=ce,S._instantiationService=Be;var Ge=S.get(xn.a),Ye=S.get(Un.a),_t=S.get(Gs.a),Ot=S.get(Mn.c),Ft=function(So,To){var Io=null;return h&&(Io=h[So.toString()]),Io||(Io=To()),S._serviceCollection.set(So,Io),Io},jt=Ft(Sn.c,function(){return S._register(new Ya(Ge))});Ft(mi.b,function(){return new Ol(jt,Ge)}),Ft(ba.a,function(){return new ba.b(Ot)});var ro=Ft(Q.b,function(){return new cs(S._instantiationService)}),to=Ft(ii.a,function(){return S._register(new Lr(jt,ro,_t,Ye,n))}),Yt=Ft(ma,function(){return new Tr(n)}),Qt=Ft(Xn.b,function(){return S._register(new ul(Yt))});return Ft(Xn.a,function(){var ho=new nl(_t,Ye,Qt,to,Ot);return ho.configure({blockMouse:!1}),S._register(ho)}),Ft(Kn.a,function(){return new bl(ro)}),Ft(js.a,function(){return new sa(sn.modelService.get(xe.a))}),S}return r.prototype.get=function(n){var h=this._serviceCollection.get(n);if(!h)throw new Error("Missing service "+n);return h},r.prototype.set=function(n,h){this._serviceCollection.set(n,h)},r.prototype.has=function(n){return this._serviceCollection.has(n)},r}(Rt.a);function La(a,r,n){var h=new xl(a,r),S=null;h.has(tt.a)||(S=new as(sn.modelService.get()),h.set(tt.a,S)),h.has(C.a)||h.set(C.a,new it(h.get(me.a),h.get(Q.b)));var N=n(h);return S&&S.setEditor(N),N}function Al(a,r,n){return La(a,n||{},function(h){return new lr(a,r,h,h.get(In.a),h.get(me.a),h.get(Q.b),h.get(Sn.c),h.get(ii.a),h.get(Xn.b),h.get(Si.a),h.get(Un.a),h.get(xn.a),h.get(mi.b))})}function Rl(a){return sn.codeEditorService.get().onCodeEditorAdd(function(r){a(r)})}function Il(a,r,n){return La(a,n||{},function(h){return new Ns(a,r,h,h.get(In.a),h.get(Sn.c),h.get(ii.a),h.get(Xn.b),h.get(at.a),h.get(me.a),h.get(Si.a),h.get(Un.a),h.get(xn.a),h.get(Xn.a),h.get(Ii.a),null)})}function Nl(a,r){return new ao(a,r)}function Ma(a,r,n){return sn.modelService.get().createModel(a,r,n)}function jl(a,r,n){if(a=a||"",!r){var h=a.indexOf(` +`),S=a;return h!==-1&&(S=a.substring(0,h)),Ma(a,sn.modeService.get().createByFilepathOrFirstLine(n||null,S),n)}return Ma(a,sn.modeService.get().create(r),n)}function Pl(a,r){sn.modelService.get().setMode(a,sn.modeService.get().create(r))}function kl(a,r,n){a&&sn.markerService.get().changeOne(r,a.uri,n)}function Fl(a){return sn.markerService.get().read(a)}function Wl(a){return sn.modelService.get().getModel(a)}function Bl(){return sn.modelService.get().getModels()}function Hl(a){return sn.modelService.get().onModelAdded(a)}function Ul(a){return sn.modelService.get().onModelRemoved(a)}function Vl(a){return sn.modelService.get().onModelModeChanged(function(r){a({model:r.model,oldLanguage:r.oldModeId})})}function zl(a){return Ze(sn.modelService.get(),a)}function Kl(a,r){return zi.colorizeElement(sn.standaloneThemeService.get(),sn.modeService.get(),a,r)}function Gl(a,r,n){return zi.colorize(sn.modeService.get(),a,r,n)}function Xl(a,r,n){return n===void 0&&(n=4),zi.colorizeModelLine(a,r,n)}function Yl(a){var r=vt.B.get(a);return r||{getInitialState:function(){return At.c},tokenize:function(h,S,N){return Object(At.d)(a,h,S,N)}}}function Zl(a,r){var n=sn.modeService.get();n.triggerMode(r);for(var h=Yl(r),S=a.split(/\r\n|\r|\n/),N=[],ce=h.getInitialState(),Be=0,Ge=S.length;Be=0&&n<5;)n++,r=r.replace(/@(\w+)/g,function(h,S){var N="";if(typeof a[S]=="string")N=a[S];else if(a[S]&&a[S]instanceof RegExp)N=a[S].source;else throw a[S]===void 0?Do(a,"language definition does not contain attribute '"+S+"', used at: "+r):Do(a,"attribute reference '"+S+"' must be a string, used at: "+r);return wo(N)?"":"(?:"+N+")"});return new RegExp(r,a.ignoreCase?"i":"")}function od(a,r,n,h){if(h<0)return a;if(h=100){h=h-100;var S=n.split(".");if(S.unshift(n),h=0&&(h.tokenSubst=!0),typeof n.bracket=="string")if(n.bracket==="@open")h.bracket=1;else if(n.bracket==="@close")h.bracket=-1;else throw Do(a,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+r);if(n.next){if(typeof n.next!="string")throw Do(a,"the next state must be a string value in rule: "+r);var S=n.next;if(!/^(@pop|@push|@popall)$/.test(S)&&(S[0]==="@"&&(S=S.substr(1)),S.indexOf("$")<0&&!gn(a,xo(a,S,"",[],""))))throw Do(a,"the next state '"+n.next+"' is not defined in rule: "+r);h.next=S}return typeof n.goBack=="number"&&(h.goBack=n.goBack),typeof n.switchTo=="string"&&(h.switchTo=n.switchTo),typeof n.log=="string"&&(h.log=n.log),typeof n.nextEmbedded=="string"&&(h.nextEmbedded=n.nextEmbedded,a.usesEmbedded=!0),h}else if(Array.isArray(n)){for(var N=[],ce=0,Be=n.length;ce0&&h[0]==="^",this.name=this.name+": "+h,this.regex=$s(r,"^(?:"+(this.matchOnlyAtLineStart?h.substr(1):h)+")")},a.prototype.setAction=function(r,n){this.action=Js(r,this.name,n)},a}();function rd(a,r){if(!r||typeof r!="object")throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=a,n.noThrow=!1,n.maxStack=100,n.start=typeof r.start=="string"?r.start:null,n.ignoreCase=Da(r.ignoreCase,!1),n.tokenPostfix=Oa(r.tokenPostfix,"."+n.languageId),n.defaultToken=Oa(r.defaultToken,"source"),n.usesEmbedded=!1;var h=r;h.languageId=a,h.ignoreCase=n.ignoreCase,h.noThrow=n.noThrow,h.usesEmbedded=n.usesEmbedded,h.stateNames=r.tokenizer,h.defaultToken=n.defaultToken;function S(Ft,jt,ro){for(var to=0,Yt=ro;to=1&&Qt.length<=3)if(So.setRegex(h,Qt[0]),Qt.length>=3)if(typeof Qt[1]=="string")So.setAction(h,{token:Qt[1],next:Qt[2]});else if(typeof Qt[1]=="object"){var To=Qt[1];To.next=Qt[2],So.setAction(h,To)}else throw Do(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+Ft);else So.setAction(h,Qt[1]);else{if(!Qt.regex)throw Do(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+Ft);Qt.name&&(typeof Qt.name=="string"&&(So.name=Qt.name)),Qt.matchOnlyAtStart&&(So.matchOnlyAtLineStart=Da(Qt.matchOnlyAtLineStart,!1)),So.setRegex(h,Qt.regex),So.setAction(h,Qt.action)}jt.push(So)}}}if(!r.tokenizer||typeof r.tokenizer!="object")throw Do(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var N in r.tokenizer)if(r.tokenizer.hasOwnProperty(N)){n.start||(n.start=N);var ce=r.tokenizer[N];n.tokenizer[N]=new Array,S("tokenizer."+N,n.tokenizer[N],ce)}if(n.usesEmbedded=h.usesEmbedded,r.brackets){if(!Array.isArray(r.brackets))throw Do(n,"the 'brackets' attribute must be defined as an array")}else r.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];for(var Be=[],Ge=0,Ye=r.brackets;Ge0&&N[ce-1]===Ot)continue;var Ft=_t.startIndex;Ge===0?Ft=0:Ft0?(v?p=(p+1)%c:p=(p+c-1)%c,w.children[p]):(p=w.parent.groups.indexOf(w),v?(p=(p+1)%s,w.parent.groups[p].children[0]):(p=(p+s-1)%s,w.parent.groups[p].children[w.parent.groups[p].children.length-1]))},_.prototype.nearestReference=function(f,v){var w=this.references.map(function(p,c){return{idx:c,prefixLen:U.c(p.uri.toString(),f.toString()),offsetDist:Math.abs(p.range.startLineNumber-v.lineNumber)*100+Math.abs(p.range.startColumn-v.column)}}).sort(function(p,c){return p.prefixLen>c.prefixLen?-1:p.prefixLenc.offsetDist?1:0})[0];return w?this.references[w.idx]:void 0},_.prototype.referenceAt=function(f,v){for(var w=0,p=this.references;w1?L=J.r(y.b.gotoLineLabelValidLineAndColumn,l.lineNumber,l.column):L=J.r(y.b.gotoLineLabelValidLine,l.lineNumber):l.lineNumber<1||l.lineNumber>(d?d.getLineCount():0)?L=J.r(y.b.gotoLineLabelEmptyWithLineLimit,d?d.getLineCount():0):L=J.r(y.b.gotoLineLabelEmptyWithLineAndColumnLimit,d?d.getLineMaxColumn(l.lineNumber):0),{position:l,isValid:E,label:L}},p.prototype.getLabel=function(){return this.parseResult.label},p.prototype.getAriaLabel=function(){var c=this.editor.getPosition(),s=c?c.lineNumber:0;return J.r(y.b.gotoLineAriaLabel,s,this.parseResult.label)},p.prototype.run=function(c,s){return c===1?this.runOpen():this.runPreview()},p.prototype.runOpen=function(){if(!this.parseResult.isValid)return!1;var c=this.toSelection();return this.editor.setSelection(c),this.editor.revealRangeInCenter(c,0),this.editor.focus(),!0},p.prototype.runPreview=function(){if(!this.parseResult.isValid)return this.decorator.clearDecorations(),!1;var c=this.toSelection();return this.editor.revealRangeInCenter(c,0),this.decorator.decorateLine(c,this.editor),!1},p.prototype.toSelection=function(){return new H.a(this.parseResult.position.lineNumber,this.parseResult.position.column,this.parseResult.position.lineNumber,this.parseResult.position.column)},p}(I.a),v=function(w){_(p,w);function p(){return w.call(this,y.b.gotoLineActionInput,{id:"editor.action.gotoLine",label:y.b.gotoLineActionLabel,alias:"Go to Line...",precondition:void 0,kbOpts:{kbExpr:x.a.focus,primary:2048|37,mac:{primary:256|37},weight:100}})||this}return p.prototype.run=function(c,s){var l=this;this._show(this.getController(s),{getModel:function(m){return new I.c([new f(m,s,l.getController(s))])},getAutoFocus:function(m){return{autoFocusFirstEntry:m.length>0}}})},p}(u.a);Object(z.f)(v)},ApJL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:function(){return e.e(278).then(e.bind(null,"AoeA"))}})},BEdG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"xml",extensions:[".xml",".dtd",".ascx",".csproj",".config",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xsl"],firstLine:"(\\<\\?xml.*)|(\\0&&I.getLanguageId(u-1)===H;)u--;return new re(I,H,u,x+1,I.getStartOffset(u),I.getEndOffset(x))}var re=function(){function I(U,z,O,H,x,u){this._actual=U,this.languageId=z,this._firstTokenIndex=O,this._lastTokenIndex=H,this.firstCharOffset=x,this._lastCharOffset=u}return I.prototype.getLineContent=function(){var U=this._actual.getLineContent();return U.substring(this.firstCharOffset,this._lastCharOffset)},I.prototype.getActualLineContentBefore=function(U){var z=this._actual.getLineContent();return z.substring(0,this.firstCharOffset+U)},I.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex},I.prototype.findTokenIndexAtOffset=function(U){return this._actual.findTokenIndexAtOffset(U+this.firstCharOffset)-this._firstTokenIndex},I.prototype.getStandardTokenType=function(U){return this._actual.getStandardTokenType(U+this._firstTokenIndex)},I}();function J(I){return(I&7)!==0}},BUKB:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:function(){return e.e(325).then(e.bind(null,"xT+r"))}})},BjKj:function(Lt,j,e){},"C/vA":function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re){var J=this,I=!1,U;return function(){return I||(I=!0,U=re.apply(J,arguments)),U}}},"C1Q+":function(Lt,j,e){"use strict";e.d(j,"f",function(){return Pt}),e.d(j,"e",function(){return at}),e.d(j,"b",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"d",function(){return gt}),e.d(j,"c",function(){return bt}),e.d(j,"a",function(){return Gt});var T=function(){function Nt(Et){this.executor=Et,this._didRun=!1}return Nt.prototype.getValue=function(){if(!this._didRun)try{this._value=this.executor()}catch(Et){this._error=Et}finally{this._didRun=!0}if(this._error)throw this._error;return this._value},Object.defineProperty(Nt.prototype,"rawValue",{get:function(){return this._value},enumerable:!0,configurable:!0}),Nt}(),re=e("pmY6"),J=e("N0LK"),I=e("sswD"),U=e("x/UI"),z=e("wQH0"),O=e("hJVp"),H=e("6OMU"),x=e("/cxE"),u=e("NR8r"),y=e("Cg/j"),_=e("EffR"),f=e("WqXY"),v=e("8HAY"),w=e("cGHE"),p=e("twdY"),c=e("nlbu"),s=e("Uzvx"),l=e("bexQ"),d=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),m=function(){return m=Object.assign||function(Nt){for(var Et,Je=1,$e=arguments.length;Je<$e;Je++){Et=arguments[Je];for(var ze in Et)Object.prototype.hasOwnProperty.call(Et,ze)&&(Nt[ze]=Et[ze])}return Nt},m.apply(this,arguments)},E=function(Nt,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},L=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},A=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},k=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]=0}).filter(function($e){return $e.resolvedKeybinding}).map(function($e){var ze=$e.commandArgs;return $e.command===O.d?ze={kind:c.b.SourceOrganizeImports.value}:$e.command===O.b&&(ze={kind:c.b.SourceFixAll.value}),m({resolvedKeybinding:$e.resolvedKeybinding},c.a.fromUser(ze,{kind:c.b.None,apply:"never"}))})});return function($e){if($e.kind){var ze=Et.bestKeybindingForCodeAction($e,Je.getValue());return ze==null?void 0:ze.resolvedKeybinding}return}},Nt.prototype.bestKeybindingForCodeAction=function(Et,Je){if(!Et.kind)return;var $e=new c.b(Et.kind);return Je.filter(function(ze){return ze.kind.contains($e)}).filter(function(ze){return ze.preferred?Et.isPreferred:!0}).reduceRight(function(ze,Ke){return ze?ze.kind.contains(Ke.kind)?Ke:ze:Ke},void 0)},Nt.codeActionCommands=[O.e,O.a,O.f,O.d,O.b],Nt}(),B=e("AKMP"),le=e("MI8n"),Ce=e("MNXI"),Me=e("tX9W"),Te=e("3/fG"),Fe=e("t9D7"),Ue=e("MD5Z"),Pe=e("pg8w"),ne=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),ee=function(Nt,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},ae=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},q;(function(Nt){Nt.Hidden={type:0};var Et=function(){function Je($e,ze,Ke,fe){this.actions=$e,this.trigger=ze,this.editorPosition=Ke,this.widgetPosition=fe,this.type=1}return Je}();Nt.Showing=Et})(q||(q={}));var ue=function(Nt){ne(Et,Nt);function Et(Je,$e,ze,Ke){var fe=Nt.call(this)||this;return fe._editor=Je,fe._quickFixActionId=$e,fe._preferredFixActionId=ze,fe._keybindingService=Ke,fe._onClick=fe._register(new le.a),fe.onClick=fe._onClick.event,fe._state=q.Hidden,fe._domNode=document.createElement("div"),fe._domNode.className="codicon codicon-lightbulb",fe._editor.addContentWidget(fe),fe._register(fe._editor.onDidChangeModelContent(function(G){var te=fe._editor.getModel();(fe.state.type!==1||!te||fe.state.editorPosition.lineNumber>=te.getLineCount())&&fe.hide()})),Pe.b.ignoreTarget(fe._domNode),fe._register(_.n(fe._domNode,function(G){if(fe.state.type!==1)return;fe._editor.focus(),G.preventDefault();var te=_.C(fe._domNode),Y=te.top,de=te.height,ke=fe._editor.getOption(49),lt=Math.floor(ke/3);fe.state.widgetPosition.position!==null&&fe.state.widgetPosition.position.lineNumber22,eo=function(Eo){return Eo>2&&Ke._editor.getTopForLineNumber(Eo)===Ke._editor.getTopForLineNumber(Eo-1)},po=G;if(!Jt){if(G>1&&!eo(G-1))po-=1;else if(!eo(G+1))po+=1;else if(te*ke.spaceWidth<22)return this.hide()}this.state=new q.Showing(Je,$e,ze,{position:{lineNumber:po,column:1},preference:Et._posPref}),_.Y(this._domNode,"codicon-lightbulb-autofix",Je.hasAutoFix),this._editor.layoutContentWidget(this)},Et.prototype.hide=function(){this.state=q.Hidden,this._editor.layoutContentWidget(this)},Object.defineProperty(Et.prototype,"state",{get:function(){return this._state},set:function($e){this._state=$e,this._updateLightBulbTitle()},enumerable:!0,configurable:!0}),Et.prototype._updateLightBulbTitle=function(){if(this.state.type===1&&this.state.actions.hasAutoFix){var Je=this._keybindingService.lookupKeybinding(this._preferredFixActionId);if(Je){this.title=Te.a("prefferedQuickFixWithKb","Show Fixes. Preferred Fix Available ({0})",Je.getLabel());return}}var $e=this._keybindingService.lookupKeybinding(this._quickFixActionId);$e?this.title=Te.a("quickFixWithKb","Show Fixes ({0})",$e.getLabel()):this.title=Te.a("quickFix","Show Fixes")},Object.defineProperty(Et.prototype,"title",{set:function($e){this._domNode.title=$e},enumerable:!0,configurable:!0}),Et._posPref=[0],Et=ee([ae(3,l.a)],Et),Et}(re.a);Object(Fe.e)(function(Nt,Et){var Je=Nt.getColor(Ue.J);Je&&Et.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb { color: `+Je+`; - }`);var $e=Nt.getColor(He.I);$e&&Et.addRule(` + }`);var $e=Nt.getColor(Ue.I);$e&&Et.addRule(` .monaco-editor .contentWidgets .codicon-lightbulb-autofix { color: `+$e+`; - }`)});var X=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),he=function(Nt,Et,Je,$e){var ze=arguments.length,Ke=ze<3?Et:$e===null?$e=Object.getOwnPropertyDescriptor(Et,Je):$e,fe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Ke=Reflect.decorate(Nt,Et,Je,$e);else for(var G=Nt.length-1;G>=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},je=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Xe=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},me=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]0||Je.autoApply==="ifSingle"&&$e.validActions.length===1)?$e.validActions[0]:void 0},Et.prototype.showCodeActionList=function(Je,$e,ze,Ke){return Xe(this,void 0,void 0,function(){return me(this,function(fe){return this._codeActionWidget.getValue().show(Je,$e,ze,Ke),[2]})})},Et=he([je(4,y.a)],Et),Et}(re.a),_e=e("nnTU"),Re=e("T8No"),Ee=e("tADe"),ve=e("sM1p"),Q=e("tTk5"),C=e("XXUj"),F=e("X+cX"),se=e("aokT"),oe=e("gslv"),be=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),De=new Re.d("supportedCodeAction",""),Se=function(Nt){be(Et,Nt);function Et(Je,$e,ze,Ke){Ke===void 0&&(Ke=250);var fe=Nt.call(this)||this;return fe._editor=Je,fe._markerService=$e,fe._signalChange=ze,fe._delay=Ke,fe._autoTriggerTimer=fe._register(new F.e),fe._register(fe._markerService.onMarkerChanged(function(G){return fe._onMarkerChanges(G)})),fe._register(fe._editor.onDidChangeCursorPosition(function(){return fe._onCursorChange()})),fe}return Et.prototype.trigger=function(Je){var $e=this._getRangeOfSelectionUnlessWhitespaceEnclosed(Je);return this._createEventAndSignalChange(Je,$e)},Et.prototype._onMarkerChanges=function(Je){var $e=this,ze=this._editor.getModel();if(!ze)return;Je.some(function(Ke){return Object(oe.e)(Ke,ze.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){$e.trigger({type:1})},this._delay)},Et.prototype._onCursorChange=function(){var Je=this;this._autoTriggerTimer.cancelAndSet(function(){Je.trigger({type:1})},this._delay)},Et.prototype._getRangeOfMarker=function(Je){var $e=this._editor.getModel();if(!$e)return;for(var ze=0,Ke=this._markerService.read({resource:$e.uri});ze=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},Rt=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Mt=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},zt=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]255?255:J|0}function re(J){return J<0?0:J>4294967295?4294967295:J|0}},CdFp:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(273).then(e.bind(null,"6Xso"))}})},"Cg/j":function(Lt,j,e){"use strict";e.d(j,"b",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"c",function(){return I}),e.d(j,"d",function(){return H});var T;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function O(U){return U[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=O})(T||(T={}));var re=I("instantiationService");function J(z,O,U,x){O[T.DI_TARGET]===O?O[T.DI_DEPENDENCIES].push({id:z,index:U,optional:x}):(O[T.DI_DEPENDENCIES]=[{id:z,index:U,optional:x}],O[T.DI_TARGET]=O)}function I(z){if(T.serviceIds.has(z))return T.serviceIds.get(z);var O=function U(x,u,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");J(U,x,y,!1)};return O.toString=function(){return z},T.serviceIds.set(z,O),O}function H(z){return function(O,U,x){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");J(z,O,x,!0)}}},CjF5:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("D3Dy"),re=e("MNsG"),J={clipboard:{writeText:re.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:re.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(T.i)return!1;if(T.e){var I=navigator.userAgent.indexOf("Edge/"),H=parseInt(navigator.userAgent.substring(I+5,navigator.userAgent.indexOf(".",I)),10);if(!H||H>=12&&H<=16)return!1}return!0}()},keyboard:function(){return re.f||T.l?0:navigator.keyboard||T.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},CjOT:function(Lt,j,e){},Comh:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return H});var T=e("N0LK"),re=e("cGHE"),J=e("aokT"),I=function(){function z(O,U,x,u,y){this.value=O,this.selectionStart=U,this.selectionEnd=x,this.selectionStartPosition=u,this.selectionEndPosition=y}return z.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},z.readFromTextArea=function(O){return new z(O.getValue(),O.getSelectionStart(),O.getSelectionEnd(),null,null)},z.prototype.collapseSelection=function(){return new z(this.value,this.value.length,this.value.length,null,null)},z.prototype.writeToTextArea=function(O,U,x){U.setValue(O,this.value),x&&U.setSelectionRange(O,this.selectionStart,this.selectionEnd)},z.prototype.deduceEditorPosition=function(O){if(O<=this.selectionStart){var U=this.value.substring(O,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,U,-1)}if(O>=this.selectionEnd){var U=this.value.substring(this.selectionEnd,O);return this._finishDeduceEditorPosition(this.selectionEndPosition,U,1)}var x=this.value.substring(this.selectionStart,O);if(x.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,x,1);var u=this.value.substring(O,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,u,-1)},z.prototype._finishDeduceEditorPosition=function(O,U,x){for(var u=0,y=-1;(y=U.indexOf(` -`,y+1))!==-1;)u++;return[O,x*U.length,u]},z.selectedText=function(O){return new z(O,0,O.length,null,null)},z.deduceInput=function(O,U,x){if(!O)return{text:"",replaceCharCnt:0};var u=O.value,y=O.selectionStart,w=O.selectionEnd,f=U.value,v=U.selectionStart,_=U.selectionEnd,p=u.substring(w),c=f.substring(_),s=T.d(p,c);f=f.substring(0,f.length-s),u=u.substring(0,u.length-s);var l=u.substring(0,y),d=f.substring(0,v),m=T.c(l,d);if(f=f.substring(m),u=u.substring(m),v-=m,y-=m,_-=m,w-=m,x&&v===_&&u.length>0){var E=null;if(v===f.length?T.N(f,u)&&(E=f.substring(u.length)):T.m(f,u)&&(E=f.substring(0,f.length-u.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||T.g(E)))return{text:E,replaceCharCnt:0}}if(v===_){if(u===f&&y===0&&w===u.length&&v===f.length&&f.indexOf(` -`)===-1&&T.h(f))return{text:"",replaceCharCnt:0};var L=l.length-m;return{text:f,replaceCharCnt:L}}var A=w-y;return{text:f,replaceCharCnt:A}},z.EMPTY=new z("",0,0,null,null),z}(),H=function(){function z(){}return z._getPageOfLine=function(O,U){return Math.floor((O-1)/U)},z._getRangeForPage=function(O,U){var x=O*U,u=x+1,y=x+U;return new J.a(u,1,y+1,1)},z.fromEditorSelection=function(O,U,x,u,y){var w=z._getPageOfLine(x.startLineNumber,u),f=z._getRangeForPage(w,u),v=z._getPageOfLine(x.endLineNumber,u),_=z._getRangeForPage(v,u),p=f.intersectRanges(new J.a(1,1,x.startLineNumber,x.startColumn)),c=U.getValueInRange(p,1),s=U.getLineCount(),l=U.getLineMaxColumn(s),d=_.intersectRanges(new J.a(x.endLineNumber,x.endColumn,s,l)),m=U.getValueInRange(d,1),E;if(w===v||w+1===v)E=U.getValueInRange(x,1);else{var L=f.intersectRanges(x),A=_.intersectRanges(x);E=U.getValueInRange(L,1)+String.fromCharCode(8230)+U.getValueInRange(A,1)}if(y){var k=500;c.length>k&&(c=c.substring(c.length-k,c.length)),m.length>k&&(m=m.substring(0,k)),E.length>2*k&&(E=E.substring(0,k)+String.fromCharCode(8230)+E.substring(E.length-k,E.length))}return new I(c+E+m,c.length,c.length+E.length,new re.a(x.startLineNumber,x.startColumn),new re.a(x.endLineNumber,x.endColumn))},z}()},CxEt:function(Lt,j,e){"use strict";e.r(j);var T=e("sswD"),re=e("C1Q+");Object(T.h)(re.f.ID,re.f),Object(T.f)(re.e),Object(T.f)(re.g),Object(T.f)(re.h),Object(T.f)(re.d),Object(T.f)(re.a),Object(T.f)(re.c),Object(T.g)(new re.b)},D3Dy:function(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"o",function(){return H}),e.d(j,"a",function(){return z}),e.d(j,"i",function(){return U}),e.d(j,"e",function(){return x}),e.d(j,"f",function(){return u}),e.d(j,"h",function(){return y}),e.d(j,"m",function(){return w}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"n",function(){return _}),e.d(j,"j",function(){return p}),e.d(j,"g",function(){return c}),e.d(j,"l",function(){return s});var T=e("MI8n"),re=function(){function l(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return l.prototype.getZoomLevel=function(){return this._zoomLevel},l.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},l.prototype.getPixelRatio=function(){var d=document.createElement("canvas").getContext("2d"),m=window.devicePixelRatio||1,E=d.webkitBackingStorePixelRatio||d.mozBackingStorePixelRatio||d.msBackingStorePixelRatio||d.oBackingStorePixelRatio||d.backingStorePixelRatio||1;return m/E},l.INSTANCE=new l,l}();function J(){return re.INSTANCE.getZoomLevel()}function I(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function H(l){return re.INSTANCE.onDidChangeZoomLevel(l)}function z(){return re.INSTANCE.getPixelRatio()}var O=navigator.userAgent,U=O.indexOf("Trident")>=0,x=O.indexOf("Edge/")>=0,u=U||x,y=O.indexOf("Firefox")>=0,w=O.indexOf("AppleWebKit")>=0,f=O.indexOf("Chrome")>=0,v=!f&&O.indexOf("Safari")>=0,_=!f&&!v&&w,p=O.indexOf("iPad")>=0||v&&navigator.maxTouchPoints>0,c=x&&O.indexOf("WebView/")>=0,s=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Lt,j,e){},Dvnd:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return e.e(291).then(e.bind(null,"y0OK"))}})},"E+ie":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(281).then(e.bind(null,"p+q7"))}})},E4kL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return e.e(330).then(e.bind(null,"EaLm"))}})},EIAu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return p});var T=e("N0LK"),re=e("aokT"),J=function(){function c(s,l,d,m,E,L){this.languageIdentifier=s,this.index=l,this.open=d,this.close=m,this.forwardRegex=E,this.reversedRegex=L,this._openSet=c._toSet(this.open),this._closeSet=c._toSet(this.close)}return c.prototype.isOpen=function(s){return this._openSet.has(s)},c.prototype.isClose=function(s){return this._closeSet.has(s)},c._toSet=function(s){for(var l=new Set,d=0,m=s;d0&&R.push({open:ie,close:W})}return R}var H=function(){function c(s,l){var d=I(l);this.brackets=d.map(function(B,le){return new J(s,le,B.open,B.close,x(B.open,B.close,d,le),u(B.open,B.close,d,le))}),this.forwardRegex=y(this.brackets),this.reversedRegex=w(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,E=this.brackets;m=0&&d.push(R)}for(var $=0,ie=L.close;$=0&&d.push(W)}}}function O(c,s){return c.length-s.length}function U(c){if(c.length<=1)return c;for(var s=[],l=new Set,d=0,m=c;d=0;E--)m+=d.charAt(E);return m}var s=null,l=null;return function(m){return s!==m&&(s=m,l=c(s)),l}}(),p=function(){function c(){}return c._findPrevBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=d.length-(E.index||0),A=E[0].length,k=m+L;return new re.a(l,k-A+1,l,k+1)},c.findPrevBracketInRange=function(s,l,d,m,E){var L=_(d),A=L.substring(d.length-E,d.length-m);return this._findPrevBracketInText(s,l,A,m)},c.findNextBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=E.index||0,A=E[0].length;if(A===0)return null;var k=m+L;return new re.a(l,k+1,l,k+1+A)},c.findNextBracketInRange=function(s,l,d,m,E){var L=d.substring(m,E);return this.findNextBracketInText(s,l,L,m)},c}()},EOst:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(327).then(e.bind(null,"87dK"))}})},"EPS+":function(Lt,j,e){},EWX2:function(Lt,j,e){"use strict";e.d(j,"a",function(){return H}),e.d(j,"b",function(){return x});var T=e("bY76"),re=e("gslv"),J=e("Cg/j"),I=e("QDVR"),H=Object(J.c)("contextService"),z;(function(u){function y(w){return w&&typeof w=="object"&&typeof w.id=="string"&&Array.isArray(w.folders)}u.isIWorkspace=y})(z||(z={}));var O;(function(u){function y(w){return w&&typeof w=="object"&&T.a.isUri(w.uri)&&typeof w.name=="string"&&typeof w.toResource=="function"}u.isIWorkspaceFolder=y})(O||(O={}));var U=function(){function u(y,w,f){w===void 0&&(w=[]),f===void 0&&(f=null),this._id=y,this._configuration=f,this._foldersMap=I.c.forPaths(),this.folders=w}return Object.defineProperty(u.prototype,"folders",{get:function(){return this._folders},set:function(w){this._folders=w,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"configuration",{get:function(){return this._configuration},set:function(w){this._configuration=w},enumerable:!0,configurable:!0}),u.prototype.getFolder=function(y){return y&&this._foldersMap.findSubstr(y.with({scheme:y.scheme,authority:y.authority,path:y.path}).toString())||null},u.prototype.updateFoldersMap=function(){this._foldersMap=I.c.forPaths();for(var y=0,w=this.folders;y=0;){if(po=eo+Jt,(eo===0||lt.charCodeAt(eo-1)===32)&<.charCodeAt(po)===32){this._lastStart=eo,this._lastEnd=po+1;return}if(eo>0&<.charCodeAt(eo-1)===32&&po===Tt){this._lastStart=eo-1,this._lastEnd=po;return}if(eo===0&&po===Tt){this._lastStart=0,this._lastEnd=po;return}}this._lastStart=-1},Y.prototype.hasClass=function(de,ke){return this._findClassName(de,ke),this._lastStart!==-1},Y.prototype.addClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt0;){de.sort(ue.sort);var eo=de.shift();eo.execute()}lt=!1};q=function(eo,po){po===void 0&&(po=0);var co=new ue(eo,po);return Y.push(co),ke||(ke=!0,ee(Tt)),co},ae=function(eo,po){if(lt){var co=new ue(eo,po);return de.push(co),co}else return q(eo,po)}})();var X=16,he=function(de,ke){return ke},je=function(Y){f(de,Y);function de(ke,lt,Tt,Jt,eo){Jt===void 0&&(Jt=he),eo===void 0&&(eo=X);var po=Y.call(this)||this,co=null,Eo=0,Oo=po._register(new H.e),Ao=function(){Eo=new Date().getTime(),Tt(co),co=null};return po._register(W(ke,lt,function(Zo){co=Jt(co,Zo);var Co=new Date().getTime()-Eo;Co>=eo?(Oo.cancel(),Ao()):Oo.setIfNotSet(Ao,eo-Co)})),po}return de}(U.a);function Xe(Y,de,ke,lt,Tt){return new je(Y,de,ke,lt,Tt)}function me(Y){return document.defaultView.getComputedStyle(Y,null)}function ge(Y){if(Y!==document.body)return new Re(Y.clientWidth,Y.clientHeight);if(x.c&&window.visualViewport){var de=window.visualViewport.width,ke=window.visualViewport.height-(T.l?20+4:0);return new Re(de,ke)}if(window.innerWidth&&window.innerHeight)return new Re(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Re(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Re(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var _e=function(){function Y(){}return Y.convertToPixels=function(de,ke){return parseFloat(ke)||0},Y.getDimension=function(de,ke,lt){var Tt=me(de),Jt="0";return Tt&&(Tt.getPropertyValue?Jt=Tt.getPropertyValue(ke):Jt=Tt.getAttribute(lt)),Y.convertToPixels(de,Jt)},Y.getBorderLeftWidth=function(de){return Y.getDimension(de,"border-left-width","borderLeftWidth")},Y.getBorderRightWidth=function(de){return Y.getDimension(de,"border-right-width","borderRightWidth")},Y.getBorderTopWidth=function(de){return Y.getDimension(de,"border-top-width","borderTopWidth")},Y.getBorderBottomWidth=function(de){return Y.getDimension(de,"border-bottom-width","borderBottomWidth")},Y.getPaddingLeft=function(de){return Y.getDimension(de,"padding-left","paddingLeft")},Y.getPaddingRight=function(de){return Y.getDimension(de,"padding-right","paddingRight")},Y.getPaddingTop=function(de){return Y.getDimension(de,"padding-top","paddingTop")},Y.getPaddingBottom=function(de){return Y.getDimension(de,"padding-bottom","paddingBottom")},Y.getMarginLeft=function(de){return Y.getDimension(de,"margin-left","marginLeft")},Y.getMarginTop=function(de){return Y.getDimension(de,"margin-top","marginTop")},Y.getMarginRight=function(de){return Y.getDimension(de,"margin-right","marginRight")},Y.getMarginBottom=function(de){return Y.getDimension(de,"margin-bottom","marginBottom")},Y}(),Re=function(){function Y(de,ke){this.width=de,this.height=ke}return Y}();function Ee(Y){for(var de=Y.offsetParent,ke=Y.offsetTop,lt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){ke-=Y.scrollTop;var Tt=Se(Y)?null:me(Y);Tt&&(lt-=Tt.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===de&&(lt+=_e.getBorderLeftWidth(Y),ke+=_e.getBorderTopWidth(Y),ke+=Y.offsetTop,lt+=Y.offsetLeft,de=Y.offsetParent)}return{left:lt,top:ke}}function ve(Y){var de=Y.getBoundingClientRect();return{left:de.left+Q.scrollX,top:de.top+Q.scrollY,width:de.width,height:de.height}}var Q=new(function(){function Y(){}return Object.defineProperty(Y.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),Y}());function C(Y){var de=_e.getMarginLeft(Y)+_e.getMarginRight(Y);return Y.offsetWidth+de}function F(Y){var de=_e.getBorderLeftWidth(Y)+_e.getBorderRightWidth(Y),ke=_e.getPaddingLeft(Y)+_e.getPaddingRight(Y);return Y.offsetWidth-de-ke}function se(Y){var de=_e.getBorderTopWidth(Y)+_e.getBorderBottomWidth(Y),ke=_e.getPaddingTop(Y)+_e.getPaddingBottom(Y);return Y.offsetHeight-de-ke}function oe(Y){var de=_e.getMarginTop(Y)+_e.getMarginBottom(Y);return Y.offsetHeight+de}function be(Y,de){for(;Y;){if(Y===de)return!0;Y=Y.parentNode}return!1}function De(Y,de,ke){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(E(Y,de))return Y;if(ke){if(typeof ke=="string"){if(E(Y,ke))return null}else if(Y===ke)return null}Y=Y.parentNode}return null}function Se(Y){return Y&&!!Y.host&&!!Y.mode}function Ve(Y){return!!Qe(Y)}function Qe(Y){for(;Y.parentNode;){if(Y===document.body)return null;Y=Y.parentNode}return Se(Y)?Y:null}function it(Y){Y===void 0&&(Y=document.getElementsByTagName("head")[0]);var de=document.createElement("style");return de.type="text/css",de.media="screen",Y.appendChild(de),de}var pt=null;function Rt(){return pt||(pt=it()),pt}function Mt(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function zt(Y,de,ke){if(ke===void 0&&(ke=Rt()),!ke||!de)return;ke.sheet.insertRule(Y+"{"+de+"}",0)}function uo(Y,de){if(de===void 0&&(de=Rt()),!de)return;for(var ke=Mt(de),lt=[],Tt=0;Tt=0;Tt--)de.sheet.deleteRule(lt[Tt])}function ao(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var so={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:T.m?"webkitAnimationStart":"animationstart",ANIMATION_END:T.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:T.m?"webkitAnimationIteration":"animationiteration"},Pt={stop:function(de,ke){de.preventDefault?de.preventDefault():de.returnValue=!1,ke&&(de.stopPropagation?de.stopPropagation():de.cancelBubble=!0)}};function ft(Y){for(var de=[],ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)de[ke]=Y.scrollTop,Y=Y.parentNode;return de}function vt(Y,de){for(var ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)Y.scrollTop!==de[ke]&&(Y.scrollTop=de[ke]),Y=Y.parentNode}var At=function(Y){f(de,Y);function de(ke){var lt=Y.call(this)||this;lt._onDidFocus=lt._register(new O.a),lt.onDidFocus=lt._onDidFocus.event,lt._onDidBlur=lt._register(new O.a),lt.onDidBlur=lt._onDidBlur.event;var Tt=be(document.activeElement,ke),Jt=!1,eo=function(){Jt=!1,Tt||(Tt=!0,lt._onDidFocus.fire())},po=function(){Tt&&(Jt=!0,window.setTimeout(function(){Jt&&(Jt=!1,Tt=!1,lt._onDidBlur.fire())},0))};return lt._refreshStateHandler=function(){var co=be(document.activeElement,ke);co!==Tt&&(Tt?po():eo())},lt._register(Object(re.a)(ke,so.FOCUS,!0)(eo)),lt._register(Object(re.a)(ke,so.BLUR,!0)(po)),lt}return de}(U.a);function at(Y){return new At(Y)}function tt(Y){for(var de=[],ke=1;kec){ue._setDesiredScrollPositionNow(je.getScrollPosition());return}var _e=ue._sliderMousePosition(Xe),Re=_e-X;ue._setDesiredScrollPositionNow(je.getDesiredScrollPositionFromDelta(Re))},function(){ue.slider.toggleClassName("active",!1),ue._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ae){var q={};this.writeScrollPosition(q,ae),this._scrollable.setScrollPositionNow(q)},ee}(O.a),l=20,d=function(){function ne(ee,ae,q,ue,X,he){this._scrollbarSize=Math.round(ae),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=ue,this._scrollSize=X,this._scrollPosition=he,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ne.prototype.clone=function(){return new ne(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ne.prototype.setVisibleSize=function(ee){var ae=Math.round(ee);return this._visibleSize!==ae?(this._visibleSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollSize=function(ee){var ae=Math.round(ee);return this._scrollSize!==ae?(this._scrollSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollPosition=function(ee){var ae=Math.round(ee);return this._scrollPosition!==ae?(this._scrollPosition=ae,this._refreshComputedValues(),!0):!1},ne._computeValues=function(ee,ae,q,ue,X){var he=Math.max(0,q-ee),je=Math.max(0,he-2*ae),Xe=ue>0&&ue>q;if(!Xe)return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(je),computedSliderRatio:0,computedSliderPosition:0};var me=Math.round(Math.max(l,Math.floor(q*je/ue))),ge=(je-me)/(ue-q),_e=X*ge;return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(me),computedSliderRatio:ge,computedSliderPosition:Math.round(_e)}},ne.prototype._refreshComputedValues=function(){var ee=ne._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=ee.computedAvailableSize,this._computedIsNeeded=ee.computedIsNeeded,this._computedSliderSize=ee.computedSliderSize,this._computedSliderRatio=ee.computedSliderRatio,this._computedSliderPosition=ee.computedSliderPosition},ne.prototype.getArrowSize=function(){return this._arrowSize},ne.prototype.getScrollPosition=function(){return this._scrollPosition},ne.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ne.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ne.prototype.isNeeded=function(){return this._computedIsNeeded},ne.prototype.getSliderSize=function(){return this._computedSliderSize},ne.prototype.getSliderPosition=function(){return this._computedSliderPosition},ne.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ae=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ae/this._computedSliderRatio)},ne.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ae=this._computedSliderPosition+ee;return Math.round(ae/this._computedSliderRatio)},ne}(),m=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),E=function(ne){m(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,he.width,he.scrollWidth,je.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ae})||this,q.horizontalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.horizontalScrollbarSize-u)/2;X._createArrow({className:"left-arrow",top:me,left:Xe,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,1,0))}}),X._createArrow({className:"right-arrow",top:me,left:void 0,bottom:void 0,right:Xe,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,-1,0))}})}return X._createSlider(Math.floor((q.horizontalScrollbarSize-q.horizontalSliderSize)/2),0,void 0,q.horizontalSliderSize),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setWidth(ae),this.slider.setLeft(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(ae),this.domNode.setHeight(q),this.domNode.setLeft(0),this.domNode.setBottom(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ae.width)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return ae},ee.prototype._sliderMousePosition=function(ae){return ae.posx},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posy},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollLeft=q},ee}(s),L=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),A=function(ne){L(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,he.height,he.scrollHeight,je.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ae})||this,q.verticalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.verticalScrollbarSize-u)/2;X._createArrow({className:"up-arrow",top:Xe,left:me,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,0,1))}}),X._createArrow({className:"down-arrow",top:void 0,left:me,bottom:Xe,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new H.c(null,0,-1))}})}return X._createSlider(0,Math.floor((q.verticalScrollbarSize-q.verticalSliderSize)/2),q.verticalSliderSize,void 0),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setHeight(ae),this.slider.setTop(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(q),this.domNode.setHeight(ae),this.domNode.setRight(0),this.domNode.setTop(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ae.height)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return q},ee.prototype._sliderMousePosition=function(ae){return ae.posy},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posx},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollTop=q},ee}(s),k=e("MI8n"),R=e("QuOb"),$=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),ie=500,W=50,B=!0,le=function(){function ne(ee,ae,q){this.timestamp=ee,this.deltaX=ae,this.deltaY=q,this.score=0}return ne}(),Ce=function(){function ne(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ne.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ae=0,q=1,ue=this._rear;do{var X=ue===this._front?ee:Math.pow(2,-q);if(ee-=X,ae+=this._memory[ue].score*X,ue===this._front)break;ue=(this._capacity+ue-1)%this._capacity,q++}while(!0);return ae<=.5},ne.prototype.accept=function(ee,ae,q){var ue=new le(ee,ae,q);ue.score=this._computeScore(ue),this._front===-1&&this._rear===-1?(this._memory[0]=ue,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ue)},ne.prototype._computeScore=function(ee){if(Math.abs(ee.deltaX)>0&&Math.abs(ee.deltaY)>0)return 1;var ae=.5,q=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(ee.deltaX-Math.round(ee.deltaX))>0||Math.abs(ee.deltaY-Math.round(ee.deltaY))>0)&&(ae+=.25),Math.min(Math.max(ae,0),1)},ne.INSTANCE=new ne,ne}(),Me=function(ne){$(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;X._onScroll=X._register(new k.a),X.onScroll=X._onScroll.event,ae.style.overflow="hidden",X._options=Pe(q),X._scrollable=ue,X._register(X._scrollable.onScroll(function(je){X._onDidScroll(je),X._onScroll.fire(je)}));var he={onMouseWheel:function(Xe){return X._onMouseWheel(Xe)},onDragStart:function(){return X._onDragStart()},onDragEnd:function(){return X._onDragEnd()}};return X._verticalScrollbar=X._register(new A(X._scrollable,X._options,he)),X._horizontalScrollbar=X._register(new E(X._scrollable,X._options,he)),X._domNode=document.createElement("div"),X._domNode.className="monaco-scrollable-element "+X._options.className,X._domNode.setAttribute("role","presentation"),X._domNode.style.position="relative",X._domNode.style.overflow="hidden",X._domNode.appendChild(ae),X._domNode.appendChild(X._horizontalScrollbar.domNode.domNode),X._domNode.appendChild(X._verticalScrollbar.domNode.domNode),X._options.useShadows?(X._leftShadowDomNode=Object(I.b)(document.createElement("div")),X._leftShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._leftShadowDomNode.domNode),X._topShadowDomNode=Object(I.b)(document.createElement("div")),X._topShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._topShadowDomNode.domNode),X._topLeftShadowDomNode=Object(I.b)(document.createElement("div")),X._topLeftShadowDomNode.setClassName("shadow top-left-corner"),X._domNode.appendChild(X._topLeftShadowDomNode.domNode)):(X._leftShadowDomNode=null,X._topShadowDomNode=null,X._topLeftShadowDomNode=null),X._listenOnDomNode=X._options.listenOnDomNode||X._domNode,X._mouseWheelToDispose=[],X._setListeningToMouseWheel(X._options.handleMouseWheel),X.onmouseover(X._listenOnDomNode,function(je){return X._onMouseOver(je)}),X.onnonbubblingmouseout(X._listenOnDomNode,function(je){return X._onMouseOut(je)}),X._hideTimeout=X._register(new U.e),X._isDragging=!1,X._mouseIsOver=!1,X._shouldRender=!0,X._revealOnScroll=!0,X}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(w.f)(this._mouseWheelToDispose),ne.prototype.dispose.call(this)},ee.prototype.getDomNode=function(){return this._domNode},ee.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},ee.prototype.delegateVerticalScrollbarMouseDown=function(ae){this._verticalScrollbar.delegateMouseDown(ae)},ee.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},ee.prototype.setScrollDimensions=function(ae){this._scrollable.setScrollDimensions(ae)},ee.prototype.updateClassName=function(ae){this._options.className=ae,_.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ae){var q=Pe(ae);this._options.handleMouseWheel=q.handleMouseWheel,this._options.mouseWheelScrollSensitivity=q.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=q.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},ee.prototype._setListeningToMouseWheel=function(ae){var q=this,ue=this._mouseWheelToDispose.length>0;if(ue===ae)return;if(this._mouseWheelToDispose=Object(w.f)(this._mouseWheelToDispose),ae){var X=function(je){q._onMouseWheel(new H.c(je))};this._mouseWheelToDispose.push(J.j(this._listenOnDomNode,re.f?"mousewheel":"wheel",X,{passive:!1}))}},ee.prototype._onMouseWheel=function(ae){var q,ue=Ce.INSTANCE;if(B&&ue.accept(Date.now(),ae.deltaX,ae.deltaY),ae.deltaY||ae.deltaX){var X=ae.deltaY*this._options.mouseWheelScrollSensitivity,he=ae.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(q=[he,X],X=q[0],he=q[1]);var je=!_.e&&ae.browserEvent&&ae.browserEvent.shiftKey;(this._options.scrollYToX||je)&&!he&&(he=X,X=0),ae.browserEvent&&ae.browserEvent.altKey&&(he=he*this._options.fastScrollSensitivity,X=X*this._options.fastScrollSensitivity);var Xe=this._scrollable.getFutureScrollPosition(),me={};if(X){var ge=Xe.scrollTop-W*X;this._verticalScrollbar.writeScrollPosition(me,ge)}if(he){var _e=Xe.scrollLeft-W*he;this._horizontalScrollbar.writeScrollPosition(me,_e)}if(me=this._scrollable.validateScrollPosition(me),Xe.scrollLeft!==me.scrollLeft||Xe.scrollTop!==me.scrollTop){var Re=B&&this._options.mouseWheelSmoothScroll&&ue.isPhysicalMouseWheel();Re?this._scrollable.setScrollPositionSmooth(me):this._scrollable.setScrollPositionNow(me),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ae.preventDefault(),ae.stopPropagation())},ee.prototype._onDidScroll=function(ae){this._shouldRender=this._horizontalScrollbar.onDidScroll(ae)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ae)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},ee.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},ee.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var ae=this._scrollable.getCurrentScrollPosition(),q=ae.scrollTop>0,ue=ae.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ue?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(ue?" left":""))}},ee.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},ee.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},ee.prototype._onMouseOut=function(ae){this._mouseIsOver=!1,this._hide()},ee.prototype._onMouseOver=function(ae){this._mouseIsOver=!0,this._reveal()},ee.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},ee.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},ee.prototype._scheduleHide=function(){var ae=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ae._hide()},ie)},ee}(O.a),Te=function(ne){$(ee,ne);function ee(ae,q){var ue=this;q=q||{},q.mouseWheelSmoothScroll=!1;var X=new R.a(0,function(he){return J.W(he)});return ue=ne.call(this,ae,q,X)||this,ue._register(X),ue}return ee.prototype.setScrollPosition=function(ae){this._scrollable.setScrollPositionNow(ae)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(Me),Fe=function(ne){$(ee,ne);function ee(ae,q,ue){return ne.call(this,ae,q,ue)||this}return ee}(Me),He=function(ne){$(ee,ne);function ee(ae,q){var ue=ne.call(this,ae,q)||this;return ue._element=ae,ue.onScroll(function(X){X.scrollTopChanged&&(ue._element.scrollTop=X.scrollTop),X.scrollLeftChanged&&(ue._element.scrollLeft=X.scrollLeft)}),ue.scanDomNode(),ue}return ee.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},ee}(Te);function Pe(ne){var ee={lazyRender:typeof ne.lazyRender!="undefined"?ne.lazyRender:!1,className:typeof ne.className!="undefined"?ne.className:"",useShadows:typeof ne.useShadows!="undefined"?ne.useShadows:!0,handleMouseWheel:typeof ne.handleMouseWheel!="undefined"?ne.handleMouseWheel:!0,flipAxes:typeof ne.flipAxes!="undefined"?ne.flipAxes:!1,alwaysConsumeMouseWheel:typeof ne.alwaysConsumeMouseWheel!="undefined"?ne.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ne.scrollYToX!="undefined"?ne.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ne.mouseWheelScrollSensitivity!="undefined"?ne.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ne.fastScrollSensitivity!="undefined"?ne.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ne.mouseWheelSmoothScroll!="undefined"?ne.mouseWheelSmoothScroll:!0,arrowSize:typeof ne.arrowSize!="undefined"?ne.arrowSize:11,listenOnDomNode:typeof ne.listenOnDomNode!="undefined"?ne.listenOnDomNode:null,horizontal:typeof ne.horizontal!="undefined"?ne.horizontal:1,horizontalScrollbarSize:typeof ne.horizontalScrollbarSize!="undefined"?ne.horizontalScrollbarSize:10,horizontalSliderSize:typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:0,horizontalHasArrows:typeof ne.horizontalHasArrows!="undefined"?ne.horizontalHasArrows:!1,vertical:typeof ne.vertical!="undefined"?ne.vertical:1,verticalScrollbarSize:typeof ne.verticalScrollbarSize!="undefined"?ne.verticalScrollbarSize:10,verticalHasArrows:typeof ne.verticalHasArrows!="undefined"?ne.verticalHasArrows:!1,verticalSliderSize:typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:0};return ee.horizontalSliderSize=typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:ee.verticalScrollbarSize,_.e&&(ee.className+=" mac"),ee}},"GR/f":function(Lt,j,e){"use strict";e.d(j,"a",function(){return f}),e.d(j,"b",function(){return v});var T=e("/cxE"),re=e("N0LK"),J=e("LCkn"),I=e("zN7H"),H=e("aokT"),z=e("gCVg"),O=function(){function _(p,c,s){this._range=p,this._charBeforeSelection=c,this._charAfterSelection=s}return _.prototype.getEditOperations=function(p,c){c.addTrackedEditOperation(new H.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),c.addTrackedEditOperation(new H.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},_.prototype.computeCursorState=function(p,c){var s=c.getInverseEditOperations(),l=s[0].range,d=s[1].range;return new z.a(l.endLineNumber,l.endColumn,d.endLineNumber,d.endColumn-this._charAfterSelection.length)},_}(),U=e("Ll0s"),x=e("5v8Y"),u=e("KDc4"),y=e("cMvZ"),w=function(){var _=function(c,s){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)d.hasOwnProperty(m)&&(l[m]=d[m])},_(c,s)};return function(p,c){_(p,c);function s(){this.constructor=p}p.prototype=c===null?Object.create(c):(s.prototype=c.prototype,new s)}}(),f=function(){function _(){}return _.indent=function(p,c,s){if(c===null||s===null)return[];for(var l=[],d=0,m=s.length;d1){var E=void 0;for(E=s-1;E>=1;E--){var L=c.getLineContent(E),A=re.D(L);if(A>=0)break}if(E<1)return null;var k=c.getLineMaxColumn(E),R=y.a.getEnterAction(p.autoIndent,c,new H.a(E,k,E,k));R&&(d=R.indentation+R.appendText)}return l&&(l===u.a.Indent&&(d=_.shiftIndent(p,d)),l===u.a.Outdent&&(d=_.unshiftIndent(p,d)),d=p.normalizeIndentation(d)),d||null},_._replaceJumpToNextIndent=function(p,c,s,l){var d="",m=s.getStartPosition();if(p.insertSpaces)for(var E=U.a.visibleColumnFromColumn2(p,c,m),L=p.indentSize,A=L-E%L,k=0;k=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},je=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Xe=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},me=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]0||Je.autoApply==="ifSingle"&&$e.validActions.length===1)?$e.validActions[0]:void 0},Et.prototype.showCodeActionList=function(Je,$e,ze,Ke){return Xe(this,void 0,void 0,function(){return me(this,function(fe){return this._codeActionWidget.getValue().show(Je,$e,ze,Ke),[2]})})},Et=he([je(4,y.a)],Et),Et}(re.a),we=e("nnTU"),Re=e("T8No"),Ee=e("tADe"),ve=e("sM1p"),Q=e("tTk5"),C=e("XXUj"),F=e("X+cX"),se=e("aokT"),oe=e("gslv"),be=function(){var Nt=function(Je,$e){return Nt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ze,Ke){ze.__proto__=Ke}||function(ze,Ke){for(var fe in Ke)Ke.hasOwnProperty(fe)&&(ze[fe]=Ke[fe])},Nt(Je,$e)};return function(Et,Je){Nt(Et,Je);function $e(){this.constructor=Et}Et.prototype=Je===null?Object.create(Je):($e.prototype=Je.prototype,new $e)}}(),De=new Re.d("supportedCodeAction",""),Se=function(Nt){be(Et,Nt);function Et(Je,$e,ze,Ke){Ke===void 0&&(Ke=250);var fe=Nt.call(this)||this;return fe._editor=Je,fe._markerService=$e,fe._signalChange=ze,fe._delay=Ke,fe._autoTriggerTimer=fe._register(new F.e),fe._register(fe._markerService.onMarkerChanged(function(G){return fe._onMarkerChanges(G)})),fe._register(fe._editor.onDidChangeCursorPosition(function(){return fe._onCursorChange()})),fe}return Et.prototype.trigger=function(Je){var $e=this._getRangeOfSelectionUnlessWhitespaceEnclosed(Je);return this._createEventAndSignalChange(Je,$e)},Et.prototype._onMarkerChanges=function(Je){var $e=this,ze=this._editor.getModel();if(!ze)return;Je.some(function(Ke){return Object(oe.e)(Ke,ze.uri)})&&this._autoTriggerTimer.cancelAndSet(function(){$e.trigger({type:1})},this._delay)},Et.prototype._onCursorChange=function(){var Je=this;this._autoTriggerTimer.cancelAndSet(function(){Je.trigger({type:1})},this._delay)},Et.prototype._getRangeOfMarker=function(Je){var $e=this._editor.getModel();if(!$e)return;for(var ze=0,Ke=this._markerService.read({resource:$e.uri});ze=0;G--)(fe=Nt[G])&&(Ke=(ze<3?fe(Ke):ze>3?fe(Et,Je,Ke):fe(Et,Je))||Ke);return ze>3&&Ke&&Object.defineProperty(Et,Je,Ke),Ke},Rt=function(Nt,Et){return function(Je,$e){Et(Je,$e,Nt)}},Mt=function(Nt,Et,Je,$e){function ze(Ke){return Ke instanceof Je?Ke:new Je(function(fe){fe(Ke)})}return new(Je||(Je=Promise))(function(Ke,fe){function G(de){try{Y($e.next(de))}catch(ke){fe(ke)}}function te(de){try{Y($e.throw(de))}catch(ke){fe(ke)}}function Y(de){de.done?Ke(de.value):ze(de.value).then(G,te)}Y(($e=$e.apply(Nt,Et||[])).next())})},zt=function(Nt,Et){var Je={label:0,sent:function(){if(Ke[0]&1)throw Ke[1];return Ke[1]},trys:[],ops:[]},$e,ze,Ke,fe;return fe={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(fe[Symbol.iterator]=function(){return this}),fe;function G(Y){return function(de){return te([Y,de])}}function te(Y){if($e)throw new TypeError("Generator is already executing.");for(;Je;)try{if($e=1,ze&&(Ke=Y[0]&2?ze.return:Y[0]?ze.throw||((Ke=ze.return)&&Ke.call(ze),0):ze.next)&&!(Ke=Ke.call(ze,Y[1])).done)return Ke;(ze=0,Ke)&&(Y=[Y[0]&2,Ke.value]);switch(Y[0]){case 0:case 1:Ke=Y;break;case 4:return Je.label++,{value:Y[1],done:!1};case 5:Je.label++,ze=Y[1],Y=[0];continue;case 7:Y=Je.ops.pop(),Je.trys.pop();continue;default:if(!(Ke=Je.trys,Ke=Ke.length>0&&Ke[Ke.length-1])&&(Y[0]===6||Y[0]===2)){Je=0;continue}if(Y[0]===3&&(!Ke||Y[1]>Ke[0]&&Y[1]255?255:J|0}function re(J){return J<0?0:J>4294967295?4294967295:J|0}},CdFp:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:function(){return e.e(273).then(e.bind(null,"6Xso"))}})},"Cg/j":function(Lt,j,e){"use strict";e.d(j,"b",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"c",function(){return I}),e.d(j,"d",function(){return U});var T;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function O(H){return H[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=O})(T||(T={}));var re=I("instantiationService");function J(z,O,H,x){O[T.DI_TARGET]===O?O[T.DI_DEPENDENCIES].push({id:z,index:H,optional:x}):(O[T.DI_DEPENDENCIES]=[{id:z,index:H,optional:x}],O[T.DI_TARGET]=O)}function I(z){if(T.serviceIds.has(z))return T.serviceIds.get(z);var O=function H(x,u,y){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");J(H,x,y,!1)};return O.toString=function(){return z},T.serviceIds.set(z,O),O}function U(z){return function(O,H,x){if(arguments.length!==3)throw new Error("@optional-decorator can only be used to decorate a parameter");J(z,O,x,!0)}}},CjF5:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("D3Dy"),re=e("MNsG"),J={clipboard:{writeText:re.f||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:re.f||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText),richText:function(){if(T.i)return!1;if(T.e){var I=navigator.userAgent.indexOf("Edge/"),U=parseInt(navigator.userAgent.substring(I+5,navigator.userAgent.indexOf(".",I)),10);if(!U||U>=12&&U<=16)return!1}return!0}()},keyboard:function(){return re.f||T.l?0:navigator.keyboard||T.k?1:2}(),touch:"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0)}},CjOT:function(Lt,j,e){},Comh:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});var T=e("N0LK"),re=e("cGHE"),J=e("aokT"),I=function(){function z(O,H,x,u,y){this.value=O,this.selectionStart=H,this.selectionEnd=x,this.selectionStartPosition=u,this.selectionEndPosition=y}return z.prototype.toString=function(){return"[ <"+this.value+">, selectionStart: "+this.selectionStart+", selectionEnd: "+this.selectionEnd+"]"},z.readFromTextArea=function(O){return new z(O.getValue(),O.getSelectionStart(),O.getSelectionEnd(),null,null)},z.prototype.collapseSelection=function(){return new z(this.value,this.value.length,this.value.length,null,null)},z.prototype.writeToTextArea=function(O,H,x){H.setValue(O,this.value),x&&H.setSelectionRange(O,this.selectionStart,this.selectionEnd)},z.prototype.deduceEditorPosition=function(O){if(O<=this.selectionStart){var H=this.value.substring(O,this.selectionStart);return this._finishDeduceEditorPosition(this.selectionStartPosition,H,-1)}if(O>=this.selectionEnd){var H=this.value.substring(this.selectionEnd,O);return this._finishDeduceEditorPosition(this.selectionEndPosition,H,1)}var x=this.value.substring(this.selectionStart,O);if(x.indexOf(String.fromCharCode(8230))===-1)return this._finishDeduceEditorPosition(this.selectionStartPosition,x,1);var u=this.value.substring(O,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,u,-1)},z.prototype._finishDeduceEditorPosition=function(O,H,x){for(var u=0,y=-1;(y=H.indexOf(` +`,y+1))!==-1;)u++;return[O,x*H.length,u]},z.selectedText=function(O){return new z(O,0,O.length,null,null)},z.deduceInput=function(O,H,x){if(!O)return{text:"",replaceCharCnt:0};var u=O.value,y=O.selectionStart,_=O.selectionEnd,f=H.value,v=H.selectionStart,w=H.selectionEnd,p=u.substring(_),c=f.substring(w),s=T.d(p,c);f=f.substring(0,f.length-s),u=u.substring(0,u.length-s);var l=u.substring(0,y),d=f.substring(0,v),m=T.c(l,d);if(f=f.substring(m),u=u.substring(m),v-=m,y-=m,w-=m,_-=m,x&&v===w&&u.length>0){var E=null;if(v===f.length?T.N(f,u)&&(E=f.substring(u.length)):T.m(f,u)&&(E=f.substring(0,f.length-u.length)),E!==null&&E.length>0&&(/\uFE0F/.test(E)||T.g(E)))return{text:E,replaceCharCnt:0}}if(v===w){if(u===f&&y===0&&_===u.length&&v===f.length&&f.indexOf(` +`)===-1&&T.h(f))return{text:"",replaceCharCnt:0};var L=l.length-m;return{text:f,replaceCharCnt:L}}var A=_-y;return{text:f,replaceCharCnt:A}},z.EMPTY=new z("",0,0,null,null),z}(),U=function(){function z(){}return z._getPageOfLine=function(O,H){return Math.floor((O-1)/H)},z._getRangeForPage=function(O,H){var x=O*H,u=x+1,y=x+H;return new J.a(u,1,y+1,1)},z.fromEditorSelection=function(O,H,x,u,y){var _=z._getPageOfLine(x.startLineNumber,u),f=z._getRangeForPage(_,u),v=z._getPageOfLine(x.endLineNumber,u),w=z._getRangeForPage(v,u),p=f.intersectRanges(new J.a(1,1,x.startLineNumber,x.startColumn)),c=H.getValueInRange(p,1),s=H.getLineCount(),l=H.getLineMaxColumn(s),d=w.intersectRanges(new J.a(x.endLineNumber,x.endColumn,s,l)),m=H.getValueInRange(d,1),E;if(_===v||_+1===v)E=H.getValueInRange(x,1);else{var L=f.intersectRanges(x),A=w.intersectRanges(x);E=H.getValueInRange(L,1)+String.fromCharCode(8230)+H.getValueInRange(A,1)}if(y){var k=500;c.length>k&&(c=c.substring(c.length-k,c.length)),m.length>k&&(m=m.substring(0,k)),E.length>2*k&&(E=E.substring(0,k)+String.fromCharCode(8230)+E.substring(E.length-k,E.length))}return new I(c+E+m,c.length,c.length+E.length,new re.a(x.startLineNumber,x.startColumn),new re.a(x.endLineNumber,x.endColumn))},z}()},CxEt:function(Lt,j,e){"use strict";e.r(j);var T=e("sswD"),re=e("C1Q+");Object(T.h)(re.f.ID,re.f),Object(T.f)(re.e),Object(T.f)(re.g),Object(T.f)(re.h),Object(T.f)(re.d),Object(T.f)(re.a),Object(T.f)(re.c),Object(T.g)(new re.b)},D3Dy:function(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"o",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"i",function(){return H}),e.d(j,"e",function(){return x}),e.d(j,"f",function(){return u}),e.d(j,"h",function(){return y}),e.d(j,"m",function(){return _}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"n",function(){return w}),e.d(j,"j",function(){return p}),e.d(j,"g",function(){return c}),e.d(j,"l",function(){return s});var T=e("MI8n"),re=function(){function l(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new T.a,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}return l.prototype.getZoomLevel=function(){return this._zoomLevel},l.prototype.getTimeSinceLastZoomLevelChanged=function(){return Date.now()-this._lastZoomLevelChangeTime},l.prototype.getPixelRatio=function(){var d=document.createElement("canvas").getContext("2d"),m=window.devicePixelRatio||1,E=d.webkitBackingStorePixelRatio||d.mozBackingStorePixelRatio||d.msBackingStorePixelRatio||d.oBackingStorePixelRatio||d.backingStorePixelRatio||1;return m/E},l.INSTANCE=new l,l}();function J(){return re.INSTANCE.getZoomLevel()}function I(){return re.INSTANCE.getTimeSinceLastZoomLevelChanged()}function U(l){return re.INSTANCE.onDidChangeZoomLevel(l)}function z(){return re.INSTANCE.getPixelRatio()}var O=navigator.userAgent,H=O.indexOf("Trident")>=0,x=O.indexOf("Edge/")>=0,u=H||x,y=O.indexOf("Firefox")>=0,_=O.indexOf("AppleWebKit")>=0,f=O.indexOf("Chrome")>=0,v=!f&&O.indexOf("Safari")>=0,w=!f&&!v&&_,p=O.indexOf("iPad")>=0||v&&navigator.maxTouchPoints>0,c=x&&O.indexOf("WebView/")>=0,s=window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches},DTDp:function(Lt,j,e){},Dvnd:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"kotlin",extensions:[".kt"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:function(){return e.e(291).then(e.bind(null,"y0OK"))}})},"E+ie":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csp",extensions:[],aliases:["CSP","csp"],loader:function(){return e.e(281).then(e.bind(null,"p+q7"))}})},E4kL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"],loader:function(){return e.e(330).then(e.bind(null,"EaLm"))}})},EIAu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return p});var T=e("N0LK"),re=e("aokT"),J=function(){function c(s,l,d,m,E,L){this.languageIdentifier=s,this.index=l,this.open=d,this.close=m,this.forwardRegex=E,this.reversedRegex=L,this._openSet=c._toSet(this.open),this._closeSet=c._toSet(this.close)}return c.prototype.isOpen=function(s){return this._openSet.has(s)},c.prototype.isClose=function(s){return this._closeSet.has(s)},c._toSet=function(s){for(var l=new Set,d=0,m=s;d0&&R.push({open:ie,close:W})}return R}var U=function(){function c(s,l){var d=I(l);this.brackets=d.map(function(B,le){return new J(s,le,B.open,B.close,x(B.open,B.close,d,le),u(B.open,B.close,d,le))}),this.forwardRegex=y(this.brackets),this.reversedRegex=_(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(var m=0,E=this.brackets;m=0&&d.push(R)}for(var $=0,ie=L.close;$=0&&d.push(W)}}}function O(c,s){return c.length-s.length}function H(c){if(c.length<=1)return c;for(var s=[],l=new Set,d=0,m=c;d=0;E--)m+=d.charAt(E);return m}var s=null,l=null;return function(m){return s!==m&&(s=m,l=c(s)),l}}(),p=function(){function c(){}return c._findPrevBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=d.length-(E.index||0),A=E[0].length,k=m+L;return new re.a(l,k-A+1,l,k+1)},c.findPrevBracketInRange=function(s,l,d,m,E){var L=w(d),A=L.substring(d.length-E,d.length-m);return this._findPrevBracketInText(s,l,A,m)},c.findNextBracketInText=function(s,l,d,m){var E=d.match(s);if(!E)return null;var L=E.index||0,A=E[0].length;if(A===0)return null;var k=m+L;return new re.a(l,k+1,l,k+1+A)},c.findNextBracketInRange=function(s,l,d,m,E){var L=d.substring(m,E);return this.findNextBracketInText(s,l,L,m)},c}()},EOst:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"typescript",extensions:[".ts",".tsx"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:function(){return e.e(327).then(e.bind(null,"87dK"))}})},"EPS+":function(Lt,j,e){},EWX2:function(Lt,j,e){"use strict";e.d(j,"a",function(){return U}),e.d(j,"b",function(){return x});var T=e("bY76"),re=e("gslv"),J=e("Cg/j"),I=e("QDVR"),U=Object(J.c)("contextService"),z;(function(u){function y(_){return _&&typeof _=="object"&&typeof _.id=="string"&&Array.isArray(_.folders)}u.isIWorkspace=y})(z||(z={}));var O;(function(u){function y(_){return _&&typeof _=="object"&&T.a.isUri(_.uri)&&typeof _.name=="string"&&typeof _.toResource=="function"}u.isIWorkspaceFolder=y})(O||(O={}));var H=function(){function u(y,_,f){_===void 0&&(_=[]),f===void 0&&(f=null),this._id=y,this._configuration=f,this._foldersMap=I.c.forPaths(),this.folders=_}return Object.defineProperty(u.prototype,"folders",{get:function(){return this._folders},set:function(_){this._folders=_,this.updateFoldersMap()},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"configuration",{get:function(){return this._configuration},set:function(_){this._configuration=_},enumerable:!0,configurable:!0}),u.prototype.getFolder=function(y){return y&&this._foldersMap.findSubstr(y.with({scheme:y.scheme,authority:y.authority,path:y.path}).toString())||null},u.prototype.updateFoldersMap=function(){this._foldersMap=I.c.forPaths();for(var y=0,_=this.folders;y<_.length;y++){var f=_[y];this._foldersMap.set(f.uri.toString(),f)}},u.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}},u}(),x=function(){function u(y,_){this.raw=_,this.uri=y.uri,this.index=y.index,this.name=y.name}return u.prototype.toResource=function(y){return re.f(this.uri,y)},u.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},u}()},EffR:function(Lt,j,e){"use strict";e.d(j,"t",function(){return p}),e.d(j,"R",function(){return c}),e.d(j,"M",function(){return s}),e.d(j,"I",function(){return E}),e.d(j,"f",function(){return L}),e.d(j,"g",function(){return A}),e.d(j,"P",function(){return k}),e.d(j,"Q",function(){return R}),e.d(j,"Y",function(){return $}),e.d(j,"j",function(){return W}),e.d(j,"o",function(){return Ce}),e.d(j,"n",function(){return Me}),e.d(j,"h",function(){return Te}),e.d(j,"i",function(){return Fe}),e.d(j,"k",function(){return Ue}),e.d(j,"l",function(){return Pe}),e.d(j,"U",function(){return ae}),e.d(j,"W",function(){return q}),e.d(j,"m",function(){return Xe}),e.d(j,"z",function(){return me}),e.d(j,"y",function(){return ge}),e.d(j,"b",function(){return Re}),e.d(j,"F",function(){return Ee}),e.d(j,"C",function(){return ve}),e.d(j,"e",function(){return Q}),e.d(j,"H",function(){return C}),e.d(j,"B",function(){return F}),e.d(j,"A",function(){return se}),e.d(j,"G",function(){return oe}),e.d(j,"K",function(){return be}),e.d(j,"x",function(){return De}),e.d(j,"N",function(){return Ve}),e.d(j,"E",function(){return Qe}),e.d(j,"w",function(){return it}),e.d(j,"v",function(){return zt}),e.d(j,"O",function(){return uo}),e.d(j,"L",function(){return ao}),e.d(j,"d",function(){return so}),e.d(j,"c",function(){return Pt}),e.d(j,"V",function(){return ft}),e.d(j,"T",function(){return vt}),e.d(j,"Z",function(){return at}),e.d(j,"q",function(){return tt}),e.d(j,"a",function(){return bt}),e.d(j,"X",function(){return Gt}),e.d(j,"J",function(){return Nt}),e.d(j,"S",function(){return Je}),e.d(j,"D",function(){return $e}),e.d(j,"u",function(){return ze}),e.d(j,"ab",function(){return Ke}),e.d(j,"p",function(){return fe}),e.d(j,"s",function(){return G}),e.d(j,"r",function(){return te});var T=e("D3Dy"),re=e("4y0V"),J=e("uDWl"),I=e("XSiN"),U=e("X+cX"),z=e("/cxE"),O=e("MI8n"),H=e("pmY6"),x=e("MNsG"),u=e("6OMU"),y=e("tYmi"),_=e("CjF5"),f=function(){var Y=function(ke,lt){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,Jt){Tt.__proto__=Jt}||function(Tt,Jt){for(var eo in Jt)Jt.hasOwnProperty(eo)&&(Tt[eo]=Jt[eo])},Y(ke,lt)};return function(de,ke){Y(de,ke);function lt(){this.constructor=de}de.prototype=ke===null?Object.create(ke):(lt.prototype=ke.prototype,new lt)}}(),v=function(){return v=Object.assign||function(Y){for(var de,ke=1,lt=arguments.length;ke=0;){if(po=eo+Jt,(eo===0||lt.charCodeAt(eo-1)===32)&<.charCodeAt(po)===32){this._lastStart=eo,this._lastEnd=po+1;return}if(eo>0&<.charCodeAt(eo-1)===32&&po===Tt){this._lastStart=eo-1,this._lastEnd=po;return}if(eo===0&&po===Tt){this._lastStart=0,this._lastEnd=po;return}}this._lastStart=-1},Y.prototype.hasClass=function(de,ke){return this._findClassName(de,ke),this._lastStart!==-1},Y.prototype.addClasses=function(de){for(var ke=this,lt=[],Tt=1;Tt0;){de.sort(ue.sort);var eo=de.shift();eo.execute()}lt=!1};q=function(eo,po){po===void 0&&(po=0);var co=new ue(eo,po);return Y.push(co),ke||(ke=!0,ee(Tt)),co},ae=function(eo,po){if(lt){var co=new ue(eo,po);return de.push(co),co}else return q(eo,po)}})();var X=16,he=function(de,ke){return ke},je=function(Y){f(de,Y);function de(ke,lt,Tt,Jt,eo){Jt===void 0&&(Jt=he),eo===void 0&&(eo=X);var po=Y.call(this)||this,co=null,Eo=0,Oo=po._register(new U.e),Ao=function(){Eo=new Date().getTime(),Tt(co),co=null};return po._register(W(ke,lt,function(Zo){co=Jt(co,Zo);var Co=new Date().getTime()-Eo;Co>=eo?(Oo.cancel(),Ao()):Oo.setIfNotSet(Ao,eo-Co)})),po}return de}(H.a);function Xe(Y,de,ke,lt,Tt){return new je(Y,de,ke,lt,Tt)}function me(Y){return document.defaultView.getComputedStyle(Y,null)}function ge(Y){if(Y!==document.body)return new Re(Y.clientWidth,Y.clientHeight);if(x.c&&window.visualViewport){var de=window.visualViewport.width,ke=window.visualViewport.height-(T.l?20+4:0);return new Re(de,ke)}if(window.innerWidth&&window.innerHeight)return new Re(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new Re(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new Re(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var we=function(){function Y(){}return Y.convertToPixels=function(de,ke){return parseFloat(ke)||0},Y.getDimension=function(de,ke,lt){var Tt=me(de),Jt="0";return Tt&&(Tt.getPropertyValue?Jt=Tt.getPropertyValue(ke):Jt=Tt.getAttribute(lt)),Y.convertToPixels(de,Jt)},Y.getBorderLeftWidth=function(de){return Y.getDimension(de,"border-left-width","borderLeftWidth")},Y.getBorderRightWidth=function(de){return Y.getDimension(de,"border-right-width","borderRightWidth")},Y.getBorderTopWidth=function(de){return Y.getDimension(de,"border-top-width","borderTopWidth")},Y.getBorderBottomWidth=function(de){return Y.getDimension(de,"border-bottom-width","borderBottomWidth")},Y.getPaddingLeft=function(de){return Y.getDimension(de,"padding-left","paddingLeft")},Y.getPaddingRight=function(de){return Y.getDimension(de,"padding-right","paddingRight")},Y.getPaddingTop=function(de){return Y.getDimension(de,"padding-top","paddingTop")},Y.getPaddingBottom=function(de){return Y.getDimension(de,"padding-bottom","paddingBottom")},Y.getMarginLeft=function(de){return Y.getDimension(de,"margin-left","marginLeft")},Y.getMarginTop=function(de){return Y.getDimension(de,"margin-top","marginTop")},Y.getMarginRight=function(de){return Y.getDimension(de,"margin-right","marginRight")},Y.getMarginBottom=function(de){return Y.getDimension(de,"margin-bottom","marginBottom")},Y}(),Re=function(){function Y(de,ke){this.width=de,this.height=ke}return Y}();function Ee(Y){for(var de=Y.offsetParent,ke=Y.offsetTop,lt=Y.offsetLeft;(Y=Y.parentNode)!==null&&Y!==document.body&&Y!==document.documentElement;){ke-=Y.scrollTop;var Tt=Se(Y)?null:me(Y);Tt&&(lt-=Tt.direction!=="rtl"?Y.scrollLeft:-Y.scrollLeft),Y===de&&(lt+=we.getBorderLeftWidth(Y),ke+=we.getBorderTopWidth(Y),ke+=Y.offsetTop,lt+=Y.offsetLeft,de=Y.offsetParent)}return{left:lt,top:ke}}function ve(Y){var de=Y.getBoundingClientRect();return{left:de.left+Q.scrollX,top:de.top+Q.scrollY,width:de.width,height:de.height}}var Q=new(function(){function Y(){}return Object.defineProperty(Y.prototype,"scrollX",{get:function(){return typeof window.scrollX=="number"?window.scrollX:document.body.scrollLeft+document.documentElement.scrollLeft},enumerable:!0,configurable:!0}),Object.defineProperty(Y.prototype,"scrollY",{get:function(){return typeof window.scrollY=="number"?window.scrollY:document.body.scrollTop+document.documentElement.scrollTop},enumerable:!0,configurable:!0}),Y}());function C(Y){var de=we.getMarginLeft(Y)+we.getMarginRight(Y);return Y.offsetWidth+de}function F(Y){var de=we.getBorderLeftWidth(Y)+we.getBorderRightWidth(Y),ke=we.getPaddingLeft(Y)+we.getPaddingRight(Y);return Y.offsetWidth-de-ke}function se(Y){var de=we.getBorderTopWidth(Y)+we.getBorderBottomWidth(Y),ke=we.getPaddingTop(Y)+we.getPaddingBottom(Y);return Y.offsetHeight-de-ke}function oe(Y){var de=we.getMarginTop(Y)+we.getMarginBottom(Y);return Y.offsetHeight+de}function be(Y,de){for(;Y;){if(Y===de)return!0;Y=Y.parentNode}return!1}function De(Y,de,ke){for(;Y&&Y.nodeType===Y.ELEMENT_NODE;){if(E(Y,de))return Y;if(ke){if(typeof ke=="string"){if(E(Y,ke))return null}else if(Y===ke)return null}Y=Y.parentNode}return null}function Se(Y){return Y&&!!Y.host&&!!Y.mode}function Ve(Y){return!!Qe(Y)}function Qe(Y){for(;Y.parentNode;){if(Y===document.body)return null;Y=Y.parentNode}return Se(Y)?Y:null}function it(Y){Y===void 0&&(Y=document.getElementsByTagName("head")[0]);var de=document.createElement("style");return de.type="text/css",de.media="screen",Y.appendChild(de),de}var pt=null;function Rt(){return pt||(pt=it()),pt}function Mt(Y){return Y&&Y.sheet&&Y.sheet.rules?Y.sheet.rules:Y&&Y.sheet&&Y.sheet.cssRules?Y.sheet.cssRules:[]}function zt(Y,de,ke){if(ke===void 0&&(ke=Rt()),!ke||!de)return;ke.sheet.insertRule(Y+"{"+de+"}",0)}function uo(Y,de){if(de===void 0&&(de=Rt()),!de)return;for(var ke=Mt(de),lt=[],Tt=0;Tt=0;Tt--)de.sheet.deleteRule(lt[Tt])}function ao(Y){return typeof HTMLElement=="object"?Y instanceof HTMLElement:Y&&typeof Y=="object"&&Y.nodeType===1&&typeof Y.nodeName=="string"}var so={CLICK:"click",DBLCLICK:"dblclick",MOUSE_UP:"mouseup",MOUSE_DOWN:"mousedown",MOUSE_OVER:"mouseover",MOUSE_MOVE:"mousemove",MOUSE_OUT:"mouseout",MOUSE_ENTER:"mouseenter",MOUSE_LEAVE:"mouseleave",POINTER_UP:"pointerup",POINTER_DOWN:"pointerdown",POINTER_MOVE:"pointermove",CONTEXT_MENU:"contextmenu",WHEEL:"wheel",KEY_DOWN:"keydown",KEY_PRESS:"keypress",KEY_UP:"keyup",LOAD:"load",BEFORE_UNLOAD:"beforeunload",UNLOAD:"unload",ABORT:"abort",ERROR:"error",RESIZE:"resize",SCROLL:"scroll",FULLSCREEN_CHANGE:"fullscreenchange",WK_FULLSCREEN_CHANGE:"webkitfullscreenchange",SELECT:"select",CHANGE:"change",SUBMIT:"submit",RESET:"reset",FOCUS:"focus",FOCUS_IN:"focusin",FOCUS_OUT:"focusout",BLUR:"blur",INPUT:"input",STORAGE:"storage",DRAG_START:"dragstart",DRAG:"drag",DRAG_ENTER:"dragenter",DRAG_LEAVE:"dragleave",DRAG_OVER:"dragover",DROP:"drop",DRAG_END:"dragend",ANIMATION_START:T.m?"webkitAnimationStart":"animationstart",ANIMATION_END:T.m?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:T.m?"webkitAnimationIteration":"animationiteration"},Pt={stop:function(de,ke){de.preventDefault?de.preventDefault():de.returnValue=!1,ke&&(de.stopPropagation?de.stopPropagation():de.cancelBubble=!0)}};function ft(Y){for(var de=[],ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)de[ke]=Y.scrollTop,Y=Y.parentNode;return de}function vt(Y,de){for(var ke=0;Y&&Y.nodeType===Y.ELEMENT_NODE;ke++)Y.scrollTop!==de[ke]&&(Y.scrollTop=de[ke]),Y=Y.parentNode}var At=function(Y){f(de,Y);function de(ke){var lt=Y.call(this)||this;lt._onDidFocus=lt._register(new O.a),lt.onDidFocus=lt._onDidFocus.event,lt._onDidBlur=lt._register(new O.a),lt.onDidBlur=lt._onDidBlur.event;var Tt=be(document.activeElement,ke),Jt=!1,eo=function(){Jt=!1,Tt||(Tt=!0,lt._onDidFocus.fire())},po=function(){Tt&&(Jt=!0,window.setTimeout(function(){Jt&&(Jt=!1,Tt=!1,lt._onDidBlur.fire())},0))};return lt._refreshStateHandler=function(){var co=be(document.activeElement,ke);co!==Tt&&(Tt?po():eo())},lt._register(Object(re.a)(ke,so.FOCUS,!0)(eo)),lt._register(Object(re.a)(ke,so.BLUR,!0)(po)),lt}return de}(H.a);function at(Y){return new At(Y)}function tt(Y){for(var de=[],ke=1;kec){ue._setDesiredScrollPositionNow(je.getScrollPosition());return}var we=ue._sliderMousePosition(Xe),Re=we-X;ue._setDesiredScrollPositionNow(je.getDesiredScrollPositionFromDelta(Re))},function(){ue.slider.toggleClassName("active",!1),ue._host.onDragEnd(),q()}),this._host.onDragStart()},ee.prototype._setDesiredScrollPositionNow=function(ae){var q={};this.writeScrollPosition(q,ae),this._scrollable.setScrollPositionNow(q)},ee}(O.a),l=20,d=function(){function ne(ee,ae,q,ue,X,he){this._scrollbarSize=Math.round(ae),this._oppositeScrollbarSize=Math.round(q),this._arrowSize=Math.round(ee),this._visibleSize=ue,this._scrollSize=X,this._scrollPosition=he,this._computedAvailableSize=0,this._computedIsNeeded=!1,this._computedSliderSize=0,this._computedSliderRatio=0,this._computedSliderPosition=0,this._refreshComputedValues()}return ne.prototype.clone=function(){return new ne(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize,this._visibleSize,this._scrollSize,this._scrollPosition)},ne.prototype.setVisibleSize=function(ee){var ae=Math.round(ee);return this._visibleSize!==ae?(this._visibleSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollSize=function(ee){var ae=Math.round(ee);return this._scrollSize!==ae?(this._scrollSize=ae,this._refreshComputedValues(),!0):!1},ne.prototype.setScrollPosition=function(ee){var ae=Math.round(ee);return this._scrollPosition!==ae?(this._scrollPosition=ae,this._refreshComputedValues(),!0):!1},ne._computeValues=function(ee,ae,q,ue,X){var he=Math.max(0,q-ee),je=Math.max(0,he-2*ae),Xe=ue>0&&ue>q;if(!Xe)return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(je),computedSliderRatio:0,computedSliderPosition:0};var me=Math.round(Math.max(l,Math.floor(q*je/ue))),ge=(je-me)/(ue-q),we=X*ge;return{computedAvailableSize:Math.round(he),computedIsNeeded:Xe,computedSliderSize:Math.round(me),computedSliderRatio:ge,computedSliderPosition:Math.round(we)}},ne.prototype._refreshComputedValues=function(){var ee=ne._computeValues(this._oppositeScrollbarSize,this._arrowSize,this._visibleSize,this._scrollSize,this._scrollPosition);this._computedAvailableSize=ee.computedAvailableSize,this._computedIsNeeded=ee.computedIsNeeded,this._computedSliderSize=ee.computedSliderSize,this._computedSliderRatio=ee.computedSliderRatio,this._computedSliderPosition=ee.computedSliderPosition},ne.prototype.getArrowSize=function(){return this._arrowSize},ne.prototype.getScrollPosition=function(){return this._scrollPosition},ne.prototype.getRectangleLargeSize=function(){return this._computedAvailableSize},ne.prototype.getRectangleSmallSize=function(){return this._scrollbarSize},ne.prototype.isNeeded=function(){return this._computedIsNeeded},ne.prototype.getSliderSize=function(){return this._computedSliderSize},ne.prototype.getSliderPosition=function(){return this._computedSliderPosition},ne.prototype.getDesiredScrollPositionFromOffset=function(ee){if(!this._computedIsNeeded)return 0;var ae=ee-this._arrowSize-this._computedSliderSize/2;return Math.round(ae/this._computedSliderRatio)},ne.prototype.getDesiredScrollPositionFromDelta=function(ee){if(!this._computedIsNeeded)return 0;var ae=this._computedSliderPosition+ee;return Math.round(ae/this._computedSliderRatio)},ne}(),m=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),E=function(ne){m(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.horizontalHasArrows?q.arrowSize:0,q.horizontal===2?0:q.horizontalScrollbarSize,q.vertical===2?0:q.verticalScrollbarSize,he.width,he.scrollWidth,je.scrollLeft),visibility:q.horizontal,extraScrollbarClassName:"horizontal",scrollable:ae})||this,q.horizontalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.horizontalScrollbarSize-u)/2;X._createArrow({className:"left-arrow",top:me,left:Xe,bottom:void 0,right:void 0,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,1,0))}}),X._createArrow({className:"right-arrow",top:me,left:void 0,bottom:void 0,right:Xe,bgWidth:q.arrowSize,bgHeight:q.horizontalScrollbarSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,-1,0))}})}return X._createSlider(Math.floor((q.horizontalScrollbarSize-q.horizontalSliderSize)/2),0,void 0,q.horizontalSliderSize),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setWidth(ae),this.slider.setLeft(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(ae),this.domNode.setHeight(q),this.domNode.setLeft(0),this.domNode.setBottom(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollWidth)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollLeft)||this._shouldRender,this._shouldRender=this._onElementSize(ae.width)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return ae},ee.prototype._sliderMousePosition=function(ae){return ae.posx},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posy},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollLeft=q},ee}(s),L=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),A=function(ne){L(ee,ne);function ee(ae,q,ue){var X=this,he=ae.getScrollDimensions(),je=ae.getCurrentScrollPosition();if(X=ne.call(this,{lazyRender:q.lazyRender,host:ue,scrollbarState:new d(q.verticalHasArrows?q.arrowSize:0,q.vertical===2?0:q.verticalScrollbarSize,0,he.height,he.scrollHeight,je.scrollTop),visibility:q.vertical,extraScrollbarClassName:"vertical",scrollable:ae})||this,q.verticalHasArrows){var Xe=(q.arrowSize-u)/2,me=(q.verticalScrollbarSize-u)/2;X._createArrow({className:"up-arrow",top:Xe,left:me,bottom:void 0,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,0,1))}}),X._createArrow({className:"down-arrow",top:void 0,left:me,bottom:Xe,right:void 0,bgWidth:q.verticalScrollbarSize,bgHeight:q.arrowSize,onActivate:function(){return X._host.onMouseWheel(new U.c(null,0,-1))}})}return X._createSlider(0,Math.floor((q.verticalScrollbarSize-q.verticalSliderSize)/2),q.verticalSliderSize,void 0),X}return ee.prototype._updateSlider=function(ae,q){this.slider.setHeight(ae),this.slider.setTop(q)},ee.prototype._renderDomNode=function(ae,q){this.domNode.setWidth(q),this.domNode.setHeight(ae),this.domNode.setRight(0),this.domNode.setTop(0)},ee.prototype.onDidScroll=function(ae){return this._shouldRender=this._onElementScrollSize(ae.scrollHeight)||this._shouldRender,this._shouldRender=this._onElementScrollPosition(ae.scrollTop)||this._shouldRender,this._shouldRender=this._onElementSize(ae.height)||this._shouldRender,this._shouldRender},ee.prototype._mouseDownRelativePosition=function(ae,q){return q},ee.prototype._sliderMousePosition=function(ae){return ae.posy},ee.prototype._sliderOrthogonalMousePosition=function(ae){return ae.posx},ee.prototype.writeScrollPosition=function(ae,q){ae.scrollTop=q},ee}(s),k=e("MI8n"),R=e("QuOb"),$=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),ie=500,W=50,B=!0,le=function(){function ne(ee,ae,q){this.timestamp=ee,this.deltaX=ae,this.deltaY=q,this.score=0}return ne}(),Ce=function(){function ne(){this._capacity=5,this._memory=[],this._front=-1,this._rear=-1}return ne.prototype.isPhysicalMouseWheel=function(){if(this._front===-1&&this._rear===-1)return!1;var ee=1,ae=0,q=1,ue=this._rear;do{var X=ue===this._front?ee:Math.pow(2,-q);if(ee-=X,ae+=this._memory[ue].score*X,ue===this._front)break;ue=(this._capacity+ue-1)%this._capacity,q++}while(!0);return ae<=.5},ne.prototype.accept=function(ee,ae,q){var ue=new le(ee,ae,q);ue.score=this._computeScore(ue),this._front===-1&&this._rear===-1?(this._memory[0]=ue,this._front=0,this._rear=0):(this._rear=(this._rear+1)%this._capacity,this._rear===this._front&&(this._front=(this._front+1)%this._capacity),this._memory[this._rear]=ue)},ne.prototype._computeScore=function(ee){if(Math.abs(ee.deltaX)>0&&Math.abs(ee.deltaY)>0)return 1;var ae=.5,q=this._front===-1&&this._rear===-1?null:this._memory[this._rear];return(Math.abs(ee.deltaX-Math.round(ee.deltaX))>0||Math.abs(ee.deltaY-Math.round(ee.deltaY))>0)&&(ae+=.25),Math.min(Math.max(ae,0),1)},ne.INSTANCE=new ne,ne}(),Me=function(ne){$(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;X._onScroll=X._register(new k.a),X.onScroll=X._onScroll.event,ae.style.overflow="hidden",X._options=Pe(q),X._scrollable=ue,X._register(X._scrollable.onScroll(function(je){X._onDidScroll(je),X._onScroll.fire(je)}));var he={onMouseWheel:function(Xe){return X._onMouseWheel(Xe)},onDragStart:function(){return X._onDragStart()},onDragEnd:function(){return X._onDragEnd()}};return X._verticalScrollbar=X._register(new A(X._scrollable,X._options,he)),X._horizontalScrollbar=X._register(new E(X._scrollable,X._options,he)),X._domNode=document.createElement("div"),X._domNode.className="monaco-scrollable-element "+X._options.className,X._domNode.setAttribute("role","presentation"),X._domNode.style.position="relative",X._domNode.style.overflow="hidden",X._domNode.appendChild(ae),X._domNode.appendChild(X._horizontalScrollbar.domNode.domNode),X._domNode.appendChild(X._verticalScrollbar.domNode.domNode),X._options.useShadows?(X._leftShadowDomNode=Object(I.b)(document.createElement("div")),X._leftShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._leftShadowDomNode.domNode),X._topShadowDomNode=Object(I.b)(document.createElement("div")),X._topShadowDomNode.setClassName("shadow"),X._domNode.appendChild(X._topShadowDomNode.domNode),X._topLeftShadowDomNode=Object(I.b)(document.createElement("div")),X._topLeftShadowDomNode.setClassName("shadow top-left-corner"),X._domNode.appendChild(X._topLeftShadowDomNode.domNode)):(X._leftShadowDomNode=null,X._topShadowDomNode=null,X._topLeftShadowDomNode=null),X._listenOnDomNode=X._options.listenOnDomNode||X._domNode,X._mouseWheelToDispose=[],X._setListeningToMouseWheel(X._options.handleMouseWheel),X.onmouseover(X._listenOnDomNode,function(je){return X._onMouseOver(je)}),X.onnonbubblingmouseout(X._listenOnDomNode,function(je){return X._onMouseOut(je)}),X._hideTimeout=X._register(new H.e),X._isDragging=!1,X._mouseIsOver=!1,X._shouldRender=!0,X._revealOnScroll=!0,X}return ee.prototype.dispose=function(){this._mouseWheelToDispose=Object(_.f)(this._mouseWheelToDispose),ne.prototype.dispose.call(this)},ee.prototype.getDomNode=function(){return this._domNode},ee.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}},ee.prototype.delegateVerticalScrollbarMouseDown=function(ae){this._verticalScrollbar.delegateMouseDown(ae)},ee.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()},ee.prototype.setScrollDimensions=function(ae){this._scrollable.setScrollDimensions(ae)},ee.prototype.updateClassName=function(ae){this._options.className=ae,w.e&&(this._options.className+=" mac"),this._domNode.className="monaco-scrollable-element "+this._options.className},ee.prototype.updateOptions=function(ae){var q=Pe(ae);this._options.handleMouseWheel=q.handleMouseWheel,this._options.mouseWheelScrollSensitivity=q.mouseWheelScrollSensitivity,this._options.fastScrollSensitivity=q.fastScrollSensitivity,this._setListeningToMouseWheel(this._options.handleMouseWheel),this._options.lazyRender||this._render()},ee.prototype._setListeningToMouseWheel=function(ae){var q=this,ue=this._mouseWheelToDispose.length>0;if(ue===ae)return;if(this._mouseWheelToDispose=Object(_.f)(this._mouseWheelToDispose),ae){var X=function(je){q._onMouseWheel(new U.c(je))};this._mouseWheelToDispose.push(J.j(this._listenOnDomNode,re.f?"mousewheel":"wheel",X,{passive:!1}))}},ee.prototype._onMouseWheel=function(ae){var q,ue=Ce.INSTANCE;if(B&&ue.accept(Date.now(),ae.deltaX,ae.deltaY),ae.deltaY||ae.deltaX){var X=ae.deltaY*this._options.mouseWheelScrollSensitivity,he=ae.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(q=[he,X],X=q[0],he=q[1]);var je=!w.e&&ae.browserEvent&&ae.browserEvent.shiftKey;(this._options.scrollYToX||je)&&!he&&(he=X,X=0),ae.browserEvent&&ae.browserEvent.altKey&&(he=he*this._options.fastScrollSensitivity,X=X*this._options.fastScrollSensitivity);var Xe=this._scrollable.getFutureScrollPosition(),me={};if(X){var ge=Xe.scrollTop-W*X;this._verticalScrollbar.writeScrollPosition(me,ge)}if(he){var we=Xe.scrollLeft-W*he;this._horizontalScrollbar.writeScrollPosition(me,we)}if(me=this._scrollable.validateScrollPosition(me),Xe.scrollLeft!==me.scrollLeft||Xe.scrollTop!==me.scrollTop){var Re=B&&this._options.mouseWheelSmoothScroll&&ue.isPhysicalMouseWheel();Re?this._scrollable.setScrollPositionSmooth(me):this._scrollable.setScrollPositionNow(me),this._shouldRender=!0}}(this._options.alwaysConsumeMouseWheel||this._shouldRender)&&(ae.preventDefault(),ae.stopPropagation())},ee.prototype._onDidScroll=function(ae){this._shouldRender=this._horizontalScrollbar.onDidScroll(ae)||this._shouldRender,this._shouldRender=this._verticalScrollbar.onDidScroll(ae)||this._shouldRender,this._options.useShadows&&(this._shouldRender=!0),this._revealOnScroll&&this._reveal(),this._options.lazyRender||this._render()},ee.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()},ee.prototype._render=function(){if(!this._shouldRender)return;if(this._shouldRender=!1,this._horizontalScrollbar.render(),this._verticalScrollbar.render(),this._options.useShadows){var ae=this._scrollable.getCurrentScrollPosition(),q=ae.scrollTop>0,ue=ae.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(ue?" left":"")),this._topShadowDomNode.setClassName("shadow"+(q?" top":"")),this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(q?" top":"")+(ue?" left":""))}},ee.prototype._onDragStart=function(){this._isDragging=!0,this._reveal()},ee.prototype._onDragEnd=function(){this._isDragging=!1,this._hide()},ee.prototype._onMouseOut=function(ae){this._mouseIsOver=!1,this._hide()},ee.prototype._onMouseOver=function(ae){this._mouseIsOver=!0,this._reveal()},ee.prototype._reveal=function(){this._verticalScrollbar.beginReveal(),this._horizontalScrollbar.beginReveal(),this._scheduleHide()},ee.prototype._hide=function(){!this._mouseIsOver&&!this._isDragging&&(this._verticalScrollbar.beginHide(),this._horizontalScrollbar.beginHide())},ee.prototype._scheduleHide=function(){var ae=this;!this._mouseIsOver&&!this._isDragging&&this._hideTimeout.cancelAndSet(function(){return ae._hide()},ie)},ee}(O.a),Te=function(ne){$(ee,ne);function ee(ae,q){var ue=this;q=q||{},q.mouseWheelSmoothScroll=!1;var X=new R.a(0,function(he){return J.W(he)});return ue=ne.call(this,ae,q,X)||this,ue._register(X),ue}return ee.prototype.setScrollPosition=function(ae){this._scrollable.setScrollPositionNow(ae)},ee.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},ee}(Me),Fe=function(ne){$(ee,ne);function ee(ae,q,ue){return ne.call(this,ae,q,ue)||this}return ee}(Me),Ue=function(ne){$(ee,ne);function ee(ae,q){var ue=ne.call(this,ae,q)||this;return ue._element=ae,ue.onScroll(function(X){X.scrollTopChanged&&(ue._element.scrollTop=X.scrollTop),X.scrollLeftChanged&&(ue._element.scrollLeft=X.scrollLeft)}),ue.scanDomNode(),ue}return ee.prototype.scanDomNode=function(){this.setScrollDimensions({width:this._element.clientWidth,scrollWidth:this._element.scrollWidth,height:this._element.clientHeight,scrollHeight:this._element.scrollHeight}),this.setScrollPosition({scrollLeft:this._element.scrollLeft,scrollTop:this._element.scrollTop})},ee}(Te);function Pe(ne){var ee={lazyRender:typeof ne.lazyRender!="undefined"?ne.lazyRender:!1,className:typeof ne.className!="undefined"?ne.className:"",useShadows:typeof ne.useShadows!="undefined"?ne.useShadows:!0,handleMouseWheel:typeof ne.handleMouseWheel!="undefined"?ne.handleMouseWheel:!0,flipAxes:typeof ne.flipAxes!="undefined"?ne.flipAxes:!1,alwaysConsumeMouseWheel:typeof ne.alwaysConsumeMouseWheel!="undefined"?ne.alwaysConsumeMouseWheel:!1,scrollYToX:typeof ne.scrollYToX!="undefined"?ne.scrollYToX:!1,mouseWheelScrollSensitivity:typeof ne.mouseWheelScrollSensitivity!="undefined"?ne.mouseWheelScrollSensitivity:1,fastScrollSensitivity:typeof ne.fastScrollSensitivity!="undefined"?ne.fastScrollSensitivity:5,mouseWheelSmoothScroll:typeof ne.mouseWheelSmoothScroll!="undefined"?ne.mouseWheelSmoothScroll:!0,arrowSize:typeof ne.arrowSize!="undefined"?ne.arrowSize:11,listenOnDomNode:typeof ne.listenOnDomNode!="undefined"?ne.listenOnDomNode:null,horizontal:typeof ne.horizontal!="undefined"?ne.horizontal:1,horizontalScrollbarSize:typeof ne.horizontalScrollbarSize!="undefined"?ne.horizontalScrollbarSize:10,horizontalSliderSize:typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:0,horizontalHasArrows:typeof ne.horizontalHasArrows!="undefined"?ne.horizontalHasArrows:!1,vertical:typeof ne.vertical!="undefined"?ne.vertical:1,verticalScrollbarSize:typeof ne.verticalScrollbarSize!="undefined"?ne.verticalScrollbarSize:10,verticalHasArrows:typeof ne.verticalHasArrows!="undefined"?ne.verticalHasArrows:!1,verticalSliderSize:typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:0};return ee.horizontalSliderSize=typeof ne.horizontalSliderSize!="undefined"?ne.horizontalSliderSize:ee.horizontalScrollbarSize,ee.verticalSliderSize=typeof ne.verticalSliderSize!="undefined"?ne.verticalSliderSize:ee.verticalScrollbarSize,w.e&&(ee.className+=" mac"),ee}},"GR/f":function(Lt,j,e){"use strict";e.d(j,"a",function(){return f}),e.d(j,"b",function(){return v});var T=e("/cxE"),re=e("N0LK"),J=e("LCkn"),I=e("zN7H"),U=e("aokT"),z=e("gCVg"),O=function(){function w(p,c,s){this._range=p,this._charBeforeSelection=c,this._charAfterSelection=s}return w.prototype.getEditOperations=function(p,c){c.addTrackedEditOperation(new U.a(this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection),c.addTrackedEditOperation(new U.a(this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)},w.prototype.computeCursorState=function(p,c){var s=c.getInverseEditOperations(),l=s[0].range,d=s[1].range;return new z.a(l.endLineNumber,l.endColumn,d.endLineNumber,d.endColumn-this._charAfterSelection.length)},w}(),H=e("Ll0s"),x=e("5v8Y"),u=e("KDc4"),y=e("cMvZ"),_=function(){var w=function(c,s){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var m in d)d.hasOwnProperty(m)&&(l[m]=d[m])},w(c,s)};return function(p,c){w(p,c);function s(){this.constructor=p}p.prototype=c===null?Object.create(c):(s.prototype=c.prototype,new s)}}(),f=function(){function w(){}return w.indent=function(p,c,s){if(c===null||s===null)return[];for(var l=[],d=0,m=s.length;d1){var E=void 0;for(E=s-1;E>=1;E--){var L=c.getLineContent(E),A=re.D(L);if(A>=0)break}if(E<1)return null;var k=c.getLineMaxColumn(E),R=y.a.getEnterAction(p.autoIndent,c,new U.a(E,k,E,k));R&&(d=R.indentation+R.appendText)}return l&&(l===u.a.Indent&&(d=w.shiftIndent(p,d)),l===u.a.Outdent&&(d=w.unshiftIndent(p,d)),d=p.normalizeIndentation(d)),d||null},w._replaceJumpToNextIndent=function(p,c,s,l){var d="",m=s.getStartPosition();if(p.insertSpaces)for(var E=H.a.visibleColumnFromColumn2(p,c,m),L=p.indentSize,A=L-E%L,k=0;k=4){var W=y.a.getIndentForEnter(p.autoIndent,c,l,{unshiftIndent:function(Pe){return _.unshiftIndent(p,Pe)},shiftIndent:function(Pe){return _.shiftIndent(p,Pe)},normalizeIndentation:function(Pe){return p.normalizeIndentation(Pe)}});if(W){var B=U.a.visibleColumnFromColumn2(p,c,l.getEndPosition()),le=l.endColumn,Ce=` +`+L;return s?new J.e(l,k,!0):new J.d(l,k,-1,A.length-L.length,!0)}else if(E.indentAction===u.a.Outdent){var R=w.unshiftIndent(p,E.indentation);return w._typeCommand(l,` +`+p.normalizeIndentation(R+E.appendText),s)}}var $=c.getLineContent(l.startLineNumber),ie=re.t($).substring(0,l.startColumn-1);if(p.autoIndent>=4){var W=y.a.getIndentForEnter(p.autoIndent,c,l,{unshiftIndent:function(Pe){return w.unshiftIndent(p,Pe)},shiftIndent:function(Pe){return w.shiftIndent(p,Pe)},normalizeIndentation:function(Pe){return p.normalizeIndentation(Pe)}});if(W){var B=H.a.visibleColumnFromColumn2(p,c,l.getEndPosition()),le=l.endColumn,Ce=` `;ie!==p.normalizeIndentation(W.beforeEnter)&&(Ce=p.normalizeIndentation(W.beforeEnter)+$.substring(ie.length,l.startColumn-1)+` -`,l=new H.a(l.startLineNumber,1,l.endLineNumber,l.endColumn));var Me=c.getLineContent(l.endLineNumber),Te=re.q(Me);if(Te>=0?l=l.setEndPosition(l.endLineNumber,Math.max(l.endColumn,Te+1)):l=l.setEndPosition(l.endLineNumber,c.getLineMaxColumn(l.endLineNumber)),s)return new J.e(l,Ce+p.normalizeIndentation(W.afterEnter),!0);var Fe=0;return le<=Te+1&&(p.insertSpaces||(B=Math.ceil(B/p.indentSize)),Fe=Math.min(B+1-p.normalizeIndentation(W.afterEnter).length-1,0)),new J.d(l,Ce+p.normalizeIndentation(W.afterEnter),0,Fe,!0)}}return _._typeCommand(l,` -`+p.normalizeIndentation(ie),s)},_._isAutoIndentType=function(p,c,s){if(p.autoIndent<4)return!1;for(var l=0,d=s.length;l2?k.charCodeAt(A.column-2):0;if(ie===92&&$)return!1;if(p.autoClosingOvertype==="auto"){for(var W=!1,B=0,le=l.length;B=0||s.indexOf(c)>=0},_._isBeforeClosingBrace=function(p,c,s){var l=p.autoClosingPairsClose2.get(s);if(!l)return!1;for(var d=_._autoClosingPairIsSymmetric(c),m=0,E=l;mm.open.length){for(var k=!0,R=0,$=s;R<$.length;R++){var ie=$[R],W=c.getValueInRange(new H.a(ie.lineNumber,ie.column-A.open.length+1,ie.lineNumber,ie.column));if(W+l!==A.open){k=!1;break}}k&&(m=A)}}return m},_._isAutoClosingOpenCharType=function(p,c,s,l,d){var m=Object(U.g)(l),E=m?p.autoClosingQuotes:p.autoClosingBrackets;if(E==="never")return null;var L=this._findAutoClosingPairOpen(p,c,s.map(function(Fe){return Fe.getPosition()}),l);if(!L)return null;for(var A=m?p.shouldAutoCloseBefore.quote:p.shouldAutoCloseBefore.bracket,k=0,R=s.length;kie.column-1){var B=W.charAt(ie.column-1),le=_._isBeforeClosingBrace(p,L,B);if(!le&&!A(B))return null}if(!c.isCheapToTokenize(ie.lineNumber))return null;if(L.open.length===1&&m&&E!=="always"){var Ce=Object(x.a)(p.wordSeparators);if(d&&ie.column>1&&Ce.get(W.charCodeAt(ie.column-2))===0)return null;if(!d&&ie.column>2&&Ce.get(W.charCodeAt(ie.column-3))===0)return null}c.forceTokenization(ie.lineNumber);var Me=c.getLineTokens(ie.lineNumber),Te=!1;try{Te=y.a.shouldAutoClosePair(L,Me,d?ie.column:ie.column-1)}catch(Fe){Object(T.e)(Fe)}if(!Te)return null}return L},_._runAutoClosingOpenCharType=function(p,c,s,l,d,m,E){for(var L=[],A=0,k=l.length;A=0;$--)(R=d[$])&&(k=(A<3?R(k):A>3?R(m,E,k):R(m,E))||k);return A>3&&k&&Object.defineProperty(m,E,k),k},p=function(d,m){return function(E,L){m(E,L,d)}},c=function(){function d(m,E){this.decorationIds=[],this.editor=m,this.editorWorkerService=E}return d.get=function(m){return m.getContribution(d.ID)},d.prototype.dispose=function(){},d.prototype.run=function(m,E){var L=this;this.currentRequest&&this.currentRequest.cancel();var A=this.editor.getSelection(),k=this.editor.getModel();if(!k||!A)return;var R=A;if(R.startLineNumber!==R.endLineNumber)return;var $=new U.a(this.editor,1|4),ie=k.uri;return this.editorWorkerService.canNavigateValueSet(ie)?(this.currentRequest=Object(w.f)(function(W){return L.editorWorkerService.navigateValueSet(ie,R,E)}),this.currentRequest.then(function(W){if(!W||!W.range||!W.value)return;if(!$.validate(L.editor))return;var B=re.a.lift(W.range),le=W.range,Ce=W.value.length-(R.endColumn-R.startColumn);le={startLineNumber:le.startLineNumber,startColumn:le.startColumn,endLineNumber:le.endLineNumber,endColumn:le.startColumn+W.value.length},Ce>1&&(R=new J.a(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn+Ce-1));var Me=new O(B,R,W.value);L.editor.pushUndoStop(),L.editor.executeCommand(m,Me),L.editor.pushUndoStop(),L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[{range:le,options:d.DECORATION}]),L.decorationRemover&&L.decorationRemover.cancel(),L.decorationRemover=Object(w.l)(350),L.decorationRemover.then(function(){return L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[])}).catch(f.e)}).catch(f.e)):Promise.resolve(void 0)},d.ID="editor.contrib.inPlaceReplaceController",d.DECORATION=y.a.register({className:"valueSetReplacement"}),d=_([p(1,z.a)],d),d}(),s=function(d){v(m,d);function m(){return d.call(this,{id:"editor.action.inPlaceReplace.up",label:T.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!0):Promise.resolve(void 0)},m}(H.b),l=function(d){v(m,d);function m(){return d.call(this,{id:"editor.action.inPlaceReplace.down",label:T.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!1):Promise.resolve(void 0)},m}(H.b);Object(H.h)(c.ID,c),Object(H.f)(s),Object(H.f)(l),Object(x.e)(function(d,m){var E=d.getColor(u.d);E&&m.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+E+"; }")})},Gw4z:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});var T=function(){function x(u,y,w,f){this.originalStart=u,this.originalLength=y,this.modifiedStart=w,this.modifiedLength=f}return x.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},x.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},x}(),re=e("7afs"),J=function(){function x(u){this.source=u}return x.prototype.getElements=function(){for(var u=this.source,y=new Int32Array(u.length),w=0,f=u.length;w0||this.m_modifiedCount>0)&&this.m_changes.push(new T(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},x.prototype.AddOriginalElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++},x.prototype.AddModifiedElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_modifiedCount++},x.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},x.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},x}(),U=function(){function x(u,y,w){w===void 0&&(w=null),this.ContinueProcessingPredicate=w;var f=x._getElements(u),v=f[0],_=f[1],p=f[2],c=x._getElements(y),s=c[0],l=c[1],d=c[2];this._hasStrings=p&&d,this._originalStringElements=v,this._originalElementsOrHash=_,this._modifiedStringElements=s,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}return x._isStringArray=function(u){return u.length>0&&typeof u[0]=="string"},x._getElements=function(u){var y=u.getElements();if(x._isStringArray(y)){for(var w=new Int32Array(y.length),f=0,v=y.length;f=u&&f>=w&&this.ElementsAreEqual(y,f);)y--,f--;if(u>y||w>f){var _=void 0;return w<=f?(H.Assert(u===y+1,"originalStart should only be one more than originalEnd"),_=[new T(u,0,w,f-w+1)]):u<=y?(H.Assert(w===f+1,"modifiedStart should only be one more than modifiedEnd"),_=[new T(u,y-u+1,w,0)]):(H.Assert(u===y+1,"originalStart should only be one more than originalEnd"),H.Assert(w===f+1,"modifiedStart should only be one more than modifiedEnd"),_=[]),_}var p=[0],c=[0],s=this.ComputeRecursionPoint(u,y,w,f,p,c,v),l=p[0],d=c[0];if(s!==null)return s;if(!v[0]){var m=this.ComputeDiffRecursive(u,l,w,d,v),E=[];return v[0]?E=[new T(l+1,y-(l+1)+1,d+1,f-(d+1)+1)]:E=this.ComputeDiffRecursive(l+1,y,d+1,f,v),this.ConcatenateChanges(m,E)}return[new T(u,y-u+1,w,f-w+1)]},x.prototype.WALKTRACE=function(u,y,w,f,v,_,p,c,s,l,d,m,E,L,A,k,R,$){var ie=null,W=null,B=new O,le=y,Ce=w,Me=E[0]-k[0]-f,Te=-1073741824,Fe=this.m_forwardHistory.length-1;do{var He=Me+u;He===le||He=0&&(s=this.m_forwardHistory[Fe],u=s[0],le=1,Ce=s.length-1)}while(--Fe>=-1);if(ie=B.getReverseChanges(),$[0]){var Pe=E[0]+1,ne=k[0]+1;if(ie!==null&&ie.length>0){var ee=ie[ie.length-1];Pe=Math.max(Pe,ee.getOriginalEnd()),ne=Math.max(ne,ee.getModifiedEnd())}W=[new T(Pe,m-Pe+1,ne,A-ne+1)]}else{B=new O,le=_,Ce=p,Me=E[0]-k[0]-c,Te=1073741824,Fe=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var He=Me+v;He===le||He=l[He+1]?(d=l[He+1]-1,L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d+1,B.AddOriginalElement(d+1,L+1),Me=He+1-v):(d=l[He-1],L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,L+1),Me=He-1-v),Fe>=0&&(l=this.m_reverseHistory[Fe],v=l[0],le=1,Ce=l.length-1)}while(--Fe>=-1);W=B.getChanges()}return this.ConcatenateChanges(ie,W)},x.prototype.ComputeRecursionPoint=function(u,y,w,f,v,_,p){var c=0,s=0,l=0,d=0,m=0,E=0;u--,w--,v[0]=0,_[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var L=y-u+(f-w),A=L+1,k=new Int32Array(A),R=new Int32Array(A),$=f-w,ie=y-u,W=u-w,B=y-f,le=ie-$,Ce=le%2===0;k[$]=u,R[ie]=y,p[0]=!1;for(var Me=1;Me<=L/2+1;Me++){var Te=0,Fe=0;l=this.ClipDiagonalBound($-Me,Me,$,A),d=this.ClipDiagonalBound($+Me,Me,$,A);for(var He=l;He<=d;He+=2){He===l||HeTe+Fe&&(Te=c,Fe=s),!Ce&&Math.abs(He-ie)<=Me-1&&c>=R[He])return v[0]=c,_[0]=s,Pe<=R[He]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,_,Ce,p):null}var ne=(Te-u+(Fe-w)-Me)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Te,ne))return p[0]=!0,v[0]=Te,_[0]=Fe,ne>0&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,_,Ce,p):(u++,w++,[new T(u,y-u+1,w,f-w+1)]);m=this.ClipDiagonalBound(ie-Me,Me,ie,A),E=this.ClipDiagonalBound(ie+Me,Me,ie,A);for(var He=m;He<=E;He+=2){He===m||He=R[He+1]?c=R[He+1]-1:c=R[He-1],s=c-(He-ie)-B;for(var Pe=c;c>u&&s>w&&this.ElementsAreEqual(c,s);)c--,s--;if(R[He]=c,Ce&&Math.abs(He-$)<=Me&&c<=k[He])return v[0]=c,_[0]=s,Pe>=k[He]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,_,Ce,p):null}if(Me<=1447){var ee=new Int32Array(d-l+2);ee[0]=$-l+1,z.Copy2(k,l,ee,1,d-l+1),this.m_forwardHistory.push(ee),ee=new Int32Array(E-m+2),ee[0]=ie-m+1,z.Copy2(R,m,ee,1,E-m+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,_,Ce,p)},x.prototype.PrettifyChanges=function(u){for(var y=0;y0,p=w.modifiedLength>0;w.originalStart+w.originalLength=0;y--){var w=u[y],f=0,v=0;if(y>0){var s=u[y-1];s.originalLength>0&&(f=s.originalStart+s.originalLength),s.modifiedLength>0&&(v=s.modifiedStart+s.modifiedLength)}for(var _=w.originalLength>0,p=w.modifiedLength>0,l=0,d=this._boundaryScore(w.originalStart,w.originalLength,w.modifiedStart,w.modifiedLength),m=1;;m++){var E=w.originalStart-m,L=w.modifiedStart-m;if(Ed&&(d=A,l=m)}w.originalStart-=l,w.modifiedStart-=l}return u},x.prototype._OriginalIsBoundary=function(u){return u<=0||u>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[u])},x.prototype._OriginalRegionIsBoundary=function(u,y){if(this._OriginalIsBoundary(u)||this._OriginalIsBoundary(u-1))return!0;if(y>0){var w=u+y;if(this._OriginalIsBoundary(w-1)||this._OriginalIsBoundary(w))return!0}return!1},x.prototype._ModifiedIsBoundary=function(u){return u<=0||u>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[u])},x.prototype._ModifiedRegionIsBoundary=function(u,y){if(this._ModifiedIsBoundary(u)||this._ModifiedIsBoundary(u-1))return!0;if(y>0){var w=u+y;if(this._ModifiedIsBoundary(w-1)||this._ModifiedIsBoundary(w))return!0}return!1},x.prototype._boundaryScore=function(u,y,w,f){var v=this._OriginalRegionIsBoundary(u,y)?1:0,_=this._ModifiedRegionIsBoundary(w,f)?1:0;return v+_},x.prototype.ConcatenateChanges=function(u,y){var w=[];if(u.length===0||y.length===0)return y.length>0?y:u;if(this.ChangesOverlap(u[u.length-1],y[0],w)){var f=new Array(u.length+y.length-1);return z.Copy(u,0,f,0,u.length-1),f[u.length-1]=w[0],z.Copy(y,1,f,u.length,y.length-1),f}else{var f=new Array(u.length+y.length);return z.Copy(u,0,f,0,u.length),z.Copy(y,0,f,u.length,y.length),f}},x.prototype.ChangesOverlap=function(u,y,w){if(H.Assert(u.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),H.Assert(u.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),u.originalStart+u.originalLength>=y.originalStart||u.modifiedStart+u.modifiedLength>=y.modifiedStart){var f=u.originalStart,v=u.originalLength,_=u.modifiedStart,p=u.modifiedLength;return u.originalStart+u.originalLength>=y.originalStart&&(v=y.originalStart+y.originalLength-u.originalStart),u.modifiedStart+u.modifiedLength>=y.modifiedStart&&(p=y.modifiedStart+y.modifiedLength-u.modifiedStart),w[0]=new T(f,v,_,p),!0}else return w[0]=null,!1},x.prototype.ClipDiagonalBound=function(u,y,w,f){if(u>=0&&u=0;le--)(B=A[le])&&(W=(ie<3?B(W):ie>3?B(k,R,W):B(k,R))||W);return ie>3&&W&&Object.defineProperty(k,R,W),W},E=function(A,k){return function(R,$){k(R,$,A)}},L=function(){function A(k,R,$){var ie=this;this.textModelResolverService=R,this.modeService=$,this.toUnhook=new w.b,this.toUnhookForKeyboard=new w.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=k;var W=new s.a(k);this.toUnhook.add(W),this.toUnhook.add(W.onMouseMoveOrRelevantKeyDown(function(B){var le=B[0],Ce=B[1];ie.startFindDefinitionFromMouse(le,Object(d.n)(Ce))})),this.toUnhook.add(W.onExecute(function(B){ie.isEnabled(B)&&ie.gotoDefinition(B.target.position,B.hasSideBySideModifier).then(function(){ie.removeLinkDecorations()},function(le){ie.removeLinkDecorations(),Object(H.e)(le)})})),this.toUnhook.add(W.onCancel(function(){ie.removeLinkDecorations(),ie.currentWordAtPosition=null}))}return A.get=function(k){return k.getContribution(A.ID)},A.prototype.startFindDefinitionFromCursor=function(k){var R=this;return this.startFindDefinition(k).then(function(){R.toUnhookForKeyboard.add(R.editor.onDidChangeCursorPosition(function(){R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear()})),R.toUnhookForKeyboard.add(R.editor.onKeyDown(function($){$&&(R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear())}))})},A.prototype.startFindDefinitionFromMouse=function(k,R){if(k.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(k,R)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var $=k.target.position;this.startFindDefinition($)},A.prototype.startFindDefinition=function(k){var R=this,$;this.toUnhookForKeyboard.clear();var ie=k?($=this.editor.getModel())===null||$===void 0?void 0:$.getWordAtPosition(k):null;if(!ie)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===ie.startColumn&&this.currentWordAtPosition.endColumn===ie.endColumn&&this.currentWordAtPosition.word===ie.word)return Promise.resolve(0);this.currentWordAtPosition=ie;var W=new p.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(I.f)(function(B){return R.findDefinition(k,B)}),this.previousPromise.then(function(B){if(!B||!B.length||!W.validate(R.editor)){R.removeLinkDecorations();return}if(B.length>1)R.addDecoration(new U.a(k.lineNumber,ie.startColumn,k.lineNumber,ie.endColumn),new z.a().appendText(J.a("multipleResults","Click to show {0} definitions.",B.length)));else{var le=B[0];if(!le.uri)return;R.textModelResolverService.createModelReference(le.uri).then(function(Ce){if(!Ce.object||!Ce.object.textEditorModel){Ce.dispose();return}var Me=Ce.object.textEditorModel,Te=le.range.startLineNumber;if(Te<1||Te>Me.getLineCount()){Ce.dispose();return}var Fe=R.getPreviewValue(Me,Te,le),He;le.originSelectionRange?He=U.a.lift(le.originSelectionRange):He=new U.a(k.lineNumber,ie.startColumn,k.lineNumber,ie.endColumn);var Pe=R.modeService.getModeIdByFilepathOrFirstLine(Me.uri);R.addDecoration(He,new z.a().appendCodeblock(Pe||"",Fe)),Ce.dispose()})}}).then(void 0,H.e)},A.prototype.getPreviewValue=function(k,R,$){var ie=$.targetSelectionRange?$.range:this.getPreviewRangeBasedOnBrackets(k,R),W=ie.endLineNumber-ie.startLineNumber;W>=A.MAX_SOURCE_PREVIEW_LINES&&(ie=this.getPreviewRangeBasedOnIndentation(k,R));var B=this.stripIndentationFromPreviewRange(k,R,ie);return B},A.prototype.stripIndentationFromPreviewRange=function(k,R,$){for(var ie=k.getLineFirstNonWhitespaceColumn(R),W=ie,B=R+1;B<$.endLineNumber;B++){var le=k.getLineFirstNonWhitespaceColumn(B);W=Math.min(W,le)}var Ce=k.getValueInRange($).replace(new RegExp("^\\s{"+(W-1)+"}","gm"),"").trim();return Ce},A.prototype.getPreviewRangeBasedOnIndentation=function(k,R){for(var $=k.getLineFirstNonWhitespaceColumn(R),ie=Math.min(k.getLineCount(),R+A.MAX_SOURCE_PREVIEW_LINES),W=R+1;W$)return new U.a(R,1,$+1,1);B=k.findNextBracket(new l.a(Me,Te))}return new U.a(R,1,$+1,1)},A.prototype.addDecoration=function(k,R){var $={range:k,options:{inlineClassName:"goto-definition-link",hoverMessage:R}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[$])},A.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},A.prototype.isEnabled=function(k,R){return this.editor.hasModel()&&k.isNoneOrSingleMouseDown&&k.target.type===6&&(k.hasTriggerModifier||(R?R.keyCodeIsTriggerKey:!1))&&x.f.has(this.editor.getModel())},A.prototype.findDefinition=function(k,R){var $=this.editor.getModel();return $?Object(y.b)($,k,R):Promise.resolve(null)},A.prototype.gotoDefinition=function(k,R){var $=this;this.editor.setPosition(k);var ie=new c.DefinitionAction({openToSide:R,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(W){return ie.run(W,$.editor)})},A.prototype.dispose=function(){this.toUnhook.dispose()},A.ID="editor.contrib.gotodefinitionatposition",A.MAX_SOURCE_PREVIEW_LINES=8,A=m([E(1,f.a),E(2,O.a)],A),A}();Object(u.h)(L.ID,L),Object(v.e)(function(A,k){var R=A.getColor(_.n);R&&k.addRule(".monaco-editor .goto-definition-link { color: "+R+" !important; }")})},H6Gb:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return e.e(303).then(e.bind(null,"lXEz"))}})},HdwC:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return p});var T=e("D3Dy"),re=e("MI8n"),J=e("pmY6"),I=e("MNsG"),H=function(){function c(s,l){this.chr=s,this.type=l,this.width=0}return c.prototype.fulfill=function(s){this.width=s},c}(),z=function(){function c(s,l){this._bareFontInfo=s,this._requests=l,this._container=null,this._testElements=null}return c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.prototype._createDomElements=function(){var s=document.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";var l=document.createElement("div");l.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),l.style.fontWeight=this._bareFontInfo.fontWeight,l.style.fontSize=this._bareFontInfo.fontSize+"px",l.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,l.style.lineHeight=this._bareFontInfo.lineHeight+"px",l.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(l);var d=document.createElement("div");d.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),d.style.fontWeight="bold",d.style.fontSize=this._bareFontInfo.fontSize+"px",d.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,d.style.lineHeight=this._bareFontInfo.lineHeight+"px",d.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(d);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",s.appendChild(m);for(var E=[],L=0,A=this._requests;L.001){ee=!1;break}}var he=!0;ee&&He.width!==ae&&(he=!1),He.width>Fe.width&&(he=!1);var je=T.b()>2e3;return new y.b({zoomLevel:T.c(),fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,fontFeatureSettings:l.fontFeatureSettings,lineHeight:l.lineHeight,letterSpacing:l.letterSpacing,isMonospace:ee,typicalHalfwidthCharacterWidth:E.width,typicalFullwidthCharacterWidth:L.width,canUseHalfwidthRightwardsArrow:he,spaceWidth:A.width,middotWidth:Pe.width,maxDigitWidth:ne},je)},s.INSTANCE=new s,s}(J.a),p=function(c){w(s,c);function s(l,d,m,E){m===void 0&&(m=null);var L=c.call(this,l,d)||this;return L.accessibilityService=E,L._elementSizeObserver=L._register(new U.a(m,d.dimension,function(){return L._onReferenceDomElementSizeChanged()})),L._register(_.INSTANCE.onDidChange(function(){return L._onCSSBasedConfigurationChanged()})),L._validatedOptions.get(9)&&L._elementSizeObserver.startObserving(),L._register(T.o(function(A){return L._recomputeOptions()})),L._register(L.accessibilityService.onDidChangeScreenReaderOptimized(function(){return L._recomputeOptions()})),L._recomputeOptions(),L}return s.applyFontInfoSlow=function(l,d){l.style.fontFamily=d.getMassagedFontFamily(),l.style.fontWeight=d.fontWeight,l.style.fontSize=d.fontSize+"px",l.style.fontFeatureSettings=d.fontFeatureSettings,l.style.lineHeight=d.lineHeight+"px",l.style.letterSpacing=d.letterSpacing+"px"},s.applyFontInfo=function(l,d){l.setFontFamily(d.getMassagedFontFamily()),l.setFontWeight(d.fontWeight),l.setFontSize(d.fontSize),l.setFontFeatureSettings(d.fontFeatureSettings),l.setLineHeight(d.lineHeight),l.setLetterSpacing(d.letterSpacing)},s.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},s.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},s.prototype.observeReferenceElement=function(l){this._elementSizeObserver.observe(l)},s.prototype.dispose=function(){c.prototype.dispose.call(this)},s.prototype._getExtraEditorClassName=function(){var l="";return!T.k&&!T.n&&(l+="no-user-select "),I.e&&(l+="mac "),l},s.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:T.m||T.h,pixelRatio:T.a(),zoomLevel:T.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},s.prototype.readConfiguration=function(l){return _.INSTANCE.readConfiguration(l)},s}(x.a)},HyZH:function(Lt,j,e){},"I/Lx":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return e.e(284).then(e.bind(null,"yswY"))}})},"J+ZK":function(Lt,j,e){},"JQT/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J}),e.d(j,"b",function(){return H});var T=e("MI8n"),re=Object.freeze(function(z,O){var U=setTimeout(z.bind(O),0);return{dispose:function(){clearTimeout(U)}}}),J;(function(z){function O(U){return U===z.None||U===z.Cancelled||U instanceof I?!0:!U||typeof U!="object"?!1:typeof U.isCancellationRequested=="boolean"&&typeof U.onCancellationRequested=="function"}z.isCancellationToken=O,z.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),z.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(J||(J={}));var I=function(){function z(){this._isCancelled=!1,this._emitter=null}return z.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(z.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?re:(this._emitter||(this._emitter=new T.a),this._emitter.event)},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},z}(),H=function(){function z(O){this._token=void 0,this._parentListener=void 0,this._parentListener=O&&O.onCancellationRequested(this.cancel,this)}return Object.defineProperty(z.prototype,"token",{get:function(){return this._token||(this._token=new I),this._token},enumerable:!0,configurable:!0}),z.prototype.cancel=function(){this._token?this._token instanceof I&&this._token.cancel():this._token=J.Cancelled},z.prototype.dispose=function(O){O===void 0&&(O=!1),O&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=J.None},z}()},JYp7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"f",function(){return H}),e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O}),e.d(j,"e",function(){return U});var T=function(){var x=function(y,w){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var _ in v)v.hasOwnProperty(_)&&(f[_]=v[_])},x(y,w)};return function(u,y){x(u,y);function w(){this.constructor=u}u.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),re={done:!0,value:void 0},J;(function(x){var u={next:function(){return re}};function y(){return u}x.empty=y;function w(E){var L=!1;return{next:function(){return L?re:(L=!0,{done:!1,value:E})}}}x.single=w;function f(E,L,A){return L===void 0&&(L=0),A===void 0&&(A=E.length),{next:function(){return L>=A?re:{done:!1,value:E[L++]}}}}x.fromArray=f;function v(E){return{next:function(){var A=E.next();return A.done?re:{done:!1,value:A.value}}}}x.fromNativeIterator=v;function _(E){return E?Array.isArray(E)?x.fromArray(E):E:x.empty()}x.from=_;function p(E,L){return{next:function(){var k=E.next();return k.done?re:{done:!1,value:L(k.value)}}}}x.map=p;function c(E,L){return{next:function(){for(;;){var k=E.next();if(k.done)return re;if(L(k.value))return{done:!1,value:k.value}}}}}x.filter=c;function s(E,L){for(var A=E.next();!A.done;A=E.next())L(A.value)}x.forEach=s;function l(E,L){L===void 0&&(L=Number.POSITIVE_INFINITY);var A=[];if(L===0)return A;for(var k=0,R=E.next();!R.done&&!(A.push(R.value),++k>=L);R=E.next());return A}x.collect=l;function d(){for(var E=[],L=0;L=E.length)return re;var R=E[A],$=R.next();return $.done?(A++,this.next()):$}}}x.concat=d;function m(E){return new I(E)}x.chain=m})(J||(J={}));var I=function(){function x(u){this.it=u}return x.prototype.next=function(){return this.it.next()},x}();function H(x){return Array.isArray(x)?J.fromArray(x):x||J.empty()}var z=function(){function x(u,y,w,f){y===void 0&&(y=0),w===void 0&&(w=u.length),f===void 0&&(f=y-1),this.items=u,this.start=y,this.end=w,this.index=f}return x.prototype.first=function(){return this.index=this.start,this.current()},x.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},x.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},x}(),O=function(x){T(u,x);function u(y,w,f,v){return w===void 0&&(w=0),f===void 0&&(f=y.length),v===void 0&&(v=w-1),x.call(this,y,w,f,v)||this}return u.prototype.current=function(){return x.prototype.current.call(this)},u.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},u.prototype.first=function(){return this.index=this.start,this.current()},u.prototype.last=function(){return this.index=this.end-1,this.current()},u.prototype.parent=function(){return null},u}(z),U=function(){function x(u,y){this.iterator=u,this.fn=y}return x.prototype.next=function(){return this.fn(this.iterator.next())},x}()},JlLP:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return e.e(305).then(e.bind(null,"W1QP"))}})},KDc4:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re});var T;(function(J){J[J.None=0]="None",J[J.Indent=1]="Indent",J[J.IndentOutdent=2]="IndentOutdent",J[J.Outdent=3]="Outdent"})(T||(T={}));var re=function(){function J(I){if(this.open=I.open,this.close=I.close,this._standardTokenMask=0,Array.isArray(I.notIn))for(var H=0,z=I.notIn.length;H=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.changeValue=function(H,z){return H=Object(T.a)(H),z=Object(T.a)(z),this.values[H]===z?!1:(this.values[H]=z,H-1=O.length)return!1;var x=O.length-H;return z>=x&&(z=x),z===0?!1:(this.values=new Uint32Array(O.length-z),this.values.set(O.subarray(0,H),0),this.values.set(O.subarray(H+z),H),this.prefixSum=new Uint32Array(this.values.length),H-1=0&&this.prefixSum.set(U.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},I.prototype.getAccumulatedValue=function(H){return H<0?0:(H=Object(T.a)(H),this._getAccumulatedValue(H))},I.prototype._getAccumulatedValue=function(H){if(H<=this.prefixSumValidIndex[0])return this.prefixSum[H];var z=this.prefixSumValidIndex[0]+1;z===0&&(this.prefixSum[0]=this.values[0],z++),H>=this.values.length&&(H=this.values.length-1);for(var O=z;O<=H;O++)this.prefixSum[O]=this.prefixSum[O-1]+this.values[O];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],H),this.prefixSum[H]},I.prototype.getIndexOf=function(H){H=Math.floor(H),this.getTotalValue();for(var z=0,O=this.values.length-1,U=0,x=0,u=0;z<=O;)if(U=z+(O-z)/2|0,x=this.prefixSum[U],u=x-this.values[U],H=x)z=U+1;else break;return new re(U,H-u)},I}()},LexI:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(285).then(e.bind(null,"lHAa"))}})},Ll0s:function(Lt,j,e){"use strict";e.d(j,"b",function(){return w}),e.d(j,"f",function(){return f}),e.d(j,"c",function(){return v}),e.d(j,"d",function(){return c}),e.d(j,"e",function(){return s}),e.d(j,"a",function(){return l}),e.d(j,"g",function(){return d});var T=e("/cxE"),re=e("N0LK"),J=e("cGHE"),I=e("aokT"),H=e("gCVg"),z=e("tX9W"),O=e("cMvZ"),U=function(){return!0},x=function(){return!1},u=function(E){return E===" "||E===" "};function y(m,E,L){m.has(E)?m.get(E).push(L):m.set(E,[L])}var w=function(){function m(E,L,A){this._languageIdentifier=E;var k=A.options,R=k.get(107);this.readOnly=k.get(68),this.tabSize=L.tabSize,this.indentSize=L.indentSize,this.insertSpaces=L.insertSpaces,this.lineHeight=k.get(49),this.pageSize=Math.max(1,Math.floor(R.height/this.lineHeight)-2),this.useTabStops=k.get(95),this.wordSeparators=k.get(96),this.emptySelectionClipboard=k.get(25),this.copyWithSyntaxHighlighting=k.get(15),this.multiCursorMergeOverlapping=k.get(58),this.multiCursorPaste=k.get(60),this.autoClosingBrackets=k.get(5),this.autoClosingQuotes=k.get(7),this.autoClosingOvertype=k.get(6),this.autoSurround=k.get(10),this.autoIndent=k.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:m._getShouldAutoClose(E,this.autoClosingQuotes),bracket:m._getShouldAutoClose(E,this.autoClosingBrackets)};var $=m._getAutoClosingPairs(E);if($)for(var ie=0,W=$;ie=65536?2:1,W===9)$=m.nextRenderTabStop($,A);else{for(var B=re.s(W);ie=65536?2:1,B=Ce}re.y(W)||re.w(W)?$=$+2:$=$+1}}return $},m.visibleColumnFromColumn2=function(E,L,A){return this.visibleColumnFromColumn(L.getLineContent(A.lineNumber),A.column,E.tabSize)},m.columnFromVisibleColumn=function(E,L,A){if(L<=0)return 1;for(var k=E.length,R=0,$=1,ie=0;ie=65536?2:1;var B=void 0;if(W===9)B=m.nextRenderTabStop(R,A);else{for(var le=re.s(W);ie=65536?2:1,le=Me}re.y(W)||re.w(W)?B=R+2:B=R+1}var Te=ie+1;if(B>=L){var Fe=L-R,He=B-L;return Heie?ie:R},m.nextRenderTabStop=function(E,L){return E+L-E%L},m.nextIndentTabStop=function(E,L){return E+L-E%L},m.prevRenderTabStop=function(E,L){return E-1-(E-1)%L},m.prevIndentTabStop=function(E,L){return E-1-(E-1)%L},m}();function d(m){return m==="'"||m==='"'||m==="`"}},"M/lh":function(Lt,j,e){self.MonacoEnvironment=function(T){function re(J){return J.replace(/\/$/,"")}return{getWorkerUrl:function(I,H){var z=e.p,O=(z?re(z)+"/":"")+T[H];if(/^(http:)|(https:)|(file:)/.test(O)){var U=String(window.location),x=U.substr(0,U.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(O.substring(0,x.length)!==x){var u="/*"+H+'*/importScripts("'+O+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(u)}}return O}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),e("SBYE"),e("bk7F"),e("KTWA"),e("w29/"),e("CxEt"),e("d6R0"),e("kqbb"),e("n01l"),e("fD5p"),e("1YUG"),e("5RaG"),e("/RFl"),e("oQaD"),e("dgXF"),e("bfR1"),e("cIJc"),e("lY/7"),e("AhDq"),e("8Ydt"),e("H4T2"),e("rugR"),e("oiKk"),e("GvMn"),e("gJAb"),e("dH+W"),e("2ESN"),e("8XyJ"),e("WwIK"),e("v+CO"),e("WQDh"),e("4sI4"),e("Q631"),e("10Fh"),e("tXSY"),e("ep4t"),e("vVA1"),e("k7pc"),e("ba9Q"),e("XtJs"),e("s7Km"),e("LUcL"),Lt.exports=e("8z58"),e("CdFp"),e("23p7"),e("OOlL"),e("li8W"),e("kdPm"),e("ApJL"),e("jrbv"),e("gqHg"),e("p3Ex"),e("E+ie"),e("9B1q"),e("9XAT"),e("SvYn"),e("I/Lx"),e("LexI"),e("0oIH"),e("+a1H"),e("hFdI"),e("c2dO"),e("zQEy"),e("k7mE"),e("cldp"),e("p5tG"),e("Dvnd"),e("FvUK"),e("ZvGG"),e("QFiB"),e("ZkA/"),e("/cAr"),e("xYNL"),e("jVwG"),e("6lNC"),e("q8qy"),e("sStQ"),e("oKJv"),e("H6Gb"),e("y3CF"),e("JlLP"),e("j2o1"),e("woZy"),e("iLY9"),e("Msxo"),e("ajgA"),e("QiAa"),e("pI2L"),e("yKqg"),e("ij/i"),e("XQgg"),e("Gb1F"),e("xmOD"),e("c9ML"),e("Mzro"),e("GZrW"),e("1lwE"),e("w9QG"),e("ufhN"),e("LRks"),e("BUKB"),e("n18v"),e("EOst"),e("z3hU"),e("nrBJ"),e("BEdG"),e("E4kL")},M1Kb:function(Lt,j,e){"use strict";e.d(j,"d",function(){return T}),e.d(j,"c",function(){return re}),e.d(j,"e",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"a",function(){return H});var T;(function(z){z[z.Left=1]="Left",z[z.Center=2]="Center",z[z.Right=4]="Right",z[z.Full=7]="Full"})(T||(T={}));var re;(function(z){z[z.Inline=1]="Inline",z[z.Gutter=2]="Gutter"})(re||(re={}));var J=function(){function z(O){this.tabSize=Math.max(1,O.tabSize|0),this.indentSize=O.tabSize|0,this.insertSpaces=Boolean(O.insertSpaces),this.defaultEOL=O.defaultEOL|0,this.trimAutoWhitespace=Boolean(O.trimAutoWhitespace)}return z.prototype.equals=function(O){return this.tabSize===O.tabSize&&this.indentSize===O.indentSize&&this.insertSpaces===O.insertSpaces&&this.defaultEOL===O.defaultEOL&&this.trimAutoWhitespace===O.trimAutoWhitespace},z.prototype.createChangeEvent=function(O){return{tabSize:this.tabSize!==O.tabSize,indentSize:this.indentSize!==O.indentSize,insertSpaces:this.insertSpaces!==O.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==O.trimAutoWhitespace}},z}(),I=function(){function z(O,U){this.range=O,this.matches=U}return z}(),H=function(){function z(O,U,x){this.reverseEdits=O,this.changes=U,this.trimAutoWhitespaceLineNumbers=x}return z}()},MD5Z:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"Tb",function(){return u}),e.d(j,"W",function(){return y}),e.d(j,"U",function(){return w}),e.d(j,"V",function(){return f}),e.d(j,"e",function(){return v}),e.d(j,"b",function(){return _}),e.d(j,"ec",function(){return p}),e.d(j,"dc",function(){return c}),e.d(j,"hc",function(){return s}),e.d(j,"Z",function(){return l}),e.d(j,"bb",function(){return d}),e.d(j,"ab",function(){return m}),e.d(j,"Y",function(){return E}),e.d(j,"X",function(){return L}),e.d(j,"fb",function(){return A}),e.d(j,"hb",function(){return k}),e.d(j,"gb",function(){return R}),e.d(j,"ib",function(){return $}),e.d(j,"kb",function(){return ie}),e.d(j,"jb",function(){return W}),e.d(j,"cb",function(){return B}),e.d(j,"eb",function(){return le}),e.d(j,"db",function(){return Ce}),e.d(j,"Ob",function(){return Fe}),e.d(j,"Nb",function(){return He}),e.d(j,"c",function(){return Pe}),e.d(j,"d",function(){return ne}),e.d(j,"Vb",function(){return ee}),e.d(j,"Xb",function(){return ae}),e.d(j,"Yb",function(){return q}),e.d(j,"Wb",function(){return ue}),e.d(j,"Sb",function(){return X}),e.d(j,"q",function(){return he}),e.d(j,"p",function(){return je}),e.d(j,"P",function(){return Xe}),e.d(j,"O",function(){return me}),e.d(j,"H",function(){return ge}),e.d(j,"G",function(){return _e}),e.d(j,"z",function(){return Re}),e.d(j,"y",function(){return Ee}),e.d(j,"o",function(){return ve}),e.d(j,"x",function(){return Q}),e.d(j,"Q",function(){return C}),e.d(j,"S",function(){return F}),e.d(j,"R",function(){return se}),e.d(j,"T",function(){return oe}),e.d(j,"K",function(){return be}),e.d(j,"L",function(){return De}),e.d(j,"F",function(){return Se}),e.d(j,"M",function(){return Ve}),e.d(j,"N",function(){return Qe}),e.d(j,"r",function(){return it}),e.d(j,"t",function(){return pt}),e.d(j,"v",function(){return Rt}),e.d(j,"s",function(){return Mt}),e.d(j,"u",function(){return zt}),e.d(j,"w",function(){return uo}),e.d(j,"D",function(){return ao}),e.d(j,"A",function(){return so}),e.d(j,"C",function(){return Pt}),e.d(j,"B",function(){return ft}),e.d(j,"E",function(){return vt}),e.d(j,"n",function(){return At}),e.d(j,"J",function(){return at}),e.d(j,"I",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"j",function(){return gt}),e.d(j,"l",function(){return bt}),e.d(j,"k",function(){return Gt}),e.d(j,"m",function(){return Nt}),e.d(j,"i",function(){return Et}),e.d(j,"rb",function(){return Je}),e.d(j,"sb",function(){return $e}),e.d(j,"lb",function(){return ze}),e.d(j,"mb",function(){return Ke}),e.d(j,"xb",function(){return fe}),e.d(j,"yb",function(){return G}),e.d(j,"wb",function(){return te}),e.d(j,"ub",function(){return Y}),e.d(j,"vb",function(){return de}),e.d(j,"nb",function(){return ke}),e.d(j,"tb",function(){return lt}),e.d(j,"ob",function(){return Tt}),e.d(j,"qb",function(){return Jt}),e.d(j,"pb",function(){return eo}),e.d(j,"gc",function(){return po}),e.d(j,"Ab",function(){return co}),e.d(j,"Bb",function(){return Eo}),e.d(j,"zb",function(){return Oo}),e.d(j,"Eb",function(){return Ao}),e.d(j,"Cb",function(){return Zo}),e.d(j,"Db",function(){return Co}),e.d(j,"Fb",function(){return Wo}),e.d(j,"bc",function(){return Go}),e.d(j,"cc",function(){return Bo}),e.d(j,"Zb",function(){return Mo}),e.d(j,"ac",function(){return Qo}),e.d(j,"Lb",function(){return fn}),e.d(j,"Mb",function(){return Vo}),e.d(j,"Hb",function(){return mn}),e.d(j,"Ib",function(){return yn}),e.d(j,"Gb",function(){return dn}),e.d(j,"Jb",function(){return rn}),e.d(j,"Pb",function(){return pn}),e.d(j,"Rb",function(){return zo}),e.d(j,"Qb",function(){return Uo}),e.d(j,"f",function(){return St}),e.d(j,"fc",function(){return nt}),e.d(j,"Kb",function(){return Dt}),e.d(j,"Ub",function(){return M});var T=e("ic2d"),re=e("zrhQ"),J=e("MI8n"),I=e("3/fG"),H=e("3Rsk"),z=e("X+cX"),O={ColorContribution:"base.contributions.colors"},U=function(){function xe(){this._onDidChangeSchema=new J.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return xe.prototype.registerColor=function(Ne,dt,ht,xt,Bt){xt===void 0&&(xt=!1);var Ut={id:Ne,description:ht,defaults:dt,needsTransparency:xt,deprecationMessage:Bt};this.colorsById[Ne]=Ut;var Ht={type:"string",description:ht,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Bt&&(Ht.deprecationMessage=Bt),this.colorSchema.properties[Ne]=Ht,this.colorReferenceSchema.enum.push(Ne),this.colorReferenceSchema.enumDescriptions.push(ht),this._onDidChangeSchema.fire(),Ne},xe.prototype.resolveDefaultColor=function(Ne,dt){var ht=this.colorsById[Ne];if(ht&&ht.defaults){var xt=ht.defaults[dt.type];return M(xt,dt)}return},xe.prototype.getColorSchema=function(){return this.colorSchema},xe.prototype.toString=function(){var Ne=this,dt=function(xt,Bt){var Ut=xt.indexOf(".")===-1?0:1,Ht=Bt.indexOf(".")===-1?0:1;return Ut!==Ht?Ut-Ht:xt.localeCompare(Bt)};return Object.keys(this.colorsById).sort(dt).map(function(ht){return"- `"+ht+"`: "+Ne.colorsById[ht].description}).join(` -`)},xe}(),x=new U;T.a.add(O.ColorContribution,x);function u(xe,Ne,dt,ht,xt){return x.registerColor(xe,Ne,dt,ht,xt)}var y=u("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},I.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),w=u("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},I.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),f=u("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},I.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=u("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},I.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),_=u("contrastActiveBorder",{light:null,dark:null,hc:f},I.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),p=u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},I.a("textLinkForeground","Foreground color for links in text.")),c=u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},I.a("textCodeBlockBackground","Background color for code blocks in text.")),s=u("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},I.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l=u("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("inputBoxBackground","Input box background.")),d=u("input.foreground",{dark:y,light:y,hc:y},I.a("inputBoxForeground","Input box foreground.")),m=u("input.border",{dark:null,light:null,hc:v},I.a("inputBoxBorder","Input box border.")),E=u("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},I.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),L=u("inputOption.activeBackground",{dark:nt(f,.5),light:nt(f,.3),hc:null},I.a("inputOption.activeBackground","Background color of activated options in input fields.")),A=u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},I.a("inputValidationInfoBackground","Input validation background color for information severity.")),k=u("inputValidation.infoForeground",{dark:null,light:null,hc:null},I.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),R=u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},I.a("inputValidationInfoBorder","Input validation border color for information severity.")),$=u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},I.a("inputValidationWarningBackground","Input validation background color for warning severity.")),ie=u("inputValidation.warningForeground",{dark:null,light:null,hc:null},I.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),W=u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},I.a("inputValidationWarningBorder","Input validation border color for warning severity.")),B=u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},I.a("inputValidationErrorBackground","Input validation background color for error severity.")),le=u("inputValidation.errorForeground",{dark:null,light:null,hc:null},I.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ce=u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("inputValidationErrorBorder","Input validation border color for error severity.")),Me=u("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("dropdownBackground","Dropdown background.")),Te=u("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},I.a("dropdownForeground","Dropdown foreground.")),Fe=u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},I.a("pickerGroupForeground","Quick picker color for grouping labels.")),He=u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},I.a("pickerGroupBorder","Quick picker color for grouping borders.")),Pe=u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},I.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ne=u("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},I.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},I.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ae=u("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:nt(v,.6)},I.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=u("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:nt(v,.8)},I.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ue=u("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:v},I.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=u("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:v},I.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),he=u("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},I.a("editorError.foreground","Foreground color of error squigglies in the editor.")),je=u("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},I.a("errorBorder","Border color of error boxes in the editor.")),Xe=u("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},I.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),me=u("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},I.a("warningBorder","Border color of warning boxes in the editor.")),ge=u("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},I.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),_e=u("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},I.a("infoBorder","Border color of info boxes in the editor.")),Re=u("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},I.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ee=u("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},I.a("hintBorder","Border color of hint boxes in the editor.")),ve=u("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},I.a("editorBackground","Editor background color.")),Q=u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},I.a("editorForeground","Editor default foreground color.")),C=u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},I.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),F=u("editorWidget.foreground",{dark:y,light:y,hc:y},I.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),se=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},I.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),oe=u("editorWidget.resizeBorder",{light:null,dark:null,hc:null},I.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),be=u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},I.a("editorSelectionBackground","Color of the editor selection.")),De=u("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},I.a("editorSelectionForeground","Color of the selected text for high contrast.")),Se=u("editor.inactiveSelectionBackground",{light:nt(be,.5),dark:nt(be,.5),hc:nt(be,.5)},I.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=u("editor.selectionHighlightBackground",{light:we(be,ve,.3,.6),dark:we(be,ve,.3,.6),hc:null},I.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=u("editor.selectionHighlightBorder",{light:null,dark:null,hc:_},I.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),it=u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},I.a("editorFindMatch","Color of the current search match.")),pt=u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},I.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},I.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Mt=u("editor.findMatchBorder",{light:null,dark:null,hc:_},I.a("editorFindMatchBorder","Border color of the current search match.")),zt=u("editor.findMatchHighlightBorder",{light:null,dark:null,hc:_},I.a("findMatchHighlightBorder","Border color of the other search matches.")),uo=u("editor.findRangeHighlightBorder",{dark:null,light:null,hc:nt(_,.4)},I.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ao=u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},I.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),so=u("editorHoverWidget.background",{light:C,dark:C,hc:C},I.a("hoverBackground","Background color of the editor hover.")),Pt=u("editorHoverWidget.foreground",{light:F,dark:F,hc:F},I.a("hoverForeground","Foreground color of the editor hover.")),ft=u("editorHoverWidget.border",{light:se,dark:se,hc:se},I.a("hoverBorder","Border color of the editor hover.")),vt=u("editorHoverWidget.statusBarBackground",{dark:ot(so,.2),light:St(so,.05),hc:C},I.a("statusBarBackground","Background color of the editor hover status bar.")),At=u("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},I.a("activeLinkForeground","Color of active links.")),at=u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},I.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),tt=u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},I.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ut=new re.a(new re.c(155,185,85,.2)),Ct=new re.a(new re.c(255,0,0,.2)),gt=u("diffEditor.insertedTextBackground",{dark:ut,light:ut,hc:null},I.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),bt=u("diffEditor.removedTextBackground",{dark:Ct,light:Ct,hc:null},I.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=u("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},I.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Nt=u("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},I.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Et=u("diffEditor.border",{dark:null,light:null,hc:v},I.a("diffEditorBorder","Border color between the two text editors.")),Je=u("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},I.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),$e=u("list.focusForeground",{dark:null,light:null,hc:null},I.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ze=u("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},I.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ke=u("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},I.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fe=u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},I.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),G=u("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},I.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),te=u("list.inactiveFocusBackground",{dark:null,light:null,hc:null},I.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Y=u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},I.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),de=u("list.hoverForeground",{dark:null,light:null,hc:null},I.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ke=u("list.dropBackground",{dark:Je,light:Je,hc:null},I.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),lt=u("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:f},I.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Tt=u("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},I.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Jt=u("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},I.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),eo=u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),po=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},I.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),co=u("menu.border",{dark:null,light:null,hc:v},I.a("menuBorder","Border color of menus.")),Eo=u("menu.foreground",{dark:Te,light:y,hc:Te},I.a("menuForeground","Foreground color of menu items.")),Oo=u("menu.background",{dark:Me,light:Me,hc:Me},I.a("menuBackground","Background color of menu items.")),Ao=u("menu.selectionForeground",{dark:Ke,light:Ke,hc:Ke},I.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Zo=u("menu.selectionBackground",{dark:ze,light:ze,hc:ze},I.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Co=u("menu.selectionBorder",{dark:null,light:null,hc:_},I.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wo=u("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},I.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Go=u("editor.snippetTabstopHighlightBackground",{dark:new re.a(new re.c(124,124,124,.3)),light:new re.a(new re.c(10,50,100,.2)),hc:new re.a(new re.c(124,124,124,.3))},I.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Bo=u("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},I.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Mo=u("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},I.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Qo=u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},I.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),fn=u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},I.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vo=u("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},I.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),mn=u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},I.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),yn=u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},I.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),dn=u("minimap.errorHighlight",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},I.a("minimapError","Minimap marker color for errors.")),rn=u("minimap.warningHighlight",{dark:Xe,light:Xe,hc:me},I.a("overviewRuleWarning","Minimap marker color for warnings.")),pn=u("problemsErrorIcon.foreground",{dark:he,light:he,hc:he},I.a("problemsErrorIconForeground","The color used for the problems error icon.")),zo=u("problemsWarningIcon.foreground",{dark:Xe,light:Xe,hc:Xe},I.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Uo=u("problemsInfoIcon.foreground",{dark:ge,light:ge,hc:ge},I.a("problemsInfoIconForeground","The color used for the problems info icon."));function St(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.darken(Ne):void 0}}function ot(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.lighten(Ne):void 0}}function nt(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.transparent(Ne):void 0}}function Dt(){for(var xe=[],Ne=0;Ne1)&&ue.fire(je),q=0},Fe)})},onLastListenerRemove:function(){ne.dispose()}});return ue.event}v.debounce=L;function A(Me){var Te=new Date().getTime();return p(_(Me),function(Fe){return new Date().getTime()-Te})}v.stopwatch=A;function k(Me){var Te=!0,Fe;return s(Me,function(He){var Pe=Te||He!==Fe;return Te=!1,Fe=He,Pe})}v.latch=k;function R(Me,Te,Fe){Te===void 0&&(Te=!1),Fe===void 0&&(Fe=[]);var He=Fe.slice(),Pe=Me(function(ae){He?He.push(ae):ee.fire(ae)}),ne=function(){He&&He.forEach(function(q){return ee.fire(q)}),He=null},ee=new x({onFirstListenerAdd:function(){Pe||(Pe=Me(function(q){return ee.fire(q)}))},onFirstListenerDidAdd:function(){He&&(Te?setTimeout(ne):ne())},onLastListenerRemove:function(){Pe&&Pe.dispose(),Pe=null}});return ee.event}v.buffer=R;var $=function(){function Me(Te){this.event=Te}return Me.prototype.map=function(Te){return new Me(p(this.event,Te))},Me.prototype.forEach=function(Te){return new Me(c(this.event,Te))},Me.prototype.filter=function(Te){return new Me(s(this.event,Te))},Me.prototype.reduce=function(Te,Fe){return new Me(m(this.event,Te,Fe))},Me.prototype.latch=function(){return new Me(k(this.event))},Me.prototype.debounce=function(Te,Fe,He,Pe){return Fe===void 0&&(Fe=100),He===void 0&&(He=!1),new Me(L(this.event,Te,Fe,He,Pe))},Me.prototype.on=function(Te,Fe,He){return this.event(Te,Fe,He)},Me.prototype.once=function(Te,Fe,He){return _(this.event)(Te,Fe,He)},Me}();function ie(Me){return new $(Me)}v.chain=ie;function W(Me,Te,Fe){Fe===void 0&&(Fe=function(q){return q});var He=function(){for(var q=[],ue=0;ue=0?l=l.setEndPosition(l.endLineNumber,Math.max(l.endColumn,Te+1)):l=l.setEndPosition(l.endLineNumber,c.getLineMaxColumn(l.endLineNumber)),s)return new J.e(l,Ce+p.normalizeIndentation(W.afterEnter),!0);var Fe=0;return le<=Te+1&&(p.insertSpaces||(B=Math.ceil(B/p.indentSize)),Fe=Math.min(B+1-p.normalizeIndentation(W.afterEnter).length-1,0)),new J.d(l,Ce+p.normalizeIndentation(W.afterEnter),0,Fe,!0)}}return w._typeCommand(l,` +`+p.normalizeIndentation(ie),s)},w._isAutoIndentType=function(p,c,s){if(p.autoIndent<4)return!1;for(var l=0,d=s.length;l2?k.charCodeAt(A.column-2):0;if(ie===92&&$)return!1;if(p.autoClosingOvertype==="auto"){for(var W=!1,B=0,le=l.length;B=0||s.indexOf(c)>=0},w._isBeforeClosingBrace=function(p,c,s){var l=p.autoClosingPairsClose2.get(s);if(!l)return!1;for(var d=w._autoClosingPairIsSymmetric(c),m=0,E=l;mm.open.length){for(var k=!0,R=0,$=s;R<$.length;R++){var ie=$[R],W=c.getValueInRange(new U.a(ie.lineNumber,ie.column-A.open.length+1,ie.lineNumber,ie.column));if(W+l!==A.open){k=!1;break}}k&&(m=A)}}return m},w._isAutoClosingOpenCharType=function(p,c,s,l,d){var m=Object(H.g)(l),E=m?p.autoClosingQuotes:p.autoClosingBrackets;if(E==="never")return null;var L=this._findAutoClosingPairOpen(p,c,s.map(function(Fe){return Fe.getPosition()}),l);if(!L)return null;for(var A=m?p.shouldAutoCloseBefore.quote:p.shouldAutoCloseBefore.bracket,k=0,R=s.length;kie.column-1){var B=W.charAt(ie.column-1),le=w._isBeforeClosingBrace(p,L,B);if(!le&&!A(B))return null}if(!c.isCheapToTokenize(ie.lineNumber))return null;if(L.open.length===1&&m&&E!=="always"){var Ce=Object(x.a)(p.wordSeparators);if(d&&ie.column>1&&Ce.get(W.charCodeAt(ie.column-2))===0)return null;if(!d&&ie.column>2&&Ce.get(W.charCodeAt(ie.column-3))===0)return null}c.forceTokenization(ie.lineNumber);var Me=c.getLineTokens(ie.lineNumber),Te=!1;try{Te=y.a.shouldAutoClosePair(L,Me,d?ie.column:ie.column-1)}catch(Fe){Object(T.e)(Fe)}if(!Te)return null}return L},w._runAutoClosingOpenCharType=function(p,c,s,l,d,m,E){for(var L=[],A=0,k=l.length;A=0;$--)(R=d[$])&&(k=(A<3?R(k):A>3?R(m,E,k):R(m,E))||k);return A>3&&k&&Object.defineProperty(m,E,k),k},p=function(d,m){return function(E,L){m(E,L,d)}},c=function(){function d(m,E){this.decorationIds=[],this.editor=m,this.editorWorkerService=E}return d.get=function(m){return m.getContribution(d.ID)},d.prototype.dispose=function(){},d.prototype.run=function(m,E){var L=this;this.currentRequest&&this.currentRequest.cancel();var A=this.editor.getSelection(),k=this.editor.getModel();if(!k||!A)return;var R=A;if(R.startLineNumber!==R.endLineNumber)return;var $=new H.a(this.editor,1|4),ie=k.uri;return this.editorWorkerService.canNavigateValueSet(ie)?(this.currentRequest=Object(_.f)(function(W){return L.editorWorkerService.navigateValueSet(ie,R,E)}),this.currentRequest.then(function(W){if(!W||!W.range||!W.value)return;if(!$.validate(L.editor))return;var B=re.a.lift(W.range),le=W.range,Ce=W.value.length-(R.endColumn-R.startColumn);le={startLineNumber:le.startLineNumber,startColumn:le.startColumn,endLineNumber:le.endLineNumber,endColumn:le.startColumn+W.value.length},Ce>1&&(R=new J.a(R.startLineNumber,R.startColumn,R.endLineNumber,R.endColumn+Ce-1));var Me=new O(B,R,W.value);L.editor.pushUndoStop(),L.editor.executeCommand(m,Me),L.editor.pushUndoStop(),L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[{range:le,options:d.DECORATION}]),L.decorationRemover&&L.decorationRemover.cancel(),L.decorationRemover=Object(_.l)(350),L.decorationRemover.then(function(){return L.decorationIds=L.editor.deltaDecorations(L.decorationIds,[])}).catch(f.e)}).catch(f.e)):Promise.resolve(void 0)},d.ID="editor.contrib.inPlaceReplaceController",d.DECORATION=y.a.register({className:"valueSetReplacement"}),d=w([p(1,z.a)],d),d}(),s=function(d){v(m,d);function m(){return d.call(this,{id:"editor.action.inPlaceReplace.up",label:T.a("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|82,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!0):Promise.resolve(void 0)},m}(U.b),l=function(d){v(m,d);function m(){return d.call(this,{id:"editor.action.inPlaceReplace.down",label:T.a("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:I.a.writable,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|84,weight:100}})||this}return m.prototype.run=function(E,L){var A=c.get(L);return A?A.run(this.id,!1):Promise.resolve(void 0)},m}(U.b);Object(U.h)(c.ID,c),Object(U.f)(s),Object(U.f)(l),Object(x.e)(function(d,m){var E=d.getColor(u.d);E&&m.addRule(".monaco-editor.vs .valueSetReplacement { outline: solid 2px "+E+"; }")})},Gw4z:function(Lt,j,e){"use strict";e.d(j,"b",function(){return I}),e.d(j,"a",function(){return H});var T=function(){function x(u,y,_,f){this.originalStart=u,this.originalLength=y,this.modifiedStart=_,this.modifiedLength=f}return x.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength},x.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength},x}(),re=e("7afs"),J=function(){function x(u){this.source=u}return x.prototype.getElements=function(){for(var u=this.source,y=new Int32Array(u.length),_=0,f=u.length;_0||this.m_modifiedCount>0)&&this.m_changes.push(new T(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824},x.prototype.AddOriginalElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_originalCount++},x.prototype.AddModifiedElement=function(u,y){this.m_originalStart=Math.min(this.m_originalStart,u),this.m_modifiedStart=Math.min(this.m_modifiedStart,y),this.m_modifiedCount++},x.prototype.getChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes},x.prototype.getReverseChanges=function(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes},x}(),H=function(){function x(u,y,_){_===void 0&&(_=null),this.ContinueProcessingPredicate=_;var f=x._getElements(u),v=f[0],w=f[1],p=f[2],c=x._getElements(y),s=c[0],l=c[1],d=c[2];this._hasStrings=p&&d,this._originalStringElements=v,this._originalElementsOrHash=w,this._modifiedStringElements=s,this._modifiedElementsOrHash=l,this.m_forwardHistory=[],this.m_reverseHistory=[]}return x._isStringArray=function(u){return u.length>0&&typeof u[0]=="string"},x._getElements=function(u){var y=u.getElements();if(x._isStringArray(y)){for(var _=new Int32Array(y.length),f=0,v=y.length;f=u&&f>=_&&this.ElementsAreEqual(y,f);)y--,f--;if(u>y||_>f){var w=void 0;return _<=f?(U.Assert(u===y+1,"originalStart should only be one more than originalEnd"),w=[new T(u,0,_,f-_+1)]):u<=y?(U.Assert(_===f+1,"modifiedStart should only be one more than modifiedEnd"),w=[new T(u,y-u+1,_,0)]):(U.Assert(u===y+1,"originalStart should only be one more than originalEnd"),U.Assert(_===f+1,"modifiedStart should only be one more than modifiedEnd"),w=[]),w}var p=[0],c=[0],s=this.ComputeRecursionPoint(u,y,_,f,p,c,v),l=p[0],d=c[0];if(s!==null)return s;if(!v[0]){var m=this.ComputeDiffRecursive(u,l,_,d,v),E=[];return v[0]?E=[new T(l+1,y-(l+1)+1,d+1,f-(d+1)+1)]:E=this.ComputeDiffRecursive(l+1,y,d+1,f,v),this.ConcatenateChanges(m,E)}return[new T(u,y-u+1,_,f-_+1)]},x.prototype.WALKTRACE=function(u,y,_,f,v,w,p,c,s,l,d,m,E,L,A,k,R,$){var ie=null,W=null,B=new O,le=y,Ce=_,Me=E[0]-k[0]-f,Te=-1073741824,Fe=this.m_forwardHistory.length-1;do{var Ue=Me+u;Ue===le||Ue=0&&(s=this.m_forwardHistory[Fe],u=s[0],le=1,Ce=s.length-1)}while(--Fe>=-1);if(ie=B.getReverseChanges(),$[0]){var Pe=E[0]+1,ne=k[0]+1;if(ie!==null&&ie.length>0){var ee=ie[ie.length-1];Pe=Math.max(Pe,ee.getOriginalEnd()),ne=Math.max(ne,ee.getModifiedEnd())}W=[new T(Pe,m-Pe+1,ne,A-ne+1)]}else{B=new O,le=w,Ce=p,Me=E[0]-k[0]-c,Te=1073741824,Fe=R?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{var Ue=Me+v;Ue===le||Ue=l[Ue+1]?(d=l[Ue+1]-1,L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d+1,B.AddOriginalElement(d+1,L+1),Me=Ue+1-v):(d=l[Ue-1],L=d-Me-c,d>Te&&B.MarkNextChange(),Te=d,B.AddModifiedElement(d+1,L+1),Me=Ue-1-v),Fe>=0&&(l=this.m_reverseHistory[Fe],v=l[0],le=1,Ce=l.length-1)}while(--Fe>=-1);W=B.getChanges()}return this.ConcatenateChanges(ie,W)},x.prototype.ComputeRecursionPoint=function(u,y,_,f,v,w,p){var c=0,s=0,l=0,d=0,m=0,E=0;u--,_--,v[0]=0,w[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];var L=y-u+(f-_),A=L+1,k=new Int32Array(A),R=new Int32Array(A),$=f-_,ie=y-u,W=u-_,B=y-f,le=ie-$,Ce=le%2===0;k[$]=u,R[ie]=y,p[0]=!1;for(var Me=1;Me<=L/2+1;Me++){var Te=0,Fe=0;l=this.ClipDiagonalBound($-Me,Me,$,A),d=this.ClipDiagonalBound($+Me,Me,$,A);for(var Ue=l;Ue<=d;Ue+=2){Ue===l||UeTe+Fe&&(Te=c,Fe=s),!Ce&&Math.abs(Ue-ie)<=Me-1&&c>=R[Ue])return v[0]=c,w[0]=s,Pe<=R[Ue]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):null}var ne=(Te-u+(Fe-_)-Me)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Te,ne))return p[0]=!0,v[0]=Te,w[0]=Fe,ne>0&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):(u++,_++,[new T(u,y-u+1,_,f-_+1)]);m=this.ClipDiagonalBound(ie-Me,Me,ie,A),E=this.ClipDiagonalBound(ie+Me,Me,ie,A);for(var Ue=m;Ue<=E;Ue+=2){Ue===m||Ue=R[Ue+1]?c=R[Ue+1]-1:c=R[Ue-1],s=c-(Ue-ie)-B;for(var Pe=c;c>u&&s>_&&this.ElementsAreEqual(c,s);)c--,s--;if(R[Ue]=c,Ce&&Math.abs(Ue-$)<=Me&&c<=k[Ue])return v[0]=c,w[0]=s,Pe>=k[Ue]&&1447>0&&Me<=1447+1?this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p):null}if(Me<=1447){var ee=new Int32Array(d-l+2);ee[0]=$-l+1,z.Copy2(k,l,ee,1,d-l+1),this.m_forwardHistory.push(ee),ee=new Int32Array(E-m+2),ee[0]=ie-m+1,z.Copy2(R,m,ee,1,E-m+1),this.m_reverseHistory.push(ee)}}return this.WALKTRACE($,l,d,W,ie,m,E,B,k,R,c,y,v,s,f,w,Ce,p)},x.prototype.PrettifyChanges=function(u){for(var y=0;y0,p=_.modifiedLength>0;_.originalStart+_.originalLength=0;y--){var _=u[y],f=0,v=0;if(y>0){var s=u[y-1];s.originalLength>0&&(f=s.originalStart+s.originalLength),s.modifiedLength>0&&(v=s.modifiedStart+s.modifiedLength)}for(var w=_.originalLength>0,p=_.modifiedLength>0,l=0,d=this._boundaryScore(_.originalStart,_.originalLength,_.modifiedStart,_.modifiedLength),m=1;;m++){var E=_.originalStart-m,L=_.modifiedStart-m;if(Ed&&(d=A,l=m)}_.originalStart-=l,_.modifiedStart-=l}return u},x.prototype._OriginalIsBoundary=function(u){return u<=0||u>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[u])},x.prototype._OriginalRegionIsBoundary=function(u,y){if(this._OriginalIsBoundary(u)||this._OriginalIsBoundary(u-1))return!0;if(y>0){var _=u+y;if(this._OriginalIsBoundary(_-1)||this._OriginalIsBoundary(_))return!0}return!1},x.prototype._ModifiedIsBoundary=function(u){return u<=0||u>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[u])},x.prototype._ModifiedRegionIsBoundary=function(u,y){if(this._ModifiedIsBoundary(u)||this._ModifiedIsBoundary(u-1))return!0;if(y>0){var _=u+y;if(this._ModifiedIsBoundary(_-1)||this._ModifiedIsBoundary(_))return!0}return!1},x.prototype._boundaryScore=function(u,y,_,f){var v=this._OriginalRegionIsBoundary(u,y)?1:0,w=this._ModifiedRegionIsBoundary(_,f)?1:0;return v+w},x.prototype.ConcatenateChanges=function(u,y){var _=[];if(u.length===0||y.length===0)return y.length>0?y:u;if(this.ChangesOverlap(u[u.length-1],y[0],_)){var f=new Array(u.length+y.length-1);return z.Copy(u,0,f,0,u.length-1),f[u.length-1]=_[0],z.Copy(y,1,f,u.length,y.length-1),f}else{var f=new Array(u.length+y.length);return z.Copy(u,0,f,0,u.length),z.Copy(y,0,f,u.length,y.length),f}},x.prototype.ChangesOverlap=function(u,y,_){if(U.Assert(u.originalStart<=y.originalStart,"Left change is not less than or equal to right change"),U.Assert(u.modifiedStart<=y.modifiedStart,"Left change is not less than or equal to right change"),u.originalStart+u.originalLength>=y.originalStart||u.modifiedStart+u.modifiedLength>=y.modifiedStart){var f=u.originalStart,v=u.originalLength,w=u.modifiedStart,p=u.modifiedLength;return u.originalStart+u.originalLength>=y.originalStart&&(v=y.originalStart+y.originalLength-u.originalStart),u.modifiedStart+u.modifiedLength>=y.modifiedStart&&(p=y.modifiedStart+y.modifiedLength-u.modifiedStart),_[0]=new T(f,v,w,p),!0}else return _[0]=null,!1},x.prototype.ClipDiagonalBound=function(u,y,_,f){if(u>=0&&u=0;le--)(B=A[le])&&(W=(ie<3?B(W):ie>3?B(k,R,W):B(k,R))||W);return ie>3&&W&&Object.defineProperty(k,R,W),W},E=function(A,k){return function(R,$){k(R,$,A)}},L=function(){function A(k,R,$){var ie=this;this.textModelResolverService=R,this.modeService=$,this.toUnhook=new _.b,this.toUnhookForKeyboard=new _.b,this.linkDecorations=[],this.currentWordAtPosition=null,this.previousPromise=null,this.editor=k;var W=new s.a(k);this.toUnhook.add(W),this.toUnhook.add(W.onMouseMoveOrRelevantKeyDown(function(B){var le=B[0],Ce=B[1];ie.startFindDefinitionFromMouse(le,Object(d.n)(Ce))})),this.toUnhook.add(W.onExecute(function(B){ie.isEnabled(B)&&ie.gotoDefinition(B.target.position,B.hasSideBySideModifier).then(function(){ie.removeLinkDecorations()},function(le){ie.removeLinkDecorations(),Object(U.e)(le)})})),this.toUnhook.add(W.onCancel(function(){ie.removeLinkDecorations(),ie.currentWordAtPosition=null}))}return A.get=function(k){return k.getContribution(A.ID)},A.prototype.startFindDefinitionFromCursor=function(k){var R=this;return this.startFindDefinition(k).then(function(){R.toUnhookForKeyboard.add(R.editor.onDidChangeCursorPosition(function(){R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear()})),R.toUnhookForKeyboard.add(R.editor.onKeyDown(function($){$&&(R.currentWordAtPosition=null,R.removeLinkDecorations(),R.toUnhookForKeyboard.clear())}))})},A.prototype.startFindDefinitionFromMouse=function(k,R){if(k.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(k,R)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}var $=k.target.position;this.startFindDefinition($)},A.prototype.startFindDefinition=function(k){var R=this,$;this.toUnhookForKeyboard.clear();var ie=k?($=this.editor.getModel())===null||$===void 0?void 0:$.getWordAtPosition(k):null;if(!ie)return this.currentWordAtPosition=null,this.removeLinkDecorations(),Promise.resolve(0);if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===ie.startColumn&&this.currentWordAtPosition.endColumn===ie.endColumn&&this.currentWordAtPosition.word===ie.word)return Promise.resolve(0);this.currentWordAtPosition=ie;var W=new p.a(this.editor,4|1|2|8);return this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Object(I.f)(function(B){return R.findDefinition(k,B)}),this.previousPromise.then(function(B){if(!B||!B.length||!W.validate(R.editor)){R.removeLinkDecorations();return}if(B.length>1)R.addDecoration(new H.a(k.lineNumber,ie.startColumn,k.lineNumber,ie.endColumn),new z.a().appendText(J.a("multipleResults","Click to show {0} definitions.",B.length)));else{var le=B[0];if(!le.uri)return;R.textModelResolverService.createModelReference(le.uri).then(function(Ce){if(!Ce.object||!Ce.object.textEditorModel){Ce.dispose();return}var Me=Ce.object.textEditorModel,Te=le.range.startLineNumber;if(Te<1||Te>Me.getLineCount()){Ce.dispose();return}var Fe=R.getPreviewValue(Me,Te,le),Ue;le.originSelectionRange?Ue=H.a.lift(le.originSelectionRange):Ue=new H.a(k.lineNumber,ie.startColumn,k.lineNumber,ie.endColumn);var Pe=R.modeService.getModeIdByFilepathOrFirstLine(Me.uri);R.addDecoration(Ue,new z.a().appendCodeblock(Pe||"",Fe)),Ce.dispose()})}}).then(void 0,U.e)},A.prototype.getPreviewValue=function(k,R,$){var ie=$.targetSelectionRange?$.range:this.getPreviewRangeBasedOnBrackets(k,R),W=ie.endLineNumber-ie.startLineNumber;W>=A.MAX_SOURCE_PREVIEW_LINES&&(ie=this.getPreviewRangeBasedOnIndentation(k,R));var B=this.stripIndentationFromPreviewRange(k,R,ie);return B},A.prototype.stripIndentationFromPreviewRange=function(k,R,$){for(var ie=k.getLineFirstNonWhitespaceColumn(R),W=ie,B=R+1;B<$.endLineNumber;B++){var le=k.getLineFirstNonWhitespaceColumn(B);W=Math.min(W,le)}var Ce=k.getValueInRange($).replace(new RegExp("^\\s{"+(W-1)+"}","gm"),"").trim();return Ce},A.prototype.getPreviewRangeBasedOnIndentation=function(k,R){for(var $=k.getLineFirstNonWhitespaceColumn(R),ie=Math.min(k.getLineCount(),R+A.MAX_SOURCE_PREVIEW_LINES),W=R+1;W$)return new H.a(R,1,$+1,1);B=k.findNextBracket(new l.a(Me,Te))}return new H.a(R,1,$+1,1)},A.prototype.addDecoration=function(k,R){var $={range:k,options:{inlineClassName:"goto-definition-link",hoverMessage:R}};this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[$])},A.prototype.removeLinkDecorations=function(){this.linkDecorations.length>0&&(this.linkDecorations=this.editor.deltaDecorations(this.linkDecorations,[]))},A.prototype.isEnabled=function(k,R){return this.editor.hasModel()&&k.isNoneOrSingleMouseDown&&k.target.type===6&&(k.hasTriggerModifier||(R?R.keyCodeIsTriggerKey:!1))&&x.f.has(this.editor.getModel())},A.prototype.findDefinition=function(k,R){var $=this.editor.getModel();return $?Object(y.b)($,k,R):Promise.resolve(null)},A.prototype.gotoDefinition=function(k,R){var $=this;this.editor.setPosition(k);var ie=new c.DefinitionAction({openToSide:R,openInPeek:!1,muteMessage:!0},{alias:"",label:"",id:"",precondition:void 0});return this.editor.invokeWithinContext(function(W){return ie.run(W,$.editor)})},A.prototype.dispose=function(){this.toUnhook.dispose()},A.ID="editor.contrib.gotodefinitionatposition",A.MAX_SOURCE_PREVIEW_LINES=8,A=m([E(1,f.a),E(2,O.a)],A),A}();Object(u.h)(L.ID,L),Object(v.e)(function(A,k){var R=A.getColor(w.n);R&&k.addRule(".monaco-editor .goto-definition-link { color: "+R+" !important; }")})},H6Gb:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:function(){return e.e(303).then(e.bind(null,"lXEz"))}})},HdwC:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return p});var T=e("D3Dy"),re=e("MI8n"),J=e("pmY6"),I=e("MNsG"),U=function(){function c(s,l){this.chr=s,this.type=l,this.width=0}return c.prototype.fulfill=function(s){this.width=s},c}(),z=function(){function c(s,l){this._bareFontInfo=s,this._requests=l,this._container=null,this._testElements=null}return c.prototype.read=function(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null},c.prototype._createDomElements=function(){var s=document.createElement("div");s.style.position="absolute",s.style.top="-50000px",s.style.width="50000px";var l=document.createElement("div");l.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),l.style.fontWeight=this._bareFontInfo.fontWeight,l.style.fontSize=this._bareFontInfo.fontSize+"px",l.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,l.style.lineHeight=this._bareFontInfo.lineHeight+"px",l.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(l);var d=document.createElement("div");d.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),d.style.fontWeight="bold",d.style.fontSize=this._bareFontInfo.fontSize+"px",d.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,d.style.lineHeight=this._bareFontInfo.lineHeight+"px",d.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",s.appendChild(d);var m=document.createElement("div");m.style.fontFamily=this._bareFontInfo.getMassagedFontFamily(),m.style.fontWeight=this._bareFontInfo.fontWeight,m.style.fontSize=this._bareFontInfo.fontSize+"px",m.style.fontFeatureSettings=this._bareFontInfo.fontFeatureSettings,m.style.lineHeight=this._bareFontInfo.lineHeight+"px",m.style.letterSpacing=this._bareFontInfo.letterSpacing+"px",m.style.fontStyle="italic",s.appendChild(m);for(var E=[],L=0,A=this._requests;L.001){ee=!1;break}}var he=!0;ee&&Ue.width!==ae&&(he=!1),Ue.width>Fe.width&&(he=!1);var je=T.b()>2e3;return new y.b({zoomLevel:T.c(),fontFamily:l.fontFamily,fontWeight:l.fontWeight,fontSize:l.fontSize,fontFeatureSettings:l.fontFeatureSettings,lineHeight:l.lineHeight,letterSpacing:l.letterSpacing,isMonospace:ee,typicalHalfwidthCharacterWidth:E.width,typicalFullwidthCharacterWidth:L.width,canUseHalfwidthRightwardsArrow:he,spaceWidth:A.width,middotWidth:Pe.width,maxDigitWidth:ne},je)},s.INSTANCE=new s,s}(J.a),p=function(c){_(s,c);function s(l,d,m,E){m===void 0&&(m=null);var L=c.call(this,l,d)||this;return L.accessibilityService=E,L._elementSizeObserver=L._register(new H.a(m,d.dimension,function(){return L._onReferenceDomElementSizeChanged()})),L._register(w.INSTANCE.onDidChange(function(){return L._onCSSBasedConfigurationChanged()})),L._validatedOptions.get(9)&&L._elementSizeObserver.startObserving(),L._register(T.o(function(A){return L._recomputeOptions()})),L._register(L.accessibilityService.onDidChangeScreenReaderOptimized(function(){return L._recomputeOptions()})),L._recomputeOptions(),L}return s.applyFontInfoSlow=function(l,d){l.style.fontFamily=d.getMassagedFontFamily(),l.style.fontWeight=d.fontWeight,l.style.fontSize=d.fontSize+"px",l.style.fontFeatureSettings=d.fontFeatureSettings,l.style.lineHeight=d.lineHeight+"px",l.style.letterSpacing=d.letterSpacing+"px"},s.applyFontInfo=function(l,d){l.setFontFamily(d.getMassagedFontFamily()),l.setFontWeight(d.fontWeight),l.setFontSize(d.fontSize),l.setFontFeatureSettings(d.fontFeatureSettings),l.setLineHeight(d.lineHeight),l.setLetterSpacing(d.letterSpacing)},s.prototype._onReferenceDomElementSizeChanged=function(){this._recomputeOptions()},s.prototype._onCSSBasedConfigurationChanged=function(){this._recomputeOptions()},s.prototype.observeReferenceElement=function(l){this._elementSizeObserver.observe(l)},s.prototype.dispose=function(){c.prototype.dispose.call(this)},s.prototype._getExtraEditorClassName=function(){var l="";return!T.k&&!T.n&&(l+="no-user-select "),I.e&&(l+="mac "),l},s.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:T.m||T.h,pixelRatio:T.a(),zoomLevel:T.c(),accessibilitySupport:this.accessibilityService.isScreenReaderOptimized()?2:this.accessibilityService.getAccessibilitySupport()}},s.prototype.readConfiguration=function(l){return w.INSTANCE.readConfiguration(l)},s}(x.a)},HyZH:function(Lt,j,e){},"I/Lx":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:function(){return e.e(284).then(e.bind(null,"yswY"))}})},"J+ZK":function(Lt,j,e){},"JQT/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return J}),e.d(j,"b",function(){return U});var T=e("MI8n"),re=Object.freeze(function(z,O){var H=setTimeout(z.bind(O),0);return{dispose:function(){clearTimeout(H)}}}),J;(function(z){function O(H){return H===z.None||H===z.Cancelled||H instanceof I?!0:!H||typeof H!="object"?!1:typeof H.isCancellationRequested=="boolean"&&typeof H.onCancellationRequested=="function"}z.isCancellationToken=O,z.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:T.b.None}),z.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:re})})(J||(J={}));var I=function(){function z(){this._isCancelled=!1,this._emitter=null}return z.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(z.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?re:(this._emitter||(this._emitter=new T.a),this._emitter.event)},enumerable:!0,configurable:!0}),z.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=null)},z}(),U=function(){function z(O){this._token=void 0,this._parentListener=void 0,this._parentListener=O&&O.onCancellationRequested(this.cancel,this)}return Object.defineProperty(z.prototype,"token",{get:function(){return this._token||(this._token=new I),this._token},enumerable:!0,configurable:!0}),z.prototype.cancel=function(){this._token?this._token instanceof I&&this._token.cancel():this._token=J.Cancelled},z.prototype.dispose=function(O){O===void 0&&(O=!1),O&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof I&&this._token.dispose():this._token=J.None},z}()},JYp7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"f",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"b",function(){return O}),e.d(j,"e",function(){return H});var T=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),re={done:!0,value:void 0},J;(function(x){var u={next:function(){return re}};function y(){return u}x.empty=y;function _(E){var L=!1;return{next:function(){return L?re:(L=!0,{done:!1,value:E})}}}x.single=_;function f(E,L,A){return L===void 0&&(L=0),A===void 0&&(A=E.length),{next:function(){return L>=A?re:{done:!1,value:E[L++]}}}}x.fromArray=f;function v(E){return{next:function(){var A=E.next();return A.done?re:{done:!1,value:A.value}}}}x.fromNativeIterator=v;function w(E){return E?Array.isArray(E)?x.fromArray(E):E:x.empty()}x.from=w;function p(E,L){return{next:function(){var k=E.next();return k.done?re:{done:!1,value:L(k.value)}}}}x.map=p;function c(E,L){return{next:function(){for(;;){var k=E.next();if(k.done)return re;if(L(k.value))return{done:!1,value:k.value}}}}}x.filter=c;function s(E,L){for(var A=E.next();!A.done;A=E.next())L(A.value)}x.forEach=s;function l(E,L){L===void 0&&(L=Number.POSITIVE_INFINITY);var A=[];if(L===0)return A;for(var k=0,R=E.next();!R.done&&!(A.push(R.value),++k>=L);R=E.next());return A}x.collect=l;function d(){for(var E=[],L=0;L=E.length)return re;var R=E[A],$=R.next();return $.done?(A++,this.next()):$}}}x.concat=d;function m(E){return new I(E)}x.chain=m})(J||(J={}));var I=function(){function x(u){this.it=u}return x.prototype.next=function(){return this.it.next()},x}();function U(x){return Array.isArray(x)?J.fromArray(x):x||J.empty()}var z=function(){function x(u,y,_,f){y===void 0&&(y=0),_===void 0&&(_=u.length),f===void 0&&(f=y-1),this.items=u,this.start=y,this.end=_,this.index=f}return x.prototype.first=function(){return this.index=this.start,this.current()},x.prototype.next=function(){return this.index=Math.min(this.index+1,this.end),this.current()},x.prototype.current=function(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]},x}(),O=function(x){T(u,x);function u(y,_,f,v){return _===void 0&&(_=0),f===void 0&&(f=y.length),v===void 0&&(v=_-1),x.call(this,y,_,f,v)||this}return u.prototype.current=function(){return x.prototype.current.call(this)},u.prototype.previous=function(){return this.index=Math.max(this.index-1,this.start-1),this.current()},u.prototype.first=function(){return this.index=this.start,this.current()},u.prototype.last=function(){return this.index=this.end-1,this.current()},u.prototype.parent=function(){return null},u}(z),H=function(){function x(u,y){this.iterator=u,this.fn=y}return x.prototype.next=function(){return this.fn(this.iterator.next())},x}()},JlLP:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:function(){return e.e(305).then(e.bind(null,"W1QP"))}})},KDc4:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re});var T;(function(J){J[J.None=0]="None",J[J.Indent=1]="Indent",J[J.IndentOutdent=2]="IndentOutdent",J[J.Outdent=3]="Outdent"})(T||(T={}));var re=function(){function J(I){if(this.open=I.open,this.close=I.close,this._standardTokenMask=0,Array.isArray(I.notIn))for(var U=0,z=I.notIn.length;U=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.changeValue=function(U,z){return U=Object(T.a)(U),z=Object(T.a)(z),this.values[U]===z?!1:(this.values[U]=z,U-1=O.length)return!1;var x=O.length-U;return z>=x&&(z=x),z===0?!1:(this.values=new Uint32Array(O.length-z),this.values.set(O.subarray(0,U),0),this.values.set(O.subarray(U+z),U),this.prefixSum=new Uint32Array(this.values.length),U-1=0&&this.prefixSum.set(H.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},I.prototype.getTotalValue=function(){return this.values.length===0?0:this._getAccumulatedValue(this.values.length-1)},I.prototype.getAccumulatedValue=function(U){return U<0?0:(U=Object(T.a)(U),this._getAccumulatedValue(U))},I.prototype._getAccumulatedValue=function(U){if(U<=this.prefixSumValidIndex[0])return this.prefixSum[U];var z=this.prefixSumValidIndex[0]+1;z===0&&(this.prefixSum[0]=this.values[0],z++),U>=this.values.length&&(U=this.values.length-1);for(var O=z;O<=U;O++)this.prefixSum[O]=this.prefixSum[O-1]+this.values[O];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],U),this.prefixSum[U]},I.prototype.getIndexOf=function(U){U=Math.floor(U),this.getTotalValue();for(var z=0,O=this.values.length-1,H=0,x=0,u=0;z<=O;)if(H=z+(O-z)/2|0,x=this.prefixSum[H],u=x-this.values[H],U=x)z=H+1;else break;return new re(H,U-u)},I}()},LexI:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"go",extensions:[".go"],aliases:["Go"],loader:function(){return e.e(285).then(e.bind(null,"lHAa"))}})},Ll0s:function(Lt,j,e){"use strict";e.d(j,"b",function(){return _}),e.d(j,"f",function(){return f}),e.d(j,"c",function(){return v}),e.d(j,"d",function(){return c}),e.d(j,"e",function(){return s}),e.d(j,"a",function(){return l}),e.d(j,"g",function(){return d});var T=e("/cxE"),re=e("N0LK"),J=e("cGHE"),I=e("aokT"),U=e("gCVg"),z=e("tX9W"),O=e("cMvZ"),H=function(){return!0},x=function(){return!1},u=function(E){return E===" "||E===" "};function y(m,E,L){m.has(E)?m.get(E).push(L):m.set(E,[L])}var _=function(){function m(E,L,A){this._languageIdentifier=E;var k=A.options,R=k.get(107);this.readOnly=k.get(68),this.tabSize=L.tabSize,this.indentSize=L.indentSize,this.insertSpaces=L.insertSpaces,this.lineHeight=k.get(49),this.pageSize=Math.max(1,Math.floor(R.height/this.lineHeight)-2),this.useTabStops=k.get(95),this.wordSeparators=k.get(96),this.emptySelectionClipboard=k.get(25),this.copyWithSyntaxHighlighting=k.get(15),this.multiCursorMergeOverlapping=k.get(58),this.multiCursorPaste=k.get(60),this.autoClosingBrackets=k.get(5),this.autoClosingQuotes=k.get(7),this.autoClosingOvertype=k.get(6),this.autoSurround=k.get(10),this.autoIndent=k.get(8),this.autoClosingPairsOpen2=new Map,this.autoClosingPairsClose2=new Map,this.surroundingPairs={},this._electricChars=null,this.shouldAutoCloseBefore={quote:m._getShouldAutoClose(E,this.autoClosingQuotes),bracket:m._getShouldAutoClose(E,this.autoClosingBrackets)};var $=m._getAutoClosingPairs(E);if($)for(var ie=0,W=$;ie=65536?2:1,W===9)$=m.nextRenderTabStop($,A);else{for(var B=re.s(W);ie=65536?2:1,B=Ce}re.y(W)||re.w(W)?$=$+2:$=$+1}}return $},m.visibleColumnFromColumn2=function(E,L,A){return this.visibleColumnFromColumn(L.getLineContent(A.lineNumber),A.column,E.tabSize)},m.columnFromVisibleColumn=function(E,L,A){if(L<=0)return 1;for(var k=E.length,R=0,$=1,ie=0;ie=65536?2:1;var B=void 0;if(W===9)B=m.nextRenderTabStop(R,A);else{for(var le=re.s(W);ie=65536?2:1,le=Me}re.y(W)||re.w(W)?B=R+2:B=R+1}var Te=ie+1;if(B>=L){var Fe=L-R,Ue=B-L;return Ueie?ie:R},m.nextRenderTabStop=function(E,L){return E+L-E%L},m.nextIndentTabStop=function(E,L){return E+L-E%L},m.prevRenderTabStop=function(E,L){return E-1-(E-1)%L},m.prevIndentTabStop=function(E,L){return E-1-(E-1)%L},m}();function d(m){return m==="'"||m==='"'||m==="`"}},"M/lh":function(Lt,j,e){self.MonacoEnvironment=function(T){function re(J){return J.replace(/\/$/,"")}return{getWorkerUrl:function(I,U){var z=e.p,O=(z?re(z)+"/":"")+T[U];if(/^(http:)|(https:)|(file:)/.test(O)){var H=String(window.location),x=H.substr(0,H.length-window.location.hash.length-window.location.search.length-window.location.pathname.length);if(O.substring(0,x.length)!==x){var u="/*"+U+'*/importScripts("'+O+'");';return"data:text/javascript;charset=utf-8,"+encodeURIComponent(u)}}return O}}}({editorWorkerService:"editor.worker.js",css:"css.worker.js",html:"html.worker.js",json:"json.worker.js",typescript:"ts.worker.js",javascript:"ts.worker.js",less:"css.worker.js",scss:"css.worker.js",handlebars:"html.worker.js",razor:"html.worker.js"}),e("SBYE"),e("bk7F"),e("KTWA"),e("w29/"),e("CxEt"),e("d6R0"),e("kqbb"),e("n01l"),e("fD5p"),e("1YUG"),e("5RaG"),e("/RFl"),e("oQaD"),e("dgXF"),e("bfR1"),e("cIJc"),e("lY/7"),e("AhDq"),e("8Ydt"),e("H4T2"),e("rugR"),e("oiKk"),e("GvMn"),e("gJAb"),e("dH+W"),e("2ESN"),e("8XyJ"),e("WwIK"),e("v+CO"),e("WQDh"),e("4sI4"),e("Q631"),e("10Fh"),e("tXSY"),e("ep4t"),e("vVA1"),e("k7pc"),e("ba9Q"),e("XtJs"),e("s7Km"),e("LUcL"),Lt.exports=e("8z58"),e("CdFp"),e("23p7"),e("OOlL"),e("li8W"),e("kdPm"),e("ApJL"),e("jrbv"),e("gqHg"),e("p3Ex"),e("E+ie"),e("9B1q"),e("9XAT"),e("SvYn"),e("I/Lx"),e("LexI"),e("0oIH"),e("+a1H"),e("hFdI"),e("c2dO"),e("zQEy"),e("k7mE"),e("cldp"),e("p5tG"),e("Dvnd"),e("FvUK"),e("ZvGG"),e("QFiB"),e("ZkA/"),e("/cAr"),e("xYNL"),e("jVwG"),e("6lNC"),e("q8qy"),e("sStQ"),e("oKJv"),e("H6Gb"),e("y3CF"),e("JlLP"),e("j2o1"),e("woZy"),e("iLY9"),e("Msxo"),e("ajgA"),e("QiAa"),e("pI2L"),e("yKqg"),e("ij/i"),e("XQgg"),e("Gb1F"),e("xmOD"),e("c9ML"),e("Mzro"),e("GZrW"),e("1lwE"),e("w9QG"),e("ufhN"),e("LRks"),e("BUKB"),e("n18v"),e("EOst"),e("z3hU"),e("nrBJ"),e("BEdG"),e("E4kL")},M1Kb:function(Lt,j,e){"use strict";e.d(j,"d",function(){return T}),e.d(j,"c",function(){return re}),e.d(j,"e",function(){return J}),e.d(j,"b",function(){return I}),e.d(j,"a",function(){return U});var T;(function(z){z[z.Left=1]="Left",z[z.Center=2]="Center",z[z.Right=4]="Right",z[z.Full=7]="Full"})(T||(T={}));var re;(function(z){z[z.Inline=1]="Inline",z[z.Gutter=2]="Gutter"})(re||(re={}));var J=function(){function z(O){this.tabSize=Math.max(1,O.tabSize|0),this.indentSize=O.tabSize|0,this.insertSpaces=Boolean(O.insertSpaces),this.defaultEOL=O.defaultEOL|0,this.trimAutoWhitespace=Boolean(O.trimAutoWhitespace)}return z.prototype.equals=function(O){return this.tabSize===O.tabSize&&this.indentSize===O.indentSize&&this.insertSpaces===O.insertSpaces&&this.defaultEOL===O.defaultEOL&&this.trimAutoWhitespace===O.trimAutoWhitespace},z.prototype.createChangeEvent=function(O){return{tabSize:this.tabSize!==O.tabSize,indentSize:this.indentSize!==O.indentSize,insertSpaces:this.insertSpaces!==O.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==O.trimAutoWhitespace}},z}(),I=function(){function z(O,H){this.range=O,this.matches=H}return z}(),U=function(){function z(O,H,x){this.reverseEdits=O,this.changes=H,this.trimAutoWhitespaceLineNumbers=x}return z}()},MD5Z:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"Tb",function(){return u}),e.d(j,"W",function(){return y}),e.d(j,"U",function(){return _}),e.d(j,"V",function(){return f}),e.d(j,"e",function(){return v}),e.d(j,"b",function(){return w}),e.d(j,"ec",function(){return p}),e.d(j,"dc",function(){return c}),e.d(j,"hc",function(){return s}),e.d(j,"Z",function(){return l}),e.d(j,"bb",function(){return d}),e.d(j,"ab",function(){return m}),e.d(j,"Y",function(){return E}),e.d(j,"X",function(){return L}),e.d(j,"fb",function(){return A}),e.d(j,"hb",function(){return k}),e.d(j,"gb",function(){return R}),e.d(j,"ib",function(){return $}),e.d(j,"kb",function(){return ie}),e.d(j,"jb",function(){return W}),e.d(j,"cb",function(){return B}),e.d(j,"eb",function(){return le}),e.d(j,"db",function(){return Ce}),e.d(j,"Ob",function(){return Fe}),e.d(j,"Nb",function(){return Ue}),e.d(j,"c",function(){return Pe}),e.d(j,"d",function(){return ne}),e.d(j,"Vb",function(){return ee}),e.d(j,"Xb",function(){return ae}),e.d(j,"Yb",function(){return q}),e.d(j,"Wb",function(){return ue}),e.d(j,"Sb",function(){return X}),e.d(j,"q",function(){return he}),e.d(j,"p",function(){return je}),e.d(j,"P",function(){return Xe}),e.d(j,"O",function(){return me}),e.d(j,"H",function(){return ge}),e.d(j,"G",function(){return we}),e.d(j,"z",function(){return Re}),e.d(j,"y",function(){return Ee}),e.d(j,"o",function(){return ve}),e.d(j,"x",function(){return Q}),e.d(j,"Q",function(){return C}),e.d(j,"S",function(){return F}),e.d(j,"R",function(){return se}),e.d(j,"T",function(){return oe}),e.d(j,"K",function(){return be}),e.d(j,"L",function(){return De}),e.d(j,"F",function(){return Se}),e.d(j,"M",function(){return Ve}),e.d(j,"N",function(){return Qe}),e.d(j,"r",function(){return it}),e.d(j,"t",function(){return pt}),e.d(j,"v",function(){return Rt}),e.d(j,"s",function(){return Mt}),e.d(j,"u",function(){return zt}),e.d(j,"w",function(){return uo}),e.d(j,"D",function(){return ao}),e.d(j,"A",function(){return so}),e.d(j,"C",function(){return Pt}),e.d(j,"B",function(){return ft}),e.d(j,"E",function(){return vt}),e.d(j,"n",function(){return At}),e.d(j,"J",function(){return at}),e.d(j,"I",function(){return tt}),e.d(j,"g",function(){return ut}),e.d(j,"h",function(){return Ct}),e.d(j,"j",function(){return gt}),e.d(j,"l",function(){return bt}),e.d(j,"k",function(){return Gt}),e.d(j,"m",function(){return Nt}),e.d(j,"i",function(){return Et}),e.d(j,"rb",function(){return Je}),e.d(j,"sb",function(){return $e}),e.d(j,"lb",function(){return ze}),e.d(j,"mb",function(){return Ke}),e.d(j,"xb",function(){return fe}),e.d(j,"yb",function(){return G}),e.d(j,"wb",function(){return te}),e.d(j,"ub",function(){return Y}),e.d(j,"vb",function(){return de}),e.d(j,"nb",function(){return ke}),e.d(j,"tb",function(){return lt}),e.d(j,"ob",function(){return Tt}),e.d(j,"qb",function(){return Jt}),e.d(j,"pb",function(){return eo}),e.d(j,"gc",function(){return po}),e.d(j,"Ab",function(){return co}),e.d(j,"Bb",function(){return Eo}),e.d(j,"zb",function(){return Oo}),e.d(j,"Eb",function(){return Ao}),e.d(j,"Cb",function(){return Zo}),e.d(j,"Db",function(){return Co}),e.d(j,"Fb",function(){return Wo}),e.d(j,"bc",function(){return Go}),e.d(j,"cc",function(){return Bo}),e.d(j,"Zb",function(){return Mo}),e.d(j,"ac",function(){return Qo}),e.d(j,"Lb",function(){return fn}),e.d(j,"Mb",function(){return Vo}),e.d(j,"Hb",function(){return mn}),e.d(j,"Ib",function(){return yn}),e.d(j,"Gb",function(){return dn}),e.d(j,"Jb",function(){return rn}),e.d(j,"Pb",function(){return pn}),e.d(j,"Rb",function(){return zo}),e.d(j,"Qb",function(){return Ho}),e.d(j,"f",function(){return St}),e.d(j,"fc",function(){return nt}),e.d(j,"Kb",function(){return Dt}),e.d(j,"Ub",function(){return M});var T=e("ic2d"),re=e("zrhQ"),J=e("MI8n"),I=e("3/fG"),U=e("3Rsk"),z=e("X+cX"),O={ColorContribution:"base.contributions.colors"},H=function(){function xe(){this._onDidChangeSchema=new J.a,this.onDidChangeSchema=this._onDidChangeSchema.event,this.colorSchema={type:"object",properties:{}},this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]},this.colorsById={}}return xe.prototype.registerColor=function(Ne,dt,ht,xt,Bt){xt===void 0&&(xt=!1);var Ht={id:Ne,description:ht,defaults:dt,needsTransparency:xt,deprecationMessage:Bt};this.colorsById[Ne]=Ht;var Ut={type:"string",description:ht,format:"color-hex",defaultSnippets:[{body:"${1:#ff0000}"}]};return Bt&&(Ut.deprecationMessage=Bt),this.colorSchema.properties[Ne]=Ut,this.colorReferenceSchema.enum.push(Ne),this.colorReferenceSchema.enumDescriptions.push(ht),this._onDidChangeSchema.fire(),Ne},xe.prototype.resolveDefaultColor=function(Ne,dt){var ht=this.colorsById[Ne];if(ht&&ht.defaults){var xt=ht.defaults[dt.type];return M(xt,dt)}return},xe.prototype.getColorSchema=function(){return this.colorSchema},xe.prototype.toString=function(){var Ne=this,dt=function(xt,Bt){var Ht=xt.indexOf(".")===-1?0:1,Ut=Bt.indexOf(".")===-1?0:1;return Ht!==Ut?Ht-Ut:xt.localeCompare(Bt)};return Object.keys(this.colorsById).sort(dt).map(function(ht){return"- `"+ht+"`: "+Ne.colorsById[ht].description}).join(` +`)},xe}(),x=new H;T.a.add(O.ColorContribution,x);function u(xe,Ne,dt,ht,xt){return x.registerColor(xe,Ne,dt,ht,xt)}var y=u("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},I.a("foreground","Overall foreground color. This color is only used if not overridden by a component.")),_=u("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},I.a("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component.")),f=u("focusBorder",{dark:re.a.fromHex("#0E639C").transparent(.8),light:re.a.fromHex("#007ACC").transparent(.4),hc:"#F38518"},I.a("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component.")),v=u("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},I.a("contrastBorder","An extra border around elements to separate them from others for greater contrast.")),w=u("contrastActiveBorder",{light:null,dark:null,hc:f},I.a("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast.")),p=u("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},I.a("textLinkForeground","Foreground color for links in text.")),c=u("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:re.a.black},I.a("textCodeBlockBackground","Background color for code blocks in text.")),s=u("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},I.a("widgetShadow","Shadow color of widgets such as find/replace inside the editor.")),l=u("input.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("inputBoxBackground","Input box background.")),d=u("input.foreground",{dark:y,light:y,hc:y},I.a("inputBoxForeground","Input box foreground.")),m=u("input.border",{dark:null,light:null,hc:v},I.a("inputBoxBorder","Input box border.")),E=u("inputOption.activeBorder",{dark:"#007ACC00",light:"#007ACC00",hc:v},I.a("inputBoxActiveOptionBorder","Border color of activated options in input fields.")),L=u("inputOption.activeBackground",{dark:nt(f,.5),light:nt(f,.3),hc:null},I.a("inputOption.activeBackground","Background color of activated options in input fields.")),A=u("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:re.a.black},I.a("inputValidationInfoBackground","Input validation background color for information severity.")),k=u("inputValidation.infoForeground",{dark:null,light:null,hc:null},I.a("inputValidationInfoForeground","Input validation foreground color for information severity.")),R=u("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:v},I.a("inputValidationInfoBorder","Input validation border color for information severity.")),$=u("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:re.a.black},I.a("inputValidationWarningBackground","Input validation background color for warning severity.")),ie=u("inputValidation.warningForeground",{dark:null,light:null,hc:null},I.a("inputValidationWarningForeground","Input validation foreground color for warning severity.")),W=u("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:v},I.a("inputValidationWarningBorder","Input validation border color for warning severity.")),B=u("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:re.a.black},I.a("inputValidationErrorBackground","Input validation background color for error severity.")),le=u("inputValidation.errorForeground",{dark:null,light:null,hc:null},I.a("inputValidationErrorForeground","Input validation foreground color for error severity.")),Ce=u("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("inputValidationErrorBorder","Input validation border color for error severity.")),Me=u("dropdown.background",{dark:"#3C3C3C",light:re.a.white,hc:re.a.black},I.a("dropdownBackground","Dropdown background.")),Te=u("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:re.a.white},I.a("dropdownForeground","Dropdown foreground.")),Fe=u("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:re.a.white},I.a("pickerGroupForeground","Quick picker color for grouping labels.")),Ue=u("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:re.a.white},I.a("pickerGroupBorder","Quick picker color for grouping borders.")),Pe=u("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:re.a.black},I.a("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count.")),ne=u("badge.foreground",{dark:re.a.white,light:"#333",hc:re.a.white},I.a("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count.")),ee=u("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},I.a("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled.")),ae=u("scrollbarSlider.background",{dark:re.a.fromHex("#797979").transparent(.4),light:re.a.fromHex("#646464").transparent(.4),hc:nt(v,.6)},I.a("scrollbarSliderBackground","Scrollbar slider background color.")),q=u("scrollbarSlider.hoverBackground",{dark:re.a.fromHex("#646464").transparent(.7),light:re.a.fromHex("#646464").transparent(.7),hc:nt(v,.8)},I.a("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering.")),ue=u("scrollbarSlider.activeBackground",{dark:re.a.fromHex("#BFBFBF").transparent(.4),light:re.a.fromHex("#000000").transparent(.6),hc:v},I.a("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on.")),X=u("progressBar.background",{dark:re.a.fromHex("#0E70C0"),light:re.a.fromHex("#0E70C0"),hc:v},I.a("progressBarBackground","Background color of the progress bar that can show for long running operations.")),he=u("editorError.foreground",{dark:"#F48771",light:"#E51400",hc:null},I.a("editorError.foreground","Foreground color of error squigglies in the editor.")),je=u("editorError.border",{dark:null,light:null,hc:re.a.fromHex("#E47777").transparent(.8)},I.a("errorBorder","Border color of error boxes in the editor.")),Xe=u("editorWarning.foreground",{dark:"#CCA700",light:"#E9A700",hc:null},I.a("editorWarning.foreground","Foreground color of warning squigglies in the editor.")),me=u("editorWarning.border",{dark:null,light:null,hc:re.a.fromHex("#FFCC00").transparent(.8)},I.a("warningBorder","Border color of warning boxes in the editor.")),ge=u("editorInfo.foreground",{dark:"#75BEFF",light:"#75BEFF",hc:null},I.a("editorInfo.foreground","Foreground color of info squigglies in the editor.")),we=u("editorInfo.border",{dark:null,light:null,hc:re.a.fromHex("#75BEFF").transparent(.8)},I.a("infoBorder","Border color of info boxes in the editor.")),Re=u("editorHint.foreground",{dark:re.a.fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},I.a("editorHint.foreground","Foreground color of hint squigglies in the editor.")),Ee=u("editorHint.border",{dark:null,light:null,hc:re.a.fromHex("#eeeeee").transparent(.8)},I.a("hintBorder","Border color of hint boxes in the editor.")),ve=u("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:re.a.black},I.a("editorBackground","Editor background color.")),Q=u("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:re.a.white},I.a("editorForeground","Editor default foreground color.")),C=u("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},I.a("editorWidgetBackground","Background color of editor widgets, such as find/replace.")),F=u("editorWidget.foreground",{dark:y,light:y,hc:y},I.a("editorWidgetForeground","Foreground color of editor widgets, such as find/replace.")),se=u("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:v},I.a("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget.")),oe=u("editorWidget.resizeBorder",{light:null,dark:null,hc:null},I.a("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget.")),be=u("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},I.a("editorSelectionBackground","Color of the editor selection.")),De=u("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},I.a("editorSelectionForeground","Color of the selected text for high contrast.")),Se=u("editor.inactiveSelectionBackground",{light:nt(be,.5),dark:nt(be,.5),hc:nt(be,.5)},I.a("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations."),!0),Ve=u("editor.selectionHighlightBackground",{light:_e(be,ve,.3,.6),dark:_e(be,ve,.3,.6),hc:null},I.a("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque so as not to hide underlying decorations."),!0),Qe=u("editor.selectionHighlightBorder",{light:null,dark:null,hc:w},I.a("editorSelectionHighlightBorder","Border color for regions with the same content as the selection.")),it=u("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},I.a("editorFindMatch","Color of the current search match.")),pt=u("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},I.a("findMatchHighlight","Color of the other search matches. The color must not be opaque so as not to hide underlying decorations."),!0),Rt=u("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},I.a("findRangeHighlight","Color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),Mt=u("editor.findMatchBorder",{light:null,dark:null,hc:w},I.a("editorFindMatchBorder","Border color of the current search match.")),zt=u("editor.findMatchHighlightBorder",{light:null,dark:null,hc:w},I.a("findMatchHighlightBorder","Border color of the other search matches.")),uo=u("editor.findRangeHighlightBorder",{dark:null,light:null,hc:nt(w,.4)},I.a("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque so as not to hide underlying decorations."),!0),ao=u("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},I.a("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque so as not to hide underlying decorations."),!0),so=u("editorHoverWidget.background",{light:C,dark:C,hc:C},I.a("hoverBackground","Background color of the editor hover.")),Pt=u("editorHoverWidget.foreground",{light:F,dark:F,hc:F},I.a("hoverForeground","Foreground color of the editor hover.")),ft=u("editorHoverWidget.border",{light:se,dark:se,hc:se},I.a("hoverBorder","Border color of the editor hover.")),vt=u("editorHoverWidget.statusBarBackground",{dark:ot(so,.2),light:St(so,.05),hc:C},I.a("statusBarBackground","Background color of the editor hover status bar.")),At=u("editorLink.activeForeground",{dark:"#4E94CE",light:re.a.blue,hc:re.a.cyan},I.a("activeLinkForeground","Color of active links.")),at=u("editorLightBulb.foreground",{dark:"#FFCC00",light:"#DDB100",hc:"#FFCC00"},I.a("editorLightBulbForeground","The color used for the lightbulb actions icon.")),tt=u("editorLightBulbAutoFix.foreground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},I.a("editorLightBulbAutoFixForeground","The color used for the lightbulb auto fix actions icon.")),ut=new re.a(new re.c(155,185,85,.2)),Ct=new re.a(new re.c(255,0,0,.2)),gt=u("diffEditor.insertedTextBackground",{dark:ut,light:ut,hc:null},I.a("diffEditorInserted","Background color for text that got inserted. The color must not be opaque so as not to hide underlying decorations."),!0),bt=u("diffEditor.removedTextBackground",{dark:Ct,light:Ct,hc:null},I.a("diffEditorRemoved","Background color for text that got removed. The color must not be opaque so as not to hide underlying decorations."),!0),Gt=u("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},I.a("diffEditorInsertedOutline","Outline color for the text that got inserted.")),Nt=u("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},I.a("diffEditorRemovedOutline","Outline color for text that got removed.")),Et=u("diffEditor.border",{dark:null,light:null,hc:v},I.a("diffEditorBorder","Border color between the two text editors.")),Je=u("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},I.a("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),$e=u("list.focusForeground",{dark:null,light:null,hc:null},I.a("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),ze=u("list.activeSelectionBackground",{dark:"#094771",light:"#0074E8",hc:null},I.a("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),Ke=u("list.activeSelectionForeground",{dark:re.a.white,light:re.a.white,hc:null},I.a("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not.")),fe=u("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},I.a("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),G=u("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},I.a("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),te=u("list.inactiveFocusBackground",{dark:null,light:null,hc:null},I.a("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not.")),Y=u("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},I.a("listHoverBackground","List/Tree background when hovering over items using the mouse.")),de=u("list.hoverForeground",{dark:null,light:null,hc:null},I.a("listHoverForeground","List/Tree foreground when hovering over items using the mouse.")),ke=u("list.dropBackground",{dark:Je,light:Je,hc:null},I.a("listDropBackground","List/Tree drag and drop background when moving items around using the mouse.")),lt=u("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:f},I.a("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree.")),Tt=u("listFilterWidget.background",{light:"#efc1ad",dark:"#653723",hc:re.a.black},I.a("listFilterWidgetBackground","Background color of the type filter widget in lists and trees.")),Jt=u("listFilterWidget.outline",{dark:re.a.transparent,light:re.a.transparent,hc:"#f38518"},I.a("listFilterWidgetOutline","Outline color of the type filter widget in lists and trees.")),eo=u("listFilterWidget.noMatchesOutline",{dark:"#BE1100",light:"#BE1100",hc:v},I.a("listFilterWidgetNoMatchesOutline","Outline color of the type filter widget in lists and trees, when there are no matches.")),po=u("tree.indentGuidesStroke",{dark:"#585858",light:"#a9a9a9",hc:"#a9a9a9"},I.a("treeIndentGuidesStroke","Tree stroke color for the indentation guides.")),co=u("menu.border",{dark:null,light:null,hc:v},I.a("menuBorder","Border color of menus.")),Eo=u("menu.foreground",{dark:Te,light:y,hc:Te},I.a("menuForeground","Foreground color of menu items.")),Oo=u("menu.background",{dark:Me,light:Me,hc:Me},I.a("menuBackground","Background color of menu items.")),Ao=u("menu.selectionForeground",{dark:Ke,light:Ke,hc:Ke},I.a("menuSelectionForeground","Foreground color of the selected menu item in menus.")),Zo=u("menu.selectionBackground",{dark:ze,light:ze,hc:ze},I.a("menuSelectionBackground","Background color of the selected menu item in menus.")),Co=u("menu.selectionBorder",{dark:null,light:null,hc:w},I.a("menuSelectionBorder","Border color of the selected menu item in menus.")),Wo=u("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:v},I.a("menuSeparatorBackground","Color of a separator menu item in menus.")),Go=u("editor.snippetTabstopHighlightBackground",{dark:new re.a(new re.c(124,124,124,.3)),light:new re.a(new re.c(10,50,100,.2)),hc:new re.a(new re.c(124,124,124,.3))},I.a("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop.")),Bo=u("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},I.a("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop.")),Mo=u("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},I.a("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet.")),Qo=u("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new re.a(new re.c(10,50,100,.5)),hc:"#525252"},I.a("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet.")),fn=u("editorOverviewRuler.findMatchForeground",{dark:"#d186167e",light:"#d186167e",hc:"#AB5A00"},I.a("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque so as not to hide underlying decorations."),!0),Vo=u("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},I.a("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque so as not to hide underlying decorations."),!0),mn=u("minimap.findMatchHighlight",{light:"#d18616",dark:"#d18616",hc:"#AB5A00"},I.a("minimapFindMatchHighlight","Minimap marker color for find matches."),!0),yn=u("minimap.selectionHighlight",{light:"#ADD6FF",dark:"#264F78",hc:"#ffffff"},I.a("minimapSelectionHighlight","Minimap marker color for the editor selection."),!0),dn=u("minimap.errorHighlight",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},I.a("minimapError","Minimap marker color for errors.")),rn=u("minimap.warningHighlight",{dark:Xe,light:Xe,hc:me},I.a("overviewRuleWarning","Minimap marker color for warnings.")),pn=u("problemsErrorIcon.foreground",{dark:he,light:he,hc:he},I.a("problemsErrorIconForeground","The color used for the problems error icon.")),zo=u("problemsWarningIcon.foreground",{dark:Xe,light:Xe,hc:Xe},I.a("problemsWarningIconForeground","The color used for the problems warning icon.")),Ho=u("problemsInfoIcon.foreground",{dark:ge,light:ge,hc:ge},I.a("problemsInfoIconForeground","The color used for the problems info icon."));function St(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.darken(Ne):void 0}}function ot(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.lighten(Ne):void 0}}function nt(xe,Ne){return function(dt){var ht=M(xe,dt);return ht?ht.transparent(Ne):void 0}}function Dt(){for(var xe=[],Ne=0;Ne1)&&ue.fire(je),q=0},Fe)})},onLastListenerRemove:function(){ne.dispose()}});return ue.event}v.debounce=L;function A(Me){var Te=new Date().getTime();return p(w(Me),function(Fe){return new Date().getTime()-Te})}v.stopwatch=A;function k(Me){var Te=!0,Fe;return s(Me,function(Ue){var Pe=Te||Ue!==Fe;return Te=!1,Fe=Ue,Pe})}v.latch=k;function R(Me,Te,Fe){Te===void 0&&(Te=!1),Fe===void 0&&(Fe=[]);var Ue=Fe.slice(),Pe=Me(function(ae){Ue?Ue.push(ae):ee.fire(ae)}),ne=function(){Ue&&Ue.forEach(function(q){return ee.fire(q)}),Ue=null},ee=new x({onFirstListenerAdd:function(){Pe||(Pe=Me(function(q){return ee.fire(q)}))},onFirstListenerDidAdd:function(){Ue&&(Te?setTimeout(ne):ne())},onLastListenerRemove:function(){Pe&&Pe.dispose(),Pe=null}});return ee.event}v.buffer=R;var $=function(){function Me(Te){this.event=Te}return Me.prototype.map=function(Te){return new Me(p(this.event,Te))},Me.prototype.forEach=function(Te){return new Me(c(this.event,Te))},Me.prototype.filter=function(Te){return new Me(s(this.event,Te))},Me.prototype.reduce=function(Te,Fe){return new Me(m(this.event,Te,Fe))},Me.prototype.latch=function(){return new Me(k(this.event))},Me.prototype.debounce=function(Te,Fe,Ue,Pe){return Fe===void 0&&(Fe=100),Ue===void 0&&(Ue=!1),new Me(L(this.event,Te,Fe,Ue,Pe))},Me.prototype.on=function(Te,Fe,Ue){return this.event(Te,Fe,Ue)},Me.prototype.once=function(Te,Fe,Ue){return w(this.event)(Te,Fe,Ue)},Me}();function ie(Me){return new $(Me)}v.chain=ie;function W(Me,Te,Fe){Fe===void 0&&(Fe=function(q){return q});var Ue=function(){for(var q=[],ue=0;ue0?new U(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(c,s,l){p._listeners||(p._listeners=new I.a);var d=p._listeners.isEmpty();d&&p._options&&p._options.onFirstListenerAdd&&p._options.onFirstListenerAdd(p);var m=p._listeners.push(s?[c,s]:c);d&&p._options&&p._options.onFirstListenerDidAdd&&p._options.onFirstListenerDidAdd(p),p._options&&p._options.onListenerDidAdd&&p._options.onListenerDidAdd(p,c,s);var E;p._leakageMon&&(E=p._leakageMon.check(p._listeners.size));var L;return L={dispose:function(){if(E&&E(),L.dispose=v._noop,!p._disposed&&(m(),p._options&&p._options.onLastListenerRemove)){var k=p._listeners&&!p._listeners.isEmpty();k||p._options.onLastListenerRemove(p)}}},l instanceof J.b?l.add(L):Array.isArray(l)&&l.push(L),L}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(_){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(var p=this._listeners.iterator(),c=p.next();!c.done;c=p.next())this._deliveryQueue.push([c.value,_]);for(;this._deliveryQueue.size>0;){var s=this._deliveryQueue.shift(),l=s[0],d=s[1];try{typeof l=="function"?l.call(void 0,d):l[0].call(l[1],d)}catch(m){Object(T.e)(m)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),u=function(v){H(_,v);function _(p){var c=v.call(this,p)||this;return c._isPaused=0,c._eventQueue=new I.a,c._mergeFn=p&&p.merge,c}return _.prototype.pause=function(){this._isPaused++},_.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var p=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},_.prototype.fire=function(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):v.prototype.fire.call(this,p))},_}(x),y=function(){function v(){var _=this;this.hasListeners=!1,this.events=[],this.emitter=new x({onFirstListenerAdd:function(){return _.onFirstListenerAdd()},onLastListenerRemove:function(){return _.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(_){var p=this,c={event:_,listener:null};this.events.push(c),this.hasListeners&&this.hook(c);var s=function(){p.hasListeners&&p.unhook(c);var d=p.events.indexOf(c);p.events.splice(d,1)};return Object(J.h)(Object(re.a)(s))},v.prototype.onFirstListenerAdd=function(){var _=this;this.hasListeners=!0,this.events.forEach(function(p){return _.hook(p)})},v.prototype.onLastListenerRemove=function(){var _=this;this.hasListeners=!1,this.events.forEach(function(p){return _.unhook(p)})},v.prototype.hook=function(_){var p=this;_.listener=_.event(function(c){return p.emitter.fire(c)})},v.prototype.unhook=function(_){_.listener&&_.listener.dispose(),_.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),w=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(_){var p=this;return function(c,s,l){return _(function(d){var m=p.buffers[p.buffers.length-1];m?m.push(function(){return c.call(s,d)}):c.call(s,d)},void 0,l)}},v.prototype.bufferEvents=function(_){var p=[];this.buffers.push(p);var c=_();return this.buffers.pop(),p.forEach(function(s){return s()}),c},v}(),f=function(){function v(){var _=this;this.listening=!1,this.inputEvent=z.None,this.inputEventListener=J.a.None,this.emitter=new x({onFirstListenerDidAdd:function(){_.listening=!0,_.inputEventListener=_.inputEvent(_.emitter.fire,_.emitter)},onLastListenerRemove:function(){_.listening=!1,_.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},MNXI:function(Lt,j,e){},MNsG:function(Lt,j,e){"use strict";(function(T,re){e.d(j,"h",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"d",function(){return m}),e.d(j,"f",function(){return E}),e.d(j,"g",function(){return L}),e.d(j,"c",function(){return A}),e.d(j,"b",function(){return R}),e.d(j,"i",function(){return $}),e.d(j,"a",function(){return ie});var J="en",I=!1,H=!1,z=!1,O=!1,U=!1,x=!1,u=void 0,y=J,w=void 0,f=void 0,v=typeof T!="undefined"&&typeof T.versions!="undefined"&&typeof T.versions.electron!="undefined"&&T.type==="renderer";if(typeof navigator=="object"&&!v)f=navigator.userAgent,I=f.indexOf("Windows")>=0,H=f.indexOf("Macintosh")>=0,x=f.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z=f.indexOf("Linux")>=0,U=!0,u=navigator.language,y=u;else if(typeof T=="object"){I=T.platform==="win32",H=T.platform==="darwin",z=T.platform==="linux",u=J,y=J;var _=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(_)try{var p=JSON.parse(_),c=p.availableLanguages["*"];u=p.locale,y=c||J,w=p._translationsConfigFile}catch(W){}O=!0}var s=0;H?s=1:I?s=3:z&&(s=2);var l=I,d=H,m=z,E=O,L=U,A=x,k=typeof self=="object"?self:typeof re=="object"?re:{},R=k,$=function(){if(R.setImmediate)return R.setImmediate.bind(R);if(typeof R.postMessage=="function"&&!R.importScripts){var B=[];R.addEventListener("message",function(Me){if(Me.data&&Me.data.vscodeSetImmediateId)for(var Te=0,Fe=B.length;Te=0&&H<256?this._asciiMap[H]=O:this._map.set(H,O)},I.prototype.get=function(H){return H>=0&&H<256?this._asciiMap[H]:this._map.get(H)||this._defaultValue},I}(),J=function(){function I(){this._actual=new re(0)}return I.prototype.add=function(H){this._actual.set(H,1)},I.prototype.has=function(H){return this._actual.get(H)===1},I}()},Md8J:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("EffR");function re(u,y){y===void 0&&(y={});var w=I(y);return w.textContent=u,w}function J(u,y){y===void 0&&(y={});var w=I(y);return z(w,O(u),y.actionHandler),w}function I(u){var y=u.inline?"span":"div",w=document.createElement(y);return u.className&&(w.className=u.className),w}var H=function(){function u(y){this.source=y,this.index=0}return u.prototype.eos=function(){return this.index>=this.source.length},u.prototype.next=function(){var y=this.peek();return this.advance(),y},u.prototype.peek=function(){return this.source[this.index]},u.prototype.advance=function(){this.index++},u}();function z(u,y,w){var f;if(y.type===2)f=document.createTextNode(y.content||"");else if(y.type===3)f=document.createElement("b");else if(y.type===4)f=document.createElement("i");else if(y.type===5&&w){var v=document.createElement("a");v.href="#",w.disposeables.add(T.o(v,"click",function(_){w.callback(String(y.index),_)})),f=v}else y.type===7?f=document.createElement("br"):y.type===1&&(f=u);f&&u!==f&&u.appendChild(f),f&&Array.isArray(y.children)&&y.children.forEach(function(_){z(f,_,w)})}function O(u){for(var y={type:1,children:[]},w=0,f=y,v=[],_=new H(u);!_.eos();){var p=_.next(),c=p==="\\"&&x(_.peek())!==0;if(c&&(p=_.next()),!c&&U(p)&&p===_.peek()){_.advance(),f.type===2&&(f=v.pop());var s=x(p);if(f.type===s||f.type===5&&s===6)f=v.pop();else{var l={type:s,children:[]};s===5&&(l.index=w,w++),f.children.push(l),v.push(f),f=l}}else if(p===` -`)f.type===2&&(f=v.pop()),f.children.push({type:7});else if(f.type!==2){var d={type:2,content:p};f.children.push(d),v.push(f),f=d}else f.content+=p}return f.type===2&&(f=v.pop()),v.length,y}function U(u){return x(u)!==0}function x(u){switch(u){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return U}),e.d(j,"c",function(){return x}),e.d(j,"b",function(){return u});var T=e("3/fG"),re=e("MI8n"),J=e("twdY"),I=e("cMvZ"),H=e("ic2d"),z={ModesRegistry:"editor.modesRegistry"},O=function(){function y(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return y.prototype.registerLanguage=function(w){this._languages.push(w),this._onDidChangeLanguages.fire(void 0)},y.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},y}(),U=new O;H.a.add(z.ModesRegistry,U);var x="plaintext",u=new J.r(x,1);U.registerLanguage({id:x,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),I.a.register(u,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Lt,j,e){"use strict";e.r(j),e.d(j,"win32",function(){return l}),e.d(j,"posix",function(){return d}),e.d(j,"normalize",function(){return m}),e.d(j,"join",function(){return E}),e.d(j,"relative",function(){return L}),e.d(j,"dirname",function(){return A}),e.d(j,"basename",function(){return k}),e.d(j,"extname",function(){return R}),e.d(j,"sep",function(){return $});var T=e("wxcJ"),re=function(){var ie=function(B,le){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,Me){Ce.__proto__=Me}||function(Ce,Me){for(var Te in Me)Me.hasOwnProperty(Te)&&(Ce[Te]=Me[Te])},ie(B,le)};return function(W,B){ie(W,B);function le(){this.constructor=W}W.prototype=B===null?Object.create(B):(le.prototype=B.prototype,new le)}}(),J=65,I=97,H=90,z=122,O=46,U=47,x=92,u=58,y=63,w=function(ie){re(W,ie);function W(B,le,Ce){var Me=this,Te;typeof le=="string"&&le.indexOf("not ")===0?(Te="must not be",le=le.replace(/^not /,"")):Te="must be";var Fe=B.indexOf(".")!==-1?"property":"argument",He='The "'+B+'" '+Fe+" "+Te+" of type "+le;return He+=". Received type "+typeof Ce,Me=ie.call(this,He)||this,Me.code="ERR_INVALID_ARG_TYPE",Me}return W}(Error);function f(ie,W){if(typeof ie!="string")throw new w(W,"string",ie)}function v(ie){return ie===U||ie===x}function _(ie){return ie===U}function p(ie){return ie>=J&&ie<=H||ie>=I&&ie<=z}function c(ie,W,B,le){for(var Ce="",Me=0,Te=-1,Fe=0,He,Pe=0;Pe<=ie.length;++Pe){if(Pe2){var ne=Ce.lastIndexOf(B);ne===-1?(Ce="",Me=0):(Ce=Ce.slice(0,ne),Me=Ce.length-1-Ce.lastIndexOf(B)),Te=Pe,Fe=0;continue}else if(Ce.length===2||Ce.length===1){Ce="",Me=0,Te=Pe,Fe=0;continue}}W&&(Ce.length>0?Ce+=B+"..":Ce="..",Me=2)}else Ce.length>0?Ce+=B+ie.slice(Te+1,Pe):Ce=ie.slice(Te+1,Pe),Me=Pe-Te-1;Te=Pe,Fe=0}else He===O&&Fe!==-1?++Fe:Fe=-1}return Ce}function s(ie,W){var B=W.dir||W.root,le=W.base||(W.name||"")+(W.ext||"");return B?B===W.root?B+le:B+ie+le:le}var l={resolve:function(){for(var W=[],B=0;B=-1;Te--){var Fe=void 0;if(Te>=0?Fe=W[Te]:le?(Fe=T.b["="+le]||T.a(),(Fe===void 0||Fe.slice(0,3).toLowerCase()!==le.toLowerCase()+"\\")&&(Fe=le+"\\")):Fe=T.a(),f(Fe,"path"),Fe.length===0)continue;var He=Fe.length,Pe=0,ne="",ee=!1,ae=Fe.charCodeAt(0);if(He>1)if(v(ae))if(ee=!0,v(Fe.charCodeAt(1))){for(var q=2,ue=q;q2&&(v(Fe.charCodeAt(2))&&(ee=!0,Pe=3))));else v(ae)&&(Pe=1,ee=!0);if(ne.length>0&&le.length>0&&ne.toLowerCase()!==le.toLowerCase())continue;if(le.length===0&&ne.length>0&&(le=ne),Me||(Ce=Fe.slice(Pe)+"\\"+Ce,Me=ee),le.length>0&&Me)break}return Ce=c(Ce,!Me,"\\",v),le+(Me?"\\":"")+Ce||"."},normalize:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=0,Ce,Me=!1,Te=W.charCodeAt(0);if(B>1)if(v(Te))if(Me=!0,v(W.charCodeAt(1))){for(var Fe=2,He=Fe;Fe2&&(v(W.charCodeAt(2))&&(Me=!0,le=3))));else if(v(Te))return"\\";var ne;return le0&&v(W.charCodeAt(B-1))&&(ne+="\\"),Ce===void 0?Me?ne.length>0?"\\"+ne:"\\":ne.length>0?ne:"":Me?ne.length>0?Ce+"\\"+ne:Ce+"\\":ne.length>0?Ce+ne:Ce},isAbsolute:function(W){f(W,"path");var B=W.length;if(B===0)return!1;var le=W.charCodeAt(0);return v(le)?!0:!!(p(le)&&(B>2&&W.charCodeAt(1)===u&&v(W.charCodeAt(2))))},join:function(){for(var W=[],B=0;B0&&(le===void 0?le=Ce=Te:le+="\\"+Te)}if(le===void 0)return".";var Fe=!0,He=0;if(typeof Ce=="string"&&v(Ce.charCodeAt(0))){++He;var Pe=Ce.length;Pe>1&&(v(Ce.charCodeAt(1))&&(++He,Pe>2&&(v(Ce.charCodeAt(2))?++He:Fe=!1)))}if(Fe){for(;He=2&&(le="\\"+le.slice(He))}return l.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";var le=l.resolve(W),Ce=l.resolve(B);if(le===Ce)return"";if(W=le.toLowerCase(),B=Ce.toLowerCase(),W===B)return"";for(var Me=0;MeMe&&!(W.charCodeAt(Te-1)!==x);--Te);for(var Fe=Te-Me,He=0;HeHe&&!(B.charCodeAt(Pe-1)!==x);--Pe);for(var ne=Pe-He,ee=Feee){if(B.charCodeAt(He+q)===x)return Ce.slice(He+q+1);if(q===2)return Ce.slice(He+q)}Fe>ee&&(W.charCodeAt(Me+q)===x?ae=q:q===2&&(ae=3));break}var ue=W.charCodeAt(Me+q),X=B.charCodeAt(He+q);if(ue!==X)break;ue===x&&(ae=q)}if(q!==ee&&ae===-1)return Ce;var he="";for(ae===-1&&(ae=0),q=Me+ae+1;q<=Te;++q)(q===Te||W.charCodeAt(q)===x)&&(he.length===0?he+="..":he+="\\..");return he.length>0?he+Ce.slice(He+ae,Pe):(He+=ae,Ce.charCodeAt(He)===x&&++He,Ce.slice(He,Pe))},toNamespacedPath:function(W){if(typeof W!="string")return W;if(W.length===0)return"";var B=l.resolve(W);if(B.length>=3){if(B.charCodeAt(0)===x){if(B.charCodeAt(1)===x){var le=B.charCodeAt(2);if(le!==y&&le!==O)return"\\\\?\\UNC\\"+B.slice(2)}}else if(p(B.charCodeAt(0))&&(B.charCodeAt(1)===u&&B.charCodeAt(2)===x))return"\\\\?\\"+B}return W},dirname:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=-1,Ce=-1,Me=!0,Te=0,Fe=W.charCodeAt(0);if(B>1)if(v(Fe)){if(le=Te=1,v(W.charCodeAt(1))){for(var He=2,Pe=He;He2&&(v(W.charCodeAt(2))&&(le=Te=3))));else if(v(Fe))return W;for(var ne=B-1;ne>=Te;--ne)if(v(W.charCodeAt(ne))){if(!Me){Ce=ne;break}}else Me=!1;if(Ce===-1){if(le===-1)return".";Ce=le}return W.slice(0,Ce)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,Ce=-1,Me=!0,Te;if(W.length>=2){var Fe=W.charCodeAt(0);p(Fe)&&(W.charCodeAt(1)===u&&(le=2))}if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var He=B.length-1,Pe=-1;for(Te=W.length-1;Te>=le;--Te){var ne=W.charCodeAt(Te);if(v(ne)){if(!Me){le=Te+1;break}}else Pe===-1&&(Me=!1,Pe=Te+1),He>=0&&(ne===B.charCodeAt(He)?--He===-1&&(Ce=Te):(He=-1,Ce=Pe))}return le===Ce?Ce=Pe:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=le;--Te)if(v(W.charCodeAt(Te))){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");var B=0,le=-1,Ce=0,Me=-1,Te=!0,Fe=0;W.length>=2&&W.charCodeAt(1)===u&&p(W.charCodeAt(0))&&(B=Ce=2);for(var He=W.length-1;He>=B;--He){var Pe=W.charCodeAt(He);if(v(Pe)){if(!Te){Ce=He+1;break}continue}Me===-1&&(Te=!1,Me=He+1),Pe===O?le===-1?le=He:Fe!==1&&(Fe=1):le!==-1&&(Fe=-1)}return le===-1||Me===-1||Fe===0||Fe===1&&le===Me-1&&le===Ce+1?"":W.slice(le,Me)},format:function(W){if(W===null||typeof W!="object")throw new w("pathObject","Object",W);return s("\\",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.length,Ce=0,Me=W.charCodeAt(0);if(le>1){if(v(Me)){if(Ce=1,v(W.charCodeAt(1))){for(var Te=2,Fe=Te;Te2){if(v(W.charCodeAt(2))){if(le===3)return B.root=B.dir=W,B;Ce=3}}else return B.root=B.dir=W,B}else if(v(Me))return B.root=B.dir=W,B;Ce>0&&(B.root=W.slice(0,Ce));for(var He=-1,Pe=Ce,ne=-1,ee=!0,ae=W.length-1,q=0;ae>=Ce;--ae){if(Me=W.charCodeAt(ae),v(Me)){if(!ee){Pe=ae+1;break}continue}ne===-1&&(ee=!1,ne=ae+1),Me===O?He===-1?He=ae:q!==1&&(q=1):He!==-1&&(q=-1)}return He===-1||ne===-1||q===0||q===1&&He===ne-1&&He===Pe+1?ne!==-1&&(B.base=B.name=W.slice(Pe,ne)):(B.name=W.slice(Pe,He),B.base=W.slice(Pe,ne),B.ext=W.slice(He,ne)),Pe>0&&Pe!==Ce?B.dir=W.slice(0,Pe-1):B.dir=B.root,B},sep:"\\",delimiter:";",win32:null,posix:null},d={resolve:function(){for(var W=[],B=0;B=-1&&!Ce;Me--){var Te=void 0;if(Me>=0?Te=W[Me]:Te=T.a(),f(Te,"path"),Te.length===0)continue;le=Te+"/"+le,Ce=Te.charCodeAt(0)===U}return le=c(le,!Ce,"/",_),Ce?le.length>0?"/"+le:"/":le.length>0?le:"."},normalize:function(W){if(f(W,"path"),W.length===0)return".";var B=W.charCodeAt(0)===U,le=W.charCodeAt(W.length-1)===U;return W=c(W,!B,"/",_),W.length===0&&!B&&(W="."),W.length>0&&le&&(W+="/"),B?"/"+W:W},isAbsolute:function(W){return f(W,"path"),W.length>0&&W.charCodeAt(0)===U},join:function(){for(var W=[],B=0;B0&&(le===void 0?le=Me:le+="/"+Me)}return le===void 0?".":d.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";if(W=d.resolve(W),B=d.resolve(B),W===B)return"";for(var le=1;lePe){if(B.charCodeAt(Te+ee)===U)return B.slice(Te+ee+1);if(ee===0)return B.slice(Te+ee)}else Me>Pe&&(W.charCodeAt(le+ee)===U?ne=ee:ee===0&&(ne=0));break}var ae=W.charCodeAt(le+ee),q=B.charCodeAt(Te+ee);if(ae!==q)break;ae===U&&(ne=ee)}var ue="";for(ee=le+ne+1;ee<=Ce;++ee)(ee===Ce||W.charCodeAt(ee)===U)&&(ue.length===0?ue+="..":ue+="/..");return ue.length>0?ue+B.slice(Te+ne):(Te+=ne,B.charCodeAt(Te)===U&&++Te,B.slice(Te))},toNamespacedPath:function(W){return W},dirname:function(W){if(f(W,"path"),W.length===0)return".";for(var B=W.charCodeAt(0)===U,le=-1,Ce=!0,Me=W.length-1;Me>=1;--Me)if(W.charCodeAt(Me)===U){if(!Ce){le=Me;break}}else Ce=!1;return le===-1?B?"/":".":B&&le===1?"//":W.slice(0,le)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,Ce=-1,Me=!0,Te;if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var Fe=B.length-1,He=-1;for(Te=W.length-1;Te>=0;--Te){var Pe=W.charCodeAt(Te);if(Pe===U){if(!Me){le=Te+1;break}}else He===-1&&(Me=!1,He=Te+1),Fe>=0&&(Pe===B.charCodeAt(Fe)?--Fe===-1&&(Ce=Te):(Fe=-1,Ce=He))}return le===Ce?Ce=He:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=0;--Te)if(W.charCodeAt(Te)===U){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");for(var B=-1,le=0,Ce=-1,Me=!0,Te=0,Fe=W.length-1;Fe>=0;--Fe){var He=W.charCodeAt(Fe);if(He===U){if(!Me){le=Fe+1;break}continue}Ce===-1&&(Me=!1,Ce=Fe+1),He===O?B===-1?B=Fe:Te!==1&&(Te=1):B!==-1&&(Te=-1)}return B===-1||Ce===-1||Te===0||Te===1&&B===Ce-1&&B===le+1?"":W.slice(B,Ce)},format:function(W){if(W===null||typeof W!="object")throw new w("pathObject","Object",W);return s("/",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.charCodeAt(0)===U,Ce;le?(B.root="/",Ce=1):Ce=0;for(var Me=-1,Te=0,Fe=-1,He=!0,Pe=W.length-1,ne=0;Pe>=Ce;--Pe){var ee=W.charCodeAt(Pe);if(ee===U){if(!He){Te=Pe+1;break}continue}Fe===-1&&(He=!1,Fe=Pe+1),ee===O?Me===-1?Me=Pe:ne!==1&&(ne=1):Me!==-1&&(ne=-1)}return Me===-1||Fe===-1||ne===0||ne===1&&Me===Fe-1&&Me===Te+1?Fe!==-1&&(Te===0&&le?B.base=B.name=W.slice(1,Fe):B.base=B.name=W.slice(Te,Fe)):(Te===0&&le?(B.name=W.slice(1,Me),B.base=W.slice(1,Fe)):(B.name=W.slice(Te,Me),B.base=W.slice(Te,Fe)),B.ext=W.slice(Me,Fe)),Te>0?B.dir=W.slice(0,Te-1):le&&(B.dir="/"),B},sep:"/",delimiter:":",win32:null,posix:null};d.win32=l.win32=l,d.posix=l.posix=d;var m=T.c==="win32"?l.normalize:d.normalize,E=T.c==="win32"?l.join:d.join,L=T.c==="win32"?l.relative:d.relative,A=T.c==="win32"?l.dirname:d.dirname,k=T.c==="win32"?l.basename:d.basename,R=T.c==="win32"?l.extname:d.extname,$=T.c==="win32"?l.sep:d.sep},Msxo:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(309).then(e.bind(null,"Qx4d"))}})},MvK1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=function(){function I(H,z,O){this.from=H|0,this.to=z|0,this.colorId=O|0}return I.compare=function(H,z){return H.colorId===z.colorId?H.from===z.from?H.to-z.to:H.from-z.from:H.colorId-z.colorId},I}(),re=function(){function I(H,z,O){this.startLineNumber=H,this.endLineNumber=z,this.color=O,this._colorZone=null}return I.compare=function(H,z){return H.color===z.color?H.startLineNumber===z.startLineNumber?H.endLineNumber-z.endLineNumber:H.startLineNumber-z.startLineNumber:H.colorO&&(s=O-l);var d=v.color,m=this._color2Id[d];m||(m=++this._lastAssignedId,this._color2Id[d]=m,this._id2Color[m]=d);var E=new T(s-l,s+l,m);v.setColorZone(E),y.push(E)}return this._colorZonesInvalid=!1,y.sort(T.compare),y},I}()},Mzro:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(319).then(e.bind(null,"l/4i"))}})},N0LK:function(Lt,j,e){"use strict";e.d(j,"x",function(){return T}),e.d(j,"F",function(){return re}),e.d(j,"r",function(){return I}),e.d(j,"o",function(){return H}),e.d(j,"p",function(){return z}),e.d(j,"Q",function(){return O}),e.d(j,"K",function(){return x}),e.d(j,"k",function(){return u}),e.d(j,"N",function(){return y}),e.d(j,"m",function(){return w}),e.d(j,"l",function(){return f}),e.d(j,"I",function(){return v}),e.d(j,"H",function(){return _}),e.d(j,"q",function(){return p}),e.d(j,"t",function(){return c}),e.d(j,"D",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"f",function(){return d}),e.d(j,"B",function(){return m}),e.d(j,"C",function(){return E}),e.d(j,"n",function(){return A}),e.d(j,"O",function(){return R}),e.d(j,"c",function(){return $}),e.d(j,"d",function(){return ie}),e.d(j,"z",function(){return W}),e.d(j,"A",function(){return B}),e.d(j,"u",function(){return le}),e.d(j,"E",function(){return Me}),e.d(j,"G",function(){return Te}),e.d(j,"i",function(){return He}),e.d(j,"g",function(){return ne}),e.d(j,"v",function(){return ae}),e.d(j,"h",function(){return q}),e.d(j,"y",function(){return ue}),e.d(j,"w",function(){return X}),e.d(j,"a",function(){return he}),e.d(j,"P",function(){return je}),e.d(j,"L",function(){return Xe}),e.d(j,"J",function(){return me}),e.d(j,"j",function(){return ge}),e.d(j,"M",function(){return _e}),e.d(j,"s",function(){return Re}),e.d(j,"b",function(){return Ee});function T(C){return!C||typeof C!="string"?!0:C.trim().length===0}function re(C,F,se){se===void 0&&(se="0");for(var oe=""+C,be=[oe],De=oe.length;De=F.length?oe:F[De]})}function H(C){return C.replace(/[<>&]/g,function(F){switch(F){case"<":return"<";case">":return">";case"&":return"&";default:return F}})}function z(C){return C.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(C,F){F===void 0&&(F=" ");var se=U(C,F);return x(se,F)}function U(C,F){if(!C||!F)return C;var se=F.length;if(se===0||C.length===0)return C;for(var oe=0;C.indexOf(F,oe)===oe;)oe=oe+se;return C.substring(oe)}function x(C,F){if(!C||!F)return C;var se=F.length,oe=C.length;if(se===0||oe===0)return C;for(var be=oe,De=-1;!(De=C.lastIndexOf(F,be-1),De===-1||De+se!==be);){if(De===0)return"";be=De}return C.substring(0,be)}function u(C){return C.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(C,F){if(C.length0?C.indexOf(F,se)===se:se===0?C===F:!1}function f(C,F,se){if(se===void 0&&(se={}),!C)throw new Error("Cannot create regex from empty string");F||(C=z(C)),se.wholeWord&&(/\B/.test(C.charAt(0))||(C="\\b"+C),/\B/.test(C.charAt(C.length-1))||(C=C+"\\b"));var oe="";return se.global&&(oe+="g"),se.matchCase||(oe+="i"),se.multiline&&(oe+="m"),se.unicode&&(oe+="u"),new RegExp(C,oe)}function v(C){if(C.source==="^"||C.source==="^$"||C.source==="$"||C.source==="^\\s*$")return!1;var F=C.exec("");return!!(F&&C.lastIndex===0)}function _(C){return(C.global?"g":"")+(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")}function p(C){for(var F=0,se=C.length;F=0;se--){var oe=C.charCodeAt(se);if(oe!==32&&oe!==9)return se}return-1}function l(C,F){return CF?1:0}function d(C,F){for(var se=Math.min(C.length,F.length),oe=0;oeF.length?1:0}function m(C){return C>=97&&C<=122}function E(C){return C>=65&&C<=90}function L(C){return m(C)||E(C)}function A(C,F){return C.length===F.length&&k(C,F)}function k(C,F,se){se===void 0&&(se=C.length);for(var oe=0;oeC.length?!1:k(C,F,se)}function $(C,F){var se,oe=Math.min(C.length,F.length);for(se=0;se1){var oe=C.charCodeAt(F-2);if(W(oe))return(oe-55296<<10)+(se-56320)+65536}return se}function Me(C,F){var se=ve.getInstance(),oe=F,be=C.length,De=le(C,be,F);F+=De>=65536?2:1;for(var Se=se.getGraphemeBreakType(De);F=65536?2:1,Se=Qe}return F-oe}function Te(C,F){var se=ve.getInstance(),oe=F,be=Ce(C,F);F-=be>=65536?2:1;for(var De=se.getGraphemeBreakType(be);F>0;){var Se=Ce(C,F),Ve=se.getGraphemeBreakType(Se);if(Ee(Ve,De))break;F-=Se>=65536?2:1,De=Ve}return oe-F}var Fe=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function He(C){return Fe.test(C)}var Pe=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ne(C){return Pe.test(C)}var ee=/^[\t\n\r\x20-\x7E]*$/;function ae(C){return ee.test(C)}function q(C){for(var F=0,se=C.length;F=11904&&C<=55215||C>=63744&&C<=64255||C>=65281&&C<=65374}function X(C){return C>=127462&&C<=127487||C>=9728&&C<=10175||C>=127744&&C<=128591||C>=128640&&C<=128764||C>=128992&&C<=129003||C>=129280&&C<=129535||C>=129648&&C<=129651||C>=129656&&C<=129666||C>=129680&&C<=129685}var he=String.fromCharCode(65279);function je(C){return!!(C&&C.length>0&&C.charCodeAt(0)===65279)}function Xe(C){return btoa(encodeURIComponent(C))}function me(C,F){for(var se="",oe=0;oese[3*be+1])be=2*be+1;else return se[3*be+2];return 0},C._INSTANCE=null,C}();function Q(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NR8r:function(Lt,j,e){"use strict";e.d(j,"a",function(){return _});var T=e("synD"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),H=e("pmY6"),z=e("OBOq"),O=e("aokT"),U=e("sswD"),x=e("T8No"),u=e("t9D7"),y=e("MD5Z"),w=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},v=function(s,l){return function(d,m){l(d,m,s)}},_=function(s){w(l,s);function l(d,m){var E=s.call(this)||this;return E.closeTimeout=3e3,E._messageWidget=E._register(new H.d),E._messageListeners=E._register(new H.b),E._editor=d,E._visible=l.MESSAGE_VISIBLE.bindTo(m),E._register(E._editor.onDidAttemptReadOnlyEdit(function(){return E._onDidAttemptReadOnlyEdit()})),E}return l.get=function(d){return d.getContribution(l.ID)},l.prototype.dispose=function(){s.prototype.dispose.call(this),this._visible.reset()},l.prototype.showMessage=function(d,m){var E=this;Object(z.a)(d),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new c(this._editor,m,d),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return E.closeMessage()})),this._messageListeners.add(new I.e(function(){return E.closeMessage()},this.closeTimeout));var L;this._messageListeners.add(this._editor.onMouseMove(function(A){if(!A.target.position)return;L?L.containsPosition(A.target.position)||E.closeMessage():L=new O.a(m.lineNumber-3,1,A.target.position.lineNumber+3,1)}))},l.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(c.fadeOut(this._messageWidget.value))},l.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(J.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},l.ID="editor.contrib.messageController",l.MESSAGE_VISIBLE=new x.d("messageVisible",!1),l=f([v(1,x.c)],l),l}(H.a),p=U.c.bindToContribution(_.get);Object(U.g)(new p({id:"leaveEditorMessage",precondition:_.MESSAGE_VISIBLE,handler:function(l){return l.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var c=function(){function s(l,d,m){var E=d.lineNumber,L=d.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=l,this._editor.revealLinesInCenterIfOutsideViewport(E,E,0),this._position={lineNumber:E,column:L-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var A=document.createElement("div");A.classList.add("message"),A.textContent=m,this._domNode.appendChild(A);var k=document.createElement("div");k.classList.add("anchor"),this._domNode.appendChild(k),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return s.fadeOut=function(l){var d,m=function E(){l.dispose(),clearTimeout(d),l.getDomNode().removeEventListener("animationend",E)};return d=setTimeout(m,110),l.getDomNode().addEventListener("animationend",m),l.getDomNode().classList.add("fadeOut"),{dispose:m}},s.prototype.dispose=function(){this._editor.removeContentWidget(this)},s.prototype.getId=function(){return"messageoverlay"},s.prototype.getDomNode=function(){return this._domNode},s.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},s}();Object(U.h)(_.ID,_),Object(u.e)(function(s,l){var d=s.getColor(y.gb);if(d){var m=s.type===u.b?2:1;l.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+d+"; }"),l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+m+"px solid "+d+"; }")}var E=s.getColor(y.fb);E&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+E+"; }");var L=s.getColor(y.hb);L&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+L+"; }")})},OBOq:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y});var T=e("UCkY"),re=e.n(T),J=e("3/fG"),I=e("MNsG"),H=e("EffR"),z,O,U;function x(_){z=document.createElement("div"),z.className="monaco-aria-container",O=document.createElement("div"),O.className="monaco-alert",O.setAttribute("role","alert"),O.setAttribute("aria-atomic","true"),z.appendChild(O),U=document.createElement("div"),U.className="monaco-status",U.setAttribute("role","status"),U.setAttribute("aria-atomic","true"),z.appendChild(U),_.appendChild(z)}function u(_,p){v(O,_,p)}function y(_,p){I.e?u(_,p):v(U,_,p)}var w=0,f=void 0;function v(_,p,c){if(!z)return;if(!c){f===p?w++:(f=p,w=0);switch(w){case 0:break;case 1:p=J.a("repeated","{0} (occurred again)",p);break;default:p=J.a("repeatedNtimes","{0} (occurred {1} times)",p,w);break}}H.t(_),_.textContent=p,_.style.visibility="hidden",_.style.visibility="visible"}},OKK6:function(Lt,j,e){},OOlL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(275).then(e.bind(null,"NlLO"))}})},OhnE:function(Lt,j,e){},PTeM:function(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"a",function(){return I}),e.d(j,"b",function(){return H});var T=e("N0LK"),re=e("MrjW");function J(z){return z.replace(/[\\/]/g,re.posix.sep)}function I(z,O,U,x){if(x===void 0&&(x=re.sep),z===O)return!0;if(!z||!O)return!1;if(O.length>z.length)return!1;if(U){var u=Object(T.O)(z,O);if(!u)return!1;if(O.length===z.length)return!0;var y=O.length;return O.charAt(O.length-1)===x&&y--,z.charAt(y)===x}return O.charAt(O.length-1)!==x&&(O+=x),z.indexOf(O)===0}function H(z){return z>=65&&z<=90||z>=97&&z<=122}},Q4rV:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("bY76");function re(I){var H=JSON.parse(I);return H=J(H),H}function J(I,H){if(H===void 0&&(H=0),!I||H>200)return I;if(typeof I=="object"){switch(I.$mid){case 1:return T.a.revive(I);case 2:return new RegExp(I.source,I.flags)}for(var z in I)Object.hasOwnProperty.call(I,z)&&(I[z]=J(I[z],H+1))}return I}},Q631:function(Lt,j,e){"use strict";e.r(j),e.d(j,"rename",function(){return q}),e.d(j,"RenameAction",function(){return X});var T=e("3/fG"),re=e("/cxE"),J=e("T8No"),I=e("tTk5"),H=e("sswD"),z=e("wQH0"),O=e("BjKj"),U=e("pmY6"),x=e("cGHE"),u=e("aokT"),y=e("MD5Z"),w=e("t9D7"),f=e("bexQ"),v=e("EffR"),_=function(je,Xe,me,ge){var _e=arguments.length,Re=_e<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(_e<3?Ee(Re):_e>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return _e>3&&Re&&Object.defineProperty(Xe,me,Re),Re},p=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},c=new J.d("renameInputVisible",!1),s=function(){function je(Xe,me,ge,_e,Re){var Ee=this;this._editor=Xe,this._acceptKeybindings=me,this._themeService=ge,this._keybindingService=_e,this._disposables=new U.b,this.allowEditorOverflow=!0,this._visibleContextKey=c.bindTo(Re),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(ve){ve.hasChanged(34)&&Ee._updateFont()})),this._disposables.add(ge.onThemeChange(this._updateStyles,this))}return je.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},je.prototype.getId=function(){return"__renameInputWidget"},je.prototype.getDomNode=function(){var Xe=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(T.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var me=function(){var _e,Re,Ee=Xe._acceptKeybindings,ve=Ee[0],Q=Ee[1];Xe._keybindingService.lookupKeybinding(ve),Xe._label.innerText=Object(T.a)("label","{0} to Rename, {1} to Preview",(_e=Xe._keybindingService.lookupKeybinding(ve))===null||_e===void 0?void 0:_e.getLabel(),(Re=Xe._keybindingService.lookupKeybinding(Q))===null||Re===void 0?void 0:Re.getLabel())};me(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(me)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},je.prototype._updateStyles=function(Xe){var me,ge,_e,Re;if(!this._input||!this._domNode)return;var Ee=Xe.getColor(y.hc);this._domNode.style.backgroundColor=String((me=Xe.getColor(y.Q))!==null&&me!==void 0?me:""),this._domNode.style.boxShadow=Ee?" 0 2px 8px "+Ee:"",this._domNode.style.color=String((ge=Xe.getColor(y.bb))!==null&&ge!==void 0?ge:""),this._input.style.backgroundColor=String((_e=Xe.getColor(y.Z))!==null&&_e!==void 0?_e:"");var ve=Xe.getColor(y.ab);this._input.style.borderWidth=ve?"1px":"0px",this._input.style.borderStyle=ve?"solid":"none",this._input.style.borderColor=(Re=ve==null?void 0:ve.toString())!==null&&Re!==void 0?Re:"none"},je.prototype._updateFont=function(){if(!this._input||!this._label)return;var Xe=this._editor.getOption(34);this._input.style.fontFamily=Xe.fontFamily,this._input.style.fontWeight=Xe.fontWeight,this._input.style.fontSize=Xe.fontSize+"px",this._label.style.fontSize=Xe.fontSize*.8+"px"},je.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},je.prototype.acceptInput=function(Xe){this._currentAcceptInput&&this._currentAcceptInput(Xe)},je.prototype.cancelInput=function(Xe){this._currentCancelInput&&this._currentCancelInput(Xe)},je.prototype.getInput=function(Xe,me,ge,_e,Re){var Ee=this;Object(v.Y)(this._domNode,"preview",Re),this._position=new x.a(Xe.startLineNumber,Xe.startColumn),this._input.value=me,this._input.setAttribute("selectionStart",ge.toString()),this._input.setAttribute("selectionEnd",_e.toString()),this._input.size=Math.max((Xe.endColumn-Xe.startColumn)*1.1,20);var ve=new U.b;return new Promise(function(Q){Ee._currentCancelInput=function(F){return Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q(F),!0},Ee._currentAcceptInput=function(F){if(Ee._input.value.trim().length===0||Ee._input.value===me){Ee.cancelInput(!0);return}Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q({newName:Ee._input.value,wantsPreview:Re&&F})};var C=function(){var se=Ee._editor.getPosition();(!se||!u.a.containsPosition(Xe,se))&&Ee.cancelInput(!0)};ve.add(Ee._editor.onDidChangeCursorSelection(C)),ve.add(Ee._editor.onDidBlurEditorWidget(function(){return Ee.cancelInput(!1)})),Ee._show()}).finally(function(){ve.dispose(),Ee._hide()})},je.prototype._show=function(){var Xe=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){Xe._input.focus(),Xe._input.setSelectionRange(parseInt(Xe._input.getAttribute("selectionStart")),parseInt(Xe._input.getAttribute("selectionEnd")))},100)},je.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},je=_([p(2,w.c),p(3,f.a),p(4,J.c)],je),je}(),l=e("twdY"),d=e("OBOq"),m=e("NR8r"),E=e("vATl"),L=e("sM1p"),A=e("x/UI"),k=e("bY76"),R=e("Vxe3"),$=e("JQT/"),ie=e("X+cX"),W=e("746U"),B=e("09fa"),le=e("Cg/j"),Ce=e("ic2d"),Me=e("CRAX"),Te=e("e0rL"),Fe=function(){var je=function(me,ge){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,Re){_e.__proto__=Re}||function(_e,Re){for(var Ee in Re)Re.hasOwnProperty(Ee)&&(_e[Ee]=Re[Ee])},je(me,ge)};return function(Xe,me){je(Xe,me);function ge(){this.constructor=Xe}Xe.prototype=me===null?Object.create(me):(ge.prototype=me.prototype,new ge)}}(),He=function(je,Xe,me,ge){var _e=arguments.length,Re=_e<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(_e<3?Ee(Re):_e>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return _e>3&&Re&&Object.defineProperty(Xe,me,Re),Re},Pe=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},ne=function(je,Xe,me,ge){function _e(Re){return Re instanceof me?Re:new me(function(Ee){Ee(Re)})}return new(me||(me=Promise))(function(Re,Ee){function ve(F){try{C(ge.next(F))}catch(se){Ee(se)}}function Q(F){try{C(ge.throw(F))}catch(se){Ee(se)}}function C(F){F.done?Re(F.value):_e(F.value).then(ve,Q)}C((ge=ge.apply(je,Xe||[])).next())})},ee=function(je,Xe){var me={label:0,sent:function(){if(Re[0]&1)throw Re[1];return Re[1]},trys:[],ops:[]},ge,_e,Re,Ee;return Ee={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function ve(C){return function(F){return Q([C,F])}}function Q(C){if(ge)throw new TypeError("Generator is already executing.");for(;me;)try{if(ge=1,_e&&(Re=C[0]&2?_e.return:C[0]?_e.throw||((Re=_e.return)&&Re.call(_e),0):_e.next)&&!(Re=Re.call(_e,C[1])).done)return Re;(_e=0,Re)&&(C=[C[0]&2,Re.value]);switch(C[0]){case 0:case 1:Re=C;break;case 4:return me.label++,{value:C[1],done:!1};case 5:me.label++,_e=C[1],C=[0];continue;case 7:C=me.ops.pop(),me.trys.pop();continue;default:if(!(Re=me.trys,Re=Re.length>0&&Re[Re.length-1])&&(C[0]===6||C[0]===2)){me=0;continue}if(C[0]===3&&(!Re||C[1]>Re[0]&&C[1]0},je.prototype.resolveRenameLocation=function(Xe){return ne(this,void 0,void 0,function(){var me,ge,_e,Re;return ee(this,function(Ee){switch(Ee.label){case 0:return me=this._providers[0],me?me.resolveRenameLocation?(_e=W.n,[4,me.resolveRenameLocation(this.model,this.position,Xe)]):[3,2]:[2,void 0];case 1:ge=_e.apply(void 0,[Ee.sent()]),Ee.label=2;case 2:return!ge&&(Re=this.model.getWordAtPosition(this.position),Re)?[2,{range:new u.a(this.position.lineNumber,Re.startColumn,this.position.lineNumber,Re.endColumn),text:Re.word}]:[2,ge]}})})},je.prototype.provideRenameEdits=function(Xe,me,ge,_e){return ne(this,void 0,void 0,function(){var Re,Ee;return ee(this,function(ve){switch(ve.label){case 0:return Re=this._providers[me],Re?[4,Re.provideRenameEdits(this.model,this.position,Xe,_e)]:[2,{edits:[],rejectReason:ge.join(` -`)}];case 1:if(Ee=ve.sent(),Ee){if(Ee.rejectReason)return[2,this.provideRenameEdits(Xe,me+1,ge.concat(Ee.rejectReason),_e)]}else return[2,this.provideRenameEdits(Xe,me+1,ge.concat(T.a("no result","No result.")),_e)];return[2,Ee]}})})},je}();function q(je,Xe,me){return ne(this,void 0,void 0,function(){return ee(this,function(ge){return[2,new ae(je,Xe).provideRenameEdits(me,0,[],$.a.None)]})})}var ue=function(){function je(Xe,me,ge,_e,Re,Ee,ve){var Q=this;this.editor=Xe,this._instaService=me,this._notificationService=ge,this._bulkEditService=_e,this._progressService=Re,this._logService=Ee,this._configService=ve,this._dispoableStore=new U.b,this._cts=new $.b,this._renameInputField=this._dispoableStore.add(new ie.b(function(){return Q._dispoableStore.add(Q._instaService.createInstance(s,Q.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}))}return je.get=function(Xe){return Xe.getContribution(je.ID)},je.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},je.prototype.run=function(){return ne(this,void 0,void 0,function(){var Xe,me,ge,_e,Re,Ee,ve,Q,C,F,se,oe=this;return ee(this,function(be){switch(be.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Xe=this.editor.getPosition(),me=new ae(this.editor.getModel(),Xe),!me.hasProvider())return[2,void 0];this._cts=new E.b(this.editor,4|1),be.label=1;case 1:return be.trys.push([1,3,,4]),_e=me.resolveRenameLocation(this._cts.token),this._progressService.showWhile(_e,250),[4,_e];case 2:return ge=be.sent(),[3,4];case 3:return Re=be.sent(),m.a.get(this.editor).showMessage(Re||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Xe),[2,void 0];case 4:return ge?ge.rejectReason?(m.a.get(this.editor).showMessage(ge.rejectReason,Xe),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ee=this.editor.getSelection(),ve=0,Q=ge.text.length,!u.a.isEmpty(Ee)&&!u.a.spansMultipleLines(Ee)&&u.a.containsRange(ge.range,Ee)&&(ve=Math.max(0,Ee.startColumn-ge.range.startColumn),Q=Math.min(ge.range.endColumn,Ee.endColumn)-ge.range.startColumn),C=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(ge.range,ge.text,ve,Q,C)]):[2,void 0];case 5:return F=be.sent(),typeof F=="boolean"?(F&&this.editor.focus(),[2,void 0]):(this.editor.focus(),se=Object(ie.j)(me.provideRenameEdits(F.newName,0,[],this._cts.token),this._cts.token).then(function(De){return ne(oe,void 0,void 0,function(){var Se=this;return ee(this,function(Ve){return!De||!this.editor.hasModel()?[2]:De.rejectReason?(this._notificationService.info(De.rejectReason),[2]):(this._bulkEditService.apply(De,{editor:this.editor,showPreview:F.wantsPreview,label:T.a("label","Renaming '{0}'",ge==null?void 0:ge.text)}).then(function(Qe){Qe.ariaSummary&&Object(d.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ge.text,F.newName,Qe.ariaSummary))}).catch(function(Qe){Se._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),Se._logService.error(Qe)}),[2])})})},function(De){oe._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),oe._logService.error(De)}),this._progressService.showWhile(se,250),[2,se])}})})},je.prototype.acceptRenameInput=function(Xe){this._renameInputField.getValue().acceptInput(Xe)},je.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},je.ID="editor.contrib.renameController",je=He([Pe(1,le.a),Pe(2,L.a),Pe(3,A.a),Pe(4,I.a),Pe(5,B.a),Pe(6,Te.a)],je),je}(),X=function(je){Fe(Xe,je);function Xe(){return je.call(this,{id:"editor.action.rename",label:T.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:J.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return Xe.prototype.runCommand=function(me,ge){var _e=this,Re=me.get(R.a),Ee=Array.isArray(ge)&&ge||[void 0,void 0],ve=Ee[0],Q=Ee[1];return k.a.isUri(ve)&&x.a.isIPosition(Q)?Re.openCodeEditor({resource:ve},Re.getActiveCodeEditor()).then(function(C){if(!C)return;C.setPosition(Q),C.invokeWithinContext(function(F){return _e.reportTelemetry(F,C),_e.run(F,C)})},re.e):je.prototype.runCommand.call(this,me,ge)},Xe.prototype.run=function(me,ge){var _e=ue.get(ge);return _e?_e.run():Promise.resolve()},Xe}(H.b);Object(H.h)(ue.ID,ue),Object(H.f)(X);var he=H.c.bindToContribution(ue.get);Object(H.g)(new he({id:"acceptRenameInput",precondition:c,handler:function(Xe){return Xe.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:3}})),Object(H.g)(new he({id:"acceptRenameInputWithPreview",precondition:J.a.and(c,J.a.has("config.editor.rename.enablePreview")),handler:function(Xe){return Xe.acceptRenameInput(!0)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:1024+3}})),Object(H.g)(new he({id:"cancelRenameInput",precondition:c,handler:function(Xe){return Xe.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(H.e)("_executeDocumentRenameProvider",function(je,Xe,me){var ge=me.newName;if(typeof ge!="string")throw Object(re.b)("newName");return q(je,Xe,ge)}),Ce.a.as(Me.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},QDVR:function(Lt,j,e){"use strict";e.d(j,"e",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return O}),e.d(j,"b",function(){return U}),e.d(j,"a",function(){return u});var T=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,p){_.__proto__=p}||function(_,p){for(var c in p)p.hasOwnProperty(c)&&(_[c]=p[c])},y(f,v)};return function(w,f){y(w,f);function v(){this.constructor=w}w.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}();function re(y){var w=[];return y.forEach(function(f){return w.push(f)}),w}function J(y){var w=[];return y.forEach(function(f,v){return w.push(v)}),w}var I=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(w){return this._value=w,this._pos=0,this},y.prototype.next=function(){return this._pos+=1,this},y.prototype.hasNext=function(){return this._pos0)_.left||(_.left=new z,_.left.segment=v.value()),_=_.left;else if(p<0)_.right||(_.right=new z,_.right.segment=v.value()),_=_.right;else if(v.hasNext())v.next(),_.mid||(_.mid=new z,_.mid.segment=v.value()),_=_.mid;else break}var c=_.value;return _.value=f,_.key=w,c},y.prototype.get=function(w){for(var f=this._iter.reset(w),v=this._root;v;){var _=f.cmp(v.segment);if(_>0)v=v.left;else if(_<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else break}return v?v.value:void 0},y.prototype.findSubstr=function(w){for(var f=this._iter.reset(w),v=this._root,_=void 0;v;){var p=f.cmp(v.segment);if(p>0)v=v.left;else if(p<0)v=v.right;else if(f.hasNext())f.next(),_=v.value||_,v=v.mid;else break}return v&&v.value||_},y.prototype.forEach=function(w){this._forEach(this._root,w)},y.prototype._forEach=function(w,f){w&&(this._forEach(w.left,f),w.value&&f(w.value,w.key),this._forEach(w.mid,f),this._forEach(w.right,f))},y}(),U=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(w,f){this.map.set(this.toKey(w),f)},y.prototype.get=function(w){return this.map.get(this.toKey(w))},y.prototype.toKey=function(w){var f=w.toString();return this.ignoreCase&&(f=f.toLowerCase()),f},y}(),x=function(){function y(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return y.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),y.prototype.get=function(w,f){f===void 0&&(f=0);var v=this._map.get(w);return v?(f!==0&&this.touch(v,f),v.value):void 0},y.prototype.set=function(w,f,v){v===void 0&&(v=0);var _=this._map.get(w);if(_)_.value=f,v!==0&&this.touch(_,v);else{_={key:w,value:f,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(_);break;case 1:this.addItemFirst(_);break;case 2:this.addItemLast(_);break;default:this.addItemLast(_);break}this._map.set(w,_),this._size++}},y.prototype.delete=function(w){return!!this.remove(w)},y.prototype.remove=function(w){var f=this._map.get(w);return f?(this._map.delete(w),this.removeItem(f),this._size--,f.value):void 0},y.prototype.forEach=function(w,f){for(var v=this._head;v;)f?w.bind(f)(v.value,v.key,this):w(v.value,v.key,this),v=v.next},y.prototype.trimOld=function(w){if(w>=this.size)return;if(w===0){this.clear();return}for(var f=this._head,v=this.size;f&&v>w;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0)},y.prototype.addItemFirst=function(w){if(!this._head&&!this._tail)this._tail=w;else if(this._head)w.next=this._head,this._head.previous=w;else throw new Error("Invalid list");this._head=w},y.prototype.addItemLast=function(w){if(!this._head&&!this._tail)this._head=w;else if(this._tail)w.previous=this._tail,this._tail.next=w;else throw new Error("Invalid list");this._tail=w},y.prototype.removeItem=function(w){if(w===this._head&&w===this._tail)this._head=void 0,this._tail=void 0;else if(w===this._head){if(!w.next)throw new Error("Invalid list");w.next.previous=void 0,this._head=w.next}else if(w===this._tail){if(!w.previous)throw new Error("Invalid list");w.previous.next=void 0,this._tail=w.previous}else{var f=w.next,v=w.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}w.next=void 0,w.previous=void 0},y.prototype.touch=function(w,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(f!==1&&f!==2)return;if(f===1){if(w===this._head)return;var v=w.next,_=w.previous;w===this._tail?(_.next=void 0,this._tail=_):(v.previous=_,_.next=v),w.previous=void 0,w.next=this._head,this._head.previous=w,this._head=w}else if(f===2){if(w===this._tail)return;var v=w.next,_=w.previous;w===this._head?(v.previous=void 0,this._head=v):(v.previous=_,_.next=v),w.next=void 0,w.previous=this._tail,this._tail.next=w,this._tail=w}},y.prototype.toJSON=function(){var w=[];return this.forEach(function(f,v){w.push([v,f])}),w},y}(),u=function(y){T(w,y);function w(f,v){v===void 0&&(v=1);var _=y.call(this)||this;return _._limit=f,_._ratio=Math.min(Math.max(0,v),1),_}return w.prototype.get=function(f){return y.prototype.get.call(this,f,2)},w.prototype.peek=function(f){return y.prototype.get.call(this,f,0)},w.prototype.set=function(f,v){y.prototype.set.call(this,f,v,2),this.checkTrim()},w.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},w}(x)},QFiB:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return e.e(294).then(e.bind(null,"PhST"))}})},QRHv:function(Lt,j,e){"use strict";e.d(j,"f",function(){return H}),e.d(j,"b",function(){return U}),e.d(j,"c",function(){return x}),e.d(j,"a",function(){return y}),e.d(j,"e",function(){return v}),e.d(j,"d",function(){return _});var T=e("6OMU"),re=e("4bUh"),J=e("cGHE"),I=e("twdY");function H(p){for(var c=0,s=0,l=0,d=0,m=p.length;d>>0}var O=new Uint32Array(0).buffer,U=function(){function p(){this.tokens=[]}return p.prototype.add=function(c,s){if(this.tokens.length>0){var l=this.tokens[this.tokens.length-1],d=l.startLineNumber+l.tokens.length-1;if(d+1===c){l.tokens.push(s);return}}this.tokens.push(new w(c,[s]))},p}(),x=function(){function p(c){this._tokens=c,this._tokenCount=c.length/4}return p.prototype.getMaxDeltaLine=function(){var c=this.getTokenCount();return c===0?-1:this.getDeltaLine(c-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(c){return this._tokens[4*c]},p.prototype.getStartCharacter=function(c){return this._tokens[4*c+1]},p.prototype.getEndCharacter=function(c){return this._tokens[4*c+2]},p.prototype.getMetadata=function(c){return this._tokens[4*c+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(c,s,l,d,m){for(var E=this._tokens,L=this._tokenCount,A=d-s,k=0,R=!1,$=0;$m?le-=m-l:le=l;else if(W===s&&B===l)if(W===d&&le>m)le-=m-l;else{R=!0;continue}else if(Wm)W===s?(B=l,le=B+(le-m)):(B=0,le=B+(le-m));else{R=!0;continue}else if(W>d){if(A===0&&!R){k=L;break}W-=A}else if(W===d&&B>=m)c&&W===0&&(B+=c,le+=c),W-=A,B-=m-l,le-=m-l;else throw new Error("Not possible!");var Me=4*k;E[Me]=W,E[Me+1]=B,E[Me+2]=le,E[Me+3]=Ce,k++}this._tokenCount=k},p.prototype.acceptInsertText=function(c,s,l,d,m,E){for(var L=l===0&&d===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),A=this._tokens,k=this._tokenCount,R=0;Rs)d=m-1;else{for(var L=m;L>l&&c.getDeltaLine(L-1)===s;)L--;for(var A=m;A0?s.charCodeAt(0):0)},p.prototype.acceptEdit=function(c,s,l,d,m){this._acceptDeleteRange(c),this._acceptInsertText(new J.a(c.startLineNumber,c.startColumn),s,l,d,m),this._updateEndLineNumber()},p.prototype._acceptDeleteRange=function(c){if(c.startLineNumber===c.endLineNumber&&c.startColumn===c.endColumn)return;var s=c.startLineNumber-this.startLineNumber,l=c.endLineNumber-this.startLineNumber;if(l<0){var d=l-s;this.startLineNumber-=d;return}var m=this.tokens.getMaxDeltaLine();if(s>=m+1)return;if(s<0&&l>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(s<0){var E=-s;this.startLineNumber-=E,this.tokens.acceptDeleteRange(c.startColumn-1,0,0,l,c.endColumn-1)}else this.tokens.acceptDeleteRange(0,s,c.startColumn-1,l,c.endColumn-1)},p.prototype._acceptInsertText=function(c,s,l,d,m){if(s===0&&l===0)return;var E=c.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=s;return}var L=this.tokens.getMaxDeltaLine();if(E>=L+1)return;this.tokens.acceptInsertText(E,c.column-1,s,l,d,m)},p}(),w=function(){function p(c,s){this.startLineNumber=c,this.tokens=s}return p}();function f(p){return p instanceof Uint32Array?p:new Uint32Array(p)}var v=function(){function p(){this._pieces=[]}return p.prototype.flush=function(){this._pieces=[]},p.prototype.set=function(c){this._pieces=c||[]},p.prototype.addSemanticTokens=function(c,s){var l=this._pieces;if(l.length===0)return s;var d=p._findFirstPieceWithLine(l,c),m=this._pieces[d].getLineTokens(c);if(!m)return s;for(var E=s.getCount(),L=m.getCount(),A=0,k=[],R=0,$=0;$>>0,Ce=~le>>>0;As)d=m-1;else{for(;m>l&&c[m-1].startLineNumber<=s&&s<=c[m-1].endLineNumber;)m--;return m}}return l},p.prototype.acceptEdit=function(c,s,l,d,m){for(var E=0,L=this._pieces;E1&&(m=I.A.getLanguageId(d[1])!==c),!m)return O}if(!d||d.length===0){var E=new Uint32Array(2);return E[0]=s,E[1]=z(c),E.buffer}return d[d.length-2]=s,d.byteOffset===0&&d.byteLength===d.buffer.byteLength?d.buffer:d},p.prototype._ensureLine=function(c){for(;c>=this._len;)this._lineTokens[this._len]=null,this._len++},p.prototype._deleteLines=function(c,s){if(s===0)return;c+s>this._len&&(s=this._len-c),this._lineTokens.splice(c,s),this._len-=s},p.prototype._insertLines=function(c,s){if(s===0)return;for(var l=[],d=0;d=this._len)return;if(c.startLineNumber===c.endLineNumber){if(c.startColumn===c.endColumn)return;this._lineTokens[s]=p._delete(this._lineTokens[s],c.startColumn-1,c.endColumn-1);return}this._lineTokens[s]=p._deleteEnding(this._lineTokens[s],c.startColumn-1);var l=c.endLineNumber-1,d=null;l=this._len)return;if(s===0){this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l);return}this._lineTokens[d]=p._deleteEnding(this._lineTokens[d],c.column-1),this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l),this._insertLines(c.lineNumber,s)},p._deleteBeginning=function(c,s){return c===null||c===O?c:p._delete(c,0,s)},p._deleteEnding=function(c,s){if(c===null||c===O)return c;var l=f(c),d=l[l.length-2];return p._delete(c,s,d)},p._delete=function(c,s,l){if(c===null||c===O||s===l)return c;var d=f(c),m=d.length>>>1;if(s===0&&d[d.length-2]===l)return O;var E=re.a.findIndexInTokensArray(d,s),L=E>0?d[E-1<<1]:0,A=d[E<<1];if(lie&&(d[$++]=le,d[$++]=d[(B<<1)+1],ie=le)}if($===d.length)return c;var Ce=new Uint32Array($);return Ce.set(d.subarray(0,$),0),Ce.buffer},p._append=function(c,s){if(s===O)return c;if(c===O)return s;if(c===null)return c;if(s===null)return null;var l=f(c),d=f(s),m=d.length>>>1,E=new Uint32Array(l.length+d.length);E.set(l,0);for(var L=l.length,A=l[l.length-2],k=0;k>>1,E=re.a.findIndexInTokensArray(d,s);if(E>0){var L=d[E-1<<1];L===s&&E--}for(var A=E;A0&&Ce[Ce.length-1])&&(He[0]===6||He[0]===2)){W=0;continue}if(He[0]===3&&(!Ce||He[1]>Ce[0]&&He[1]0&&!W.providerFilter.has(ue)?void 0:Promise.resolve(ue.provideCompletionItems($,ie,B,le)).then(function(X){var he=He.length;if(X){for(var je=0,Xe=X.suggestions||[];jeie.sortTextLow)return 1}return $.completion.labelie.completion.label?1:$.completion.kind-ie.completion.kind}function m($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return-1;if(ie.completion.kind===25)return 1}return d($,ie)}function E($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return 1;if(ie.completion.kind===25)return-1}return d($,ie)}var L=new Map;L.set(0,m),L.set(2,E),L.set(1,d);function A($){return L.get($)}Object(I.e)("_executeCompletionItemProvider",function($,ie,W){return w(void 0,void 0,void 0,function(){var B,le,Ce,Me,Te,Fe,He,Pe;return f(this,function(ne){switch(ne.label){case 0:return B={incomplete:!1,suggestions:[]},le=new y.b,Ce=[],Me=W.maxItemsToResolve||0,[4,l($,ie)];case 1:for(Te=ne.sent(),Fe=0,He=Te;Fe=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Fe=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},He=function(){function Je($e){this._resolverService=$e}return Je.prototype.hasChildren=function($e){return $e instanceof x.c?!0:$e instanceof x.a&&!$e.failure},Je.prototype.getChildren=function($e){if($e instanceof x.c)return $e.groups;if($e instanceof x.a)return $e.resolve(this._resolverService).then(function(ze){return ze.children});throw new Error("bad tree")},Je=Te([Fe(0,l.a)],Je),Je}(),Pe=function(){function Je(){}return Je.prototype.getHeight=function(){return 23},Je.prototype.getTemplateId=function($e){return $e instanceof x.a?q.id:X.id},Je}(),ne=function(){function Je($e){this._keybindingService=$e}return Je.prototype.getKeyboardNavigationLabel=function($e){if($e instanceof x.b){var ze=$e.parent.preview,Ke=ze&&ze.preview($e.range);if(Ke)return Ke.value}return Object(_.b)($e.uri)},Je=Te([Fe(0,B.a)],Je),Je}(),ee=function(){function Je(){}return Je.prototype.getId=function($e){return $e instanceof x.b?$e.id:$e.uri},Je}(),ae=function(Je){Me($e,Je);function $e(ze,Ke,fe){var G=Je.call(this)||this;G._uriLabel=Ke;var te=document.createElement("div");return y.f(te,"reference-file"),G.file=G._register(new d.a(te,{supportHighlights:!0})),G.badge=new k(y.q(te,y.a(".count"))),G._register(Object(ie.a)(G.badge,fe)),ze.appendChild(te),G}return $e.prototype.set=function(ze,Ke){var fe=Object(_.d)(ze.uri);this.file.setLabel(Object(W.a)(ze.uri),this._uriLabel.getUriLabel(fe,{relative:!0}),{title:this._uriLabel.getUriLabel(ze.uri),matches:Ke});var G=ze.children.length;this.badge.setCount(G),ze.failure?this.badge.setTitleFormat(Object(T.a)("referencesFailre","Failed to resolve file.")):G>1?this.badge.setTitleFormat(Object(T.a)("referencesCount","{0} references",G)):this.badge.setTitleFormat(Object(T.a)("referenceCount","{0} reference",G))},$e=Te([Fe(1,R.a),Fe(2,$.c)],$e),$e}(J.a),q=function(){function Je($e){this._instantiationService=$e,this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return this._instantiationService.createInstance(ae,$e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,Object(le.c)($e.filterData))},Je.prototype.disposeTemplate=function($e){$e.dispose()},Je.id="FileReferencesRenderer",Je=Te([Fe(0,H.a)],Je),Je}(),ue=function(){function Je($e){this.label=new Ce.a($e,!1)}return Je.prototype.set=function($e,ze){var Ke=$e.parent.preview,fe=Ke&&Ke.preview($e.range);if(!fe)this.label.set(Object(_.b)($e.uri)+":"+($e.range.startLineNumber+1)+":"+($e.range.startColumn+1));else{var G=fe.value,te=fe.highlight;ze&&!le.a.isDefault(ze)?(y.Y(this.label.element,"referenceMatch",!1),this.label.set(G,Object(le.c)(ze))):(y.Y(this.label.element,"referenceMatch",!0),this.label.set(G,[te]))}},Je}(),X=function(){function Je(){this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return new ue($e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,$e.filterData)},Je.prototype.disposeTemplate=function(){},Je.id="OneReferenceRenderer",Je}(),he=function(){function Je(){}return Je.prototype.getAriaLabel=function($e){return $e.ariaMessage},Je}(),je=e("k9mg"),Xe=e("MD5Z"),me=e("iNS8"),ge=e("51B1"),_e=e("746U"),Re=e("Sdnv"),Ee=e("6OMU"),ve=e("cMOf"),Q=e("4y0V"),C=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),F=function(){for(var Je=0,$e=0,ze=arguments.length;$e0&&(this.proportions=this.viewItems.map(function(Ke){return Ke.size/ze.contentSize}))},$e.prototype.onSashStart=function(ze){for(var Ke=this,fe=ze.sash,G=ze.start,te=ze.alt,Y=0,de=this.viewItems;Y=this.viewItems.length)return;Ke=typeof Ke=="number"?Ke:ze.size,Ke=Object(Re.a)(Ke,ze.minimumSize,ze.maximumSize),this.inverseAltBehavior&&fe>0?(this.resize(fe-1,Math.floor((ze.size-Ke)/2)),this.distributeEmptySpace(),this.layoutViews()):(ze.size=Ke,this.relayout([fe],void 0))},$e.prototype.resizeView=function(ze,Ke){var fe=this;if(this.state!==Se.Idle)throw new Error("Cant modify splitview");if(this.state=Se.Busy,ze<0||ze>=this.viewItems.length)return;var G=Object(Ee.u)(this.viewItems.length).filter(function(ke){return ke!==ze}),te=F(G.filter(function(ke){return fe.viewItems[ke].priority===1}),[ze]),Y=G.filter(function(ke){return fe.viewItems[ke].priority===2}),de=this.viewItems[ze];Ke=Math.round(Ke),Ke=Object(Re.a)(Ke,de.minimumSize,Math.min(de.maximumSize,this.size)),de.size=Ke,this.relayout(te,Y),this.state=Se.Idle},$e.prototype.distributeViewSizes=function(){for(var ze=this,Ke=[],fe=0,G=0,te=this.viewItems;G0&&(Ke.push(Y),fe+=Y.size)}for(var de=Math.floor(fe/Ke.length),ke=0,lt=Ke;ke=this.viewItems.length?-1:this.viewItems[ze].size},$e.prototype.doAddView=function(ze,Ke,fe,G){var te=this;if(fe===void 0&&(fe=this.viewItems.length),this.state!==Se.Idle)throw new Error("Cant modify splitview");this.state=Se.Busy;var Y=y.a(".split-view-view");fe===this.viewItems.length?this.viewContainer.appendChild(Y):this.viewContainer.insertBefore(Y,this.viewContainer.children.item(fe));var de=ze.onDidChange(function(Vo){return te.onViewChange(Jt,Vo)}),ke=Object(J.h)(function(){return te.viewContainer.removeChild(Y)}),lt=Object(J.e)(de,ke),Tt;typeof Ke=="number"?Tt=Ke:Ke.type==="split"?Tt=this.getViewSize(Ke.index)/2:Ke.type==="invisible"?Tt={cachedVisibleSize:Ke.cachedVisibleSize}:Tt=ze.minimumSize;var Jt=this.orientation===0?new be(Y,ze,Tt,lt):new De(Y,ze,Tt,lt);if(this.viewItems.splice(fe,0,Jt),this.viewItems.length>1){var eo=this.orientation===0?1:0,po=this.orientation===0?{getHorizontalSashTop:function(mn){return te.getSashPosition(mn)}}:{getVerticalSashLeft:function(mn){return te.getSashPosition(mn)}},co=new ve.a(this.sashContainer,po,{orientation:eo,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Eo=this.orientation===0?function(Vo){return{sash:co,start:Vo.startY,current:Vo.currentY,alt:Vo.altKey}}:function(Vo){return{sash:co,start:Vo.startX,current:Vo.currentX,alt:Vo.altKey}},Oo=f.b.map(co.onDidStart,Eo),Ao=Oo(this.onSashStart,this),Zo=f.b.map(co.onDidChange,Eo),Co=Zo(this.onSashChange,this),Wo=f.b.map(co.onDidEnd,function(){return Object(Ee.k)(te.sashItems,function(Vo){return Vo.sash===co})}),Go=Wo(this.onSashEnd,this),Bo=co.onDidReset(function(){var Vo=Object(Ee.k)(te.sashItems,function(pn){return pn.sash===co}),mn=Object(Ee.u)(Vo,-1),yn=Object(Ee.u)(Vo+1,te.viewItems.length),dn=te.findFirstSnapIndex(mn),rn=te.findFirstSnapIndex(yn);if(typeof dn=="number"&&!te.viewItems[dn].visible)return;if(typeof rn=="number"&&!te.viewItems[rn].visible)return;te._onDidSashReset.fire(Vo)}),Mo=Object(J.e)(Ao,Co,Go,Bo,co),Qo={sash:co,disposable:Mo};this.sashItems.splice(fe-1,0,Qo)}Y.appendChild(ze.element);var fn;typeof Ke!="number"&&Ke.type==="split"&&(fn=[Ke.index]),G||this.relayout([fe],fn),this.state=Se.Idle,!G&&typeof Ke!="number"&&Ke.type==="distribute"&&this.distributeViewSizes()},$e.prototype.relayout=function(ze,Ke){var fe=this.viewItems.reduce(function(G,te){return G+te.size},0);this.resize(this.viewItems.length-1,this.size-fe,void 0,ze,Ke),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},$e.prototype.resize=function(ze,Ke,fe,G,te,Y,de,ke,lt){var Tt=this;if(fe===void 0&&(fe=this.viewItems.map(function(we){return we.size})),Y===void 0&&(Y=Number.NEGATIVE_INFINITY),de===void 0&&(de=Number.POSITIVE_INFINITY),ze<0||ze>=this.viewItems.length)return 0;var Jt=Object(Ee.u)(ze,-1),eo=Object(Ee.u)(ze+1,this.viewItems.length);if(te)for(var po=0,co=te;po=ke.limitDelta;dn=pn!==rn.visible,rn.setVisible(pn,ke.size)}if(!dn&<){var rn=this.viewItems[lt.index],pn=Ke0||ze});ze=!1;var fe=this.viewItems.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}),G=F(this.viewItems).reverse();ze=!1;var te=G.map(function(Co){return ze=Co.size-Co.minimumSize>0||ze}).reverse();ze=!1;for(var Y=G.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}).reverse(),de=0,ke=0;ke0||this.startSnappingEnabled)?lt.state=1:Zo&&Ke[ke]&&(de0)return;if(!te.visible&&te.snap)return G}return},$e.prototype.dispose=function(){Je.prototype.dispose.call(this),this.viewItems.forEach(function(ze){return ze.dispose()}),this.viewItems=[],this.sashItems.forEach(function(ze){return ze.disposable.dispose()}),this.sashItems=[]},$e}(J.a),it=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),pt=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Rt=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},Mt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((Ke=Ke.apply(Je,$e||[])).next())})},zt=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]0?ze.children[0]:void 0},$e.prototype._revealReference=function(ze,Ke){return Mt(this,void 0,void 0,function(){var fe,G,te,Y,de;return zt(this,function(ke){switch(ke.label){case 0:return this._revealedReference===ze?[2]:(this._revealedReference=ze,ze.uri.scheme!==v.b.inMemory?this.setTitle(Object(_.c)(ze.uri),this._uriLabel.getUriLabel(Object(_.d)(ze.uri))):this.setTitle(T.a("peekView.alternateTitle","References")),fe=this._textModelResolverService.createModelReference(ze.uri),this._tree.getInput()===ze.parent?(this._tree.reveal(ze),[3,3]):[3,1]);case 1:return Ke&&this._tree.reveal(ze.parent),[4,this._tree.expand(ze.parent)];case 2:ke.sent(),this._tree.reveal(ze),ke.label=3;case 3:return[4,fe];case 4:return G=ke.sent(),this._model?(Object(J.f)(this._previewModelReference),te=G.object,te?(Y=this._preview.getModel()===te.textEditorModel?0:1,de=c.a.lift(ze.range).collapseToStart(),this._previewModelReference=G,this._preview.setModel(te.textEditorModel),this._preview.setSelection(de),this._preview.revealRangeInCenter(de,Y)):(this._preview.setModel(this._previewNotAvailableMessage),G.dispose()),[2]):(G.dispose(),[2])}})})},$e=pt([Rt(3,$.c),Rt(4,l.a),Rt(5,H.a),Rt(6,me.a),Rt(7,R.a)],$e),$e}(me.c);Object($.e)(function(Je,$e){var ze=Je.getColor(me.m);ze&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+ze+"; }");var Ke=Je.getColor(me.h);Ke&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+Ke+"; }");var fe=Je.getColor(me.i);fe&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+fe+"; box-sizing: border-box; }");var G=Je.getColor(Xe.b);G&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+G+"; box-sizing: border-box; }");var te=Je.getColor(me.j);te&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+te+"; }");var Y=Je.getColor(me.l);Y&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var de=Je.getColor(me.k);de&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+de+"; }");var ke=Je.getColor(me.n);ke&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+ke+"; }");var lt=Je.getColor(me.o);lt&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+lt+" !important; }");var Tt=Je.getColor(me.f);Tt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Tt+";")+"}");var Jt=Je.getColor(me.g);Jt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Jt+";")+"}")});var Pt=e("cGHE"),ft=e("sM1p"),vt=e("X+cX"),At=e("nrhi"),at=e("/kV6"),tt=e("nnTU"),ut=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Ct=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},gt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((Ke=Ke.apply(Je,$e||[])).next())})},bt=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]v&&(_=v-f),_<0&&(_=0),p<0&&(p=0),s+p>c&&(s=c-p),s<0&&(s=0),this.width=f,this.scrollWidth=v,this.scrollLeft=_,this.height=p,this.scrollHeight=c,this.scrollTop=s}return w.prototype.equals=function(f){return this.width===f.width&&this.scrollWidth===f.scrollWidth&&this.scrollLeft===f.scrollLeft&&this.height===f.height&&this.scrollHeight===f.scrollHeight&&this.scrollTop===f.scrollTop},w.prototype.withScrollDimensions=function(f){return new w(typeof f.width!="undefined"?f.width:this.width,typeof f.scrollWidth!="undefined"?f.scrollWidth:this.scrollWidth,this.scrollLeft,typeof f.height!="undefined"?f.height:this.height,typeof f.scrollHeight!="undefined"?f.scrollHeight:this.scrollHeight,this.scrollTop)},w.prototype.withScrollPosition=function(f){return new w(this.width,this.scrollWidth,typeof f.scrollLeft!="undefined"?f.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof f.scrollTop!="undefined"?f.scrollTop:this.scrollTop)},w.prototype.createScrollEvent=function(f){var v=this.width!==f.width,_=this.scrollWidth!==f.scrollWidth,p=this.scrollLeft!==f.scrollLeft,c=this.height!==f.height,s=this.scrollHeight!==f.scrollHeight,l=this.scrollTop!==f.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:v,scrollWidthChanged:_,scrollLeftChanged:p,heightChanged:c,scrollHeightChanged:s,scrollTopChanged:l}},w}(),H=function(w){J(f,w);function f(v,_){var p=w.call(this)||this;return p._onScroll=p._register(new T.a),p.onScroll=p._onScroll.event,p._smoothScrollDuration=v,p._scheduleAtNextAnimationFrame=_,p._state=new I(0,0,0,0,0,0),p._smoothScrolling=null,p}return f.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),w.prototype.dispose.call(this)},f.prototype.setSmoothScrollDuration=function(v){this._smoothScrollDuration=v},f.prototype.validateScrollPosition=function(v){return this._state.withScrollPosition(v)},f.prototype.getScrollDimensions=function(){return this._state},f.prototype.setScrollDimensions=function(v){var _=this._state.withScrollDimensions(v);this._setState(_),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},f.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},f.prototype.getCurrentScrollPosition=function(){return this._state},f.prototype.setScrollPositionNow=function(v){var _=this._state.withScrollPosition(v);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(_)},f.prototype.setScrollPositionSmooth=function(v){var _=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(v);if(this._smoothScrolling){v={scrollLeft:typeof v.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:v.scrollLeft,scrollTop:typeof v.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:v.scrollTop};var p=this._state.withScrollPosition(v);if(this._smoothScrolling.to.scrollLeft===p.scrollLeft&&this._smoothScrolling.to.scrollTop===p.scrollTop)return;var c=this._smoothScrolling.combine(this._state,p,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=c}else{var p=this._state.withScrollPosition(v);this._smoothScrolling=x.start(this._state,p,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!_._smoothScrolling)return;_._smoothScrolling.animationFrameDisposable=null,_._performSmoothScrolling()})},f.prototype._performSmoothScrolling=function(){var v=this;if(!this._smoothScrolling)return;var _=this._smoothScrolling.tick(),p=this._state.withScrollPosition(_);if(this._setState(p),_.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!v._smoothScrolling)return;v._smoothScrolling.animationFrameDisposable=null,v._performSmoothScrolling()})},f.prototype._setState=function(v){var _=this._state;if(_.equals(v))return;this._state=v,this._onScroll.fire(this._state.createScrollEvent(_))},f}(re.a),z=function(){function w(f,v,_){this.scrollLeft=f,this.scrollTop=v,this.isDone=_}return w}();function O(w,f){var v=f-w;return function(_){return w+v*y(_)}}function U(w,f,v){return function(_){return _2.5*_){var c=void 0,s=void 0;return f0?R.actionBar.push(ie,{icon:!0,label:!1}):!R.actionBar.isEmpty()&&(!ie||ie.length===0)&&R.actionBar.clear(),A instanceof c&&A.getGroupLabel()?z.f(R.container,"has-group-label"):z.P(R.container,"has-group-label"),A instanceof c){var W=A,B=R;W.showBorder()?(z.f(B.container,"results-group-separator"),$.pickerGroupBorder&&(B.container.style.borderTopColor=$.pickerGroupBorder.toString())):(z.P(B.container,"results-group-separator"),B.container.style.borderTopColor="");var le=W.getGroupLabel()||"";B.group&&(B.group.textContent=le,$.pickerGroupForeground&&(B.group.style.color=$.pickerGroupForeground.toString()))}if(A instanceof p){var Ce=A.getHighlights(),Me=Ce[0],Te=Ce[1],Fe=Ce[2],He=A.getIcon()?"quick-open-entry-icon "+A.getIcon():"";R.icon.className=He;var Pe=A.getLabelOptions()||Object.create(null);Pe.matches=Me||[],Pe.title=A.getTooltip(),Pe.descriptionTitle=A.getDescriptionTooltip()||A.getDescription(),Pe.descriptionMatches=Te||[],R.label.setLabel(A.getLabel()||"",A.getDescription(),Pe),R.detail.set(A.getDetail(),Fe),R.keybinding.set(A.getKeybinding())}},L.prototype.disposeTemplate=function(A,k){k.actionBar.dispose(),k.actionBar=null,k.container=null,k.entry=null,k.keybinding=null,k.detail=null,k.group=null,k.icon=null,k.label.dispose(),k.label=null},L}(),E=function(){function L(A,k){A===void 0&&(A=[]),k===void 0&&(k=new s),this._entries=A,this._dataSource=this,this._renderer=new m(k),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(k){this._entries=k},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(A){return A.getId()},L.prototype.getLabel=function(A){return re.o(A.getLabel())},L.prototype.getAriaLabel=function(A){var k=A.getAriaLabel();return k?T.a("quickOpenAriaLabelEntry","{0}, picker",A.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(A){return!A.isHidden()},L.prototype.run=function(A,k,R){return A.run(k,R)},L}()},S3by:function(Lt,j,e){"use strict";var T=e("3/fG"),re=e("N0LK"),J;(function(I){I[I.Ignore=0]="Ignore",I[I.Info=1]="Info",I[I.Warning=2]="Warning",I[I.Error=3]="Error"})(J||(J={})),function(I){var H="error",z="warning",O="warn",U="info",x=Object.create(null);x[I.Error]=T.a("sev.error","Error"),x[I.Warning]=T.a("sev.warning","Warning"),x[I.Info]=T.a("sev.info","Info");function u(y){return y?re.n(H,y)?I.Error:re.n(z,y)||re.n(O,y)?I.Warning:re.n(U,y)?I.Info:I.Ignore:I.Ignore}I.fromValue=u}(J||(J={})),j.a=J},SBYE:function(Lt,j,e){"use strict";e.r(j);var T=e("QaAZ"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),H=e("ZlPH"),z=e("Md8J"),O=e("OBOq"),U=e("G300"),x=e("pmY6"),u=e("MNsG"),y=e("N0LK"),w=e("bY76"),f=e("sswD"),v=e("wQH0"),_=e("k7pc"),p=e("T8No"),c=e("Cg/j"),s=e("bexQ"),l=e("W9cx"),d=e("MD5Z"),m=e("t9D7"),E=e("A9l+"),L=function(){var Ce=function(Te,Fe){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(He,Pe){He.__proto__=Pe}||function(He,Pe){for(var ne in Pe)Pe.hasOwnProperty(ne)&&(He[ne]=Pe[ne])},Ce(Te,Fe)};return function(Me,Te){Ce(Me,Te);function Fe(){this.constructor=Me}Me.prototype=Te===null?Object.create(Te):(Fe.prototype=Te.prototype,new Fe)}}(),A=function(Ce,Me,Te,Fe){var He=arguments.length,Pe=He<3?Me:Fe===null?Fe=Object.getOwnPropertyDescriptor(Me,Te):Fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Pe=Reflect.decorate(Ce,Me,Te,Fe);else for(var ee=Ce.length-1;ee>=0;ee--)(ne=Ce[ee])&&(Pe=(He<3?ne(Pe):He>3?ne(Me,Te,Pe):ne(Me,Te))||Pe);return He>3&&Pe&&Object.defineProperty(Me,Te,Pe),Pe},k=function(Ce,Me){return function(Te,Fe){Me(Te,Fe,Ce)}},R=new p.d("accessibilityHelpWidgetVisible",!1),$=function(Ce){L(Me,Ce);function Me(Te,Fe){var He=Ce.call(this)||this;return He._editor=Te,He._widget=He._register(Fe.createInstance(W,He._editor)),He}return Me.get=function(Te){return Te.getContribution(Me.ID)},Me.prototype.show=function(){this._widget.show()},Me.prototype.hide=function(){this._widget.hide()},Me.ID="editor.contrib.accessibilityHelpController",Me=A([k(1,c.a)],Me),Me}(x.a);function ie(Ce,Me){return!Ce||Ce.length===0?E.a.noSelection:Ce.length===1?Me?y.r(E.a.singleSelectionRange,Ce[0].positionLineNumber,Ce[0].positionColumn,Me):y.r(E.a.singleSelection,Ce[0].positionLineNumber,Ce[0].positionColumn):Me?y.r(E.a.multiSelectionRange,Ce.length,Me):Ce.length>0?y.r(E.a.multiSelection,Ce.length):""}var W=function(Ce){L(Me,Ce);function Me(Te,Fe,He,Pe){var ne=Ce.call(this)||this;return ne._contextKeyService=Fe,ne._keybindingService=He,ne._openerService=Pe,ne._editor=Te,ne._isVisibleKey=R.bindTo(ne._contextKeyService),ne._domNode=Object(H.b)(document.createElement("div")),ne._domNode.setClassName("accessibilityHelpWidget"),ne._domNode.setDisplay("none"),ne._domNode.setAttribute("role","dialog"),ne._domNode.setAttribute("aria-hidden","true"),ne._contentDomNode=Object(H.b)(document.createElement("div")),ne._contentDomNode.setAttribute("role","document"),ne._domNode.appendChild(ne._contentDomNode),ne._isVisible=!1,ne._register(ne._editor.onDidLayoutChange(function(){ne._isVisible&&ne._layout()})),ne._register(I.o(ne._contentDomNode.domNode,"keydown",function(ee){if(!ne._isVisible)return;if(ee.equals(2048|35)&&(Object(O.a)(E.a.emergencyConfOn),ne._editor.updateOptions({accessibilitySupport:"on"}),I.t(ne._contentDomNode.domNode),ne._buildContent(),ne._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(O.a)(E.a.openingDocs);var ae=ne._editor.getRawOptions().accessibilityHelpUrl;typeof ae=="undefined"&&(ae="https://go.microsoft.com/fwlink/?linkid=852450"),ne._openerService.open(w.a.parse(ae)),ee.preventDefault(),ee.stopPropagation()}})),ne.onblur(ne._contentDomNode.domNode,function(){ne.hide()}),ne._editor.addOverlayWidget(ne),ne}return Me.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ce.prototype.dispose.call(this)},Me.prototype.getId=function(){return Me.ID},Me.prototype.getDomNode=function(){return this._domNode.domNode},Me.prototype.getPosition=function(){return{preference:null}},Me.prototype.show=function(){if(this._isVisible)return;this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus()},Me.prototype._descriptionForCommand=function(Te,Fe,He){var Pe=this._keybindingService.lookupKeybinding(Te);return Pe?y.r(Fe,Pe.getAriaLabel()):y.r(He,Te)},Me.prototype._buildContent=function(){var Te=this._editor.getOptions(),Fe=this._editor.getSelections(),He=0;if(Fe){var Pe=this._editor.getModel();Pe&&Fe.forEach(function(q){He+=Pe.getValueLengthInRange(q)})}var ne=ie(Fe,He);Te.get(45)?Te.get(68)?ne+=E.a.readonlyDiffEditor:ne+=E.a.editableDiffEditor:Te.get(68)?ne+=E.a.readonlyEditor:ne+=E.a.editableEditor;var ee=u.e?E.a.changeConfigToOnMac:E.a.changeConfigToOnWinLinux;switch(Te.get(2)){case 0:ne+=` +`),l=this._stacks.get(s)||0;if(this._stacks.set(s,l+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=c*.5;var d,m=0;this._stacks.forEach(function(E,L){(!d||m0?new H(this._options&&this._options.leakWarningThreshold):void 0}return Object.defineProperty(v.prototype,"event",{get:function(){var p=this;return this._event||(this._event=function(c,s,l){p._listeners||(p._listeners=new I.a);var d=p._listeners.isEmpty();d&&p._options&&p._options.onFirstListenerAdd&&p._options.onFirstListenerAdd(p);var m=p._listeners.push(s?[c,s]:c);d&&p._options&&p._options.onFirstListenerDidAdd&&p._options.onFirstListenerDidAdd(p),p._options&&p._options.onListenerDidAdd&&p._options.onListenerDidAdd(p,c,s);var E;p._leakageMon&&(E=p._leakageMon.check(p._listeners.size));var L;return L={dispose:function(){if(E&&E(),L.dispose=v._noop,!p._disposed&&(m(),p._options&&p._options.onLastListenerRemove)){var k=p._listeners&&!p._listeners.isEmpty();k||p._options.onLastListenerRemove(p)}}},l instanceof J.b?l.add(L):Array.isArray(l)&&l.push(L),L}),this._event},enumerable:!0,configurable:!0}),v.prototype.fire=function(w){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new I.a);for(var p=this._listeners.iterator(),c=p.next();!c.done;c=p.next())this._deliveryQueue.push([c.value,w]);for(;this._deliveryQueue.size>0;){var s=this._deliveryQueue.shift(),l=s[0],d=s[1];try{typeof l=="function"?l.call(void 0,d):l[0].call(l[1],d)}catch(m){Object(T.e)(m)}}}},v.prototype.dispose=function(){this._listeners&&this._listeners.clear(),this._deliveryQueue&&this._deliveryQueue.clear(),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0},v._noop=function(){},v}(),u=function(v){U(w,v);function w(p){var c=v.call(this,p)||this;return c._isPaused=0,c._eventQueue=new I.a,c._mergeFn=p&&p.merge,c}return w.prototype.pause=function(){this._isPaused++},w.prototype.resume=function(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){var p=this._eventQueue.toArray();this._eventQueue.clear(),v.prototype.fire.call(this,this._mergeFn(p))}else for(;!this._isPaused&&this._eventQueue.size!==0;)v.prototype.fire.call(this,this._eventQueue.shift())},w.prototype.fire=function(p){this._listeners&&(this._isPaused!==0?this._eventQueue.push(p):v.prototype.fire.call(this,p))},w}(x),y=function(){function v(){var w=this;this.hasListeners=!1,this.events=[],this.emitter=new x({onFirstListenerAdd:function(){return w.onFirstListenerAdd()},onLastListenerRemove:function(){return w.onLastListenerRemove()}})}return Object.defineProperty(v.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),v.prototype.add=function(w){var p=this,c={event:w,listener:null};this.events.push(c),this.hasListeners&&this.hook(c);var s=function(){p.hasListeners&&p.unhook(c);var d=p.events.indexOf(c);p.events.splice(d,1)};return Object(J.h)(Object(re.a)(s))},v.prototype.onFirstListenerAdd=function(){var w=this;this.hasListeners=!0,this.events.forEach(function(p){return w.hook(p)})},v.prototype.onLastListenerRemove=function(){var w=this;this.hasListeners=!1,this.events.forEach(function(p){return w.unhook(p)})},v.prototype.hook=function(w){var p=this;w.listener=w.event(function(c){return p.emitter.fire(c)})},v.prototype.unhook=function(w){w.listener&&w.listener.dispose(),w.listener=null},v.prototype.dispose=function(){this.emitter.dispose()},v}(),_=function(){function v(){this.buffers=[]}return v.prototype.wrapEvent=function(w){var p=this;return function(c,s,l){return w(function(d){var m=p.buffers[p.buffers.length-1];m?m.push(function(){return c.call(s,d)}):c.call(s,d)},void 0,l)}},v.prototype.bufferEvents=function(w){var p=[];this.buffers.push(p);var c=w();return this.buffers.pop(),p.forEach(function(s){return s()}),c},v}(),f=function(){function v(){var w=this;this.listening=!1,this.inputEvent=z.None,this.inputEventListener=J.a.None,this.emitter=new x({onFirstListenerDidAdd:function(){w.listening=!0,w.inputEventListener=w.inputEvent(w.emitter.fire,w.emitter)},onLastListenerRemove:function(){w.listening=!1,w.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(v.prototype,"input",{set:function(p){this.inputEvent=p,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=p(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),v.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},v}()},MNXI:function(Lt,j,e){},MNsG:function(Lt,j,e){"use strict";(function(T,re){e.d(j,"h",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"d",function(){return m}),e.d(j,"f",function(){return E}),e.d(j,"g",function(){return L}),e.d(j,"c",function(){return A}),e.d(j,"b",function(){return R}),e.d(j,"i",function(){return $}),e.d(j,"a",function(){return ie});var J="en",I=!1,U=!1,z=!1,O=!1,H=!1,x=!1,u=void 0,y=J,_=void 0,f=void 0,v=typeof T!="undefined"&&typeof T.versions!="undefined"&&typeof T.versions.electron!="undefined"&&T.type==="renderer";if(typeof navigator=="object"&&!v)f=navigator.userAgent,I=f.indexOf("Windows")>=0,U=f.indexOf("Macintosh")>=0,x=f.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,z=f.indexOf("Linux")>=0,H=!0,u=navigator.language,y=u;else if(typeof T=="object"){I=T.platform==="win32",U=T.platform==="darwin",z=T.platform==="linux",u=J,y=J;var w=Object({NODE_ENV:"production"}).VSCODE_NLS_CONFIG;if(w)try{var p=JSON.parse(w),c=p.availableLanguages["*"];u=p.locale,y=c||J,_=p._translationsConfigFile}catch(W){}O=!0}var s=0;U?s=1:I?s=3:z&&(s=2);var l=I,d=U,m=z,E=O,L=H,A=x,k=typeof self=="object"?self:typeof re=="object"?re:{},R=k,$=function(){if(R.setImmediate)return R.setImmediate.bind(R);if(typeof R.postMessage=="function"&&!R.importScripts){var B=[];R.addEventListener("message",function(Me){if(Me.data&&Me.data.vscodeSetImmediateId)for(var Te=0,Fe=B.length;Te=0&&U<256?this._asciiMap[U]=O:this._map.set(U,O)},I.prototype.get=function(U){return U>=0&&U<256?this._asciiMap[U]:this._map.get(U)||this._defaultValue},I}(),J=function(){function I(){this._actual=new re(0)}return I.prototype.add=function(U){this._actual.set(U,1)},I.prototype.has=function(U){return this._actual.get(U)===1},I}()},Md8J:function(Lt,j,e){"use strict";e.d(j,"c",function(){return re}),e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("EffR");function re(u,y){y===void 0&&(y={});var _=I(y);return _.textContent=u,_}function J(u,y){y===void 0&&(y={});var _=I(y);return z(_,O(u),y.actionHandler),_}function I(u){var y=u.inline?"span":"div",_=document.createElement(y);return u.className&&(_.className=u.className),_}var U=function(){function u(y){this.source=y,this.index=0}return u.prototype.eos=function(){return this.index>=this.source.length},u.prototype.next=function(){var y=this.peek();return this.advance(),y},u.prototype.peek=function(){return this.source[this.index]},u.prototype.advance=function(){this.index++},u}();function z(u,y,_){var f;if(y.type===2)f=document.createTextNode(y.content||"");else if(y.type===3)f=document.createElement("b");else if(y.type===4)f=document.createElement("i");else if(y.type===5&&_){var v=document.createElement("a");v.href="#",_.disposeables.add(T.o(v,"click",function(w){_.callback(String(y.index),w)})),f=v}else y.type===7?f=document.createElement("br"):y.type===1&&(f=u);f&&u!==f&&u.appendChild(f),f&&Array.isArray(y.children)&&y.children.forEach(function(w){z(f,w,_)})}function O(u){for(var y={type:1,children:[]},_=0,f=y,v=[],w=new U(u);!w.eos();){var p=w.next(),c=p==="\\"&&x(w.peek())!==0;if(c&&(p=w.next()),!c&&H(p)&&p===w.peek()){w.advance(),f.type===2&&(f=v.pop());var s=x(p);if(f.type===s||f.type===5&&s===6)f=v.pop();else{var l={type:s,children:[]};s===5&&(l.index=_,_++),f.children.push(l),v.push(f),f=l}}else if(p===` +`)f.type===2&&(f=v.pop()),f.children.push({type:7});else if(f.type!==2){var d={type:2,content:p};f.children.push(d),v.push(f),f=d}else f.content+=p}return f.type===2&&(f=v.pop()),v.length,y}function H(u){return x(u)!==0}function x(u){switch(u){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}},MqQJ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return H}),e.d(j,"c",function(){return x}),e.d(j,"b",function(){return u});var T=e("3/fG"),re=e("MI8n"),J=e("twdY"),I=e("cMvZ"),U=e("ic2d"),z={ModesRegistry:"editor.modesRegistry"},O=function(){function y(){this._onDidChangeLanguages=new re.a,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[],this._dynamicLanguages=[]}return y.prototype.registerLanguage=function(_){this._languages.push(_),this._onDidChangeLanguages.fire(void 0)},y.prototype.getLanguages=function(){return[].concat(this._languages).concat(this._dynamicLanguages)},y}(),H=new O;U.a.add(z.ModesRegistry,H);var x="plaintext",u=new J.r(x,1);H.registerLanguage({id:x,extensions:[".txt",".gitignore"],aliases:[T.a("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]}),I.a.register(u,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],folding:{offSide:!0}})},MrjW:function(Lt,j,e){"use strict";e.r(j),e.d(j,"win32",function(){return l}),e.d(j,"posix",function(){return d}),e.d(j,"normalize",function(){return m}),e.d(j,"join",function(){return E}),e.d(j,"relative",function(){return L}),e.d(j,"dirname",function(){return A}),e.d(j,"basename",function(){return k}),e.d(j,"extname",function(){return R}),e.d(j,"sep",function(){return $});var T=e("wxcJ"),re=function(){var ie=function(B,le){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ce,Me){Ce.__proto__=Me}||function(Ce,Me){for(var Te in Me)Me.hasOwnProperty(Te)&&(Ce[Te]=Me[Te])},ie(B,le)};return function(W,B){ie(W,B);function le(){this.constructor=W}W.prototype=B===null?Object.create(B):(le.prototype=B.prototype,new le)}}(),J=65,I=97,U=90,z=122,O=46,H=47,x=92,u=58,y=63,_=function(ie){re(W,ie);function W(B,le,Ce){var Me=this,Te;typeof le=="string"&&le.indexOf("not ")===0?(Te="must not be",le=le.replace(/^not /,"")):Te="must be";var Fe=B.indexOf(".")!==-1?"property":"argument",Ue='The "'+B+'" '+Fe+" "+Te+" of type "+le;return Ue+=". Received type "+typeof Ce,Me=ie.call(this,Ue)||this,Me.code="ERR_INVALID_ARG_TYPE",Me}return W}(Error);function f(ie,W){if(typeof ie!="string")throw new _(W,"string",ie)}function v(ie){return ie===H||ie===x}function w(ie){return ie===H}function p(ie){return ie>=J&&ie<=U||ie>=I&&ie<=z}function c(ie,W,B,le){for(var Ce="",Me=0,Te=-1,Fe=0,Ue,Pe=0;Pe<=ie.length;++Pe){if(Pe2){var ne=Ce.lastIndexOf(B);ne===-1?(Ce="",Me=0):(Ce=Ce.slice(0,ne),Me=Ce.length-1-Ce.lastIndexOf(B)),Te=Pe,Fe=0;continue}else if(Ce.length===2||Ce.length===1){Ce="",Me=0,Te=Pe,Fe=0;continue}}W&&(Ce.length>0?Ce+=B+"..":Ce="..",Me=2)}else Ce.length>0?Ce+=B+ie.slice(Te+1,Pe):Ce=ie.slice(Te+1,Pe),Me=Pe-Te-1;Te=Pe,Fe=0}else Ue===O&&Fe!==-1?++Fe:Fe=-1}return Ce}function s(ie,W){var B=W.dir||W.root,le=W.base||(W.name||"")+(W.ext||"");return B?B===W.root?B+le:B+ie+le:le}var l={resolve:function(){for(var W=[],B=0;B=-1;Te--){var Fe=void 0;if(Te>=0?Fe=W[Te]:le?(Fe=T.b["="+le]||T.a(),(Fe===void 0||Fe.slice(0,3).toLowerCase()!==le.toLowerCase()+"\\")&&(Fe=le+"\\")):Fe=T.a(),f(Fe,"path"),Fe.length===0)continue;var Ue=Fe.length,Pe=0,ne="",ee=!1,ae=Fe.charCodeAt(0);if(Ue>1)if(v(ae))if(ee=!0,v(Fe.charCodeAt(1))){for(var q=2,ue=q;q2&&(v(Fe.charCodeAt(2))&&(ee=!0,Pe=3))));else v(ae)&&(Pe=1,ee=!0);if(ne.length>0&&le.length>0&&ne.toLowerCase()!==le.toLowerCase())continue;if(le.length===0&&ne.length>0&&(le=ne),Me||(Ce=Fe.slice(Pe)+"\\"+Ce,Me=ee),le.length>0&&Me)break}return Ce=c(Ce,!Me,"\\",v),le+(Me?"\\":"")+Ce||"."},normalize:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=0,Ce,Me=!1,Te=W.charCodeAt(0);if(B>1)if(v(Te))if(Me=!0,v(W.charCodeAt(1))){for(var Fe=2,Ue=Fe;Fe2&&(v(W.charCodeAt(2))&&(Me=!0,le=3))));else if(v(Te))return"\\";var ne;return le0&&v(W.charCodeAt(B-1))&&(ne+="\\"),Ce===void 0?Me?ne.length>0?"\\"+ne:"\\":ne.length>0?ne:"":Me?ne.length>0?Ce+"\\"+ne:Ce+"\\":ne.length>0?Ce+ne:Ce},isAbsolute:function(W){f(W,"path");var B=W.length;if(B===0)return!1;var le=W.charCodeAt(0);return v(le)?!0:!!(p(le)&&(B>2&&W.charCodeAt(1)===u&&v(W.charCodeAt(2))))},join:function(){for(var W=[],B=0;B0&&(le===void 0?le=Ce=Te:le+="\\"+Te)}if(le===void 0)return".";var Fe=!0,Ue=0;if(typeof Ce=="string"&&v(Ce.charCodeAt(0))){++Ue;var Pe=Ce.length;Pe>1&&(v(Ce.charCodeAt(1))&&(++Ue,Pe>2&&(v(Ce.charCodeAt(2))?++Ue:Fe=!1)))}if(Fe){for(;Ue=2&&(le="\\"+le.slice(Ue))}return l.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";var le=l.resolve(W),Ce=l.resolve(B);if(le===Ce)return"";if(W=le.toLowerCase(),B=Ce.toLowerCase(),W===B)return"";for(var Me=0;MeMe&&!(W.charCodeAt(Te-1)!==x);--Te);for(var Fe=Te-Me,Ue=0;UeUe&&!(B.charCodeAt(Pe-1)!==x);--Pe);for(var ne=Pe-Ue,ee=Feee){if(B.charCodeAt(Ue+q)===x)return Ce.slice(Ue+q+1);if(q===2)return Ce.slice(Ue+q)}Fe>ee&&(W.charCodeAt(Me+q)===x?ae=q:q===2&&(ae=3));break}var ue=W.charCodeAt(Me+q),X=B.charCodeAt(Ue+q);if(ue!==X)break;ue===x&&(ae=q)}if(q!==ee&&ae===-1)return Ce;var he="";for(ae===-1&&(ae=0),q=Me+ae+1;q<=Te;++q)(q===Te||W.charCodeAt(q)===x)&&(he.length===0?he+="..":he+="\\..");return he.length>0?he+Ce.slice(Ue+ae,Pe):(Ue+=ae,Ce.charCodeAt(Ue)===x&&++Ue,Ce.slice(Ue,Pe))},toNamespacedPath:function(W){if(typeof W!="string")return W;if(W.length===0)return"";var B=l.resolve(W);if(B.length>=3){if(B.charCodeAt(0)===x){if(B.charCodeAt(1)===x){var le=B.charCodeAt(2);if(le!==y&&le!==O)return"\\\\?\\UNC\\"+B.slice(2)}}else if(p(B.charCodeAt(0))&&(B.charCodeAt(1)===u&&B.charCodeAt(2)===x))return"\\\\?\\"+B}return W},dirname:function(W){f(W,"path");var B=W.length;if(B===0)return".";var le=-1,Ce=-1,Me=!0,Te=0,Fe=W.charCodeAt(0);if(B>1)if(v(Fe)){if(le=Te=1,v(W.charCodeAt(1))){for(var Ue=2,Pe=Ue;Ue2&&(v(W.charCodeAt(2))&&(le=Te=3))));else if(v(Fe))return W;for(var ne=B-1;ne>=Te;--ne)if(v(W.charCodeAt(ne))){if(!Me){Ce=ne;break}}else Me=!1;if(Ce===-1){if(le===-1)return".";Ce=le}return W.slice(0,Ce)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,Ce=-1,Me=!0,Te;if(W.length>=2){var Fe=W.charCodeAt(0);p(Fe)&&(W.charCodeAt(1)===u&&(le=2))}if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var Ue=B.length-1,Pe=-1;for(Te=W.length-1;Te>=le;--Te){var ne=W.charCodeAt(Te);if(v(ne)){if(!Me){le=Te+1;break}}else Pe===-1&&(Me=!1,Pe=Te+1),Ue>=0&&(ne===B.charCodeAt(Ue)?--Ue===-1&&(Ce=Te):(Ue=-1,Ce=Pe))}return le===Ce?Ce=Pe:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=le;--Te)if(v(W.charCodeAt(Te))){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");var B=0,le=-1,Ce=0,Me=-1,Te=!0,Fe=0;W.length>=2&&W.charCodeAt(1)===u&&p(W.charCodeAt(0))&&(B=Ce=2);for(var Ue=W.length-1;Ue>=B;--Ue){var Pe=W.charCodeAt(Ue);if(v(Pe)){if(!Te){Ce=Ue+1;break}continue}Me===-1&&(Te=!1,Me=Ue+1),Pe===O?le===-1?le=Ue:Fe!==1&&(Fe=1):le!==-1&&(Fe=-1)}return le===-1||Me===-1||Fe===0||Fe===1&&le===Me-1&&le===Ce+1?"":W.slice(le,Me)},format:function(W){if(W===null||typeof W!="object")throw new _("pathObject","Object",W);return s("\\",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.length,Ce=0,Me=W.charCodeAt(0);if(le>1){if(v(Me)){if(Ce=1,v(W.charCodeAt(1))){for(var Te=2,Fe=Te;Te2){if(v(W.charCodeAt(2))){if(le===3)return B.root=B.dir=W,B;Ce=3}}else return B.root=B.dir=W,B}else if(v(Me))return B.root=B.dir=W,B;Ce>0&&(B.root=W.slice(0,Ce));for(var Ue=-1,Pe=Ce,ne=-1,ee=!0,ae=W.length-1,q=0;ae>=Ce;--ae){if(Me=W.charCodeAt(ae),v(Me)){if(!ee){Pe=ae+1;break}continue}ne===-1&&(ee=!1,ne=ae+1),Me===O?Ue===-1?Ue=ae:q!==1&&(q=1):Ue!==-1&&(q=-1)}return Ue===-1||ne===-1||q===0||q===1&&Ue===ne-1&&Ue===Pe+1?ne!==-1&&(B.base=B.name=W.slice(Pe,ne)):(B.name=W.slice(Pe,Ue),B.base=W.slice(Pe,ne),B.ext=W.slice(Ue,ne)),Pe>0&&Pe!==Ce?B.dir=W.slice(0,Pe-1):B.dir=B.root,B},sep:"\\",delimiter:";",win32:null,posix:null},d={resolve:function(){for(var W=[],B=0;B=-1&&!Ce;Me--){var Te=void 0;if(Me>=0?Te=W[Me]:Te=T.a(),f(Te,"path"),Te.length===0)continue;le=Te+"/"+le,Ce=Te.charCodeAt(0)===H}return le=c(le,!Ce,"/",w),Ce?le.length>0?"/"+le:"/":le.length>0?le:"."},normalize:function(W){if(f(W,"path"),W.length===0)return".";var B=W.charCodeAt(0)===H,le=W.charCodeAt(W.length-1)===H;return W=c(W,!B,"/",w),W.length===0&&!B&&(W="."),W.length>0&&le&&(W+="/"),B?"/"+W:W},isAbsolute:function(W){return f(W,"path"),W.length>0&&W.charCodeAt(0)===H},join:function(){for(var W=[],B=0;B0&&(le===void 0?le=Me:le+="/"+Me)}return le===void 0?".":d.normalize(le)},relative:function(W,B){if(f(W,"from"),f(B,"to"),W===B)return"";if(W=d.resolve(W),B=d.resolve(B),W===B)return"";for(var le=1;lePe){if(B.charCodeAt(Te+ee)===H)return B.slice(Te+ee+1);if(ee===0)return B.slice(Te+ee)}else Me>Pe&&(W.charCodeAt(le+ee)===H?ne=ee:ee===0&&(ne=0));break}var ae=W.charCodeAt(le+ee),q=B.charCodeAt(Te+ee);if(ae!==q)break;ae===H&&(ne=ee)}var ue="";for(ee=le+ne+1;ee<=Ce;++ee)(ee===Ce||W.charCodeAt(ee)===H)&&(ue.length===0?ue+="..":ue+="/..");return ue.length>0?ue+B.slice(Te+ne):(Te+=ne,B.charCodeAt(Te)===H&&++Te,B.slice(Te))},toNamespacedPath:function(W){return W},dirname:function(W){if(f(W,"path"),W.length===0)return".";for(var B=W.charCodeAt(0)===H,le=-1,Ce=!0,Me=W.length-1;Me>=1;--Me)if(W.charCodeAt(Me)===H){if(!Ce){le=Me;break}}else Ce=!1;return le===-1?B?"/":".":B&&le===1?"//":W.slice(0,le)},basename:function(W,B){B!==void 0&&f(B,"ext"),f(W,"path");var le=0,Ce=-1,Me=!0,Te;if(B!==void 0&&B.length>0&&B.length<=W.length){if(B.length===W.length&&B===W)return"";var Fe=B.length-1,Ue=-1;for(Te=W.length-1;Te>=0;--Te){var Pe=W.charCodeAt(Te);if(Pe===H){if(!Me){le=Te+1;break}}else Ue===-1&&(Me=!1,Ue=Te+1),Fe>=0&&(Pe===B.charCodeAt(Fe)?--Fe===-1&&(Ce=Te):(Fe=-1,Ce=Ue))}return le===Ce?Ce=Ue:Ce===-1&&(Ce=W.length),W.slice(le,Ce)}else{for(Te=W.length-1;Te>=0;--Te)if(W.charCodeAt(Te)===H){if(!Me){le=Te+1;break}}else Ce===-1&&(Me=!1,Ce=Te+1);return Ce===-1?"":W.slice(le,Ce)}},extname:function(W){f(W,"path");for(var B=-1,le=0,Ce=-1,Me=!0,Te=0,Fe=W.length-1;Fe>=0;--Fe){var Ue=W.charCodeAt(Fe);if(Ue===H){if(!Me){le=Fe+1;break}continue}Ce===-1&&(Me=!1,Ce=Fe+1),Ue===O?B===-1?B=Fe:Te!==1&&(Te=1):B!==-1&&(Te=-1)}return B===-1||Ce===-1||Te===0||Te===1&&B===Ce-1&&B===le+1?"":W.slice(B,Ce)},format:function(W){if(W===null||typeof W!="object")throw new _("pathObject","Object",W);return s("/",W)},parse:function(W){f(W,"path");var B={root:"",dir:"",base:"",ext:"",name:""};if(W.length===0)return B;var le=W.charCodeAt(0)===H,Ce;le?(B.root="/",Ce=1):Ce=0;for(var Me=-1,Te=0,Fe=-1,Ue=!0,Pe=W.length-1,ne=0;Pe>=Ce;--Pe){var ee=W.charCodeAt(Pe);if(ee===H){if(!Ue){Te=Pe+1;break}continue}Fe===-1&&(Ue=!1,Fe=Pe+1),ee===O?Me===-1?Me=Pe:ne!==1&&(ne=1):Me!==-1&&(ne=-1)}return Me===-1||Fe===-1||ne===0||ne===1&&Me===Fe-1&&Me===Te+1?Fe!==-1&&(Te===0&&le?B.base=B.name=W.slice(1,Fe):B.base=B.name=W.slice(Te,Fe)):(Te===0&&le?(B.name=W.slice(1,Me),B.base=W.slice(1,Fe)):(B.name=W.slice(Te,Me),B.base=W.slice(Te,Fe)),B.ext=W.slice(Me,Fe)),Te>0?B.dir=W.slice(0,Te-1):le&&(B.dir="/"),B},sep:"/",delimiter:":",win32:null,posix:null};d.win32=l.win32=l,d.posix=l.posix=d;var m=T.c==="win32"?l.normalize:d.normalize,E=T.c==="win32"?l.join:d.join,L=T.c==="win32"?l.relative:d.relative,A=T.c==="win32"?l.dirname:d.dirname,k=T.c==="win32"?l.basename:d.basename,R=T.c==="win32"?l.extname:d.extname,$=T.c==="win32"?l.sep:d.sep},Msxo:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"r",extensions:[".r",".rhistory",".rprofile",".rt"],aliases:["R","r"],loader:function(){return e.e(309).then(e.bind(null,"Qx4d"))}})},MvK1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});var T=function(){function I(U,z,O){this.from=U|0,this.to=z|0,this.colorId=O|0}return I.compare=function(U,z){return U.colorId===z.colorId?U.from===z.from?U.to-z.to:U.from-z.from:U.colorId-z.colorId},I}(),re=function(){function I(U,z,O){this.startLineNumber=U,this.endLineNumber=z,this.color=O,this._colorZone=null}return I.compare=function(U,z){return U.color===z.color?U.startLineNumber===z.startLineNumber?U.endLineNumber-z.endLineNumber:U.startLineNumber-z.startLineNumber:U.colorO&&(s=O-l);var d=v.color,m=this._color2Id[d];m||(m=++this._lastAssignedId,this._color2Id[d]=m,this._id2Color[m]=d);var E=new T(s-l,s+l,m);v.setColorZone(E),y.push(E)}return this._colorZonesInvalid=!1,y.sort(T.compare),y},I}()},Mzro:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:function(){return e.e(319).then(e.bind(null,"l/4i"))}})},N0LK:function(Lt,j,e){"use strict";e.d(j,"x",function(){return T}),e.d(j,"F",function(){return re}),e.d(j,"r",function(){return I}),e.d(j,"o",function(){return U}),e.d(j,"p",function(){return z}),e.d(j,"Q",function(){return O}),e.d(j,"K",function(){return x}),e.d(j,"k",function(){return u}),e.d(j,"N",function(){return y}),e.d(j,"m",function(){return _}),e.d(j,"l",function(){return f}),e.d(j,"I",function(){return v}),e.d(j,"H",function(){return w}),e.d(j,"q",function(){return p}),e.d(j,"t",function(){return c}),e.d(j,"D",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"f",function(){return d}),e.d(j,"B",function(){return m}),e.d(j,"C",function(){return E}),e.d(j,"n",function(){return A}),e.d(j,"O",function(){return R}),e.d(j,"c",function(){return $}),e.d(j,"d",function(){return ie}),e.d(j,"z",function(){return W}),e.d(j,"A",function(){return B}),e.d(j,"u",function(){return le}),e.d(j,"E",function(){return Me}),e.d(j,"G",function(){return Te}),e.d(j,"i",function(){return Ue}),e.d(j,"g",function(){return ne}),e.d(j,"v",function(){return ae}),e.d(j,"h",function(){return q}),e.d(j,"y",function(){return ue}),e.d(j,"w",function(){return X}),e.d(j,"a",function(){return he}),e.d(j,"P",function(){return je}),e.d(j,"L",function(){return Xe}),e.d(j,"J",function(){return me}),e.d(j,"j",function(){return ge}),e.d(j,"M",function(){return we}),e.d(j,"s",function(){return Re}),e.d(j,"b",function(){return Ee});function T(C){return!C||typeof C!="string"?!0:C.trim().length===0}function re(C,F,se){se===void 0&&(se="0");for(var oe=""+C,be=[oe],De=oe.length;De=F.length?oe:F[De]})}function U(C){return C.replace(/[<>&]/g,function(F){switch(F){case"<":return"<";case">":return">";case"&":return"&";default:return F}})}function z(C){return C.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function O(C,F){F===void 0&&(F=" ");var se=H(C,F);return x(se,F)}function H(C,F){if(!C||!F)return C;var se=F.length;if(se===0||C.length===0)return C;for(var oe=0;C.indexOf(F,oe)===oe;)oe=oe+se;return C.substring(oe)}function x(C,F){if(!C||!F)return C;var se=F.length,oe=C.length;if(se===0||oe===0)return C;for(var be=oe,De=-1;!(De=C.lastIndexOf(F,be-1),De===-1||De+se!==be);){if(De===0)return"";be=De}return C.substring(0,be)}function u(C){return C.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function y(C,F){if(C.length0?C.indexOf(F,se)===se:se===0?C===F:!1}function f(C,F,se){if(se===void 0&&(se={}),!C)throw new Error("Cannot create regex from empty string");F||(C=z(C)),se.wholeWord&&(/\B/.test(C.charAt(0))||(C="\\b"+C),/\B/.test(C.charAt(C.length-1))||(C=C+"\\b"));var oe="";return se.global&&(oe+="g"),se.matchCase||(oe+="i"),se.multiline&&(oe+="m"),se.unicode&&(oe+="u"),new RegExp(C,oe)}function v(C){if(C.source==="^"||C.source==="^$"||C.source==="$"||C.source==="^\\s*$")return!1;var F=C.exec("");return!!(F&&C.lastIndex===0)}function w(C){return(C.global?"g":"")+(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")}function p(C){for(var F=0,se=C.length;F=0;se--){var oe=C.charCodeAt(se);if(oe!==32&&oe!==9)return se}return-1}function l(C,F){return CF?1:0}function d(C,F){for(var se=Math.min(C.length,F.length),oe=0;oeF.length?1:0}function m(C){return C>=97&&C<=122}function E(C){return C>=65&&C<=90}function L(C){return m(C)||E(C)}function A(C,F){return C.length===F.length&&k(C,F)}function k(C,F,se){se===void 0&&(se=C.length);for(var oe=0;oeC.length?!1:k(C,F,se)}function $(C,F){var se,oe=Math.min(C.length,F.length);for(se=0;se1){var oe=C.charCodeAt(F-2);if(W(oe))return(oe-55296<<10)+(se-56320)+65536}return se}function Me(C,F){var se=ve.getInstance(),oe=F,be=C.length,De=le(C,be,F);F+=De>=65536?2:1;for(var Se=se.getGraphemeBreakType(De);F=65536?2:1,Se=Qe}return F-oe}function Te(C,F){var se=ve.getInstance(),oe=F,be=Ce(C,F);F-=be>=65536?2:1;for(var De=se.getGraphemeBreakType(be);F>0;){var Se=Ce(C,F),Ve=se.getGraphemeBreakType(Se);if(Ee(Ve,De))break;F-=Se>=65536?2:1,De=Ve}return oe-F}var Fe=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function Ue(C){return Fe.test(C)}var Pe=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD00-\uDDFF\uDE70-\uDE73\uDE78-\uDE82\uDE90-\uDE95])/;function ne(C){return Pe.test(C)}var ee=/^[\t\n\r\x20-\x7E]*$/;function ae(C){return ee.test(C)}function q(C){for(var F=0,se=C.length;F=11904&&C<=55215||C>=63744&&C<=64255||C>=65281&&C<=65374}function X(C){return C>=127462&&C<=127487||C>=9728&&C<=10175||C>=127744&&C<=128591||C>=128640&&C<=128764||C>=128992&&C<=129003||C>=129280&&C<=129535||C>=129648&&C<=129651||C>=129656&&C<=129666||C>=129680&&C<=129685}var he=String.fromCharCode(65279);function je(C){return!!(C&&C.length>0&&C.charCodeAt(0)===65279)}function Xe(C){return btoa(encodeURIComponent(C))}function me(C,F){for(var se="",oe=0;oese[3*be+1])be=2*be+1;else return se[3*be+2];return 0},C._INSTANCE=null,C}();function Q(){return JSON.parse("[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]")}},NR8r:function(Lt,j,e){"use strict";e.d(j,"a",function(){return w});var T=e("synD"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),U=e("pmY6"),z=e("OBOq"),O=e("aokT"),H=e("sswD"),x=e("T8No"),u=e("t9D7"),y=e("MD5Z"),_=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),f=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},v=function(s,l){return function(d,m){l(d,m,s)}},w=function(s){_(l,s);function l(d,m){var E=s.call(this)||this;return E.closeTimeout=3e3,E._messageWidget=E._register(new U.d),E._messageListeners=E._register(new U.b),E._editor=d,E._visible=l.MESSAGE_VISIBLE.bindTo(m),E._register(E._editor.onDidAttemptReadOnlyEdit(function(){return E._onDidAttemptReadOnlyEdit()})),E}return l.get=function(d){return d.getContribution(l.ID)},l.prototype.dispose=function(){s.prototype.dispose.call(this),this._visible.reset()},l.prototype.showMessage=function(d,m){var E=this;Object(z.a)(d),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new c(this._editor,m,d),this._messageListeners.add(this._editor.onDidBlurEditorText(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidDispose(function(){return E.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeModel(function(){return E.closeMessage()})),this._messageListeners.add(new I.e(function(){return E.closeMessage()},this.closeTimeout));var L;this._messageListeners.add(this._editor.onMouseMove(function(A){if(!A.target.position)return;L?L.containsPosition(A.target.position)||E.closeMessage():L=new O.a(m.lineNumber-3,1,A.target.position.lineNumber+3,1)}))},l.prototype.closeMessage=function(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(c.fadeOut(this._messageWidget.value))},l.prototype._onDidAttemptReadOnlyEdit=function(){this._editor.hasModel()&&this.showMessage(J.a("editor.readonly","Cannot edit in read-only editor"),this._editor.getPosition())},l.ID="editor.contrib.messageController",l.MESSAGE_VISIBLE=new x.d("messageVisible",!1),l=f([v(1,x.c)],l),l}(U.a),p=H.c.bindToContribution(w.get);Object(H.g)(new p({id:"leaveEditorMessage",precondition:w.MESSAGE_VISIBLE,handler:function(l){return l.closeMessage()},kbOpts:{weight:100+30,primary:9}}));var c=function(){function s(l,d,m){var E=d.lineNumber,L=d.column;this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=l,this._editor.revealLinesInCenterIfOutsideViewport(E,E,0),this._position={lineNumber:E,column:L-1},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage");var A=document.createElement("div");A.classList.add("message"),A.textContent=m,this._domNode.appendChild(A);var k=document.createElement("div");k.classList.add("anchor"),this._domNode.appendChild(k),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}return s.fadeOut=function(l){var d,m=function E(){l.dispose(),clearTimeout(d),l.getDomNode().removeEventListener("animationend",E)};return d=setTimeout(m,110),l.getDomNode().addEventListener("animationend",m),l.getDomNode().classList.add("fadeOut"),{dispose:m}},s.prototype.dispose=function(){this._editor.removeContentWidget(this)},s.prototype.getId=function(){return"messageoverlay"},s.prototype.getDomNode=function(){return this._domNode},s.prototype.getPosition=function(){return{position:this._position,preference:[1,2]}},s}();Object(H.h)(w.ID,w),Object(u.e)(function(s,l){var d=s.getColor(y.gb);if(d){var m=s.type===u.b?2:1;l.addRule(".monaco-editor .monaco-editor-overlaymessage .anchor { border-top-color: "+d+"; }"),l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { border: "+m+"px solid "+d+"; }")}var E=s.getColor(y.fb);E&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { background-color: "+E+"; }");var L=s.getColor(y.hb);L&&l.addRule(".monaco-editor .monaco-editor-overlaymessage .message { color: "+L+"; }")})},OBOq:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y});var T=e("UCkY"),re=e.n(T),J=e("3/fG"),I=e("MNsG"),U=e("EffR"),z,O,H;function x(w){z=document.createElement("div"),z.className="monaco-aria-container",O=document.createElement("div"),O.className="monaco-alert",O.setAttribute("role","alert"),O.setAttribute("aria-atomic","true"),z.appendChild(O),H=document.createElement("div"),H.className="monaco-status",H.setAttribute("role","status"),H.setAttribute("aria-atomic","true"),z.appendChild(H),w.appendChild(z)}function u(w,p){v(O,w,p)}function y(w,p){I.e?u(w,p):v(H,w,p)}var _=0,f=void 0;function v(w,p,c){if(!z)return;if(!c){f===p?_++:(f=p,_=0);switch(_){case 0:break;case 1:p=J.a("repeated","{0} (occurred again)",p);break;default:p=J.a("repeatedNtimes","{0} (occurred {1} times)",p,_);break}}U.t(w),w.textContent=p,w.style.visibility="hidden",w.style.visibility="visible"}},OKK6:function(Lt,j,e){},OOlL:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:function(){return e.e(275).then(e.bind(null,"NlLO"))}})},OhnE:function(Lt,j,e){},PTeM:function(Lt,j,e){"use strict";e.d(j,"c",function(){return J}),e.d(j,"a",function(){return I}),e.d(j,"b",function(){return U});var T=e("N0LK"),re=e("MrjW");function J(z){return z.replace(/[\\/]/g,re.posix.sep)}function I(z,O,H,x){if(x===void 0&&(x=re.sep),z===O)return!0;if(!z||!O)return!1;if(O.length>z.length)return!1;if(H){var u=Object(T.O)(z,O);if(!u)return!1;if(O.length===z.length)return!0;var y=O.length;return O.charAt(O.length-1)===x&&y--,z.charAt(y)===x}return O.charAt(O.length-1)!==x&&(O+=x),z.indexOf(O)===0}function U(z){return z>=65&&z<=90||z>=97&&z<=122}},Q4rV:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("bY76");function re(I){var U=JSON.parse(I);return U=J(U),U}function J(I,U){if(U===void 0&&(U=0),!I||U>200)return I;if(typeof I=="object"){switch(I.$mid){case 1:return T.a.revive(I);case 2:return new RegExp(I.source,I.flags)}for(var z in I)Object.hasOwnProperty.call(I,z)&&(I[z]=J(I[z],U+1))}return I}},Q631:function(Lt,j,e){"use strict";e.r(j),e.d(j,"rename",function(){return q}),e.d(j,"RenameAction",function(){return X});var T=e("3/fG"),re=e("/cxE"),J=e("T8No"),I=e("tTk5"),U=e("sswD"),z=e("wQH0"),O=e("BjKj"),H=e("pmY6"),x=e("cGHE"),u=e("aokT"),y=e("MD5Z"),_=e("t9D7"),f=e("bexQ"),v=e("EffR"),w=function(je,Xe,me,ge){var we=arguments.length,Re=we<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(we<3?Ee(Re):we>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return we>3&&Re&&Object.defineProperty(Xe,me,Re),Re},p=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},c=new J.d("renameInputVisible",!1),s=function(){function je(Xe,me,ge,we,Re){var Ee=this;this._editor=Xe,this._acceptKeybindings=me,this._themeService=ge,this._keybindingService=we,this._disposables=new H.b,this.allowEditorOverflow=!0,this._visibleContextKey=c.bindTo(Re),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(function(ve){ve.hasChanged(34)&&Ee._updateFont()})),this._disposables.add(ge.onThemeChange(this._updateStyles,this))}return je.prototype.dispose=function(){this._disposables.dispose(),this._editor.removeContentWidget(this)},je.prototype.getId=function(){return"__renameInputWidget"},je.prototype.getDomNode=function(){var Xe=this;if(!this._domNode){this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",Object(T.a)("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label);var me=function(){var we,Re,Ee=Xe._acceptKeybindings,ve=Ee[0],Q=Ee[1];Xe._keybindingService.lookupKeybinding(ve),Xe._label.innerText=Object(T.a)("label","{0} to Rename, {1} to Preview",(we=Xe._keybindingService.lookupKeybinding(ve))===null||we===void 0?void 0:we.getLabel(),(Re=Xe._keybindingService.lookupKeybinding(Q))===null||Re===void 0?void 0:Re.getLabel())};me(),this._disposables.add(this._keybindingService.onDidUpdateKeybindings(me)),this._updateFont(),this._updateStyles(this._themeService.getTheme())}return this._domNode},je.prototype._updateStyles=function(Xe){var me,ge,we,Re;if(!this._input||!this._domNode)return;var Ee=Xe.getColor(y.hc);this._domNode.style.backgroundColor=String((me=Xe.getColor(y.Q))!==null&&me!==void 0?me:""),this._domNode.style.boxShadow=Ee?" 0 2px 8px "+Ee:"",this._domNode.style.color=String((ge=Xe.getColor(y.bb))!==null&&ge!==void 0?ge:""),this._input.style.backgroundColor=String((we=Xe.getColor(y.Z))!==null&&we!==void 0?we:"");var ve=Xe.getColor(y.ab);this._input.style.borderWidth=ve?"1px":"0px",this._input.style.borderStyle=ve?"solid":"none",this._input.style.borderColor=(Re=ve==null?void 0:ve.toString())!==null&&Re!==void 0?Re:"none"},je.prototype._updateFont=function(){if(!this._input||!this._label)return;var Xe=this._editor.getOption(34);this._input.style.fontFamily=Xe.fontFamily,this._input.style.fontWeight=Xe.fontWeight,this._input.style.fontSize=Xe.fontSize+"px",this._label.style.fontSize=Xe.fontSize*.8+"px"},je.prototype.getPosition=function(){return this._visible?{position:this._position,preference:[2,1]}:null},je.prototype.acceptInput=function(Xe){this._currentAcceptInput&&this._currentAcceptInput(Xe)},je.prototype.cancelInput=function(Xe){this._currentCancelInput&&this._currentCancelInput(Xe)},je.prototype.getInput=function(Xe,me,ge,we,Re){var Ee=this;Object(v.Y)(this._domNode,"preview",Re),this._position=new x.a(Xe.startLineNumber,Xe.startColumn),this._input.value=me,this._input.setAttribute("selectionStart",ge.toString()),this._input.setAttribute("selectionEnd",we.toString()),this._input.size=Math.max((Xe.endColumn-Xe.startColumn)*1.1,20);var ve=new H.b;return new Promise(function(Q){Ee._currentCancelInput=function(F){return Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q(F),!0},Ee._currentAcceptInput=function(F){if(Ee._input.value.trim().length===0||Ee._input.value===me){Ee.cancelInput(!0);return}Ee._currentAcceptInput=void 0,Ee._currentCancelInput=void 0,Q({newName:Ee._input.value,wantsPreview:Re&&F})};var C=function(){var se=Ee._editor.getPosition();(!se||!u.a.containsPosition(Xe,se))&&Ee.cancelInput(!0)};ve.add(Ee._editor.onDidChangeCursorSelection(C)),ve.add(Ee._editor.onDidBlurEditorWidget(function(){return Ee.cancelInput(!1)})),Ee._show()}).finally(function(){ve.dispose(),Ee._hide()})},je.prototype._show=function(){var Xe=this;this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(function(){Xe._input.focus(),Xe._input.setSelectionRange(parseInt(Xe._input.getAttribute("selectionStart")),parseInt(Xe._input.getAttribute("selectionEnd")))},100)},je.prototype._hide=function(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)},je=w([p(2,_.c),p(3,f.a),p(4,J.c)],je),je}(),l=e("twdY"),d=e("OBOq"),m=e("NR8r"),E=e("vATl"),L=e("sM1p"),A=e("x/UI"),k=e("bY76"),R=e("Vxe3"),$=e("JQT/"),ie=e("X+cX"),W=e("746U"),B=e("09fa"),le=e("Cg/j"),Ce=e("ic2d"),Me=e("CRAX"),Te=e("e0rL"),Fe=function(){var je=function(me,ge){return je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Re){we.__proto__=Re}||function(we,Re){for(var Ee in Re)Re.hasOwnProperty(Ee)&&(we[Ee]=Re[Ee])},je(me,ge)};return function(Xe,me){je(Xe,me);function ge(){this.constructor=Xe}Xe.prototype=me===null?Object.create(me):(ge.prototype=me.prototype,new ge)}}(),Ue=function(je,Xe,me,ge){var we=arguments.length,Re=we<3?Xe:ge===null?ge=Object.getOwnPropertyDescriptor(Xe,me):ge,Ee;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Re=Reflect.decorate(je,Xe,me,ge);else for(var ve=je.length-1;ve>=0;ve--)(Ee=je[ve])&&(Re=(we<3?Ee(Re):we>3?Ee(Xe,me,Re):Ee(Xe,me))||Re);return we>3&&Re&&Object.defineProperty(Xe,me,Re),Re},Pe=function(je,Xe){return function(me,ge){Xe(me,ge,je)}},ne=function(je,Xe,me,ge){function we(Re){return Re instanceof me?Re:new me(function(Ee){Ee(Re)})}return new(me||(me=Promise))(function(Re,Ee){function ve(F){try{C(ge.next(F))}catch(se){Ee(se)}}function Q(F){try{C(ge.throw(F))}catch(se){Ee(se)}}function C(F){F.done?Re(F.value):we(F.value).then(ve,Q)}C((ge=ge.apply(je,Xe||[])).next())})},ee=function(je,Xe){var me={label:0,sent:function(){if(Re[0]&1)throw Re[1];return Re[1]},trys:[],ops:[]},ge,we,Re,Ee;return Ee={next:ve(0),throw:ve(1),return:ve(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function ve(C){return function(F){return Q([C,F])}}function Q(C){if(ge)throw new TypeError("Generator is already executing.");for(;me;)try{if(ge=1,we&&(Re=C[0]&2?we.return:C[0]?we.throw||((Re=we.return)&&Re.call(we),0):we.next)&&!(Re=Re.call(we,C[1])).done)return Re;(we=0,Re)&&(C=[C[0]&2,Re.value]);switch(C[0]){case 0:case 1:Re=C;break;case 4:return me.label++,{value:C[1],done:!1};case 5:me.label++,we=C[1],C=[0];continue;case 7:C=me.ops.pop(),me.trys.pop();continue;default:if(!(Re=me.trys,Re=Re.length>0&&Re[Re.length-1])&&(C[0]===6||C[0]===2)){me=0;continue}if(C[0]===3&&(!Re||C[1]>Re[0]&&C[1]0},je.prototype.resolveRenameLocation=function(Xe){return ne(this,void 0,void 0,function(){var me,ge,we,Re;return ee(this,function(Ee){switch(Ee.label){case 0:return me=this._providers[0],me?me.resolveRenameLocation?(we=W.n,[4,me.resolveRenameLocation(this.model,this.position,Xe)]):[3,2]:[2,void 0];case 1:ge=we.apply(void 0,[Ee.sent()]),Ee.label=2;case 2:return!ge&&(Re=this.model.getWordAtPosition(this.position),Re)?[2,{range:new u.a(this.position.lineNumber,Re.startColumn,this.position.lineNumber,Re.endColumn),text:Re.word}]:[2,ge]}})})},je.prototype.provideRenameEdits=function(Xe,me,ge,we){return ne(this,void 0,void 0,function(){var Re,Ee;return ee(this,function(ve){switch(ve.label){case 0:return Re=this._providers[me],Re?[4,Re.provideRenameEdits(this.model,this.position,Xe,we)]:[2,{edits:[],rejectReason:ge.join(` +`)}];case 1:if(Ee=ve.sent(),Ee){if(Ee.rejectReason)return[2,this.provideRenameEdits(Xe,me+1,ge.concat(Ee.rejectReason),we)]}else return[2,this.provideRenameEdits(Xe,me+1,ge.concat(T.a("no result","No result.")),we)];return[2,Ee]}})})},je}();function q(je,Xe,me){return ne(this,void 0,void 0,function(){return ee(this,function(ge){return[2,new ae(je,Xe).provideRenameEdits(me,0,[],$.a.None)]})})}var ue=function(){function je(Xe,me,ge,we,Re,Ee,ve){var Q=this;this.editor=Xe,this._instaService=me,this._notificationService=ge,this._bulkEditService=we,this._progressService=Re,this._logService=Ee,this._configService=ve,this._dispoableStore=new H.b,this._cts=new $.b,this._renameInputField=this._dispoableStore.add(new ie.b(function(){return Q._dispoableStore.add(Q._instaService.createInstance(s,Q.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}))}return je.get=function(Xe){return Xe.getContribution(je.ID)},je.prototype.dispose=function(){this._dispoableStore.dispose(),this._cts.dispose(!0)},je.prototype.run=function(){return ne(this,void 0,void 0,function(){var Xe,me,ge,we,Re,Ee,ve,Q,C,F,se,oe=this;return ee(this,function(be){switch(be.label){case 0:if(this._cts.dispose(!0),!this.editor.hasModel())return[2,void 0];if(Xe=this.editor.getPosition(),me=new ae(this.editor.getModel(),Xe),!me.hasProvider())return[2,void 0];this._cts=new E.b(this.editor,4|1),be.label=1;case 1:return be.trys.push([1,3,,4]),we=me.resolveRenameLocation(this._cts.token),this._progressService.showWhile(we,250),[4,we];case 2:return ge=be.sent(),[3,4];case 3:return Re=be.sent(),m.a.get(this.editor).showMessage(Re||T.a("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),Xe),[2,void 0];case 4:return ge?ge.rejectReason?(m.a.get(this.editor).showMessage(ge.rejectReason,Xe),[2,void 0]):this._cts.token.isCancellationRequested?[2,void 0]:(Ee=this.editor.getSelection(),ve=0,Q=ge.text.length,!u.a.isEmpty(Ee)&&!u.a.spansMultipleLines(Ee)&&u.a.containsRange(ge.range,Ee)&&(ve=Math.max(0,Ee.startColumn-ge.range.startColumn),Q=Math.min(ge.range.endColumn,Ee.endColumn)-ge.range.startColumn),C=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),[4,this._renameInputField.getValue().getInput(ge.range,ge.text,ve,Q,C)]):[2,void 0];case 5:return F=be.sent(),typeof F=="boolean"?(F&&this.editor.focus(),[2,void 0]):(this.editor.focus(),se=Object(ie.j)(me.provideRenameEdits(F.newName,0,[],this._cts.token),this._cts.token).then(function(De){return ne(oe,void 0,void 0,function(){var Se=this;return ee(this,function(Ve){return!De||!this.editor.hasModel()?[2]:De.rejectReason?(this._notificationService.info(De.rejectReason),[2]):(this._bulkEditService.apply(De,{editor:this.editor,showPreview:F.wantsPreview,label:T.a("label","Renaming '{0}'",ge==null?void 0:ge.text)}).then(function(Qe){Qe.ariaSummary&&Object(d.a)(T.a("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",ge.text,F.newName,Qe.ariaSummary))}).catch(function(Qe){Se._notificationService.error(T.a("rename.failedApply","Rename failed to apply edits")),Se._logService.error(Qe)}),[2])})})},function(De){oe._notificationService.error(T.a("rename.failed","Rename failed to compute edits")),oe._logService.error(De)}),this._progressService.showWhile(se,250),[2,se])}})})},je.prototype.acceptRenameInput=function(Xe){this._renameInputField.getValue().acceptInput(Xe)},je.prototype.cancelRenameInput=function(){this._renameInputField.getValue().cancelInput(!0)},je.ID="editor.contrib.renameController",je=Ue([Pe(1,le.a),Pe(2,L.a),Pe(3,A.a),Pe(4,I.a),Pe(5,B.a),Pe(6,Te.a)],je),je}(),X=function(je){Fe(Xe,je);function Xe(){return je.call(this,{id:"editor.action.rename",label:T.a("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:J.a.and(z.a.writable,z.a.hasRenameProvider),kbOpts:{kbExpr:z.a.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})||this}return Xe.prototype.runCommand=function(me,ge){var we=this,Re=me.get(R.a),Ee=Array.isArray(ge)&&ge||[void 0,void 0],ve=Ee[0],Q=Ee[1];return k.a.isUri(ve)&&x.a.isIPosition(Q)?Re.openCodeEditor({resource:ve},Re.getActiveCodeEditor()).then(function(C){if(!C)return;C.setPosition(Q),C.invokeWithinContext(function(F){return we.reportTelemetry(F,C),we.run(F,C)})},re.e):je.prototype.runCommand.call(this,me,ge)},Xe.prototype.run=function(me,ge){var we=ue.get(ge);return we?we.run():Promise.resolve()},Xe}(U.b);Object(U.h)(ue.ID,ue),Object(U.f)(X);var he=U.c.bindToContribution(ue.get);Object(U.g)(new he({id:"acceptRenameInput",precondition:c,handler:function(Xe){return Xe.acceptRenameInput(!1)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:3}})),Object(U.g)(new he({id:"acceptRenameInputWithPreview",precondition:J.a.and(c,J.a.has("config.editor.rename.enablePreview")),handler:function(Xe){return Xe.acceptRenameInput(!0)},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:1024+3}})),Object(U.g)(new he({id:"cancelRenameInput",precondition:c,handler:function(Xe){return Xe.cancelRenameInput()},kbOpts:{weight:100+99,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(U.e)("_executeDocumentRenameProvider",function(je,Xe,me){var ge=me.newName;if(typeof ge!="string")throw Object(re.b)("newName");return q(je,Xe,ge)}),Ce.a.as(Me.a.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:T.a("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})},QDVR:function(Lt,j,e){"use strict";e.d(j,"e",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return O}),e.d(j,"b",function(){return H}),e.d(j,"a",function(){return u});var T=function(){var y=function(f,v){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,p){w.__proto__=p}||function(w,p){for(var c in p)p.hasOwnProperty(c)&&(w[c]=p[c])},y(f,v)};return function(_,f){y(_,f);function v(){this.constructor=_}_.prototype=f===null?Object.create(f):(v.prototype=f.prototype,new v)}}();function re(y){var _=[];return y.forEach(function(f){return _.push(f)}),_}function J(y){var _=[];return y.forEach(function(f,v){return _.push(v)}),_}var I=function(){function y(){this._value="",this._pos=0}return y.prototype.reset=function(_){return this._value=_,this._pos=0,this},y.prototype.next=function(){return this._pos+=1,this},y.prototype.hasNext=function(){return this._pos0)w.left||(w.left=new z,w.left.segment=v.value()),w=w.left;else if(p<0)w.right||(w.right=new z,w.right.segment=v.value()),w=w.right;else if(v.hasNext())v.next(),w.mid||(w.mid=new z,w.mid.segment=v.value()),w=w.mid;else break}var c=w.value;return w.value=f,w.key=_,c},y.prototype.get=function(_){for(var f=this._iter.reset(_),v=this._root;v;){var w=f.cmp(v.segment);if(w>0)v=v.left;else if(w<0)v=v.right;else if(f.hasNext())f.next(),v=v.mid;else break}return v?v.value:void 0},y.prototype.findSubstr=function(_){for(var f=this._iter.reset(_),v=this._root,w=void 0;v;){var p=f.cmp(v.segment);if(p>0)v=v.left;else if(p<0)v=v.right;else if(f.hasNext())f.next(),w=v.value||w,v=v.mid;else break}return v&&v.value||w},y.prototype.forEach=function(_){this._forEach(this._root,_)},y.prototype._forEach=function(_,f){_&&(this._forEach(_.left,f),_.value&&f(_.value,_.key),this._forEach(_.mid,f),this._forEach(_.right,f))},y}(),H=function(){function y(){this.map=new Map,this.ignoreCase=!1}return y.prototype.set=function(_,f){this.map.set(this.toKey(_),f)},y.prototype.get=function(_){return this.map.get(this.toKey(_))},y.prototype.toKey=function(_){var f=_.toString();return this.ignoreCase&&(f=f.toLowerCase()),f},y}(),x=function(){function y(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return y.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},Object.defineProperty(y.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),y.prototype.get=function(_,f){f===void 0&&(f=0);var v=this._map.get(_);return v?(f!==0&&this.touch(v,f),v.value):void 0},y.prototype.set=function(_,f,v){v===void 0&&(v=0);var w=this._map.get(_);if(w)w.value=f,v!==0&&this.touch(w,v);else{w={key:_,value:f,next:void 0,previous:void 0};switch(v){case 0:this.addItemLast(w);break;case 1:this.addItemFirst(w);break;case 2:this.addItemLast(w);break;default:this.addItemLast(w);break}this._map.set(_,w),this._size++}},y.prototype.delete=function(_){return!!this.remove(_)},y.prototype.remove=function(_){var f=this._map.get(_);return f?(this._map.delete(_),this.removeItem(f),this._size--,f.value):void 0},y.prototype.forEach=function(_,f){for(var v=this._head;v;)f?_.bind(f)(v.value,v.key,this):_(v.value,v.key,this),v=v.next},y.prototype.trimOld=function(_){if(_>=this.size)return;if(_===0){this.clear();return}for(var f=this._head,v=this.size;f&&v>_;)this._map.delete(f.key),f=f.next,v--;this._head=f,this._size=v,f&&(f.previous=void 0)},y.prototype.addItemFirst=function(_){if(!this._head&&!this._tail)this._tail=_;else if(this._head)_.next=this._head,this._head.previous=_;else throw new Error("Invalid list");this._head=_},y.prototype.addItemLast=function(_){if(!this._head&&!this._tail)this._head=_;else if(this._tail)_.previous=this._tail,this._tail.next=_;else throw new Error("Invalid list");this._tail=_},y.prototype.removeItem=function(_){if(_===this._head&&_===this._tail)this._head=void 0,this._tail=void 0;else if(_===this._head){if(!_.next)throw new Error("Invalid list");_.next.previous=void 0,this._head=_.next}else if(_===this._tail){if(!_.previous)throw new Error("Invalid list");_.previous.next=void 0,this._tail=_.previous}else{var f=_.next,v=_.previous;if(!f||!v)throw new Error("Invalid list");f.previous=v,v.next=f}_.next=void 0,_.previous=void 0},y.prototype.touch=function(_,f){if(!this._head||!this._tail)throw new Error("Invalid list");if(f!==1&&f!==2)return;if(f===1){if(_===this._head)return;var v=_.next,w=_.previous;_===this._tail?(w.next=void 0,this._tail=w):(v.previous=w,w.next=v),_.previous=void 0,_.next=this._head,this._head.previous=_,this._head=_}else if(f===2){if(_===this._tail)return;var v=_.next,w=_.previous;_===this._head?(v.previous=void 0,this._head=v):(v.previous=w,w.next=v),_.next=void 0,_.previous=this._tail,this._tail.next=_,this._tail=_}},y.prototype.toJSON=function(){var _=[];return this.forEach(function(f,v){_.push([v,f])}),_},y}(),u=function(y){T(_,y);function _(f,v){v===void 0&&(v=1);var w=y.call(this)||this;return w._limit=f,w._ratio=Math.min(Math.max(0,v),1),w}return _.prototype.get=function(f){return y.prototype.get.call(this,f,2)},_.prototype.peek=function(f){return y.prototype.get.call(this,f,0)},_.prototype.set=function(f,v){y.prototype.set.call(this,f,v,2),this.checkTrim()},_.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))},_}(x)},QFiB:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:function(){return e.e(294).then(e.bind(null,"PhST"))}})},QRHv:function(Lt,j,e){"use strict";e.d(j,"f",function(){return U}),e.d(j,"b",function(){return H}),e.d(j,"c",function(){return x}),e.d(j,"a",function(){return y}),e.d(j,"e",function(){return v}),e.d(j,"d",function(){return w});var T=e("6OMU"),re=e("4bUh"),J=e("cGHE"),I=e("twdY");function U(p){for(var c=0,s=0,l=0,d=0,m=p.length;d>>0}var O=new Uint32Array(0).buffer,H=function(){function p(){this.tokens=[]}return p.prototype.add=function(c,s){if(this.tokens.length>0){var l=this.tokens[this.tokens.length-1],d=l.startLineNumber+l.tokens.length-1;if(d+1===c){l.tokens.push(s);return}}this.tokens.push(new _(c,[s]))},p}(),x=function(){function p(c){this._tokens=c,this._tokenCount=c.length/4}return p.prototype.getMaxDeltaLine=function(){var c=this.getTokenCount();return c===0?-1:this.getDeltaLine(c-1)},p.prototype.getTokenCount=function(){return this._tokenCount},p.prototype.getDeltaLine=function(c){return this._tokens[4*c]},p.prototype.getStartCharacter=function(c){return this._tokens[4*c+1]},p.prototype.getEndCharacter=function(c){return this._tokens[4*c+2]},p.prototype.getMetadata=function(c){return this._tokens[4*c+3]},p.prototype.clear=function(){this._tokenCount=0},p.prototype.acceptDeleteRange=function(c,s,l,d,m){for(var E=this._tokens,L=this._tokenCount,A=d-s,k=0,R=!1,$=0;$m?le-=m-l:le=l;else if(W===s&&B===l)if(W===d&&le>m)le-=m-l;else{R=!0;continue}else if(Wm)W===s?(B=l,le=B+(le-m)):(B=0,le=B+(le-m));else{R=!0;continue}else if(W>d){if(A===0&&!R){k=L;break}W-=A}else if(W===d&&B>=m)c&&W===0&&(B+=c,le+=c),W-=A,B-=m-l,le-=m-l;else throw new Error("Not possible!");var Me=4*k;E[Me]=W,E[Me+1]=B,E[Me+2]=le,E[Me+3]=Ce,k++}this._tokenCount=k},p.prototype.acceptInsertText=function(c,s,l,d,m,E){for(var L=l===0&&d===1&&(E>=48&&E<=57||E>=65&&E<=90||E>=97&&E<=122),A=this._tokens,k=this._tokenCount,R=0;Rs)d=m-1;else{for(var L=m;L>l&&c.getDeltaLine(L-1)===s;)L--;for(var A=m;A0?s.charCodeAt(0):0)},p.prototype.acceptEdit=function(c,s,l,d,m){this._acceptDeleteRange(c),this._acceptInsertText(new J.a(c.startLineNumber,c.startColumn),s,l,d,m),this._updateEndLineNumber()},p.prototype._acceptDeleteRange=function(c){if(c.startLineNumber===c.endLineNumber&&c.startColumn===c.endColumn)return;var s=c.startLineNumber-this.startLineNumber,l=c.endLineNumber-this.startLineNumber;if(l<0){var d=l-s;this.startLineNumber-=d;return}var m=this.tokens.getMaxDeltaLine();if(s>=m+1)return;if(s<0&&l>=m+1){this.startLineNumber=0,this.tokens.clear();return}if(s<0){var E=-s;this.startLineNumber-=E,this.tokens.acceptDeleteRange(c.startColumn-1,0,0,l,c.endColumn-1)}else this.tokens.acceptDeleteRange(0,s,c.startColumn-1,l,c.endColumn-1)},p.prototype._acceptInsertText=function(c,s,l,d,m){if(s===0&&l===0)return;var E=c.lineNumber-this.startLineNumber;if(E<0){this.startLineNumber+=s;return}var L=this.tokens.getMaxDeltaLine();if(E>=L+1)return;this.tokens.acceptInsertText(E,c.column-1,s,l,d,m)},p}(),_=function(){function p(c,s){this.startLineNumber=c,this.tokens=s}return p}();function f(p){return p instanceof Uint32Array?p:new Uint32Array(p)}var v=function(){function p(){this._pieces=[]}return p.prototype.flush=function(){this._pieces=[]},p.prototype.set=function(c){this._pieces=c||[]},p.prototype.addSemanticTokens=function(c,s){var l=this._pieces;if(l.length===0)return s;var d=p._findFirstPieceWithLine(l,c),m=this._pieces[d].getLineTokens(c);if(!m)return s;for(var E=s.getCount(),L=m.getCount(),A=0,k=[],R=0,$=0;$>>0,Ce=~le>>>0;As)d=m-1;else{for(;m>l&&c[m-1].startLineNumber<=s&&s<=c[m-1].endLineNumber;)m--;return m}}return l},p.prototype.acceptEdit=function(c,s,l,d,m){for(var E=0,L=this._pieces;E1&&(m=I.A.getLanguageId(d[1])!==c),!m)return O}if(!d||d.length===0){var E=new Uint32Array(2);return E[0]=s,E[1]=z(c),E.buffer}return d[d.length-2]=s,d.byteOffset===0&&d.byteLength===d.buffer.byteLength?d.buffer:d},p.prototype._ensureLine=function(c){for(;c>=this._len;)this._lineTokens[this._len]=null,this._len++},p.prototype._deleteLines=function(c,s){if(s===0)return;c+s>this._len&&(s=this._len-c),this._lineTokens.splice(c,s),this._len-=s},p.prototype._insertLines=function(c,s){if(s===0)return;for(var l=[],d=0;d=this._len)return;if(c.startLineNumber===c.endLineNumber){if(c.startColumn===c.endColumn)return;this._lineTokens[s]=p._delete(this._lineTokens[s],c.startColumn-1,c.endColumn-1);return}this._lineTokens[s]=p._deleteEnding(this._lineTokens[s],c.startColumn-1);var l=c.endLineNumber-1,d=null;l=this._len)return;if(s===0){this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l);return}this._lineTokens[d]=p._deleteEnding(this._lineTokens[d],c.column-1),this._lineTokens[d]=p._insert(this._lineTokens[d],c.column-1,l),this._insertLines(c.lineNumber,s)},p._deleteBeginning=function(c,s){return c===null||c===O?c:p._delete(c,0,s)},p._deleteEnding=function(c,s){if(c===null||c===O)return c;var l=f(c),d=l[l.length-2];return p._delete(c,s,d)},p._delete=function(c,s,l){if(c===null||c===O||s===l)return c;var d=f(c),m=d.length>>>1;if(s===0&&d[d.length-2]===l)return O;var E=re.a.findIndexInTokensArray(d,s),L=E>0?d[E-1<<1]:0,A=d[E<<1];if(lie&&(d[$++]=le,d[$++]=d[(B<<1)+1],ie=le)}if($===d.length)return c;var Ce=new Uint32Array($);return Ce.set(d.subarray(0,$),0),Ce.buffer},p._append=function(c,s){if(s===O)return c;if(c===O)return s;if(c===null)return c;if(s===null)return null;var l=f(c),d=f(s),m=d.length>>>1,E=new Uint32Array(l.length+d.length);E.set(l,0);for(var L=l.length,A=l[l.length-2],k=0;k>>1,E=re.a.findIndexInTokensArray(d,s);if(E>0){var L=d[E-1<<1];L===s&&E--}for(var A=E;A0&&Ce[Ce.length-1])&&(Ue[0]===6||Ue[0]===2)){W=0;continue}if(Ue[0]===3&&(!Ce||Ue[1]>Ce[0]&&Ue[1]0&&!W.providerFilter.has(ue)?void 0:Promise.resolve(ue.provideCompletionItems($,ie,B,le)).then(function(X){var he=Ue.length;if(X){for(var je=0,Xe=X.suggestions||[];jeie.sortTextLow)return 1}return $.completion.labelie.completion.label?1:$.completion.kind-ie.completion.kind}function m($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return-1;if(ie.completion.kind===25)return 1}return d($,ie)}function E($,ie){if($.completion.kind!==ie.completion.kind){if($.completion.kind===25)return 1;if(ie.completion.kind===25)return-1}return d($,ie)}var L=new Map;L.set(0,m),L.set(2,E),L.set(1,d);function A($){return L.get($)}Object(I.e)("_executeCompletionItemProvider",function($,ie,W){return _(void 0,void 0,void 0,function(){var B,le,Ce,Me,Te,Fe,Ue,Pe;return f(this,function(ne){switch(ne.label){case 0:return B={incomplete:!1,suggestions:[]},le=new y.b,Ce=[],Me=W.maxItemsToResolve||0,[4,l($,ie)];case 1:for(Te=ne.sent(),Fe=0,Ue=Te;Fe=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Fe=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},Ue=function(){function Je($e){this._resolverService=$e}return Je.prototype.hasChildren=function($e){return $e instanceof x.c?!0:$e instanceof x.a&&!$e.failure},Je.prototype.getChildren=function($e){if($e instanceof x.c)return $e.groups;if($e instanceof x.a)return $e.resolve(this._resolverService).then(function(ze){return ze.children});throw new Error("bad tree")},Je=Te([Fe(0,l.a)],Je),Je}(),Pe=function(){function Je(){}return Je.prototype.getHeight=function(){return 23},Je.prototype.getTemplateId=function($e){return $e instanceof x.a?q.id:X.id},Je}(),ne=function(){function Je($e){this._keybindingService=$e}return Je.prototype.getKeyboardNavigationLabel=function($e){if($e instanceof x.b){var ze=$e.parent.preview,Ke=ze&&ze.preview($e.range);if(Ke)return Ke.value}return Object(w.b)($e.uri)},Je=Te([Fe(0,B.a)],Je),Je}(),ee=function(){function Je(){}return Je.prototype.getId=function($e){return $e instanceof x.b?$e.id:$e.uri},Je}(),ae=function(Je){Me($e,Je);function $e(ze,Ke,fe){var G=Je.call(this)||this;G._uriLabel=Ke;var te=document.createElement("div");return y.f(te,"reference-file"),G.file=G._register(new d.a(te,{supportHighlights:!0})),G.badge=new k(y.q(te,y.a(".count"))),G._register(Object(ie.a)(G.badge,fe)),ze.appendChild(te),G}return $e.prototype.set=function(ze,Ke){var fe=Object(w.d)(ze.uri);this.file.setLabel(Object(W.a)(ze.uri),this._uriLabel.getUriLabel(fe,{relative:!0}),{title:this._uriLabel.getUriLabel(ze.uri),matches:Ke});var G=ze.children.length;this.badge.setCount(G),ze.failure?this.badge.setTitleFormat(Object(T.a)("referencesFailre","Failed to resolve file.")):G>1?this.badge.setTitleFormat(Object(T.a)("referencesCount","{0} references",G)):this.badge.setTitleFormat(Object(T.a)("referenceCount","{0} reference",G))},$e=Te([Fe(1,R.a),Fe(2,$.c)],$e),$e}(J.a),q=function(){function Je($e){this._instantiationService=$e,this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return this._instantiationService.createInstance(ae,$e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,Object(le.c)($e.filterData))},Je.prototype.disposeTemplate=function($e){$e.dispose()},Je.id="FileReferencesRenderer",Je=Te([Fe(0,U.a)],Je),Je}(),ue=function(){function Je($e){this.label=new Ce.a($e,!1)}return Je.prototype.set=function($e,ze){var Ke=$e.parent.preview,fe=Ke&&Ke.preview($e.range);if(!fe)this.label.set(Object(w.b)($e.uri)+":"+($e.range.startLineNumber+1)+":"+($e.range.startColumn+1));else{var G=fe.value,te=fe.highlight;ze&&!le.a.isDefault(ze)?(y.Y(this.label.element,"referenceMatch",!1),this.label.set(G,Object(le.c)(ze))):(y.Y(this.label.element,"referenceMatch",!0),this.label.set(G,[te]))}},Je}(),X=function(){function Je(){this.templateId=Je.id}return Je.prototype.renderTemplate=function($e){return new ue($e)},Je.prototype.renderElement=function($e,ze,Ke){Ke.set($e.element,$e.filterData)},Je.prototype.disposeTemplate=function(){},Je.id="OneReferenceRenderer",Je}(),he=function(){function Je(){}return Je.prototype.getAriaLabel=function($e){return $e.ariaMessage},Je}(),je=e("k9mg"),Xe=e("MD5Z"),me=e("iNS8"),ge=e("51B1"),we=e("746U"),Re=e("Sdnv"),Ee=e("6OMU"),ve=e("cMOf"),Q=e("4y0V"),C=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),F=function(){for(var Je=0,$e=0,ze=arguments.length;$e0&&(this.proportions=this.viewItems.map(function(Ke){return Ke.size/ze.contentSize}))},$e.prototype.onSashStart=function(ze){for(var Ke=this,fe=ze.sash,G=ze.start,te=ze.alt,Y=0,de=this.viewItems;Y=this.viewItems.length)return;Ke=typeof Ke=="number"?Ke:ze.size,Ke=Object(Re.a)(Ke,ze.minimumSize,ze.maximumSize),this.inverseAltBehavior&&fe>0?(this.resize(fe-1,Math.floor((ze.size-Ke)/2)),this.distributeEmptySpace(),this.layoutViews()):(ze.size=Ke,this.relayout([fe],void 0))},$e.prototype.resizeView=function(ze,Ke){var fe=this;if(this.state!==Se.Idle)throw new Error("Cant modify splitview");if(this.state=Se.Busy,ze<0||ze>=this.viewItems.length)return;var G=Object(Ee.u)(this.viewItems.length).filter(function(ke){return ke!==ze}),te=F(G.filter(function(ke){return fe.viewItems[ke].priority===1}),[ze]),Y=G.filter(function(ke){return fe.viewItems[ke].priority===2}),de=this.viewItems[ze];Ke=Math.round(Ke),Ke=Object(Re.a)(Ke,de.minimumSize,Math.min(de.maximumSize,this.size)),de.size=Ke,this.relayout(te,Y),this.state=Se.Idle},$e.prototype.distributeViewSizes=function(){for(var ze=this,Ke=[],fe=0,G=0,te=this.viewItems;G0&&(Ke.push(Y),fe+=Y.size)}for(var de=Math.floor(fe/Ke.length),ke=0,lt=Ke;ke=this.viewItems.length?-1:this.viewItems[ze].size},$e.prototype.doAddView=function(ze,Ke,fe,G){var te=this;if(fe===void 0&&(fe=this.viewItems.length),this.state!==Se.Idle)throw new Error("Cant modify splitview");this.state=Se.Busy;var Y=y.a(".split-view-view");fe===this.viewItems.length?this.viewContainer.appendChild(Y):this.viewContainer.insertBefore(Y,this.viewContainer.children.item(fe));var de=ze.onDidChange(function(Vo){return te.onViewChange(Jt,Vo)}),ke=Object(J.h)(function(){return te.viewContainer.removeChild(Y)}),lt=Object(J.e)(de,ke),Tt;typeof Ke=="number"?Tt=Ke:Ke.type==="split"?Tt=this.getViewSize(Ke.index)/2:Ke.type==="invisible"?Tt={cachedVisibleSize:Ke.cachedVisibleSize}:Tt=ze.minimumSize;var Jt=this.orientation===0?new be(Y,ze,Tt,lt):new De(Y,ze,Tt,lt);if(this.viewItems.splice(fe,0,Jt),this.viewItems.length>1){var eo=this.orientation===0?1:0,po=this.orientation===0?{getHorizontalSashTop:function(mn){return te.getSashPosition(mn)}}:{getVerticalSashLeft:function(mn){return te.getSashPosition(mn)}},co=new ve.a(this.sashContainer,po,{orientation:eo,orthogonalStartSash:this.orthogonalStartSash,orthogonalEndSash:this.orthogonalEndSash}),Eo=this.orientation===0?function(Vo){return{sash:co,start:Vo.startY,current:Vo.currentY,alt:Vo.altKey}}:function(Vo){return{sash:co,start:Vo.startX,current:Vo.currentX,alt:Vo.altKey}},Oo=f.b.map(co.onDidStart,Eo),Ao=Oo(this.onSashStart,this),Zo=f.b.map(co.onDidChange,Eo),Co=Zo(this.onSashChange,this),Wo=f.b.map(co.onDidEnd,function(){return Object(Ee.k)(te.sashItems,function(Vo){return Vo.sash===co})}),Go=Wo(this.onSashEnd,this),Bo=co.onDidReset(function(){var Vo=Object(Ee.k)(te.sashItems,function(pn){return pn.sash===co}),mn=Object(Ee.u)(Vo,-1),yn=Object(Ee.u)(Vo+1,te.viewItems.length),dn=te.findFirstSnapIndex(mn),rn=te.findFirstSnapIndex(yn);if(typeof dn=="number"&&!te.viewItems[dn].visible)return;if(typeof rn=="number"&&!te.viewItems[rn].visible)return;te._onDidSashReset.fire(Vo)}),Mo=Object(J.e)(Ao,Co,Go,Bo,co),Qo={sash:co,disposable:Mo};this.sashItems.splice(fe-1,0,Qo)}Y.appendChild(ze.element);var fn;typeof Ke!="number"&&Ke.type==="split"&&(fn=[Ke.index]),G||this.relayout([fe],fn),this.state=Se.Idle,!G&&typeof Ke!="number"&&Ke.type==="distribute"&&this.distributeViewSizes()},$e.prototype.relayout=function(ze,Ke){var fe=this.viewItems.reduce(function(G,te){return G+te.size},0);this.resize(this.viewItems.length-1,this.size-fe,void 0,ze,Ke),this.distributeEmptySpace(),this.layoutViews(),this.saveProportions()},$e.prototype.resize=function(ze,Ke,fe,G,te,Y,de,ke,lt){var Tt=this;if(fe===void 0&&(fe=this.viewItems.map(function(_e){return _e.size})),Y===void 0&&(Y=Number.NEGATIVE_INFINITY),de===void 0&&(de=Number.POSITIVE_INFINITY),ze<0||ze>=this.viewItems.length)return 0;var Jt=Object(Ee.u)(ze,-1),eo=Object(Ee.u)(ze+1,this.viewItems.length);if(te)for(var po=0,co=te;po=ke.limitDelta;dn=pn!==rn.visible,rn.setVisible(pn,ke.size)}if(!dn&<){var rn=this.viewItems[lt.index],pn=Ke0||ze});ze=!1;var fe=this.viewItems.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}),G=F(this.viewItems).reverse();ze=!1;var te=G.map(function(Co){return ze=Co.size-Co.minimumSize>0||ze}).reverse();ze=!1;for(var Y=G.map(function(Co){return ze=Co.maximumSize-Co.size>0||ze}).reverse(),de=0,ke=0;ke0||this.startSnappingEnabled)?lt.state=1:Zo&&Ke[ke]&&(de0)return;if(!te.visible&&te.snap)return G}return},$e.prototype.dispose=function(){Je.prototype.dispose.call(this),this.viewItems.forEach(function(ze){return ze.dispose()}),this.viewItems=[],this.sashItems.forEach(function(ze){return ze.disposable.dispose()}),this.sashItems=[]},$e}(J.a),it=function(){var Je=function(ze,Ke){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,G){fe.__proto__=G}||function(fe,G){for(var te in G)G.hasOwnProperty(te)&&(fe[te]=G[te])},Je(ze,Ke)};return function($e,ze){Je($e,ze);function Ke(){this.constructor=$e}$e.prototype=ze===null?Object.create(ze):(Ke.prototype=ze.prototype,new Ke)}}(),pt=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Rt=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},Mt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((Ke=Ke.apply(Je,$e||[])).next())})},zt=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]0?ze.children[0]:void 0},$e.prototype._revealReference=function(ze,Ke){return Mt(this,void 0,void 0,function(){var fe,G,te,Y,de;return zt(this,function(ke){switch(ke.label){case 0:return this._revealedReference===ze?[2]:(this._revealedReference=ze,ze.uri.scheme!==v.b.inMemory?this.setTitle(Object(w.c)(ze.uri),this._uriLabel.getUriLabel(Object(w.d)(ze.uri))):this.setTitle(T.a("peekView.alternateTitle","References")),fe=this._textModelResolverService.createModelReference(ze.uri),this._tree.getInput()===ze.parent?(this._tree.reveal(ze),[3,3]):[3,1]);case 1:return Ke&&this._tree.reveal(ze.parent),[4,this._tree.expand(ze.parent)];case 2:ke.sent(),this._tree.reveal(ze),ke.label=3;case 3:return[4,fe];case 4:return G=ke.sent(),this._model?(Object(J.f)(this._previewModelReference),te=G.object,te?(Y=this._preview.getModel()===te.textEditorModel?0:1,de=c.a.lift(ze.range).collapseToStart(),this._previewModelReference=G,this._preview.setModel(te.textEditorModel),this._preview.setSelection(de),this._preview.revealRangeInCenter(de,Y)):(this._preview.setModel(this._previewNotAvailableMessage),G.dispose()),[2]):(G.dispose(),[2])}})})},$e=pt([Rt(3,$.c),Rt(4,l.a),Rt(5,U.a),Rt(6,me.a),Rt(7,R.a)],$e),$e}(me.c);Object($.e)(function(Je,$e){var ze=Je.getColor(me.m);ze&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { background-color: "+ze+"; }");var Ke=Je.getColor(me.h);Ke&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { background-color: "+Ke+"; }");var fe=Je.getColor(me.i);fe&&$e.addRule(".monaco-editor .reference-zone-widget .preview .reference-decoration { border: 2px solid "+fe+"; box-sizing: border-box; }");var G=Je.getColor(Xe.b);G&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight { border: 1px dotted "+G+"; box-sizing: border-box; }");var te=Je.getColor(me.j);te&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { background-color: "+te+"; }");var Y=Je.getColor(me.l);Y&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree { color: "+Y+"; }");var de=Je.getColor(me.k);de&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .reference-file { color: "+de+"; }");var ke=Je.getColor(me.n);ke&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { background-color: "+ke+"; }");var lt=Je.getColor(me.o);lt&&$e.addRule(".monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows > .monaco-list-row.selected:not(.highlighted) { color: "+lt+" !important; }");var Tt=Je.getColor(me.f);Tt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input {"+(" background-color: "+Tt+";")+"}");var Jt=Je.getColor(me.g);Jt&&$e.addRule(".monaco-editor .reference-zone-widget .preview .monaco-editor .margin {"+(" background-color: "+Jt+";")+"}")});var Pt=e("cGHE"),ft=e("sM1p"),vt=e("X+cX"),At=e("nrhi"),at=e("/kV6"),tt=e("nnTU"),ut=function(Je,$e,ze,Ke){var fe=arguments.length,G=fe<3?$e:Ke===null?Ke=Object.getOwnPropertyDescriptor($e,ze):Ke,te;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(Je,$e,ze,Ke);else for(var Y=Je.length-1;Y>=0;Y--)(te=Je[Y])&&(G=(fe<3?te(G):fe>3?te($e,ze,G):te($e,ze))||G);return fe>3&&G&&Object.defineProperty($e,ze,G),G},Ct=function(Je,$e){return function(ze,Ke){$e(ze,Ke,Je)}},gt=function(Je,$e,ze,Ke){function fe(G){return G instanceof ze?G:new ze(function(te){te(G)})}return new(ze||(ze=Promise))(function(G,te){function Y(lt){try{ke(Ke.next(lt))}catch(Tt){te(Tt)}}function de(lt){try{ke(Ke.throw(lt))}catch(Tt){te(Tt)}}function ke(lt){lt.done?G(lt.value):fe(lt.value).then(Y,de)}ke((Ke=Ke.apply(Je,$e||[])).next())})},bt=function(Je,$e){var ze={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},Ke,fe,G,te;return te={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(te[Symbol.iterator]=function(){return this}),te;function Y(ke){return function(lt){return de([ke,lt])}}function de(ke){if(Ke)throw new TypeError("Generator is already executing.");for(;ze;)try{if(Ke=1,fe&&(G=ke[0]&2?fe.return:ke[0]?fe.throw||((G=fe.return)&&G.call(fe),0):fe.next)&&!(G=G.call(fe,ke[1])).done)return G;(fe=0,G)&&(ke=[ke[0]&2,G.value]);switch(ke[0]){case 0:case 1:G=ke;break;case 4:return ze.label++,{value:ke[1],done:!1};case 5:ze.label++,fe=ke[1],ke=[0];continue;case 7:ke=ze.ops.pop(),ze.trys.pop();continue;default:if(!(G=ze.trys,G=G.length>0&&G[G.length-1])&&(ke[0]===6||ke[0]===2)){ze=0;continue}if(ke[0]===3&&(!G||ke[1]>G[0]&&ke[1]v&&(w=v-f),w<0&&(w=0),p<0&&(p=0),s+p>c&&(s=c-p),s<0&&(s=0),this.width=f,this.scrollWidth=v,this.scrollLeft=w,this.height=p,this.scrollHeight=c,this.scrollTop=s}return _.prototype.equals=function(f){return this.width===f.width&&this.scrollWidth===f.scrollWidth&&this.scrollLeft===f.scrollLeft&&this.height===f.height&&this.scrollHeight===f.scrollHeight&&this.scrollTop===f.scrollTop},_.prototype.withScrollDimensions=function(f){return new _(typeof f.width!="undefined"?f.width:this.width,typeof f.scrollWidth!="undefined"?f.scrollWidth:this.scrollWidth,this.scrollLeft,typeof f.height!="undefined"?f.height:this.height,typeof f.scrollHeight!="undefined"?f.scrollHeight:this.scrollHeight,this.scrollTop)},_.prototype.withScrollPosition=function(f){return new _(this.width,this.scrollWidth,typeof f.scrollLeft!="undefined"?f.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,typeof f.scrollTop!="undefined"?f.scrollTop:this.scrollTop)},_.prototype.createScrollEvent=function(f){var v=this.width!==f.width,w=this.scrollWidth!==f.scrollWidth,p=this.scrollLeft!==f.scrollLeft,c=this.height!==f.height,s=this.scrollHeight!==f.scrollHeight,l=this.scrollTop!==f.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:v,scrollWidthChanged:w,scrollLeftChanged:p,heightChanged:c,scrollHeightChanged:s,scrollTopChanged:l}},_}(),U=function(_){J(f,_);function f(v,w){var p=_.call(this)||this;return p._onScroll=p._register(new T.a),p.onScroll=p._onScroll.event,p._smoothScrollDuration=v,p._scheduleAtNextAnimationFrame=w,p._state=new I(0,0,0,0,0,0),p._smoothScrolling=null,p}return f.prototype.dispose=function(){this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),_.prototype.dispose.call(this)},f.prototype.setSmoothScrollDuration=function(v){this._smoothScrollDuration=v},f.prototype.validateScrollPosition=function(v){return this._state.withScrollPosition(v)},f.prototype.getScrollDimensions=function(){return this._state},f.prototype.setScrollDimensions=function(v){var w=this._state.withScrollDimensions(v);this._setState(w),this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)},f.prototype.getFutureScrollPosition=function(){return this._smoothScrolling?this._smoothScrolling.to:this._state},f.prototype.getCurrentScrollPosition=function(){return this._state},f.prototype.setScrollPositionNow=function(v){var w=this._state.withScrollPosition(v);this._smoothScrolling&&(this._smoothScrolling.dispose(),this._smoothScrolling=null),this._setState(w)},f.prototype.setScrollPositionSmooth=function(v){var w=this;if(this._smoothScrollDuration===0)return this.setScrollPositionNow(v);if(this._smoothScrolling){v={scrollLeft:typeof v.scrollLeft=="undefined"?this._smoothScrolling.to.scrollLeft:v.scrollLeft,scrollTop:typeof v.scrollTop=="undefined"?this._smoothScrolling.to.scrollTop:v.scrollTop};var p=this._state.withScrollPosition(v);if(this._smoothScrolling.to.scrollLeft===p.scrollLeft&&this._smoothScrolling.to.scrollTop===p.scrollTop)return;var c=this._smoothScrolling.combine(this._state,p,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=c}else{var p=this._state.withScrollPosition(v);this._smoothScrolling=x.start(this._state,p,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!w._smoothScrolling)return;w._smoothScrolling.animationFrameDisposable=null,w._performSmoothScrolling()})},f.prototype._performSmoothScrolling=function(){var v=this;if(!this._smoothScrolling)return;var w=this._smoothScrolling.tick(),p=this._state.withScrollPosition(w);if(this._setState(p),w.isDone){this._smoothScrolling.dispose(),this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!v._smoothScrolling)return;v._smoothScrolling.animationFrameDisposable=null,v._performSmoothScrolling()})},f.prototype._setState=function(v){var w=this._state;if(w.equals(v))return;this._state=v,this._onScroll.fire(this._state.createScrollEvent(w))},f}(re.a),z=function(){function _(f,v,w){this.scrollLeft=f,this.scrollTop=v,this.isDone=w}return _}();function O(_,f){var v=f-_;return function(w){return _+v*y(w)}}function H(_,f,v){return function(w){return w2.5*w){var c=void 0,s=void 0;return f0?R.actionBar.push(ie,{icon:!0,label:!1}):!R.actionBar.isEmpty()&&(!ie||ie.length===0)&&R.actionBar.clear(),A instanceof c&&A.getGroupLabel()?z.f(R.container,"has-group-label"):z.P(R.container,"has-group-label"),A instanceof c){var W=A,B=R;W.showBorder()?(z.f(B.container,"results-group-separator"),$.pickerGroupBorder&&(B.container.style.borderTopColor=$.pickerGroupBorder.toString())):(z.P(B.container,"results-group-separator"),B.container.style.borderTopColor="");var le=W.getGroupLabel()||"";B.group&&(B.group.textContent=le,$.pickerGroupForeground&&(B.group.style.color=$.pickerGroupForeground.toString()))}if(A instanceof p){var Ce=A.getHighlights(),Me=Ce[0],Te=Ce[1],Fe=Ce[2],Ue=A.getIcon()?"quick-open-entry-icon "+A.getIcon():"";R.icon.className=Ue;var Pe=A.getLabelOptions()||Object.create(null);Pe.matches=Me||[],Pe.title=A.getTooltip(),Pe.descriptionTitle=A.getDescriptionTooltip()||A.getDescription(),Pe.descriptionMatches=Te||[],R.label.setLabel(A.getLabel()||"",A.getDescription(),Pe),R.detail.set(A.getDetail(),Fe),R.keybinding.set(A.getKeybinding())}},L.prototype.disposeTemplate=function(A,k){k.actionBar.dispose(),k.actionBar=null,k.container=null,k.entry=null,k.keybinding=null,k.detail=null,k.group=null,k.icon=null,k.label.dispose(),k.label=null},L}(),E=function(){function L(A,k){A===void 0&&(A=[]),k===void 0&&(k=new s),this._entries=A,this._dataSource=this,this._renderer=new m(k),this._filter=this,this._runner=this,this._accessibilityProvider=this}return Object.defineProperty(L.prototype,"entries",{get:function(){return this._entries},set:function(k){this._entries=k},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"dataSource",{get:function(){return this._dataSource},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"renderer",{get:function(){return this._renderer},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"filter",{get:function(){return this._filter},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"runner",{get:function(){return this._runner},enumerable:!0,configurable:!0}),Object.defineProperty(L.prototype,"accessibilityProvider",{get:function(){return this._accessibilityProvider},enumerable:!0,configurable:!0}),L.prototype.getId=function(A){return A.getId()},L.prototype.getLabel=function(A){return re.o(A.getLabel())},L.prototype.getAriaLabel=function(A){var k=A.getAriaLabel();return k?T.a("quickOpenAriaLabelEntry","{0}, picker",A.getAriaLabel()):T.a("quickOpenAriaLabel","picker")},L.prototype.isVisible=function(A){return!A.isHidden()},L.prototype.run=function(A,k,R){return A.run(k,R)},L}()},S3by:function(Lt,j,e){"use strict";var T=e("3/fG"),re=e("N0LK"),J;(function(I){I[I.Ignore=0]="Ignore",I[I.Info=1]="Info",I[I.Warning=2]="Warning",I[I.Error=3]="Error"})(J||(J={})),function(I){var U="error",z="warning",O="warn",H="info",x=Object.create(null);x[I.Error]=T.a("sev.error","Error"),x[I.Warning]=T.a("sev.warning","Warning"),x[I.Info]=T.a("sev.info","Info");function u(y){return y?re.n(U,y)?I.Error:re.n(z,y)||re.n(O,y)?I.Warning:re.n(H,y)?I.Info:I.Ignore:I.Ignore}I.fromValue=u}(J||(J={})),j.a=J},SBYE:function(Lt,j,e){"use strict";e.r(j);var T=e("QaAZ"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),U=e("ZlPH"),z=e("Md8J"),O=e("OBOq"),H=e("G300"),x=e("pmY6"),u=e("MNsG"),y=e("N0LK"),_=e("bY76"),f=e("sswD"),v=e("wQH0"),w=e("k7pc"),p=e("T8No"),c=e("Cg/j"),s=e("bexQ"),l=e("W9cx"),d=e("MD5Z"),m=e("t9D7"),E=e("A9l+"),L=function(){var Ce=function(Te,Fe){return Ce=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ue,Pe){Ue.__proto__=Pe}||function(Ue,Pe){for(var ne in Pe)Pe.hasOwnProperty(ne)&&(Ue[ne]=Pe[ne])},Ce(Te,Fe)};return function(Me,Te){Ce(Me,Te);function Fe(){this.constructor=Me}Me.prototype=Te===null?Object.create(Te):(Fe.prototype=Te.prototype,new Fe)}}(),A=function(Ce,Me,Te,Fe){var Ue=arguments.length,Pe=Ue<3?Me:Fe===null?Fe=Object.getOwnPropertyDescriptor(Me,Te):Fe,ne;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Pe=Reflect.decorate(Ce,Me,Te,Fe);else for(var ee=Ce.length-1;ee>=0;ee--)(ne=Ce[ee])&&(Pe=(Ue<3?ne(Pe):Ue>3?ne(Me,Te,Pe):ne(Me,Te))||Pe);return Ue>3&&Pe&&Object.defineProperty(Me,Te,Pe),Pe},k=function(Ce,Me){return function(Te,Fe){Me(Te,Fe,Ce)}},R=new p.d("accessibilityHelpWidgetVisible",!1),$=function(Ce){L(Me,Ce);function Me(Te,Fe){var Ue=Ce.call(this)||this;return Ue._editor=Te,Ue._widget=Ue._register(Fe.createInstance(W,Ue._editor)),Ue}return Me.get=function(Te){return Te.getContribution(Me.ID)},Me.prototype.show=function(){this._widget.show()},Me.prototype.hide=function(){this._widget.hide()},Me.ID="editor.contrib.accessibilityHelpController",Me=A([k(1,c.a)],Me),Me}(x.a);function ie(Ce,Me){return!Ce||Ce.length===0?E.a.noSelection:Ce.length===1?Me?y.r(E.a.singleSelectionRange,Ce[0].positionLineNumber,Ce[0].positionColumn,Me):y.r(E.a.singleSelection,Ce[0].positionLineNumber,Ce[0].positionColumn):Me?y.r(E.a.multiSelectionRange,Ce.length,Me):Ce.length>0?y.r(E.a.multiSelection,Ce.length):""}var W=function(Ce){L(Me,Ce);function Me(Te,Fe,Ue,Pe){var ne=Ce.call(this)||this;return ne._contextKeyService=Fe,ne._keybindingService=Ue,ne._openerService=Pe,ne._editor=Te,ne._isVisibleKey=R.bindTo(ne._contextKeyService),ne._domNode=Object(U.b)(document.createElement("div")),ne._domNode.setClassName("accessibilityHelpWidget"),ne._domNode.setDisplay("none"),ne._domNode.setAttribute("role","dialog"),ne._domNode.setAttribute("aria-hidden","true"),ne._contentDomNode=Object(U.b)(document.createElement("div")),ne._contentDomNode.setAttribute("role","document"),ne._domNode.appendChild(ne._contentDomNode),ne._isVisible=!1,ne._register(ne._editor.onDidLayoutChange(function(){ne._isVisible&&ne._layout()})),ne._register(I.o(ne._contentDomNode.domNode,"keydown",function(ee){if(!ne._isVisible)return;if(ee.equals(2048|35)&&(Object(O.a)(E.a.emergencyConfOn),ne._editor.updateOptions({accessibilitySupport:"on"}),I.t(ne._contentDomNode.domNode),ne._buildContent(),ne._contentDomNode.domNode.focus(),ee.preventDefault(),ee.stopPropagation()),ee.equals(2048|38)){Object(O.a)(E.a.openingDocs);var ae=ne._editor.getRawOptions().accessibilityHelpUrl;typeof ae=="undefined"&&(ae="https://go.microsoft.com/fwlink/?linkid=852450"),ne._openerService.open(_.a.parse(ae)),ee.preventDefault(),ee.stopPropagation()}})),ne.onblur(ne._contentDomNode.domNode,function(){ne.hide()}),ne._editor.addOverlayWidget(ne),ne}return Me.prototype.dispose=function(){this._editor.removeOverlayWidget(this),Ce.prototype.dispose.call(this)},Me.prototype.getId=function(){return Me.ID},Me.prototype.getDomNode=function(){return this._domNode.domNode},Me.prototype.getPosition=function(){return{preference:null}},Me.prototype.show=function(){if(this._isVisible)return;this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus()},Me.prototype._descriptionForCommand=function(Te,Fe,Ue){var Pe=this._keybindingService.lookupKeybinding(Te);return Pe?y.r(Fe,Pe.getAriaLabel()):y.r(Ue,Te)},Me.prototype._buildContent=function(){var Te=this._editor.getOptions(),Fe=this._editor.getSelections(),Ue=0;if(Fe){var Pe=this._editor.getModel();Pe&&Fe.forEach(function(q){Ue+=Pe.getValueLengthInRange(q)})}var ne=ie(Fe,Ue);Te.get(45)?Te.get(68)?ne+=E.a.readonlyDiffEditor:ne+=E.a.editableDiffEditor:Te.get(68)?ne+=E.a.readonlyEditor:ne+=E.a.editableEditor;var ee=u.e?E.a.changeConfigToOnMac:E.a.changeConfigToOnWinLinux;switch(Te.get(2)){case 0:ne+=` - `+ee;break;case 2:ne+=` @@ -77,17 +77,17 @@ Please report this to https://github.com/markedjs/marked.`,(Ve||De.defaults).sil - `+E.a.auto_off,ne+=" "+ee;break}Te.get(106)?ne+=` - - `+this._descriptionForCommand(_.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOnMsg,E.a.tabFocusModeOnMsgNoKb):ne+=` + - `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOnMsg,E.a.tabFocusModeOnMsgNoKb):ne+=` - - `+this._descriptionForCommand(_.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOffMsg,E.a.tabFocusModeOffMsgNoKb);var ae=u.e?E.a.openDocMac:E.a.openDocWinLinux;ne+=` + - `+this._descriptionForCommand(w.ToggleTabFocusModeAction.ID,E.a.tabFocusModeOffMsg,E.a.tabFocusModeOffMsgNoKb);var ae=u.e?E.a.openDocMac:E.a.openDocWinLinux;ne+=` - `+ae,ne+=` -`+E.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(z.b)(ne)),this._contentDomNode.domNode.setAttribute("aria-label",ne)},Me.prototype.hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,I.t(this._contentDomNode.domNode),this._editor.focus()},Me.prototype._layout=function(){var Te=this._editor.getLayoutInfo(),Fe=Math.max(5,Math.min(Me.WIDTH,Te.width-40)),He=Math.max(5,Math.min(Me.HEIGHT,Te.height-40));this._domNode.setWidth(Fe),this._domNode.setHeight(He);var Pe=Math.round((Te.height-He)/2);this._domNode.setTop(Pe);var ne=Math.round((Te.width-Fe)/2);this._domNode.setLeft(ne)},Me.ID="editor.contrib.accessibilityHelpWidget",Me.WIDTH=500,Me.HEIGHT=300,Me=A([k(1,p.c),k(2,s.a),k(3,l.a)],Me),Me}(U.a),B=function(Ce){L(Me,Ce);function Me(){return Ce.call(this,{id:"editor.action.showAccessibilityHelp",label:E.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:v.a.focus,primary:J.i?2048|59:512|59,weight:100}})||this}return Me.prototype.run=function(Te,Fe){var He=$.get(Fe);He&&He.show()},Me}(f.b);Object(f.h)($.ID,$),Object(f.f)(B);var le=f.c.bindToContribution($.get);Object(f.g)(new le({id:"closeAccessibilityHelp",precondition:R,handler:function(Me){return Me.hide()},kbOpts:{weight:100+100,kbExpr:v.a.focus,primary:9,secondary:[1024|9]}})),Object(m.e)(function(Ce,Me){var Te=Ce.getColor(d.Q);Te&&Me.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Te+"; }");var Fe=Ce.getColor(d.S);Fe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { color: "+Fe+"; }");var He=Ce.getColor(d.hc);He&&Me.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+He+"; }");var Pe=Ce.getColor(d.e);Pe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+Pe+"; }")})},Sdnv:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re,J,I){return Math.min(Math.max(re,J),I)}},SvYn:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(283).then(e.bind(null,"Dsrv"))}})},T8No:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return f}),e.d(j,"d",function(){return v}),e.d(j,"c",function(){return _}),e.d(j,"e",function(){return p});var T=e("N0LK"),re=e("Cg/j"),J=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),I=function(){function c(){}return c.has=function(s){return z.create(s)},c.equals=function(s,l){return O.create(s,l)},c.regex=function(s,l){return u.create(s,l)},c.not=function(s){return x.create(s)},c.and=function(){for(var s=[],l=0;l=0){var d=s.split("!=");return U.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("==")>=0){var d=s.split("==");return O.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("=~")>=0){var d=s.split("=~");return u.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(s)?x.create(s.substr(1).trim()):z.create(s)},c._deserializeValue=function(s,l){if(s=s.trim(),s==="true")return!0;if(s==="false")return!1;var d=/^'([^']*)'$/.exec(s);return d?d[1].trim():s},c._deserializeRegexValue=function(s,l){if(Object(T.x)(s)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=s.indexOf("/"),m=s.lastIndexOf("/");if(d===m||d<0){if(l)throw new Error("bad regexp-value '"+s+"', missing /-enclosure");return console.warn("bad regexp-value '"+s+"', missing /-enclosure"),null}var E=s.slice(d+1,m),L=s[m+1]==="i"?"i":"";try{return new RegExp(E,L)}catch(A){if(l)throw new Error("bad regexp-value '"+s+"', parse error: "+A);return console.warn("bad regexp-value '"+s+"', parse error: "+A),null}},c}();function H(c,s){var l=c.getType(),d=s.getType();if(l!==d)return l-d;switch(l){case 1:return c.cmp(s);case 2:return c.cmp(s);case 3:return c.cmp(s);case 4:return c.cmp(s);case 6:return c.cmp(s);case 7:return c.cmp(s);case 5:return c.cmp(s);default:throw new Error("Unknown ContextKeyExpr!")}}var z=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 1},c.prototype.cmp=function(s){return this.keys.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return x.create(this.key)},c}(),O=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?z.create(s):x.create(s):new c(s,l)},c.prototype.getType=function(){return 3},c.prototype.cmp=function(s){return this.keys.key?1:this.values.value?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)==this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return U.create(this.key,this.value)},c}(),U=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?x.create(s):z.create(s):new c(s,l)},c.prototype.getType=function(){return 4},c.prototype.cmp=function(s){return this.keys.key?1:this.values.value?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)!=this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return O.create(this.key,this.value)},c}(),x=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 2},c.prototype.cmp=function(s){return this.keys.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return z.create(this.key)},c}(),u=function(){function c(s,l){this.key=s,this.regexp=l}return c.create=function(s,l){return new c(s,l)},c.prototype.getType=function(){return 6},c.prototype.cmp=function(s){if(this.keys.key)return 1;var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return ld?1:0},c.prototype.equals=function(s){if(s instanceof c){var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return this.key===s.key&&l===d}return!1},c.prototype.evaluate=function(s){var l=s.getValue(this.key);return this.regexp?this.regexp.test(l):!1},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return y.create(this)},c}(),y=function(){function c(s){this._actual=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 7},c.prototype.cmp=function(s){return this._actual.cmp(s._actual)},c.prototype.equals=function(s){return s instanceof c?this._actual.equals(s._actual):!1},c.prototype.evaluate=function(s){return!this._actual.evaluate(s)},c.prototype.keys=function(){return this._actual.keys()},c.prototype.negate=function(){return this._actual},c}(),w=function(){function c(s){this.expr=s}return c.create=function(s){var l=c._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new c(l)},c.prototype.getType=function(){return 5},c.prototype.cmp=function(s){if(this.expr.lengths.expr.length)return 1;for(var l=0,d=this.expr.length;l1;){for(var L=s.shift(),A=s.shift(),k=[],R=0,$=E(L);R<$.length;R++)for(var ie=$[R],W=0,B=E(A);W0;)m+=v?" ":" ",L--;break;case 60:m+="<";break;case 62:m+=">";break;case 38:m+="&";break;case 0:m+="�";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="​";break;case 32:m+=v?" ":" ";break;default:m+=String.fromCharCode(E)}}if(_+=''+m+"",d>w||p>=w)break}return _+="
",_}function O(U,x){for(var u='
',y=U.split(/\r\n|\r|\n/),w=x.getInitialState(),f=0,v=y.length;f0&&(u+="
");var p=x.tokenize2(_,w,0);re.a.convertToEndOffset(p.tokens,_.length);for(var c=new re.a(p.tokens,_),s=c.inflate(),l=0,d=0,m=s.getCount();d'+T.o(_.substring(l,L))+"",l=L}w=p.endState}return u+="
",u}},TT2d:function(Lt,j,e){},Tcc1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re}),e.d(j,"c",function(){return J});var T=function(){function I(H,z,O){this.offset=H|0,this.type=z,this.language=O}return I.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},I}(),re=function(){function I(H,z){this.tokens=H,this.endState=z}return I}(),J=function(){function I(H,z){this.tokens=H,this.endState=z}return I}()},UCkY:function(Lt,j,e){},URDS:function(Lt,j,e){(function(T){/*! +`+E.a.outroMsg,this._contentDomNode.domNode.appendChild(Object(z.b)(ne)),this._contentDomNode.domNode.setAttribute("aria-label",ne)},Me.prototype.hide=function(){if(!this._isVisible)return;this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,I.t(this._contentDomNode.domNode),this._editor.focus()},Me.prototype._layout=function(){var Te=this._editor.getLayoutInfo(),Fe=Math.max(5,Math.min(Me.WIDTH,Te.width-40)),Ue=Math.max(5,Math.min(Me.HEIGHT,Te.height-40));this._domNode.setWidth(Fe),this._domNode.setHeight(Ue);var Pe=Math.round((Te.height-Ue)/2);this._domNode.setTop(Pe);var ne=Math.round((Te.width-Fe)/2);this._domNode.setLeft(ne)},Me.ID="editor.contrib.accessibilityHelpWidget",Me.WIDTH=500,Me.HEIGHT=300,Me=A([k(1,p.c),k(2,s.a),k(3,l.a)],Me),Me}(H.a),B=function(Ce){L(Me,Ce);function Me(){return Ce.call(this,{id:"editor.action.showAccessibilityHelp",label:E.a.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{kbExpr:v.a.focus,primary:J.i?2048|59:512|59,weight:100}})||this}return Me.prototype.run=function(Te,Fe){var Ue=$.get(Fe);Ue&&Ue.show()},Me}(f.b);Object(f.h)($.ID,$),Object(f.f)(B);var le=f.c.bindToContribution($.get);Object(f.g)(new le({id:"closeAccessibilityHelp",precondition:R,handler:function(Me){return Me.hide()},kbOpts:{weight:100+100,kbExpr:v.a.focus,primary:9,secondary:[1024|9]}})),Object(m.e)(function(Ce,Me){var Te=Ce.getColor(d.Q);Te&&Me.addRule(".monaco-editor .accessibilityHelpWidget { background-color: "+Te+"; }");var Fe=Ce.getColor(d.S);Fe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { color: "+Fe+"; }");var Ue=Ce.getColor(d.hc);Ue&&Me.addRule(".monaco-editor .accessibilityHelpWidget { box-shadow: 0 2px 8px "+Ue+"; }");var Pe=Ce.getColor(d.e);Pe&&Me.addRule(".monaco-editor .accessibilityHelpWidget { border: 2px solid "+Pe+"; }")})},Sdnv:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});function T(re,J,I){return Math.min(Math.max(re,J),I)}},SvYn:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:function(){return e.e(283).then(e.bind(null,"Dsrv"))}})},T8No:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return f}),e.d(j,"d",function(){return v}),e.d(j,"c",function(){return w}),e.d(j,"e",function(){return p});var T=e("N0LK"),re=e("Cg/j"),J=function(){var c=function(l,d){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,E){m.__proto__=E}||function(m,E){for(var L in E)E.hasOwnProperty(L)&&(m[L]=E[L])},c(l,d)};return function(s,l){c(s,l);function d(){this.constructor=s}s.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}}(),I=function(){function c(){}return c.has=function(s){return z.create(s)},c.equals=function(s,l){return O.create(s,l)},c.regex=function(s,l){return u.create(s,l)},c.not=function(s){return x.create(s)},c.and=function(){for(var s=[],l=0;l=0){var d=s.split("!=");return H.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("==")>=0){var d=s.split("==");return O.create(d[0].trim(),this._deserializeValue(d[1],l))}if(s.indexOf("=~")>=0){var d=s.split("=~");return u.create(d[0].trim(),this._deserializeRegexValue(d[1],l))}return/^\!\s*/.test(s)?x.create(s.substr(1).trim()):z.create(s)},c._deserializeValue=function(s,l){if(s=s.trim(),s==="true")return!0;if(s==="false")return!1;var d=/^'([^']*)'$/.exec(s);return d?d[1].trim():s},c._deserializeRegexValue=function(s,l){if(Object(T.x)(s)){if(l)throw new Error("missing regexp-value for =~-expression");return console.warn("missing regexp-value for =~-expression"),null}var d=s.indexOf("/"),m=s.lastIndexOf("/");if(d===m||d<0){if(l)throw new Error("bad regexp-value '"+s+"', missing /-enclosure");return console.warn("bad regexp-value '"+s+"', missing /-enclosure"),null}var E=s.slice(d+1,m),L=s[m+1]==="i"?"i":"";try{return new RegExp(E,L)}catch(A){if(l)throw new Error("bad regexp-value '"+s+"', parse error: "+A);return console.warn("bad regexp-value '"+s+"', parse error: "+A),null}},c}();function U(c,s){var l=c.getType(),d=s.getType();if(l!==d)return l-d;switch(l){case 1:return c.cmp(s);case 2:return c.cmp(s);case 3:return c.cmp(s);case 4:return c.cmp(s);case 6:return c.cmp(s);case 7:return c.cmp(s);case 5:return c.cmp(s);default:throw new Error("Unknown ContextKeyExpr!")}}var z=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 1},c.prototype.cmp=function(s){return this.keys.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return x.create(this.key)},c}(),O=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?z.create(s):x.create(s):new c(s,l)},c.prototype.getType=function(){return 3},c.prototype.cmp=function(s){return this.keys.key?1:this.values.value?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)==this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return H.create(this.key,this.value)},c}(),H=function(){function c(s,l){this.key=s,this.value=l}return c.create=function(s,l){return typeof l=="boolean"?l?x.create(s):z.create(s):new c(s,l)},c.prototype.getType=function(){return 4},c.prototype.cmp=function(s){return this.keys.key?1:this.values.value?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key&&this.value===s.value:!1},c.prototype.evaluate=function(s){return s.getValue(this.key)!=this.value},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return O.create(this.key,this.value)},c}(),x=function(){function c(s){this.key=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 2},c.prototype.cmp=function(s){return this.keys.key?1:0},c.prototype.equals=function(s){return s instanceof c?this.key===s.key:!1},c.prototype.evaluate=function(s){return!s.getValue(this.key)},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return z.create(this.key)},c}(),u=function(){function c(s,l){this.key=s,this.regexp=l}return c.create=function(s,l){return new c(s,l)},c.prototype.getType=function(){return 6},c.prototype.cmp=function(s){if(this.keys.key)return 1;var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return ld?1:0},c.prototype.equals=function(s){if(s instanceof c){var l=this.regexp?this.regexp.source:"",d=s.regexp?s.regexp.source:"";return this.key===s.key&&l===d}return!1},c.prototype.evaluate=function(s){var l=s.getValue(this.key);return this.regexp?this.regexp.test(l):!1},c.prototype.keys=function(){return[this.key]},c.prototype.negate=function(){return y.create(this)},c}(),y=function(){function c(s){this._actual=s}return c.create=function(s){return new c(s)},c.prototype.getType=function(){return 7},c.prototype.cmp=function(s){return this._actual.cmp(s._actual)},c.prototype.equals=function(s){return s instanceof c?this._actual.equals(s._actual):!1},c.prototype.evaluate=function(s){return!this._actual.evaluate(s)},c.prototype.keys=function(){return this._actual.keys()},c.prototype.negate=function(){return this._actual},c}(),_=function(){function c(s){this.expr=s}return c.create=function(s){var l=c._normalizeArr(s);return l.length===0?void 0:l.length===1?l[0]:new c(l)},c.prototype.getType=function(){return 5},c.prototype.cmp=function(s){if(this.expr.lengths.expr.length)return 1;for(var l=0,d=this.expr.length;l1;){for(var L=s.shift(),A=s.shift(),k=[],R=0,$=E(L);R<$.length;R++)for(var ie=$[R],W=0,B=E(A);W0;)m+=v?" ":" ",L--;break;case 60:m+="<";break;case 62:m+=">";break;case 38:m+="&";break;case 0:m+="�";break;case 65279:case 8232:m+="\uFFFD";break;case 13:m+="​";break;case 32:m+=v?" ":" ";break;default:m+=String.fromCharCode(E)}}if(w+=''+m+"",d>_||p>=_)break}return w+="",w}function O(H,x){for(var u='
',y=H.split(/\r\n|\r|\n/),_=x.getInitialState(),f=0,v=y.length;f0&&(u+="
");var p=x.tokenize2(w,_,0);re.a.convertToEndOffset(p.tokens,w.length);for(var c=new re.a(p.tokens,w),s=c.inflate(),l=0,d=0,m=s.getCount();d'+T.o(w.substring(l,L))+"",l=L}_=p.endState}return u+="
",u}},TT2d:function(Lt,j,e){},Tcc1:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re}),e.d(j,"c",function(){return J});var T=function(){function I(U,z,O){this.offset=U|0,this.type=z,this.language=O}return I.prototype.toString=function(){return"("+this.offset+", "+this.type+")"},I}(),re=function(){function I(U,z){this.tokens=U,this.endState=z}return I}(),J=function(){function I(U,z){this.tokens=U,this.endState=z}return I}()},UCkY:function(Lt,j,e){},URDS:function(Lt,j,e){(function(T){/*! Copyright (c) 2014 Taylor Hakes Copyright (c) 2014 Forbes Lindesay - */(function(re,J){J()})(this,function(){"use strict";function re(v){var _=this.constructor;return this.then(function(p){return _.resolve(v()).then(function(){return p})},function(p){return _.resolve(v()).then(function(){return _.reject(p)})})}var J=setTimeout;function I(){}function H(v,_){return function(){v.apply(_,arguments)}}function z(v){if(!(this instanceof z))throw new TypeError("Promises must be constructed via new");if(typeof v!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],w(v,this)}function O(v,_){for(;v._state===3;)v=v._value;if(v._state===0){v._deferreds.push(_);return}v._handled=!0,z._immediateFn(function(){var p=v._state===1?_.onFulfilled:_.onRejected;if(p===null){(v._state===1?U:x)(_.promise,v._value);return}var c;try{c=p(v._value)}catch(s){x(_.promise,s);return}U(_.promise,c)})}function U(v,_){try{if(_===v)throw new TypeError("A promise cannot be resolved with itself.");if(_&&(typeof _=="object"||typeof _=="function")){var p=_.then;if(_ instanceof z){v._state=3,v._value=_,u(v);return}else if(typeof p=="function"){w(H(p,_),v);return}}v._state=1,v._value=_,u(v)}catch(c){x(v,c)}}function x(v,_){v._state=2,v._value=_,u(v)}function u(v){v._state===2&&v._deferreds.length===0&&z._immediateFn(function(){v._handled||z._unhandledRejectionFn(v._value)});for(var _=0,p=v._deferreds.length;_'})}},Vtyv:function(Lt,j,e){},VvMK:function(Lt,j,e){},Vxe3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("codeEditorService")},W9cx:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return U}),e.d(j,"c",function(){return x});var T=e("bY76"),re=e("Cg/j"),J=e("pmY6"),I=e("N0LK"),H=function(u,y,w,f){function v(_){return _ instanceof w?_:new w(function(p){p(_)})}return new(w||(w=Promise))(function(_,p){function c(d){try{l(f.next(d))}catch(m){p(m)}}function s(d){try{l(f.throw(d))}catch(m){p(m)}}function l(d){d.done?_(d.value):v(d.value).then(c,s)}l((f=f.apply(u,y||[])).next())})},z=function(u,y){var w={label:0,sent:function(){if(_[0]&1)throw _[1];return _[1]},trys:[],ops:[]},f,v,_,p;return p={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function c(l){return function(d){return s([l,d])}}function s(l){if(f)throw new TypeError("Generator is already executing.");for(;w;)try{if(f=1,v&&(_=l[0]&2?v.return:l[0]?v.throw||((_=v.return)&&_.call(v),0):v.next)&&!(_=_.call(v,l[1])).done)return _;(v=0,_)&&(l=[l[0]&2,_.value]);switch(l[0]){case 0:case 1:_=l;break;case 4:return w.label++,{value:l[1],done:!1};case 5:w.label++,v=l[1],l=[0];continue;case 7:l=w.ops.pop(),w.trys.pop();continue;default:if(!(_=w.trys,_=_.length>0&&_[_.length-1])&&(l[0]===6||l[0]===2)){w=0;continue}if(l[0]===3&&(!_||l[1]>_[0]&&l[1]<_[3])){w.label=l[1];break}if(l[0]===6&&w.label<_[1]){w.label=_[1],_=l;break}if(_&&w.label<_[2]){w.label=_[2],w.ops.push(l);break}_[2]&&w.ops.pop(),w.trys.pop();continue}l=y.call(u,w)}catch(d){l=[6,d],v=0}finally{f=_=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}},O=Object(re.c)("openerService"),U=Object.freeze({_serviceBrand:void 0,registerOpener:function(){return J.a.None},registerValidator:function(){return J.a.None},registerExternalUriResolver:function(){return J.a.None},setExternalOpener:function(){},open:function(){return H(this,void 0,void 0,function(){return z(this,function(y){return[2,!1]})})},resolveExternalUri:function(y){return H(this,void 0,void 0,function(){return z(this,function(w){return[2,{resolved:y,dispose:function(){}}]})})}});function x(u,y){return T.a.isUri(u)?Object(I.n)(u.scheme,y):Object(I.O)(u,y+":")}},WBhO:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("modeService")},WQDh:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SymbolEntry",function(){return He}),e.d(j,"QuickOutlineAction",function(){return Pe});var T=e("QvA3"),re=e("k76M"),J=e("jqj9"),I=e("JQT/"),H=e("fpMC"),z=e("N0LK"),O=e("Rpxm"),U=e("sswD"),x=e("aokT"),u=e("wQH0"),y=e("twdY"),w=e("bY76"),f=e("G2kB"),v=e("t49l"),_=e("6OMU"),p=e("vl9R"),c=e("/cxE"),s=e("QDVR"),l=function(){var ne=function(ae,q){return ne=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ue,X){ue.__proto__=X}||function(ue,X){for(var he in X)X.hasOwnProperty(he)&&(ue[he]=X[he])},ne(ae,q)};return function(ee,ae){ne(ee,ae);function q(){this.constructor=ee}ee.prototype=ae===null?Object.create(ae):(q.prototype=ae.prototype,new q)}}(),d=function(){function ne(){}return ne.prototype.remove=function(){this.parent&&delete this.parent.children[this.id]},ne.findId=function(ee,ae){var q;typeof ee=="string"?q=ae.id+"/"+ee:(q=ae.id+"/"+ee.name,ae.children[q]!==void 0&&(q=ae.id+"/"+ee.name+"_"+ee.range.startLineNumber+"_"+ee.range.startColumn));for(var ue=q,X=0;ae.children[ue]!==void 0;X++)ue=q+"_"+X;return ue},ne.empty=function(ee){for(var ae in ee.children)return!1;return!0},ne}(),m=function(ne){l(ee,ne);function ee(ae,q,ue){var X=ne.call(this)||this;return X.id=ae,X.parent=q,X.symbol=ue,X.children=Object.create(null),X}return ee}(d),E=function(ne){l(ee,ne);function ee(ae,q,ue,X){var he=ne.call(this)||this;return he.id=ae,he.parent=q,he.provider=ue,he.providerIndex=X,he.children=Object.create(null),he}return ee}(d),L=function(){function ne(){this._n=1,this._val=0}return ne.prototype.update=function(ee){return this._val=this._val+(ee-this._val)/this._n,this._n+=1,this},ne}(),A=function(ne){l(ee,ne);function ee(ae){var q=ne.call(this)||this;return q.textModel=ae,q.id="root",q.parent=void 0,q._groups=Object.create(null),q.children=Object.create(null),q.id="root",q.parent=void 0,q}return ee.create=function(ae,q){var ue=this,X=this._keys.for(ae,!0),he=ee._requests.get(X);if(!he){var je=new I.b;he={promiseCnt:0,source:je,promise:ee._create(ae,je.token),model:void 0},ee._requests.set(X,he);var Xe=Date.now();he.promise.then(function(){var me=ue._keys.for(ae,!1),ge=ue._requestDurations.get(me);ge||(ge=new L,ue._requestDurations.set(me,ge)),ge.update(Date.now()-Xe)})}return he.model?Promise.resolve(he.model):(he.promiseCnt+=1,q.onCancellationRequested(function(){--he.promiseCnt===0&&(he.source.cancel(),ee._requests.delete(X))}),new Promise(function(me,ge){he.promise.then(function(_e){he.model=_e,me(_e)},function(_e){ee._requests.delete(X),ge(_e)})}))},ee._create=function(ae,q){var ue=new I.b(q),X=new ee(ae),he=y.m.ordered(ae),je=he.map(function(me,ge){var _e=d.findId("provider_"+ge,X),Re=new E(_e,X,me,ge);return Promise.resolve(me.provideDocumentSymbols(X.textModel,ue.token)).then(function(Ee){for(var ve=0,Q=Ee||[];ve0&&X[X.length-1])&&(me[0]===6||me[0]===2)){ae=0;continue}if(me[0]===3&&(!X||me[1]>X[0]&&me[1]0&&ue.indexOf(Fe)===0){for(var ve=null,Q=null,C=0,F=0;F0)):C++}Q&&Q.setGroupLabel(this.typeToLabel(ve||"",C))}else he.length>0&&he[0].setGroupLabel(z.r(Me.e._symbols_,he.length));return he},ee.prototype.typeToLabel=function(ae,q){switch(ae){case"module":return z.r(Me.e._modules_,q);case"class":return z.r(Me.e._class_,q);case"interface":return z.r(Me.e._interface_,q);case"method":return z.r(Me.e._method_,q);case"function":return z.r(Me.e._function_,q);case"property":return z.r(Me.e._property_,q);case"variable":return z.r(Me.e._variable_,q);case"var":return z.r(Me.e._variable2_,q);case"constructor":return z.r(Me.e._constructor_,q);case"call":return z.r(Me.e._call_,q)}return ae},ee.prototype.sortNormal=function(ae,q,ue){var X=q.getLabel().toLowerCase(),he=ue.getLabel().toLowerCase(),je=X.localeCompare(he);if(je!==0)return je;var Xe=q.getRange(),me=ue.getRange();return Xe.startLineNumber-me.startLineNumber},ee.prototype.sortScoped=function(ae,q,ue){ae=ae.substr(Fe.length);var X=q.getType(),he=ue.getType(),je=X.localeCompare(he);if(je!==0)return je;if(ae){var Xe=q.getLabel().toLowerCase(),me=ue.getLabel().toLowerCase(),ge=Xe.localeCompare(me);if(ge!==0)return ge}var _e=q.getRange(),Re=ue.getRange();return _e.startLineNumber-Re.startLineNumber},ee}(Ce.a);Object(U.f)(Pe)},WqXY:function(Lt,j,e){"use strict";e.d(j,"c",function(){return _}),e.d(j,"d",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"a",function(){return l});var T=e("yEoX"),re=e.n(T),J=e("MNsG"),I=e("3/fG"),H=e("pmY6"),z=e("8HAY"),O=e("EffR"),U=e("746U"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),w=e("ZQ78"),f=e("D3Dy"),v=function(){var d=function(E,L){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var R in k)k.hasOwnProperty(R)&&(A[R]=k[R])},d(E,L)};return function(m,E){d(m,E);function L(){this.constructor=m}m.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),_=function(d){v(m,d);function m(E,L,A){var k=d.call(this)||this;return k.options=A,k._context=E||k,k._action=L,L instanceof z.a&&k._register(L.onDidChange(function(R){if(!k.element)return;k.handleActionChangeEvent(R)})),k}return m.prototype.handleActionChangeEvent=function(E){E.enabled!==void 0&&this.updateEnabled(),E.checked!==void 0&&this.updateChecked(),E.class!==void 0&&this.updateClass(),E.label!==void 0&&(this.updateLabel(),this.updateTooltip()),E.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(m.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new z.b)),this._actionRunner},set:function(L){this._actionRunner=L},enumerable:!0,configurable:!0}),m.prototype.getAction=function(){return this._action},m.prototype.isEnabled=function(){return this._action.enabled},m.prototype.setActionContext=function(E){this._context=E},m.prototype.render=function(E){var L=this,A=this.element=E;this._register(x.b.addTarget(E));var k=this.options&&this.options.draggable;k&&(E.draggable=!0,f.h&&this._register(O.j(E,O.d.DRAG_START,function(R){var $;return($=R.dataTransfer)===null||$===void 0?void 0:$.setData(w.a.TEXT,L._action.label)}))),this._register(O.j(A,x.a.Tap,function(R){return L.onClick(R)})),this._register(O.j(A,O.d.MOUSE_DOWN,function(R){k||O.c.stop(R,!0),L._action.enabled&&R.button===0&&O.f(A,"active")})),this._register(O.j(A,O.d.CLICK,function(R){O.c.stop(R,!0),L.options&&L.options.isMenu?L.onClick(R):J.i(function(){return L.onClick(R)})})),this._register(O.j(A,O.d.DBLCLICK,function(R){O.c.stop(R,!0)})),[O.d.MOUSE_UP,O.d.MOUSE_OUT].forEach(function(R){L._register(O.j(A,R,function($){O.c.stop($),O.P(A,"active")}))})},m.prototype.onClick=function(E){O.c.stop(E,!0);var L;U.l(this._context)?L=E:(L=this._context,U.i(L)&&(L.event=E)),this.actionRunner.run(this._action,L)},m.prototype.focus=function(){this.element&&(this.element.focus(),O.f(this.element,"focused"))},m.prototype.blur=function(){this.element&&(this.element.blur(),O.P(this.element,"focused"))},m.prototype.updateEnabled=function(){},m.prototype.updateLabel=function(){},m.prototype.updateTooltip=function(){},m.prototype.updateClass=function(){},m.prototype.updateChecked=function(){},m.prototype.dispose=function(){this.element&&(O.R(this.element),this.element=void 0),d.prototype.dispose.call(this)},m}(H.a),p=function(d){v(m,d);function m(E){var L=d.call(this,m.ID,E,E?"separator text":"separator")||this;return L.checked=!1,L.enabled=!1,L}return m.ID="vs.actions.separator",m}(z.a),c=function(d){v(m,d);function m(E,L,A){A===void 0&&(A={});var k=d.call(this,E,L,A)||this;return k.options=A,k.options.icon=A.icon!==void 0?A.icon:!1,k.options.label=A.label!==void 0?A.label:!0,k.cssClass="",k}return m.prototype.render=function(E){d.prototype.render.call(this,E),this.element&&(this.label=O.q(this.element,O.a("a.action-label"))),this.label&&(this._action.id===p.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(O.q(this.element,O.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},m.prototype.focus=function(){d.prototype.focus.call(this),this.label&&this.label.focus()},m.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},m.prototype.updateTooltip=function(){var E=null;this.getAction().tooltip?E=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(E=this.getAction().label,this.options.keybinding&&(E=I.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},m.prototype.updateClass=function(){this.cssClass&&this.label&&O.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(O.f(this.label,"codicon"),this.cssClass&&O.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&O.P(this.label,"codicon")},m.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),O.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&O.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),O.f(this.label,"disabled"),O.S(this.label)),this.element&&O.f(this.element,"disabled"))},m.prototype.updateChecked=function(){this.label&&(this.getAction().checked?O.f(this.label,"checked"):O.P(this.label,"checked"))},m}(_),s={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},l=function(d){v(m,d);function m(E,L){L===void 0&&(L=s);var A=d.call(this)||this;A._onDidBlur=A._register(new y.a),A.onDidBlur=A._onDidBlur.event,A._onDidCancel=A._register(new y.a),A.onDidCancel=A._onDidCancel.event,A._onDidRun=A._register(new y.a),A.onDidRun=A._onDidRun.event,A._onDidBeforeRun=A._register(new y.a),A.onDidBeforeRun=A._onDidBeforeRun.event,A.options=L,A._context=L.context,A.options.triggerKeys||(A.options.triggerKeys=s.triggerKeys),A.options.actionRunner?A._actionRunner=A.options.actionRunner:(A._actionRunner=new z.b,A._register(A._actionRunner)),A._register(A._actionRunner.onDidRun(function($){return A._onDidRun.fire($)})),A._register(A._actionRunner.onDidBeforeRun(function($){return A._onDidBeforeRun.fire($)})),A.viewItems=[],A.focusedItem=void 0,A.domNode=document.createElement("div"),A.domNode.className="monaco-action-bar",L.animated!==!1&&O.f(A.domNode,"animated");var k,R;switch(A.options.orientation){case 0:k=15,R=17;break;case 1:k=17,R=15,A.domNode.className+=" reverse";break;case 2:k=16,R=18,A.domNode.className+=" vertical";break;case 3:k=18,R=16,A.domNode.className+=" vertical reverse";break}return A._register(O.j(A.domNode,O.d.KEY_DOWN,function($){var ie=new u.a($),W=!0;ie.equals(k)?A.focusPrevious():ie.equals(R)?A.focusNext():ie.equals(9)?A.cancel():A.isTriggerKeyEvent(ie)?A.options.triggerKeys&&A.options.triggerKeys.keyDown&&A.doTrigger(ie):W=!1,W&&(ie.preventDefault(),ie.stopPropagation())})),A._register(O.j(A.domNode,O.d.KEY_UP,function($){var ie=new u.a($);A.isTriggerKeyEvent(ie)?(A.options.triggerKeys&&!A.options.triggerKeys.keyDown&&A.doTrigger(ie),ie.preventDefault(),ie.stopPropagation()):(ie.equals(2)||ie.equals(1024|2))&&A.updateFocusedItem()})),A.focusTracker=A._register(O.Z(A.domNode)),A._register(A.focusTracker.onDidBlur(function(){(document.activeElement===A.domNode||!O.K(document.activeElement,A.domNode))&&(A._onDidBlur.fire(),A.focusedItem=void 0)})),A._register(A.focusTracker.onDidFocus(function(){return A.updateFocusedItem()})),A.actionsList=document.createElement("ul"),A.actionsList.className="actions-container",A.actionsList.setAttribute("role","toolbar"),A.options.ariaLabel&&A.actionsList.setAttribute("aria-label",A.options.ariaLabel),A.domNode.appendChild(A.actionsList),E.appendChild(A.domNode),A}return m.prototype.isTriggerKeyEvent=function(E){var L=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(A){L=L||E.equals(A)}),L},m.prototype.updateFocusedItem=function(){for(var E=0;E=A.actionsList.children.length?(A.actionsList.appendChild(ie),A.viewItems.push(W)):(A.actionsList.insertBefore(ie,A.actionsList.children[R]),A.viewItems.splice(R,0,W),R++)})},m.prototype.clear=function(){this.viewItems=Object(H.f)(this.viewItems),O.t(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(E){var L=!1,A=void 0;E===void 0?L=!0:typeof E=="number"?A=E:typeof E=="boolean"&&(L=E),L&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(A!==void 0&&(this.focusedItem=A),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,L;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,L;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(E,L){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:L});for(var A=0;A0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){_e=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){_e=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,_e,ve):Q(ge,_e))||ve);return Ee>3&&ve&&Object.defineProperty(ge,_e,ve),ve},Pe=function(me,ge){return function(_e,Re){ge(_e,Re,me)}},ne=O.a,ee=function(me){Fe(ge,me);function ge(_e,Re,Ee,ve){var Q=me.call(this)||this;return Q.editor=_e,Q.renderDisposeables=Q._register(new re.b),Q.visible=!1,Q.announcedLabel=null,Q.allowEditorOverflow=!0,Q.markdownRenderer=Q._register(new v.a(_e,ve,Ee)),Q.model=Q._register(new Ce(_e)),Q.keyVisible=m.Visible.bindTo(Re),Q.keyMultipleSignatures=m.MultipleSignatures.bindTo(Re),Q._register(Q.model.onChangedHints(function(C){C?(Q.show(),Q.render(C)):Q.hide()})),Q}return ge.prototype.createParamaterHintDOMNodes=function(){var _e=this,Re=ne(".editor-widget.parameter-hints-widget"),Ee=O.q(Re,ne(".wrapper"));Ee.tabIndex=-1;var ve=O.q(Ee,ne(".controls")),Q=O.q(ve,ne(".button.codicon.codicon-chevron-up")),C=O.q(ve,ne(".overloads")),F=O.q(ve,ne(".button.codicon.codicon-chevron-down")),se=Object(U.b)(Object(U.a)(Q,"click"));this._register(se(this.previous,this));var oe=Object(U.b)(Object(U.a)(F,"click"));this._register(oe(this.next,this));var be=ne(".body"),De=new u.a(be,{});this._register(De),Ee.appendChild(De.getDomNode());var Se=O.q(be,ne(".signature")),Ve=O.q(be,ne(".docs"));Re.style.userSelect="text",this.domNodes={element:Re,signature:Se,overloads:C,docs:Ve,scrollbar:De},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(it){_e.visible&&_e.editor.layoutContentWidget(_e)}));var Qe=function(){if(!_e.domNodes)return;var pt=_e.editor.getOption(34);_e.domNodes.element.style.fontSize=pt.fontSize+"px"};Qe(),this._register(y.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(it){return it.hasChanged(34)}).on(Qe,null)),this._register(this.editor.onDidLayoutChange(function(it){return _e.updateMaxHeight()})),this.updateMaxHeight()},ge.prototype.show=function(){var _e=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){_e.domNodes&&O.f(_e.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},ge.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&O.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},ge.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},ge.prototype.render=function(_e){if(!this.domNodes)return;var Re=_e.signatures.length>1;O.Y(this.domNodes.element,"multiple",Re),this.keyMultipleSignatures.set(Re),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ee=_e.signatures[_e.activeSignature];if(!Ee)return;var ve=O.q(this.domNodes.signature,ne(".code")),Q=Ee.parameters.length>0,C=this.editor.getOption(34);if(ve.style.fontSize=C.fontSize+"px",ve.style.fontFamily=C.fontFamily,Q)this.renderParameters(ve,Ee,_e.activeParameter);else{var F=O.q(ve,ne("span"));F.textContent=Ee.label}this.renderDisposeables.clear();var se=Ee.parameters[_e.activeParameter];if(se&&se.documentation){var oe=ne("span.documentation");if(typeof se.documentation=="string")oe.textContent=se.documentation;else{var be=this.markdownRenderer.render(se.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),oe.appendChild(be.element)}O.q(this.domNodes.docs,ne("p",{},oe))}if(!(Ee.documentation===void 0))if(typeof Ee.documentation=="string")O.q(this.domNodes.docs,ne("p",{},Ee.documentation));else{var be=this.markdownRenderer.render(Ee.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),O.q(this.domNodes.docs,be.element)}var De=this.hasDocs(Ee,se);if(O.Y(this.domNodes.signature,"has-docs",De),O.Y(this.domNodes.docs,"empty",!De),this.domNodes.overloads.textContent=Object(Te.F)(_e.activeSignature+1,_e.signatures.length.toString().length)+"/"+_e.signatures.length,se){var Se=this.getParameterLabel(Ee,_e.activeParameter);this.announcedLabel!==Se&&(x.a(T.a("hint","{0}, hint",Se)),this.announcedLabel=Se)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},ge.prototype.hasDocs=function(_e,Re){return Re&&typeof Re.documentation=="string"&&Re.documentation.length>0||(Re&&typeof Re.documentation=="object"&&Re.documentation.value.length>0||typeof _e.documentation=="string"&&_e.documentation.length>0)?!0:typeof _e.documentation=="object"&&_e.documentation.value.length>0},ge.prototype.renderParameters=function(_e,Re,Ee){var ve=this.getParameterLabelOffsets(Re,Ee),Q=ve[0],C=ve[1],F=document.createElement("span");F.textContent=Re.label.substring(0,Q);var se=document.createElement("span");se.textContent=Re.label.substring(Q,C),se.className="parameter active";var oe=document.createElement("span");oe.textContent=Re.label.substring(C),O.q(_e,F,se,oe)},ge.prototype.getParameterLabel=function(_e,Re){var Ee=_e.parameters[Re];return typeof Ee.label=="string"?Ee.label:_e.label.substring(Ee.label[0],Ee.label[1])},ge.prototype.getParameterLabelOffsets=function(_e,Re){var Ee=_e.parameters[Re];if(Ee){if(Array.isArray(Ee.label))return Ee.label;var ve=_e.label.lastIndexOf(Ee.label);return ve>=0?[ve,ve+Ee.label.length]:[0,0]}else return[0,0]},ge.prototype.next=function(){this.editor.focus(),this.model.next()},ge.prototype.previous=function(){this.editor.focus(),this.model.previous()},ge.prototype.cancel=function(){this.model.cancel()},ge.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},ge.prototype.getId=function(){return ge.ID},ge.prototype.trigger=function(_e){this.model.trigger(_e,0)},ge.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var _e=Math.max(this.editor.getLayoutInfo().height/4,250),Re=_e+"px";this.domNodes.element.style.maxHeight=Re;var Ee=this.domNodes.element.getElementsByClassName("wrapper");Ee.length&&(Ee[0].style.maxHeight=Re)},ge.ID="editor.widget.parameterHintsWidget",ge=He([Pe(1,H.c),Pe(2,L.a),Pe(3,f.a)],ge),ge}(re.a);Object(k.e)(function(me,ge){var _e=me.getColor(A.B);if(_e){var Re=me.type===k.b?2:1;ge.addRule(".monaco-editor .parameter-hints-widget { border: "+Re+"px solid "+_e+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+_e.transparent(.5)+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+_e.transparent(.5)+"; }")}var Ee=me.getColor(A.A);Ee&&ge.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ee+"; }");var ve=me.getColor(A.ec);ve&&ge.addRule(".monaco-editor .parameter-hints-widget a { color: "+ve+"; }");var Q=me.getColor(A.C);Q&&ge.addRule(".monaco-editor .parameter-hints-widget { color: "+Q+"; }");var C=me.getColor(A.dc);C&&ge.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+C+"; }")});var ae=function(){var me=function(_e,Re){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,ve){Ee.__proto__=ve}||function(Ee,ve){for(var Q in ve)ve.hasOwnProperty(Q)&&(Ee[Q]=ve[Q])},me(_e,Re)};return function(ge,_e){me(ge,_e);function Re(){this.constructor=ge}ge.prototype=_e===null?Object.create(_e):(Re.prototype=_e.prototype,new Re)}}(),q=function(me,ge,_e,Re){var Ee=arguments.length,ve=Ee<3?ge:Re===null?Re=Object.getOwnPropertyDescriptor(ge,_e):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(me,ge,_e,Re);else for(var C=me.length-1;C>=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,_e,ve):Q(ge,_e))||ve);return Ee>3&&ve&&Object.defineProperty(ge,_e,ve),ve},ue=function(me,ge){return function(_e,Re){ge(_e,Re,me)}},X=function(me){ae(ge,me);function ge(_e,Re){var Ee=me.call(this)||this;return Ee.editor=_e,Ee.widget=Ee._register(Re.createInstance(ee,Ee.editor)),Ee}return ge.get=function(_e){return _e.getContribution(ge.ID)},ge.prototype.cancel=function(){this.widget.cancel()},ge.prototype.previous=function(){this.widget.previous()},ge.prototype.next=function(){this.widget.next()},ge.prototype.trigger=function(_e){this.widget.trigger(_e)},ge.ID="editor.controller.parameterHints",ge=q([ue(1,J.a)],ge),ge}(re.a),he=function(me){ae(ge,me);function ge(){return me.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:I.a.hasSignatureHelpProvider,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return ge.prototype.run=function(_e,Re){var Ee=X.get(Re);Ee&&Ee.trigger({triggerKind:c.y.Invoke})},ge}(z.b);Object(z.h)(X.ID,X),Object(z.f)(he);var je=100+75,Xe=z.c.bindToContribution(X.get);Object(z.g)(new Xe({id:"closeParameterHints",precondition:m.Visible,handler:function(ge){return ge.cancel()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Xe({id:"showPrevParameterHint",precondition:H.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.previous()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(z.g)(new Xe({id:"showNextParameterHint",precondition:H.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.next()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(Lt,j,e){"use strict";e.d(j,"i",function(){return I}),e.d(j,"f",function(){return H}),e.d(j,"j",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"l",function(){return U}),e.d(j,"g",function(){return x}),e.d(j,"h",function(){return u}),e.d(j,"e",function(){return y}),e.d(j,"c",function(){return w}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"b",function(){return _});var T=e("JQT/"),re=e("/cxE"),J=e("pmY6");function I(p){return p&&typeof p.then=="function"}function H(p){var c=new T.b,s=p(c.token),l=new Promise(function(d,m){c.token.onCancellationRequested(function(){m(re.a())}),Promise.resolve(s).then(function(E){c.dispose(),d(E)},function(E){c.dispose(),m(E)})});return new(function(){function d(){}return d.prototype.cancel=function(){c.cancel()},d.prototype.then=function(m,E){return l.then(m,E)},d.prototype.catch=function(m){return this.then(void 0,m)},d.prototype.finally=function(m){return l.finally(m)},d}())}function z(p,c,s){return Promise.race([p,new Promise(function(l){return c.onCancellationRequested(function(){return l(s)})})])}var O=function(){function p(c){this.defaultDelay=c,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return p.prototype.trigger=function(c,s){var l=this;return s===void 0&&(s=this.defaultDelay),this.task=c,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(d,m){l.doResolve=d,l.doReject=m}).then(function(){if(l.completionPromise=null,l.doResolve=null,l.task){var d=l.task;return l.task=null,d()}return})),this.timeout=setTimeout(function(){l.timeout=null,l.doResolve&&l.doResolve(null)},s),this.completionPromise},p.prototype.isTriggered=function(){return this.timeout!==null},p.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},p.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.dispose=function(){this.cancelTimeout()},p}();function U(p,c){return c?new Promise(function(s,l){var d=setTimeout(s,p);c.onCancellationRequested(function(){clearTimeout(d),l(re.a())})}):H(function(s){return U(p,s)})}function x(p,c){c===void 0&&(c=0);var s=setTimeout(p,c);return Object(J.h)(function(){return clearTimeout(s)})}function u(p,c,s){c===void 0&&(c=function(L){return!!L}),s===void 0&&(s=null);var l=0,d=p.length,m=function E(){if(l>=d)return Promise.resolve(s);var L=p[l++],A=Promise.resolve(L());return A.then(function(k){return c(k)?Promise.resolve(k):E()})};return m()}var y=function(){function p(c,s){this._token=-1,typeof c=="function"&&typeof s=="number"&&this.setIfNotSet(c,s)}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){var l=this;this.cancel(),this._token=setTimeout(function(){l._token=-1,c()},s)},p.prototype.setIfNotSet=function(c,s){var l=this;if(this._token!==-1)return;this._token=setTimeout(function(){l._token=-1,c()},s)},p}(),w=function(){function p(){this._token=-1}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){this.cancel(),this._token=setInterval(function(){c()},s)},p}(),f=function(){function p(c,s){this.timeoutToken=-1,this.runner=c,this.timeout=s,this.timeoutHandler=this.onTimeout.bind(this)}return p.prototype.dispose=function(){this.cancel(),this.runner=null},p.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},p.prototype.schedule=function(c){c===void 0&&(c=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,c)},p.prototype.isScheduled=function(){return this.timeoutToken!==-1},p.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},p.prototype.doRun=function(){this.runner&&this.runner()},p}(),v;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var p=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});v=function(s){var l=setTimeout(function(){return s(p)}),d=!1;return{dispose:function(){if(d)return;d=!0,clearTimeout(l)}}}}else v=function(s,l){var d=requestIdleCallback(s,typeof l=="number"?{timeout:l}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(d)}}}})();var _=function(){function p(c){var s=this;this._didRun=!1,this._executor=function(){try{s._value=c()}catch(l){s._error=l}finally{s._didRun=!0}},this._handle=v(function(){return s._executor()})}return p.prototype.dispose=function(){this._handle.dispose()},p.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},p}()},XNtB:function(Lt,j,e){},XQgg:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(315).then(e.bind(null,"/0xJ"))}})},XSiN:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return z}),e.d(j,"c",function(){return O});var T=e("D3Dy"),re=e("51f4"),J=e("MNsG"),I=function(){var U=function(u,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},U(u,y)};return function(x,u){U(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),H=function(){function U(x){this.timestamp=Date.now(),this.browserEvent=x,this.leftButton=x.button===0,this.middleButton=x.button===1,this.rightButton=x.button===2,this.buttons=x.buttons,this.target=x.target,this.detail=x.detail||1,x.type==="dblclick"&&(this.detail=2),this.ctrlKey=x.ctrlKey,this.shiftKey=x.shiftKey,this.altKey=x.altKey,this.metaKey=x.metaKey,typeof x.pageX=="number"?(this.posx=x.pageX,this.posy=x.pageY):(this.posx=x.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=x.clientY+document.body.scrollTop+document.documentElement.scrollTop);var u=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,x.view);this.posx-=u.left,this.posy-=u.top}return U.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},U.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},U}(),z=function(U){I(x,U);function x(u){var y=U.call(this,u)||this;return y.dataTransfer=u.dataTransfer,y}return x}(H),O=function(){function U(x,u,y){if(u===void 0&&(u=0),y===void 0&&(y=0),this.browserEvent=x||null,this.target=x?x.target||x.targetNode||x.srcElement:null,this.deltaY=y,this.deltaX=u,x){var w=x,f=x;if(typeof w.wheelDeltaY!="undefined")this.deltaY=w.wheelDeltaY/120;else if(typeof f.VERTICAL_AXIS!="undefined"&&f.axis===f.VERTICAL_AXIS)this.deltaY=-f.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaY=-x.deltaY:this.deltaY=-x.deltaY/40}if(typeof w.wheelDeltaX!="undefined")T.k&&J.h?this.deltaX=-(w.wheelDeltaX/120):this.deltaX=w.wheelDeltaX/120;else if(typeof f.HORIZONTAL_AXIS!="undefined"&&f.axis===f.HORIZONTAL_AXIS)this.deltaX=-x.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaX=-x.deltaX:this.deltaX=-x.deltaX/40}this.deltaY===0&&this.deltaX===0&&x.wheelDelta&&(this.deltaY=x.wheelDelta/120)}}return U.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},U.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},U}()},XXBq:function(Lt,j,e){},XXUj:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("telemetryService")},XtJs:function(Lt,j,e){"use strict";e.r(j),e.d(j,"getOccurrencesAtPosition",function(){return R});var T=e("3/fG"),re=e("6OMU"),J=e("X+cX"),I=e("JQT/"),H=e("/cxE"),z=e("pmY6"),O=e("sswD"),U=e("aokT"),x=e("wQH0"),u=e("M1Kb"),y=e("tX9W"),w=e("twdY"),f=e("T8No"),v=e("MD5Z"),_=e("t9D7"),p=function(){var Pe=function(ee,ae){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ue){q.__proto__=ue}||function(q,ue){for(var X in ue)ue.hasOwnProperty(X)&&(q[X]=ue[X])},Pe(ee,ae)};return function(ne,ee){Pe(ne,ee);function ae(){this.constructor=ne}ne.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),c=function(Pe,ne,ee,ae){var q=arguments.length,ue=q<3?ne:ae===null?ae=Object.getOwnPropertyDescriptor(ne,ee):ae,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Pe,ne,ee,ae);else for(var he=Pe.length-1;he>=0;he--)(X=Pe[he])&&(ue=(q<3?X(ue):q>3?X(ne,ee,ue):X(ne,ee))||ue);return q>3&&ue&&Object.defineProperty(ne,ee,ue),ue},s=function(Pe,ne){return function(ee,ae){ne(ee,ae,Pe)}},l=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},T.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),d=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},T.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),m=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),E=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),L=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},T.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),A=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},T.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),k=new f.d("hasWordHighlights",!1);function R(Pe,ne,ee){var ae=w.i.ordered(Pe);return Object(J.h)(ae.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(Pe,ne,ee)).then(void 0,H.f)}}),re.q)}var $=function(){function Pe(ne,ee,ae){var q=this;this._wordRange=this._getCurrentWordRange(ne,ee),this.result=Object(J.f)(function(ue){return q._compute(ne,ee,ae,ue)})}return Pe.prototype._getCurrentWordRange=function(ne,ee){var ae=ne.getWordAtPosition(ee.getPosition());return ae?new U.a(ee.startLineNumber,ae.startColumn,ee.startLineNumber,ae.endColumn):null},Pe.prototype.isValid=function(ne,ee,ae){for(var q=ee.startLineNumber,ue=ee.startColumn,X=ee.endColumn,he=this._getCurrentWordRange(ne,ee),je=Boolean(this._wordRange&&this._wordRange.equalsRange(he)),Xe=0,me=ae.length;!je&&Xe=X&&(je=!0))}return je},Pe.prototype.cancel=function(){this.result.cancel()},Pe}(),ie=function(Pe){p(ne,Pe);function ne(){return Pe!==null&&Pe.apply(this,arguments)||this}return ne.prototype._compute=function(ee,ae,q,ue){return R(ee,ae.getPosition(),ue).then(function(X){return X||[]})},ne}($),W=function(Pe){p(ne,Pe);function ne(ee,ae,q){var ue=Pe.call(this,ee,ae,q)||this;return ue._selectionIsEmpty=ae.isEmpty(),ue}return ne.prototype._compute=function(ee,ae,q,ue){return Object(J.l)(250,ue).then(function(){if(!ae.isEmpty())return[];var X=ee.getWordAtPosition(ae.getPosition());if(!X)return[];var he=ee.findMatches(X.word,!0,!1,!0,q,!1);return he.map(function(je){return{range:je.range,kind:w.h.Text}})})},ne.prototype.isValid=function(ee,ae,q){var ue=ae.isEmpty();return this._selectionIsEmpty!==ue?!1:Pe.prototype.isValid.call(this,ee,ae,q)},ne}($);function B(Pe,ne,ee){return w.i.has(Pe)?new ie(Pe,ne,ee):new W(Pe,ne,ee)}Object(O.k)("_executeDocumentHighlights",function(Pe,ne){return R(Pe,ne,I.a.None)});var le=function(){function Pe(ne,ee){var ae=this;this.toUnhook=new z.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=ne,this._hasWordHighlights=k.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(ne.onDidChangeCursorPosition(function(q){if(ae._ignorePositionChangeEvent)return;if(!ae.occurrencesHighlight)return;ae._onPositionChanged(q)})),this.toUnhook.add(ne.onDidChangeModelContent(function(q){ae._stopAll()})),this.toUnhook.add(ne.onDidChangeConfiguration(function(q){var ue=ae.editor.getOption(61);ae.occurrencesHighlight!==ue&&(ae.occurrencesHighlight=ue,ae._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return Pe.prototype.hasDecorations=function(){return this._decorationIds.length>0},Pe.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},Pe.prototype._getSortedHighlights=function(){var ne=this;return re.d(this._decorationIds.map(function(ee){return ne.model.getDecorationRange(ee)}).sort(U.a.compareRangesUsingStarts))},Pe.prototype.moveNext=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae+1)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype.moveBack=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae-1+ee.length)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},Pe.prototype._stopAll=function(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},Pe.prototype._onPositionChanged=function(ne){if(!this.occurrencesHighlight){this._stopAll();return}if(ne.reason!==3){this._stopAll();return}this._run()},Pe.prototype._run=function(){var ne=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ae=ee.startLineNumber,q=ee.startColumn,ue=ee.endColumn,X=this.model.getWordAtPosition({lineNumber:ae,column:q});if(!X||X.startColumn>q||X.endColumn=ae?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){ne.renderDecorations()},ae-ee)},Pe.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var ne=[],ee=0,ae=this.workerRequestValue.length;ee0&&w[w.length-1])&&(p[0]===6||p[0]===2)){x=0;continue}if(p[0]===3&&(!w||p[1]>w[0]&&p[1]=O._maxRounds){U();break}if(!y){U();break}var _=u.findNextBracket(y);if(!_){U();break}var p=Date.now()-v;if(p>O._maxDuration){setTimeout(function(){return O._bracketsRightYield(U,x+1,u,y,w)});break}var c=_.close[0];if(_.isOpen){var s=f.has(c)?f.get(c):0;f.set(c,s+1)}else{var s=f.has(c)?f.get(c):0;if(s-=1,f.set(c,Math.max(0,s)),s<0){var l=w.get(c);l||(l=new J.a,w.set(c,l)),l.push(_.range)}}y=_.range.getEndPosition()}},O._bracketsLeftYield=function(U,x,u,y,w,f){for(var v=new Map,_=Date.now();;){if(x>=O._maxRounds&&w.size===0){U();break}if(!y){U();break}var p=u.findPrevBracket(y);if(!p){U();break}var c=Date.now()-_;if(c>O._maxDuration){setTimeout(function(){return O._bracketsLeftYield(U,x+1,u,y,w,f)});break}var s=p.close[0];if(p.isOpen){var l=v.has(s)?v.get(s):0;if(l-=1,v.set(s,Math.max(0,l)),l<0){var d=w.get(s);if(d){var m=d.shift();d.size===0&&w.delete(s);var E=re.a.fromPositions(p.range.getEndPosition(),m.getStartPosition()),L=re.a.fromPositions(p.range.getStartPosition(),m.getEndPosition());f.push({range:E}),f.push({range:L}),O._addBracketLeading(u,L,f)}}}else{var l=v.has(s)?v.get(s):0;v.set(s,l+1)}y=p.range.getStartPosition()}},O._addBracketLeading=function(U,x,u){if(x.startLineNumber===x.endLineNumber)return;var y=x.startLineNumber,w=U.getLineFirstNonWhitespaceColumn(y);w!==0&&w!==x.startColumn&&(u.push({range:re.a.fromPositions(new T.a(y,w),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(y,1),x.getEndPosition())}));var f=y-1;if(f>0){var v=U.getLineFirstNonWhitespaceColumn(f);v===x.startColumn&&v!==U.getLineLastNonWhitespaceColumn(f)&&(u.push({range:re.a.fromPositions(new T.a(f,v),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(f,1),x.getEndPosition())}))}},O._maxDuration=30,O._maxRounds=2,O}()},ZCR3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=0;function re(){var I="$memoize"+T++,H=void 0,z=function(U,x,u){var y=null,w=null;if(typeof u.value=="function"?(y="value",w=u.value,w.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof u.get=="function"&&(y="get",w=u.get),!w)throw new Error("not supported");var f=I+":"+x;u[y]=function(){for(var v=[],_=0;_z||I===z&&H>O?(this.startLineNumber=z,this.startColumn=O,this.endLineNumber=I,this.endColumn=H):(this.startLineNumber=I,this.startColumn=H,this.endLineNumber=z,this.endColumn=O)}return J.prototype.isEmpty=function(){return J.isEmpty(this)},J.isEmpty=function(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn},J.prototype.containsPosition=function(I){return J.containsPosition(this,I)},J.containsPosition=function(I,H){return H.lineNumberI.endLineNumber||H.lineNumber===I.startLineNumber&&H.columnI.endColumn)},J.prototype.containsRange=function(I){return J.containsRange(this,I)},J.containsRange=function(I,H){return H.startLineNumberI.endLineNumber||H.endLineNumber>I.endLineNumber||H.startLineNumber===I.startLineNumber&&H.startColumnI.endColumn)},J.prototype.strictContainsRange=function(I){return J.strictContainsRange(this,I)},J.strictContainsRange=function(I,H){return H.startLineNumberI.endLineNumber||H.endLineNumber>I.endLineNumber||H.startLineNumber===I.startLineNumber&&H.startColumn<=I.startColumn)?!1:!(H.endLineNumber===I.endLineNumber&&H.endColumn>=I.endColumn)},J.prototype.plusRange=function(I){return J.plusRange(this,I)},J.plusRange=function(I,H){var z,O,U,x;return H.startLineNumberI.endLineNumber?(U=H.endLineNumber,x=H.endColumn):H.endLineNumber===I.endLineNumber?(U=H.endLineNumber,x=Math.max(H.endColumn,I.endColumn)):(U=I.endLineNumber,x=I.endColumn),new J(z,O,U,x)},J.prototype.intersectRanges=function(I){return J.intersectRanges(this,I)},J.intersectRanges=function(I,H){var z=I.startLineNumber,O=I.startColumn,U=I.endLineNumber,x=I.endColumn,u=H.startLineNumber,y=H.startColumn,w=H.endLineNumber,f=H.endColumn;return zw?(U=w,x=f):U===w&&(x=Math.min(x,f)),z>U||z===U&&O>x?null:new J(z,O,U,x)},J.prototype.equalsRange=function(I){return J.equalsRange(this,I)},J.equalsRange=function(I,H){return!!I&&!!H&&I.startLineNumber===H.startLineNumber&&I.startColumn===H.startColumn&&I.endLineNumber===H.endLineNumber&&I.endColumn===H.endColumn},J.prototype.getEndPosition=function(){return new T.a(this.endLineNumber,this.endColumn)},J.prototype.getStartPosition=function(){return new T.a(this.startLineNumber,this.startColumn)},J.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},J.prototype.setEndPosition=function(I,H){return new J(this.startLineNumber,this.startColumn,I,H)},J.prototype.setStartPosition=function(I,H){return new J(I,H,this.endLineNumber,this.endColumn)},J.prototype.collapseToStart=function(){return J.collapseToStart(this)},J.collapseToStart=function(I){return new J(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)},J.fromPositions=function(I,H){return H===void 0&&(H=I),new J(I.lineNumber,I.column,H.lineNumber,H.column)},J.lift=function(I){return I?new J(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null},J.isIRange=function(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"},J.areIntersectingOrTouching=function(I,H){return I.endLineNumberI.startLineNumber},J}()},bY76:function(Lt,j,e){"use strict";e.d(j,"a",function(){return f});var T=e("MNsG"),re=function(){var A=function(R,$){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,W){ie.__proto__=W}||function(ie,W){for(var B in W)W.hasOwnProperty(B)&&(ie[B]=W[B])},A(R,$)};return function(k,R){A(k,R);function $(){this.constructor=k}k.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),J,I=/^\w[\w\d+.-]*$/,H=/^\//,z=/^\/\//;function O(A,k){if(!A.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+A.authority+'", path: "'+A.path+'", query: "'+A.query+'", fragment: "'+A.fragment+'"}');if(A.scheme&&!I.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!H.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(z.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function U(A,k){return!A&&!k?"file":A}function x(A,k){switch(A){case"https":case"http":case"file":k?k[0]!==y&&(k=y+k):k=y;break}return k}var u="",y="/",w=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function A(k,R,$,ie,W,B){B===void 0&&(B=!1),typeof k=="object"?(this.scheme=k.scheme||u,this.authority=k.authority||u,this.path=k.path||u,this.query=k.query||u,this.fragment=k.fragment||u):(this.scheme=U(k,B),this.authority=R||u,this.path=x(this.scheme,$||u),this.query=ie||u,this.fragment=W||u,O(this,B))}return A.isUri=function(k){return k instanceof A?!0:k?typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="function"&&typeof k.with=="function"&&typeof k.toString=="function":!1},Object.defineProperty(A.prototype,"fsPath",{get:function(){return l(this)},enumerable:!0,configurable:!0}),A.prototype.with=function(k){if(!k)return this;var R=k.scheme,$=k.authority,ie=k.path,W=k.query,B=k.fragment;return R===void 0?R=this.scheme:R===null&&(R=u),$===void 0?$=this.authority:$===null&&($=u),ie===void 0?ie=this.path:ie===null&&(ie=u),W===void 0?W=this.query:W===null&&(W=u),B===void 0?B=this.fragment:B===null&&(B=u),R===this.scheme&&$===this.authority&&ie===this.path&&W===this.query&&B===this.fragment?this:new _(R,$,ie,W,B)},A.parse=function(k,R){R===void 0&&(R=!1);var $=w.exec(k);return $?new _($[2]||u,L($[4]||u),L($[5]||u),L($[7]||u),L($[9]||u),R):new _(u,u,u,u,u)},A.file=function(k){var R=u;if(T.h&&(k=k.replace(/\\/g,y)),k[0]===y&&k[1]===y){var $=k.indexOf(y,2);$===-1?(R=k.substring(2),k=y):(R=k.substring(2,$),k=k.substring($)||y)}return new _("file",R,k,u,u)},A.from=function(k){return new _(k.scheme,k.authority,k.path,k.query,k.fragment)},A.prototype.toString=function(k){return k===void 0&&(k=!1),d(this,k)},A.prototype.toJSON=function(){return this},A.revive=function(k){if(k){if(k instanceof A)return k;var R=new _(k);return R._formatted=k.external,R._fsPath=k._sep===v?k.fsPath:null,R}else return k},A}(),v=T.h?1:void 0,_=function(A){re(k,A);function k(){var R=A!==null&&A.apply(this,arguments)||this;return R._formatted=null,R._fsPath=null,R}return Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=l(this)),this._fsPath},enumerable:!0,configurable:!0}),k.prototype.toString=function(R){return R===void 0&&(R=!1),R?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted)},k.prototype.toJSON=function(){var R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=v),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R},k}(f),p=(J={},J[58]="%3A",J[47]="%2F",J[63]="%3F",J[35]="%23",J[91]="%5B",J[93]="%5D",J[64]="%40",J[33]="%21",J[36]="%24",J[38]="%26",J[39]="%27",J[40]="%28",J[41]="%29",J[42]="%2A",J[43]="%2B",J[44]="%2C",J[59]="%3B",J[61]="%3D",J[32]="%20",J);function c(A,k){for(var R=void 0,$=-1,ie=0;ie=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===45||W===46||W===95||W===126||k&&W===47)$!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R!==void 0&&(R+=A.charAt(ie));else{R===void 0&&(R=A.substr(0,ie));var B=p[W];B!==void 0?($!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R+=B):$===-1&&($=ie)}}return $!==-1&&(R+=encodeURIComponent(A.substring($))),R!==void 0?R:A}function s(A){for(var k=void 0,R=0;R1&&A.scheme==="file"?k="//"+A.authority+A.path:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?k=A.path[1].toLowerCase()+A.path.substr(2):k=A.path,T.h&&(k=k.replace(/\//g,"\\")),k}function d(A,k){var R=k?s:c,$="",ie=A.scheme,W=A.authority,B=A.path,le=A.query,Ce=A.fragment;if(ie&&($+=ie,$+=":"),(W||ie==="file")&&($+=y,$+=y),W){var Me=W.indexOf("@");if(Me!==-1){var Te=W.substr(0,Me);W=W.substr(Me+1),Me=Te.indexOf(":"),Me===-1?$+=R(Te,!1):($+=R(Te.substr(0,Me),!1),$+=":",$+=R(Te.substr(Me+1),!1)),$+="@"}W=W.toLowerCase(),Me=W.indexOf(":"),Me===-1?$+=R(W,!1):($+=R(W.substr(0,Me),!1),$+=W.substr(Me))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){var Fe=B.charCodeAt(1);Fe>=65&&Fe<=90&&(B="/"+String.fromCharCode(Fe+32)+":"+B.substr(3))}else if(B.length>=2&&B.charCodeAt(1)===58){var Fe=B.charCodeAt(0);Fe>=65&&Fe<=90&&(B=String.fromCharCode(Fe+32)+":"+B.substr(2))}$+=R(B,!0)}return le&&($+="?",$+=R(le,!1)),Ce&&($+="#",$+=k?Ce:c(Ce,!1)),$}function m(A){try{return decodeURIComponent(A)}catch(k){return A.length>3?A.substr(0,3)+m(A.substr(3)):A}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(A){return A.match(E)?A.replace(E,function(k){return m(k)}):A}},ba9Q:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("LCkn"),I=e("aokT"),H=e("wQH0"),z=e("+Fos"),O=function(){var x=function(y,w){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var _ in v)v.hasOwnProperty(_)&&(f[_]=v[_])},x(y,w)};return function(u,y){x(u,y);function w(){this.constructor=u}u.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),U=function(x){O(u,x);function u(){return x.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:H.a.writable,kbOpts:{kbExpr:H.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return u.prototype.run=function(y,w){if(!w.hasModel())return;for(var f=w.getModel(),v=[],_=w.getSelections(),p=0,c=_;p0&&(w.pushUndoStop(),w.executeCommands(this.id,v),w.pushUndoStop())},u}(re.b);Object(re.f)(U)},baJR:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"c",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"d",function(){return x}),e.d(j,"e",function(){return y});var T=e("N0LK"),re=e("erNZ"),J=e("dBaI"),I=function(){function l(d,m){this.endIndex=d,this.type=m}return l}(),H=function(){function l(d,m){this.startOffset=d,this.endOffset=m}return l.prototype.equals=function(d){return this.startOffset===d.startOffset&&this.endOffset===d.endOffset},l}(),z=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te,Fe,He,Pe){this.useMonospaceOptimizations=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.continuesWithWrappedLine=L,this.isBasicASCII=A,this.containsRTL=k,this.fauxIndentLength=R,this.lineTokens=$,this.lineDecorations=ie,this.tabSize=W,this.startVisibleColumn=B,this.spaceWidth=le,this.middotWidth=Ce,this.stopRenderingLineAfter=Me,this.renderWhitespace=Te==="all"?3:Te==="boundary"?1:Te==="selection"?2:0,this.renderControlCharacters=Fe,this.fontLigatures=He,this.selectionsOnLine=Pe&&Pe.sort(function(ne,ee){return ne.startOffset>>16},l.getCharIndex=function(d){return(d&65535)>>>0},l.prototype.setPartData=function(d,m,E,L){var A=(m<<16|E<<0)>>>0;this._data[d]=A,this._absoluteOffsets[d]=L+E},l.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},l.prototype.charOffsetToPartData=function(d){return this.length===0?0:d<0?this._data[0]:d>=this.length?this._data[this.length-1]:this._data[d]},l.prototype.partDataToCharOffset=function(d,m,E){if(this.length===0)return 0;for(var L=(d<<16|E<<0)>>>0,A=0,k=this.length-1;A+1>>1,$=this._data[R];if($===L)return R;$>L?k=R:A=R}if(A===k)return A;var ie=this._data[A],W=this._data[k];if(ie===L)return A;if(W===L)return k;var B=l.getPartIndex(ie),le=l.getCharIndex(ie),Ce=l.getPartIndex(W),Me;B!==Ce?Me=m:Me=l.getCharIndex(W);var Te=E-le,Fe=Me-E;return Te<=Fe?A:k},l}(),U=function(){function l(d,m,E){this.characterMapping=d,this.containsRTL=m,this.containsForeignElements=E}return l}();function x(l,d){if(l.lineContent.length===0){var m=0,E="\xA0";if(l.lineDecorations.length>0){for(var L=[],A=[],k=0,R=l.lineDecorations.length;k0?'':"",W=A.length>0?'':"";E=""+ie+W+""}}return d.appendASCIIString(E),new U(new O(0,0),!1,m)}return s(f(l),d)}var u=function(){function l(d,m,E,L){this.characterMapping=d,this.html=m,this.containsRTL=E,this.containsForeignElements=L}return l}();function y(l){var d=Object(re.a)(1e4),m=x(l,d);return new u(m.characterMapping,d.build(),m.containsRTL,m.containsForeignElements)}var w=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te){this.fontIsMonospace=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.len=L,this.isOverflowing=A,this.parts=k,this.containsForeignElements=R,this.fauxIndentLength=$,this.tabSize=ie,this.startVisibleColumn=W,this.containsRTL=B,this.spaceWidth=le,this.middotWidth=Ce,this.renderWhitespace=Me,this.renderControlCharacters=Te}return l}();function f(l){var d=l.useMonospaceOptimizations,m=l.lineContent,E,L;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter0){for(var R=0,$=l.lineDecorations.length;R<$;R++){var ie=l.lineDecorations[R];ie.type===3||ie.type===1?k|=1:ie.type===2&&(k|=2)}A=c(m,L,A,l.lineDecorations)}return l.containsRTL||(A=_(m,A,!l.isBasicASCII||l.fontLigatures)),new w(d,l.canUseHalfwidthRightwardsArrow,m,L,E,A,k,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.middotWidth,l.renderWhitespace,l.renderControlCharacters)}function v(l,d,m){var E=[],L=0;d>0&&(E[L++]=new I(d,""));for(var A=0,k=l.getCount();A=m){E[L++]=new I(m,$);break}E[L++]=new I(R,$)}return E}function _(l,d,m){var E=0,L=[],A=0;if(m)for(var k=0,R=d.length;k=50&&(L[A++]=new I(B+1,W),le=B+1,B=-1);le!==ie&&(L[A++]=new I(ie,W))}else L[A++]=$;E=ie}else for(var k=0,R=d.length;k50){for(var W=$.type,Te=Math.ceil(Me/50),Ce=1;Ce=ee.endOffset&&(ne++,ee=$&&$[ne]);var X=void 0;if(qHe)X=!0;else if(ue===9)X=!0;else if(ue===32)if(ie)if(Pe)X=!0;else{var he=q+1q),Pe?(!X||!R&&ae>=A)&&(W[B++]=new I(q,"vs-whitespace"),ae=ae%A):(q===Me||X&&q>L)&&(W[B++]=new I(q,Ce),ae=ae%A),ue===9?ae=A:T.y(ue)?ae+=2:ae++,Pe=X,q===Me&&(le++,le0?l.charCodeAt(d-1):0,me=d>1?l.charCodeAt(d-2):0,ge=Xe===32&&me!==32&&me!==9;ge||(je=!0)}else je=!0;return W[B++]=new I(d,je?"vs-whitespace":Ce),W}function c(l,d,m,E){E.sort(J.a.compare);for(var L=J.b.normalize(l,E),A=L.length,k=0,R=[],$=0,ie=0,W=0,B=m.length;Wie&&(ie=Te.startOffset,R[$++]=new I(ie,Me)),Te.endOffset+1<=Ce)ie=Te.endOffset+1,R[$++]=new I(ie,Me+" "+Te.className),k++;else{ie=Ce,R[$++]=new I(ie,Me+" "+Te.className);break}}Ce>ie&&(ie=Ce,R[$++]=new I(ie,Me))}var Fe=m[m.length-1].endIndex;if(kCe?11825:183,Pe=new O(k+1,$.length),ne=0,ee=B,ae=0,q=0,ue=0;d.appendASCIIString("");for(var X=0,he=$.length;X=0;if(ae=0,d.appendASCIIString('1?d.write1(8594):d.write1(65515);for(var F=2;F<=Q;F++)d.write1(160)}else Q=1,d.write1(He);ae+=Q,ne>=ie&&(ee+=Q)}q=_e}else{var _e=0;for(le&&d.appendASCIIString(' dir="ltr"'),d.appendASCII(62);ne=ie&&(ee+=Q)}q=_e}d.appendASCIIString("")}return Pe.setPartData(k,$.length-1,ae,ue),R&&d.appendASCIIString(""),d.appendASCIIString(""),new U(Pe,le,L)}},bexQ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("keybindingService")},bfR1:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("Yr1X"),I=function(){var U=function(u,y){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,f){w.__proto__=f}||function(w,f){for(var v in f)f.hasOwnProperty(v)&&(w[v]=f[v])},U(u,y)};return function(x,u){U(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),H=function(U){I(x,U);function x(){return U.call(this,{id:"editor.action.fontZoomIn",label:T.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()+1)},x}(re.b),z=function(U){I(x,U);function x(){return U.call(this,{id:"editor.action.fontZoomOut",label:T.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()-1)},x}(re.b),O=function(U){I(x,U);function x(){return U.call(this,{id:"editor.action.fontZoomReset",label:T.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(0)},x}(re.b);Object(re.f)(H),Object(re.f)(z),Object(re.f)(O)},bk7F:function(Lt,j,e){"use strict";e.r(j),e.d(j,"BracketMatchingController",function(){return E});var T=e("8ATB"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),H=e("pmY6"),z=e("sswD"),O=e("cGHE"),U=e("aokT"),x=e("gCVg"),u=e("wQH0"),y=e("M1Kb"),w=e("tX9W"),f=e("kYye"),v=e("MD5Z"),_=e("t9D7"),p=e("fjLI"),c=function(){var L=function(k,R){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},L(k,R)};return function(A,k){L(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.prototype,new R)}}(),s=Object(v.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},J.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),l=function(L){c(A,L);function A(){return L.call(this,{id:"editor.action.jumpToBracket",label:J.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return A.prototype.run=function(k,R){var $=E.get(R);if(!$)return;$.jumpToBracket()},A}(z.b),d=function(L){c(A,L);function A(){return L.call(this,{id:"editor.action.selectToBracket",label:J.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return A.prototype.run=function(k,R,$){var ie=E.get(R);if(!ie)return;var W=!0;$&&$.selectBrackets===!1&&(W=!1),ie.selectToBracket(W)},A}(z.b),m=function(){function L(A,k,R){this.position=A,this.brackets=k,this.options=R}return L}(),E=function(L){c(A,L);function A(k){var R=L.call(this)||this;return R._editor=k,R._lastBracketsData=[],R._lastVersionId=0,R._decorations=[],R._updateBracketsSoon=R._register(new I.d(function(){return R._updateBrackets()},50)),R._matchBrackets=R._editor.getOption(53),R._updateBracketsSoon.schedule(),R._register(k.onDidChangeCursorPosition(function($){if(R._matchBrackets==="never")return;R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelContent(function($){R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModel(function($){R._lastBracketsData=[],R._decorations=[],R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelLanguageConfiguration(function($){R._lastBracketsData=[],R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeConfiguration(function($){$.hasChanged(53)&&(R._matchBrackets=R._editor.getOption(53),R._decorations=R._editor.deltaDecorations(R._decorations,[]),R._lastBracketsData=[],R._lastVersionId=0,R._updateBracketsSoon.schedule())})),R}return A.get=function(k){return k.getContribution(A.ID)},A.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var k=this._editor.getModel(),R=this._editor.getSelections().map(function($){var ie=$.getStartPosition(),W=k.matchBracket(ie),B=null;if(W)W[0].containsPosition(ie)?B=W[1].getStartPosition():W[1].containsPosition(ie)&&(B=W[0].getStartPosition());else{var le=k.findEnclosingBrackets(ie);if(le)B=le[0].getStartPosition();else{var Ce=k.findNextBracket(ie);Ce&&Ce.range&&(B=Ce.range.getStartPosition())}}return B?new x.a(B.lineNumber,B.column,B.lineNumber,B.column):new x.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column)});this._editor.setSelections(R),this._editor.revealRange(R[0])},A.prototype.selectToBracket=function(k){if(!this._editor.hasModel())return;var R=this._editor.getModel(),$=[];this._editor.getSelections().forEach(function(ie){var W=ie.getStartPosition(),B=R.matchBracket(W);if(!B&&(B=R.findEnclosingBrackets(W),!B)){var le=R.findNextBracket(W);le&&le.range&&(B=R.matchBracket(le.range.getStartPosition()))}var Ce=null,Me=null;if(B){B.sort(U.a.compareRangesUsingStarts);var Te=B[0],Fe=B[1];Ce=k?Te.getStartPosition():Te.getEndPosition(),Me=k?Fe.getEndPosition():Fe.getStartPosition()}Ce&&Me&&$.push(new x.a(Ce.lineNumber,Ce.column,Me.lineNumber,Me.column))}),$.length>0&&(this._editor.setSelections($),this._editor.revealRange($[0]))},A.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var k=[],R=0,$=0,ie=this._lastBracketsData;$100){this._lastBracketsData=[],this._lastVersionId=0;return}var R=this._editor.getModel(),$=R.getVersionId(),ie=[];this._lastVersionId===$&&(ie=this._lastBracketsData);for(var W=[],B=0,le=0,Ce=k.length;le1&&W.sort(O.a.compare);for(var Te=[],Fe=0,He=0,Pe=ie.length,le=0,Ce=W.length;le0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]=0;oe--)(se=Re[oe])&&(F=(C<3?se(F):C>3?se(Ee,ve,F):se(Ee,ve))||F);return C>3&&F&&Object.defineProperty(Ee,ve,F),F},X=function(Re,Ee){return function(ve,Q){Ee(ve,Q,Re)}},he=function(Re,Ee,ve,Q){function C(F){return F instanceof ve?F:new ve(function(se){se(F)})}return new(ve||(ve=Promise))(function(F,se){function oe(Se){try{De(Q.next(Se))}catch(Ve){se(Ve)}}function be(Se){try{De(Q.throw(Se))}catch(Ve){se(Ve)}}function De(Se){Se.done?F(Se.value):C(Se.value).then(oe,be)}De((Q=Q.apply(Re,Ee||[])).next())})},je=function(Re,Ee){var ve={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},Q,C,F,se;return se={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function oe(De){return function(Se){return be([De,Se])}}function be(De){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,C&&(F=De[0]&2?C.return:De[0]?C.throw||((F=C.return)&&F.call(C),0):C.next)&&!(F=F.call(C,De[1])).done)return F;(C=0,F)&&(De=[De[0]&2,F.value]);switch(De[0]){case 0:case 1:F=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,C=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(!(F=ve.trys,F=F.length>0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]1)return;var Q=this._editor.getModel(),C=this._editor.getPosition(),F=!1,se=this._editor.onDidChangeModelContent(function(oe){if(oe.isFlush){F=!0,se.dispose();return}for(var be=0,De=oe.changes.length;be1)return;this._instantiationService.invokeFunction(Me,this.editor,Ee,2,re.a.None).catch(f.e)},Re.ID="editor.contrib.formatOnPaste",Re=ue([X(1,A.a)],Re),Re}(),ge=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatDocument",label:E.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ae.a.and(x.a.writable,x.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:x.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var C;return je(this,function(F){switch(F.label){case 0:return Q.hasModel()?(C=ve.get(A.a),[4,C.invokeFunction(Fe,Q,1,re.a.None)]):[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})},Ee}(H.b),_e=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatSelection",label:E.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ae.a.and(x.a.writable,x.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentSelectionFormattingProvider),primary:Object(J.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ae.a.and(x.a.hasDocumentSelectionFormattingProvider,x.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var C,F,se;return je(this,function(oe){switch(oe.label){case 0:return Q.hasModel()?(C=ve.get(A.a),F=Q.getModel(),se=Q.getSelection(),se.isEmpty()&&(se=new U.a(se.startLineNumber,1,se.startLineNumber,F.getLineMaxColumn(se.startLineNumber))),[4,C.invokeFunction(Me,Q,se,1,re.a.None)]):[2];case 1:return oe.sent(),[2]}})})},Ee}(H.b);Object(H.h)(Xe.ID,Xe),Object(H.h)(me.ID,me),Object(H.f)(ge),Object(H.f)(_e),R.a.registerCommand("editor.action.format",function(Re){return he(void 0,void 0,void 0,function(){var Ee,ve;return je(this,function(Q){switch(Q.label){case 0:return Ee=Re.get(z.a).getFocusedCodeEditor(),!Ee||!Ee.hasModel()?[2]:(ve=Re.get(R.b),Ee.getSelection().isEmpty()?[4,ve.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return Q.sent(),[3,4];case 2:return[4,ve.executeCommand("editor.action.formatSelection")];case 3:Q.sent(),Q.label=4;case 4:return[2]}})})})},cMOf:function(Lt,j,e){"use strict";e.d(j,"a",function(){return _});var T=e("undH"),re=e.n(T),J=e("pmY6"),I=e("D3Dy"),H=e("MNsG"),z=e("746U"),O=e("pg8w"),U=e("XSiN"),x=e("MI8n"),u=e("EffR"),y=e("4y0V"),w=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),f=function(){for(var p=0,c=0,s=arguments.length;c=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(s.offsetX<=4)return this.orthogonalStartSash;if(s.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},c.prototype.dispose=function(){p.prototype.dispose.call(this),this.el.remove()},c}(J.a)},cMvZ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return p});var T=e("MI8n"),re=e("pmY6"),J=e("N0LK"),I=e("0JNc"),H=e("KDc4"),z=e("BFtn"),O=function(){function c(s){if(s.autoClosingPairs?this._autoClosingPairs=s.autoClosingPairs.map(function(d){return new H.b(d)}):s.brackets?this._autoClosingPairs=s.brackets.map(function(d){return new H.b({open:d[0],close:d[1]})}):this._autoClosingPairs=[],s.__electricCharacterSupport&&s.__electricCharacterSupport.docComment){var l=s.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new H.b({open:l.open,close:l.close||""}))}this._autoCloseBefore=typeof s.autoCloseBefore=="string"?s.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=s.surroundingPairs||this._autoClosingPairs}return c.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},c.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},c.shouldAutoClosePair=function(s,l,d){if(l.getTokenCount()===0)return!0;var m=l.findTokenIndexAtOffset(d-2),E=l.getStandardTokenType(m);return s.isOK(E)},c.prototype.getSurroundingPairs=function(){return this._surroundingPairs},c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> - `,c}(),U=e("EIAu"),x=function(){function c(s){this._richEditBrackets=s}return c.prototype.getElectricCharacters=function(){var s=[];if(this._richEditBrackets)for(var l=0,d=this._richEditBrackets.brackets;l=3)for(var E=0,L=this._regExpRules.length;E=2&&(d.length>0&&m.length>0))for(var E=0,L=this._brackets.length;E=2&&d.length>0)for(var E=0,L=this._brackets.length;E1){var E=void 0,L=-1;for(E=l-1;E>=1;E--){if(s.getLanguageIdAtPosition(E,0)!==m)return L;var A=s.getLineContent(E);if(d.shouldIgnore(A)||/^\s+$/.test(A)||A===""){L=E;continue}return E}}return-1},c.prototype.getInheritIndentForLine=function(s,l,d,m){if(m===void 0&&(m=!0),s<4)return null;var E=this.getIndentRulesSupport(l.getLanguageIdentifier().id);if(!E)return null;if(d<=1)return{indentation:"",action:null};var L=this.getPrecedingValidLine(l,d,E);if(L<0)return null;if(L<1)return{indentation:"",action:null};var A=l.getLineContent(L);if(E.shouldIncrease(A)||E.shouldIndentNextLine(A))return{indentation:J.t(A),action:H.a.Indent,line:L};if(E.shouldDecrease(A))return{indentation:J.t(A),action:null,line:L};if(L===1)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};var k=L-1,R=E.getIndentMetadata(l.getLineContent(k));if(!(R&(1|2))&&R&4){for(var $=0,ie=k-1;ie>0;ie--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=ie;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}if(m)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};for(var ie=L;ie>0;ie--){var W=l.getLineContent(ie);if(E.shouldIncrease(W))return{indentation:J.t(W),action:H.a.Indent,line:ie};if(E.shouldIndentNextLine(W)){for(var $=0,B=ie-1;B>0;B--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=B;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}else if(E.shouldDecrease(W))return{indentation:J.t(W),action:null,line:ie}}return{indentation:J.t(l.getLineContent(1)),action:null,line:1}},c.prototype.getGoodIndentForLine=function(s,l,d,m,E){if(s<4)return null;var L=this._getRichEditSupport(d);if(!L)return null;var A=this.getIndentRulesSupport(d);if(!A)return null;var k=this.getInheritIndentForLine(s,l,m),R=l.getLineContent(m);if(k){var $=k.line;if($!==void 0){var ie=L.onEnter(s,"",l.getLineContent($),"");if(ie){var W=J.t(l.getLineContent($));return ie.removeText&&(W=W.substring(0,W.length-ie.removeText)),ie.indentAction===H.a.Indent||ie.indentAction===H.a.IndentOutdent?W=E.shiftIndent(W):ie.indentAction===H.a.Outdent&&(W=E.unshiftIndent(W)),A.shouldDecrease(R)&&(W=E.unshiftIndent(W)),ie.appendText&&(W+=ie.appendText),J.t(W)}}return A.shouldDecrease(R)?k.action===H.a.Indent?k.indentation:E.unshiftIndent(k.indentation):k.action===H.a.Indent?E.shiftIndent(k.indentation):k.indentation}return null},c.prototype.getIndentForEnter=function(s,l,d,m){if(s<4)return null;l.forceTokenization(d.startLineNumber);var E=l.getLineTokens(d.startLineNumber),L=Object(z.a)(E,d.startColumn-1),A=L.getLineContent(),k=!1,R;L.firstCharOffset>0&&E.getLanguageId(0)!==L.languageId?(k=!0,R=A.substr(0,d.startColumn-1-L.firstCharOffset)):R=E.getLineContent().substring(0,d.startColumn-1);var $;if(d.isEmpty())$=A.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}var W=this.getIndentRulesSupport(L.languageId);if(!W)return null;var B=R,le=J.t(R),Ce={getLineTokens:function(ne){return l.getLineTokens(ne)},getLanguageIdentifier:function(){return l.getLanguageIdentifier()},getLanguageIdAtPosition:function(ne,ee){return l.getLanguageIdAtPosition(ne,ee)},getLineContent:function(ne){return ne===d.startLineNumber?B:l.getLineContent(ne)}},Me=J.t(E.getLineContent()),Te=this.getInheritIndentForLine(s,Ce,d.startLineNumber+1);if(!Te){var Fe=k?Me:le;return{beforeEnter:Fe,afterEnter:Fe}}var He=k?Me:Te.indentation;return Te.action===H.a.Indent&&(He=m.shiftIndent(He)),W.shouldDecrease($)&&(He=m.unshiftIndent(He)),{beforeEnter:k?Me:le,afterEnter:He}},c.prototype.getIndentActionForType=function(s,l,d,m,E){if(s<4)return null;var L=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),A=this.getIndentRulesSupport(L.languageId);if(!A)return null;var k=L.getLineContent(),R=k.substr(0,d.startColumn-1-L.firstCharOffset),$;if(d.isEmpty())$=k.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}if(!A.shouldDecrease(R+$)&&A.shouldDecrease(R+m+$)){var W=this.getInheritIndentForLine(s,l,d.startLineNumber,!1);if(!W)return null;var B=W.indentation;return W.action!==H.a.Indent&&(B=E.unshiftIndent(B)),B}return null},c.prototype.getIndentMetadata=function(s,l){var d=this.getIndentRulesSupport(s.getLanguageIdentifier().id);return d?l<1||l>s.getLineCount()?null:d.getIndentMetadata(s.getLineContent(l)):null},c.prototype.getEnterAction=function(s,l,d){var m=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),E=this._getRichEditSupport(m.languageId);if(!E)return null;var L=m.getLineContent(),A=L.substr(0,d.startColumn-1-m.firstCharOffset),k;if(d.isEmpty())k=L.substr(d.startColumn-1-m.firstCharOffset);else{var R=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);k=R.getLineContent().substr(d.endColumn-1-m.firstCharOffset)}var $="";if(d.startLineNumber>1&&m.firstCharOffset===0){var ie=this.getScopedLineTokens(l,d.startLineNumber-1);ie.languageId===m.languageId&&($=ie.getLineContent())}var W=E.onEnter(s,$,A,k);if(!W)return null;var B=W.indentAction,le=W.appendText,Ce=W.removeText||0;le||(B===H.a.Indent||B===H.a.IndentOutdent?le=" ":le="");var Me=this.getIndentationAtPosition(l,d.startLineNumber,d.startColumn);return Ce&&(Me=Me.substring(0,Me.length-Ce)),{indentAction:B,appendText:le,removeText:Ce,indentation:Me}},c.prototype.getIndentationAtPosition=function(s,l,d){var m=s.getLineContent(l),E=J.t(m);return E.length>d-1&&(E=E.substring(0,d-1)),E},c.prototype.getScopedLineTokens=function(s,l,d){s.forceTokenization(l);var m=s.getLineTokens(l),E=typeof d=="undefined"?s.getLineMaxColumn(l)-1:d-1;return Object(z.a)(m,E)},c.prototype.getBracketsSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.brackets||null},c}(),p=new _},"ci+S":function(Lt,j,e){},cl4r:function(Lt,j,e){},cldp:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return e.e(268).then(e.bind(null,"7Xl7"))}})},cqdO:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Me}),e.d(j,"f",function(){return He}),e.d(j,"e",function(){return Pe}),e.d(j,"d",function(){return q}),e.d(j,"b",function(){return ue}),e.d(j,"c",function(){return ve});var T=e("4rho"),re=e("3/fG"),J=e("pmY6"),I=e("746U"),H=e("6OMU"),z=e("ZCR3"),O=e("EffR"),U=e("MNsG"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),w=e("4y0V"),f=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),v;(function(Q){Q.TREE="tree",Q.FORM="form"})(v||(v={}));var _=function(Q){f(C,Q);function C(F,se){return Q.call(this,"ListError ["+F+"] "+se)||this}return C}(Error),p=e("feEw"),c=e("zrhQ"),s=e("qj0h"),l=function(){function Q(C){this.spliceables=C}return Q.prototype.splice=function(C,F,se){this.spliceables.forEach(function(oe){return oe.splice(C,F,se)})},Q}(),d=e("Sdnv"),m=e("fpMC"),E=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),L=function(){return L=Object.assign||function(Q){for(var C,F=1,se=arguments.length;F=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},k=function(){for(var Q=0,C=0,F=arguments.length;C=0){var be=this.renderedElements[oe];this.trait.unrender(se),be.index=F}else{var be={index:F,templateData:se};this.renderedElements.push(be)}this.trait.renderIndex(F,se)},Q.prototype.splice=function(C,F,se){for(var oe=[],be=0,De=this.renderedElements;be=C+F&&oe.push({index:Se.index+se-F,templateData:Se.templateData})}this.renderedElements=oe},Q.prototype.renderIndexes=function(C){for(var F=0,se=this.renderedElements;F-1&&this.trait.renderIndex(be,De)}},Q.prototype.disposeTemplate=function(C){var F=Object(H.k)(this.renderedElements,function(se){return se.templateData===C});if(F<0)return;this.renderedElements.splice(F,1)},Q}(),$=function(){function Q(C){this._trait=C,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}return Object.defineProperty(Q.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"renderer",{get:function(){return new R(this)},enumerable:!0,configurable:!0}),Q.prototype.splice=function(C,F,se){var oe=se.length-F,be=C+F,De=k(this.sortedIndexes.filter(function(Se){return Se=be}).map(function(Se){return Se+oe}));this.renderer.splice(C,F,se.length),this._set(De,De)},Q.prototype.renderIndex=function(C,F){O.Y(F,this._trait,this.contains(C))},Q.prototype.unrender=function(C){O.P(C,this._trait)},Q.prototype.set=function(C,F){return this._set(C,k(C).sort(ge),F)},Q.prototype._set=function(C,F,se){var oe=this.indexes,be=this.sortedIndexes;this.indexes=C,this.sortedIndexes=F;var De=Xe(be,C);return this.renderer.renderIndexes(De),this._onChange.fire({indexes:C,browserEvent:se}),oe},Q.prototype.get=function(){return this.indexes},Q.prototype.contains=function(C){return Object(H.c)(this.sortedIndexes,C,ge)>=0},Q.prototype.dispose=function(){Object(J.f)(this._onChange)},A([z.a],Q.prototype,"renderer",null),Q}(),ie=function(Q){E(C,Q);function C(){return Q.call(this,"focused")||this}return C.prototype.renderIndex=function(F,se){Q.prototype.renderIndex.call(this,F,se),this.contains(F)?se.setAttribute("aria-selected","true"):se.removeAttribute("aria-selected")},C}($),W=function(){function Q(C,F,se){this.trait=C,this.view=F,this.identityProvider=se}return Q.prototype.splice=function(C,F,se){var oe=this;if(!this.identityProvider)return this.trait.splice(C,F,se.map(function(){return!1}));var be=this.trait.get().map(function(Se){return oe.identityProvider.getId(oe.view.element(Se)).toString()}),De=se.map(function(Se){return be.indexOf(oe.identityProvider.getId(Se).toString())>-1});this.trait.splice(C,F,De)},Q}();function B(Q){return Q.tagName==="INPUT"||Q.tagName==="TEXTAREA"}var le=function(){function Q(C,F,se){this.list=C,this.view=F,this.disposables=new J.b;var oe=se.multipleSelectionSupport!==!1;this.openController=se.openController||ae;var be=y.b.chain(Object(w.a)(F.domNode,"keydown")).filter(function(De){return!B(De.target)}).map(function(De){return new u.a(De)});be.filter(function(De){return De.keyCode===3}).on(this.onEnter,this,this.disposables),be.filter(function(De){return De.keyCode===16}).on(this.onUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===18}).on(this.onDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===9}).on(this.onEscape,this,this.disposables),oe&&be.filter(function(De){return(U.e?De.metaKey:De.ctrlKey)&&De.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return Q.prototype.onEnter=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(this.list.getFocus(),C.browserEvent),this.openController.shouldOpen(C.browserEvent)&&this.list.open(this.list.getFocus(),C.browserEvent)},Q.prototype.onUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPrevious(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNext(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPreviousPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNextPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onCtrlA=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(Object(H.u)(this.list.length),C.browserEvent),this.view.domNode.focus()},Q.prototype.onEscape=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection([],C.browserEvent),this.view.domNode.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),Ce;(function(Q){Q[Q.Idle=0]="Idle",Q[Q.Typing=1]="Typing"})(Ce||(Ce={}));var Me=new(function(){function Q(){}return Q.prototype.mightProducePrintableCharacter=function(C){return C.ctrlKey||C.metaKey||C.altKey?!1:C.keyCode>=31&&C.keyCode<=56||C.keyCode>=21&&C.keyCode<=30||C.keyCode>=93&&C.keyCode<=102||C.keyCode>=80&&C.keyCode<=90},Q}()),Te=function(){function Q(C,F,se,oe){this.list=C,this.view=F,this.keyboardNavigationLabelProvider=se,this.delegate=oe,this.enabled=!1,this.state=Ce.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new J.b,this.disposables=new J.b,this.updateOptions(C.options)}return Q.prototype.updateOptions=function(C){var F=typeof C.enableKeyboardNavigation=="undefined"?!0:!!C.enableKeyboardNavigation;F?this.enable():this.disable(),typeof C.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=C.automaticKeyboardNavigation)},Q.prototype.enable=function(){var C=this;if(this.enabled)return;var F=y.b.chain(Object(w.a)(this.view.domNode,"keydown")).filter(function(be){return!B(be.target)}).filter(function(){return C.automaticKeyboardNavigation||C.triggered}).map(function(be){return new u.a(be)}).filter(function(be){return C.delegate.mightProducePrintableCharacter(be)}).forEach(function(be){be.stopPropagation(),be.preventDefault()}).map(function(be){return be.browserEvent.key}).event,se=y.b.debounce(F,function(){return null},800),oe=y.b.reduce(y.b.any(F,se),function(be,De){return De===null?null:(be||"")+De});oe(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},Q.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},Q.prototype.onInput=function(C){if(!C){this.state=Ce.Idle,this.triggered=!1;return}var F=this.list.getFocus(),se=F.length>0?F[0]:0,oe=this.state===Ce.Idle?1:0;this.state=Ce.Typing;for(var be=0;be'})}},Vtyv:function(Lt,j,e){},VvMK:function(Lt,j,e){},Vxe3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("codeEditorService")},W9cx:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return H}),e.d(j,"c",function(){return x});var T=e("bY76"),re=e("Cg/j"),J=e("pmY6"),I=e("N0LK"),U=function(u,y,_,f){function v(w){return w instanceof _?w:new _(function(p){p(w)})}return new(_||(_=Promise))(function(w,p){function c(d){try{l(f.next(d))}catch(m){p(m)}}function s(d){try{l(f.throw(d))}catch(m){p(m)}}function l(d){d.done?w(d.value):v(d.value).then(c,s)}l((f=f.apply(u,y||[])).next())})},z=function(u,y){var _={label:0,sent:function(){if(w[0]&1)throw w[1];return w[1]},trys:[],ops:[]},f,v,w,p;return p={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function c(l){return function(d){return s([l,d])}}function s(l){if(f)throw new TypeError("Generator is already executing.");for(;_;)try{if(f=1,v&&(w=l[0]&2?v.return:l[0]?v.throw||((w=v.return)&&w.call(v),0):v.next)&&!(w=w.call(v,l[1])).done)return w;(v=0,w)&&(l=[l[0]&2,w.value]);switch(l[0]){case 0:case 1:w=l;break;case 4:return _.label++,{value:l[1],done:!1};case 5:_.label++,v=l[1],l=[0];continue;case 7:l=_.ops.pop(),_.trys.pop();continue;default:if(!(w=_.trys,w=w.length>0&&w[w.length-1])&&(l[0]===6||l[0]===2)){_=0;continue}if(l[0]===3&&(!w||l[1]>w[0]&&l[1]0&&X[X.length-1])&&(me[0]===6||me[0]===2)){ae=0;continue}if(me[0]===3&&(!X||me[1]>X[0]&&me[1]0&&ue.indexOf(Fe)===0){for(var ve=null,Q=null,C=0,F=0;F0)):C++}Q&&Q.setGroupLabel(this.typeToLabel(ve||"",C))}else he.length>0&&he[0].setGroupLabel(z.r(Me.e._symbols_,he.length));return he},ee.prototype.typeToLabel=function(ae,q){switch(ae){case"module":return z.r(Me.e._modules_,q);case"class":return z.r(Me.e._class_,q);case"interface":return z.r(Me.e._interface_,q);case"method":return z.r(Me.e._method_,q);case"function":return z.r(Me.e._function_,q);case"property":return z.r(Me.e._property_,q);case"variable":return z.r(Me.e._variable_,q);case"var":return z.r(Me.e._variable2_,q);case"constructor":return z.r(Me.e._constructor_,q);case"call":return z.r(Me.e._call_,q)}return ae},ee.prototype.sortNormal=function(ae,q,ue){var X=q.getLabel().toLowerCase(),he=ue.getLabel().toLowerCase(),je=X.localeCompare(he);if(je!==0)return je;var Xe=q.getRange(),me=ue.getRange();return Xe.startLineNumber-me.startLineNumber},ee.prototype.sortScoped=function(ae,q,ue){ae=ae.substr(Fe.length);var X=q.getType(),he=ue.getType(),je=X.localeCompare(he);if(je!==0)return je;if(ae){var Xe=q.getLabel().toLowerCase(),me=ue.getLabel().toLowerCase(),ge=Xe.localeCompare(me);if(ge!==0)return ge}var we=q.getRange(),Re=ue.getRange();return we.startLineNumber-Re.startLineNumber},ee}(Ce.a);Object(H.f)(Pe)},WqXY:function(Lt,j,e){"use strict";e.d(j,"c",function(){return w}),e.d(j,"d",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"a",function(){return l});var T=e("yEoX"),re=e.n(T),J=e("MNsG"),I=e("3/fG"),U=e("pmY6"),z=e("8HAY"),O=e("EffR"),H=e("746U"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),_=e("ZQ78"),f=e("D3Dy"),v=function(){var d=function(E,L){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var R in k)k.hasOwnProperty(R)&&(A[R]=k[R])},d(E,L)};return function(m,E){d(m,E);function L(){this.constructor=m}m.prototype=E===null?Object.create(E):(L.prototype=E.prototype,new L)}}(),w=function(d){v(m,d);function m(E,L,A){var k=d.call(this)||this;return k.options=A,k._context=E||k,k._action=L,L instanceof z.a&&k._register(L.onDidChange(function(R){if(!k.element)return;k.handleActionChangeEvent(R)})),k}return m.prototype.handleActionChangeEvent=function(E){E.enabled!==void 0&&this.updateEnabled(),E.checked!==void 0&&this.updateChecked(),E.class!==void 0&&this.updateClass(),E.label!==void 0&&(this.updateLabel(),this.updateTooltip()),E.tooltip!==void 0&&this.updateTooltip()},Object.defineProperty(m.prototype,"actionRunner",{get:function(){return this._actionRunner||(this._actionRunner=this._register(new z.b)),this._actionRunner},set:function(L){this._actionRunner=L},enumerable:!0,configurable:!0}),m.prototype.getAction=function(){return this._action},m.prototype.isEnabled=function(){return this._action.enabled},m.prototype.setActionContext=function(E){this._context=E},m.prototype.render=function(E){var L=this,A=this.element=E;this._register(x.b.addTarget(E));var k=this.options&&this.options.draggable;k&&(E.draggable=!0,f.h&&this._register(O.j(E,O.d.DRAG_START,function(R){var $;return($=R.dataTransfer)===null||$===void 0?void 0:$.setData(_.a.TEXT,L._action.label)}))),this._register(O.j(A,x.a.Tap,function(R){return L.onClick(R)})),this._register(O.j(A,O.d.MOUSE_DOWN,function(R){k||O.c.stop(R,!0),L._action.enabled&&R.button===0&&O.f(A,"active")})),this._register(O.j(A,O.d.CLICK,function(R){O.c.stop(R,!0),L.options&&L.options.isMenu?L.onClick(R):J.i(function(){return L.onClick(R)})})),this._register(O.j(A,O.d.DBLCLICK,function(R){O.c.stop(R,!0)})),[O.d.MOUSE_UP,O.d.MOUSE_OUT].forEach(function(R){L._register(O.j(A,R,function($){O.c.stop($),O.P(A,"active")}))})},m.prototype.onClick=function(E){O.c.stop(E,!0);var L;H.l(this._context)?L=E:(L=this._context,H.i(L)&&(L.event=E)),this.actionRunner.run(this._action,L)},m.prototype.focus=function(){this.element&&(this.element.focus(),O.f(this.element,"focused"))},m.prototype.blur=function(){this.element&&(this.element.blur(),O.P(this.element,"focused"))},m.prototype.updateEnabled=function(){},m.prototype.updateLabel=function(){},m.prototype.updateTooltip=function(){},m.prototype.updateClass=function(){},m.prototype.updateChecked=function(){},m.prototype.dispose=function(){this.element&&(O.R(this.element),this.element=void 0),d.prototype.dispose.call(this)},m}(U.a),p=function(d){v(m,d);function m(E){var L=d.call(this,m.ID,E,E?"separator text":"separator")||this;return L.checked=!1,L.enabled=!1,L}return m.ID="vs.actions.separator",m}(z.a),c=function(d){v(m,d);function m(E,L,A){A===void 0&&(A={});var k=d.call(this,E,L,A)||this;return k.options=A,k.options.icon=A.icon!==void 0?A.icon:!1,k.options.label=A.label!==void 0?A.label:!0,k.cssClass="",k}return m.prototype.render=function(E){d.prototype.render.call(this,E),this.element&&(this.label=O.q(this.element,O.a("a.action-label"))),this.label&&(this._action.id===p.ID?this.label.setAttribute("role","presentation"):this.options.isMenu?this.label.setAttribute("role","menuitem"):this.label.setAttribute("role","button")),this.options.label&&this.options.keybinding&&this.element&&(O.q(this.element,O.a("span.keybinding")).textContent=this.options.keybinding),this.updateClass(),this.updateLabel(),this.updateTooltip(),this.updateEnabled(),this.updateChecked()},m.prototype.focus=function(){d.prototype.focus.call(this),this.label&&this.label.focus()},m.prototype.updateLabel=function(){this.options.label&&this.label&&(this.label.textContent=this.getAction().label)},m.prototype.updateTooltip=function(){var E=null;this.getAction().tooltip?E=this.getAction().tooltip:!this.options.label&&this.getAction().label&&this.options.icon&&(E=this.getAction().label,this.options.keybinding&&(E=I.a({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",E,this.options.keybinding))),E&&this.label&&(this.label.title=E)},m.prototype.updateClass=function(){this.cssClass&&this.label&&O.Q(this.label,this.cssClass),this.options.icon?(this.cssClass=this.getAction().class,this.label&&(O.f(this.label,"codicon"),this.cssClass&&O.g(this.label,this.cssClass)),this.updateEnabled()):this.label&&O.P(this.label,"codicon")},m.prototype.updateEnabled=function(){this.getAction().enabled?(this.label&&(this.label.removeAttribute("aria-disabled"),O.P(this.label,"disabled"),this.label.tabIndex=0),this.element&&O.P(this.element,"disabled")):(this.label&&(this.label.setAttribute("aria-disabled","true"),O.f(this.label,"disabled"),O.S(this.label)),this.element&&O.f(this.element,"disabled"))},m.prototype.updateChecked=function(){this.label&&(this.getAction().checked?O.f(this.label,"checked"):O.P(this.label,"checked"))},m}(w),s={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}},l=function(d){v(m,d);function m(E,L){L===void 0&&(L=s);var A=d.call(this)||this;A._onDidBlur=A._register(new y.a),A.onDidBlur=A._onDidBlur.event,A._onDidCancel=A._register(new y.a),A.onDidCancel=A._onDidCancel.event,A._onDidRun=A._register(new y.a),A.onDidRun=A._onDidRun.event,A._onDidBeforeRun=A._register(new y.a),A.onDidBeforeRun=A._onDidBeforeRun.event,A.options=L,A._context=L.context,A.options.triggerKeys||(A.options.triggerKeys=s.triggerKeys),A.options.actionRunner?A._actionRunner=A.options.actionRunner:(A._actionRunner=new z.b,A._register(A._actionRunner)),A._register(A._actionRunner.onDidRun(function($){return A._onDidRun.fire($)})),A._register(A._actionRunner.onDidBeforeRun(function($){return A._onDidBeforeRun.fire($)})),A.viewItems=[],A.focusedItem=void 0,A.domNode=document.createElement("div"),A.domNode.className="monaco-action-bar",L.animated!==!1&&O.f(A.domNode,"animated");var k,R;switch(A.options.orientation){case 0:k=15,R=17;break;case 1:k=17,R=15,A.domNode.className+=" reverse";break;case 2:k=16,R=18,A.domNode.className+=" vertical";break;case 3:k=18,R=16,A.domNode.className+=" vertical reverse";break}return A._register(O.j(A.domNode,O.d.KEY_DOWN,function($){var ie=new u.a($),W=!0;ie.equals(k)?A.focusPrevious():ie.equals(R)?A.focusNext():ie.equals(9)?A.cancel():A.isTriggerKeyEvent(ie)?A.options.triggerKeys&&A.options.triggerKeys.keyDown&&A.doTrigger(ie):W=!1,W&&(ie.preventDefault(),ie.stopPropagation())})),A._register(O.j(A.domNode,O.d.KEY_UP,function($){var ie=new u.a($);A.isTriggerKeyEvent(ie)?(A.options.triggerKeys&&!A.options.triggerKeys.keyDown&&A.doTrigger(ie),ie.preventDefault(),ie.stopPropagation()):(ie.equals(2)||ie.equals(1024|2))&&A.updateFocusedItem()})),A.focusTracker=A._register(O.Z(A.domNode)),A._register(A.focusTracker.onDidBlur(function(){(document.activeElement===A.domNode||!O.K(document.activeElement,A.domNode))&&(A._onDidBlur.fire(),A.focusedItem=void 0)})),A._register(A.focusTracker.onDidFocus(function(){return A.updateFocusedItem()})),A.actionsList=document.createElement("ul"),A.actionsList.className="actions-container",A.actionsList.setAttribute("role","toolbar"),A.options.ariaLabel&&A.actionsList.setAttribute("aria-label",A.options.ariaLabel),A.domNode.appendChild(A.actionsList),E.appendChild(A.domNode),A}return m.prototype.isTriggerKeyEvent=function(E){var L=!1;return this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(A){L=L||E.equals(A)}),L},m.prototype.updateFocusedItem=function(){for(var E=0;E=A.actionsList.children.length?(A.actionsList.appendChild(ie),A.viewItems.push(W)):(A.actionsList.insertBefore(ie,A.actionsList.children[R]),A.viewItems.splice(R,0,W),R++)})},m.prototype.clear=function(){this.viewItems=Object(U.f)(this.viewItems),O.t(this.actionsList)},m.prototype.isEmpty=function(){return this.viewItems.length===0},m.prototype.focus=function(E){var L=!1,A=void 0;E===void 0?L=!0:typeof E=="number"?A=E:typeof E=="boolean"&&(L=E),L&&typeof this.focusedItem=="undefined"?(this.focusedItem=this.viewItems.length-1,this.focusNext()):(A!==void 0&&(this.focusedItem=A),this.updateFocus())},m.prototype.focusNext=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=this.viewItems.length-1);var E=this.focusedItem,L;do this.focusedItem=(this.focusedItem+1)%this.viewItems.length,L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus()},m.prototype.focusPrevious=function(){typeof this.focusedItem=="undefined"&&(this.focusedItem=0);var E=this.focusedItem,L;do this.focusedItem=this.focusedItem-1,this.focusedItem<0&&(this.focusedItem=this.viewItems.length-1),L=this.viewItems[this.focusedItem];while(this.focusedItem!==E&&!L.isEnabled());this.focusedItem===E&&!L.isEnabled()&&(this.focusedItem=void 0),this.updateFocus(!0)},m.prototype.updateFocus=function(E,L){typeof this.focusedItem=="undefined"&&this.actionsList.focus({preventScroll:L});for(var A=0;A0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){we=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]0&&ve[ve.length-1])&&(se[0]===6||se[0]===2)){we=0;continue}if(se[0]===3&&(!ve||se[1]>ve[0]&&se[1]=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},Pe=function(me,ge){return function(we,Re){ge(we,Re,me)}},ne=O.a,ee=function(me){Fe(ge,me);function ge(we,Re,Ee,ve){var Q=me.call(this)||this;return Q.editor=we,Q.renderDisposeables=Q._register(new re.b),Q.visible=!1,Q.announcedLabel=null,Q.allowEditorOverflow=!0,Q.markdownRenderer=Q._register(new v.a(we,ve,Ee)),Q.model=Q._register(new Ce(we)),Q.keyVisible=m.Visible.bindTo(Re),Q.keyMultipleSignatures=m.MultipleSignatures.bindTo(Re),Q._register(Q.model.onChangedHints(function(C){C?(Q.show(),Q.render(C)):Q.hide()})),Q}return ge.prototype.createParamaterHintDOMNodes=function(){var we=this,Re=ne(".editor-widget.parameter-hints-widget"),Ee=O.q(Re,ne(".wrapper"));Ee.tabIndex=-1;var ve=O.q(Ee,ne(".controls")),Q=O.q(ve,ne(".button.codicon.codicon-chevron-up")),C=O.q(ve,ne(".overloads")),F=O.q(ve,ne(".button.codicon.codicon-chevron-down")),se=Object(H.b)(Object(H.a)(Q,"click"));this._register(se(this.previous,this));var oe=Object(H.b)(Object(H.a)(F,"click"));this._register(oe(this.next,this));var be=ne(".body"),De=new u.a(be,{});this._register(De),Ee.appendChild(De.getDomNode());var Se=O.q(be,ne(".signature")),Ve=O.q(be,ne(".docs"));Re.style.userSelect="text",this.domNodes={element:Re,signature:Se,overloads:C,docs:Ve,scrollbar:De},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(function(it){we.visible&&we.editor.layoutContentWidget(we)}));var Qe=function(){if(!we.domNodes)return;var pt=we.editor.getOption(34);we.domNodes.element.style.fontSize=pt.fontSize+"px"};Qe(),this._register(y.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(it){return it.hasChanged(34)}).on(Qe,null)),this._register(this.editor.onDidLayoutChange(function(it){return we.updateMaxHeight()})),this.updateMaxHeight()},ge.prototype.show=function(){var we=this;if(this.visible)return;this.domNodes||this.createParamaterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(function(){we.domNodes&&O.f(we.domNodes.element,"visible")},100),this.editor.layoutContentWidget(this)},ge.prototype.hide=function(){if(!this.visible)return;this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,this.domNodes&&O.P(this.domNodes.element,"visible"),this.editor.layoutContentWidget(this)},ge.prototype.getPosition=function(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null},ge.prototype.render=function(we){if(!this.domNodes)return;var Re=we.signatures.length>1;O.Y(this.domNodes.element,"multiple",Re),this.keyMultipleSignatures.set(Re),this.domNodes.signature.innerHTML="",this.domNodes.docs.innerHTML="";var Ee=we.signatures[we.activeSignature];if(!Ee)return;var ve=O.q(this.domNodes.signature,ne(".code")),Q=Ee.parameters.length>0,C=this.editor.getOption(34);if(ve.style.fontSize=C.fontSize+"px",ve.style.fontFamily=C.fontFamily,Q)this.renderParameters(ve,Ee,we.activeParameter);else{var F=O.q(ve,ne("span"));F.textContent=Ee.label}this.renderDisposeables.clear();var se=Ee.parameters[we.activeParameter];if(se&&se.documentation){var oe=ne("span.documentation");if(typeof se.documentation=="string")oe.textContent=se.documentation;else{var be=this.markdownRenderer.render(se.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),oe.appendChild(be.element)}O.q(this.domNodes.docs,ne("p",{},oe))}if(!(Ee.documentation===void 0))if(typeof Ee.documentation=="string")O.q(this.domNodes.docs,ne("p",{},Ee.documentation));else{var be=this.markdownRenderer.render(Ee.documentation);O.f(be.element,"markdown-docs"),this.renderDisposeables.add(be),O.q(this.domNodes.docs,be.element)}var De=this.hasDocs(Ee,se);if(O.Y(this.domNodes.signature,"has-docs",De),O.Y(this.domNodes.docs,"empty",!De),this.domNodes.overloads.textContent=Object(Te.F)(we.activeSignature+1,we.signatures.length.toString().length)+"/"+we.signatures.length,se){var Se=this.getParameterLabel(Ee,we.activeParameter);this.announcedLabel!==Se&&(x.a(T.a("hint","{0}, hint",Se)),this.announcedLabel=Se)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()},ge.prototype.hasDocs=function(we,Re){return Re&&typeof Re.documentation=="string"&&Re.documentation.length>0||(Re&&typeof Re.documentation=="object"&&Re.documentation.value.length>0||typeof we.documentation=="string"&&we.documentation.length>0)?!0:typeof we.documentation=="object"&&we.documentation.value.length>0},ge.prototype.renderParameters=function(we,Re,Ee){var ve=this.getParameterLabelOffsets(Re,Ee),Q=ve[0],C=ve[1],F=document.createElement("span");F.textContent=Re.label.substring(0,Q);var se=document.createElement("span");se.textContent=Re.label.substring(Q,C),se.className="parameter active";var oe=document.createElement("span");oe.textContent=Re.label.substring(C),O.q(we,F,se,oe)},ge.prototype.getParameterLabel=function(we,Re){var Ee=we.parameters[Re];return typeof Ee.label=="string"?Ee.label:we.label.substring(Ee.label[0],Ee.label[1])},ge.prototype.getParameterLabelOffsets=function(we,Re){var Ee=we.parameters[Re];if(Ee){if(Array.isArray(Ee.label))return Ee.label;var ve=we.label.lastIndexOf(Ee.label);return ve>=0?[ve,ve+Ee.label.length]:[0,0]}else return[0,0]},ge.prototype.next=function(){this.editor.focus(),this.model.next()},ge.prototype.previous=function(){this.editor.focus(),this.model.previous()},ge.prototype.cancel=function(){this.model.cancel()},ge.prototype.getDomNode=function(){return this.domNodes||this.createParamaterHintDOMNodes(),this.domNodes.element},ge.prototype.getId=function(){return ge.ID},ge.prototype.trigger=function(we){this.model.trigger(we,0)},ge.prototype.updateMaxHeight=function(){if(!this.domNodes)return;var we=Math.max(this.editor.getLayoutInfo().height/4,250),Re=we+"px";this.domNodes.element.style.maxHeight=Re;var Ee=this.domNodes.element.getElementsByClassName("wrapper");Ee.length&&(Ee[0].style.maxHeight=Re)},ge.ID="editor.widget.parameterHintsWidget",ge=Ue([Pe(1,U.c),Pe(2,L.a),Pe(3,f.a)],ge),ge}(re.a);Object(k.e)(function(me,ge){var we=me.getColor(A.B);if(we){var Re=me.type===k.b?2:1;ge.addRule(".monaco-editor .parameter-hints-widget { border: "+Re+"px solid "+we+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget.multiple .body { border-left: 1px solid "+we.transparent(.5)+"; }"),ge.addRule(".monaco-editor .parameter-hints-widget .signature.has-docs { border-bottom: 1px solid "+we.transparent(.5)+"; }")}var Ee=me.getColor(A.A);Ee&&ge.addRule(".monaco-editor .parameter-hints-widget { background-color: "+Ee+"; }");var ve=me.getColor(A.ec);ve&&ge.addRule(".monaco-editor .parameter-hints-widget a { color: "+ve+"; }");var Q=me.getColor(A.C);Q&&ge.addRule(".monaco-editor .parameter-hints-widget { color: "+Q+"; }");var C=me.getColor(A.dc);C&&ge.addRule(".monaco-editor .parameter-hints-widget code { background-color: "+C+"; }")});var ae=function(){var me=function(we,Re){return me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ee,ve){Ee.__proto__=ve}||function(Ee,ve){for(var Q in ve)ve.hasOwnProperty(Q)&&(Ee[Q]=ve[Q])},me(we,Re)};return function(ge,we){me(ge,we);function Re(){this.constructor=ge}ge.prototype=we===null?Object.create(we):(Re.prototype=we.prototype,new Re)}}(),q=function(me,ge,we,Re){var Ee=arguments.length,ve=Ee<3?ge:Re===null?Re=Object.getOwnPropertyDescriptor(ge,we):Re,Q;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(me,ge,we,Re);else for(var C=me.length-1;C>=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},ue=function(me,ge){return function(we,Re){ge(we,Re,me)}},X=function(me){ae(ge,me);function ge(we,Re){var Ee=me.call(this)||this;return Ee.editor=we,Ee.widget=Ee._register(Re.createInstance(ee,Ee.editor)),Ee}return ge.get=function(we){return we.getContribution(ge.ID)},ge.prototype.cancel=function(){this.widget.cancel()},ge.prototype.previous=function(){this.widget.previous()},ge.prototype.next=function(){this.widget.next()},ge.prototype.trigger=function(we){this.widget.trigger(we)},ge.ID="editor.controller.parameterHints",ge=q([ue(1,J.a)],ge),ge}(re.a),he=function(me){ae(ge,me);function ge(){return me.call(this,{id:"editor.action.triggerParameterHints",label:T.a("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:I.a.hasSignatureHelpProvider,kbOpts:{kbExpr:I.a.editorTextFocus,primary:2048|1024|10,weight:100}})||this}return ge.prototype.run=function(we,Re){var Ee=X.get(Re);Ee&&Ee.trigger({triggerKind:c.y.Invoke})},ge}(z.b);Object(z.h)(X.ID,X),Object(z.f)(he);var je=100+75,Xe=z.c.bindToContribution(X.get);Object(z.g)(new Xe({id:"closeParameterHints",precondition:m.Visible,handler:function(ge){return ge.cancel()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:9,secondary:[1024|9]}})),Object(z.g)(new Xe({id:"showPrevParameterHint",precondition:U.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.previous()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:16,secondary:[512|16],mac:{primary:16,secondary:[512|16,256|46]}}})),Object(z.g)(new Xe({id:"showNextParameterHint",precondition:U.a.and(m.Visible,m.MultipleSignatures),handler:function(ge){return ge.next()},kbOpts:{weight:je,kbExpr:I.a.focus,primary:18,secondary:[512|18],mac:{primary:18,secondary:[512|18,256|44]}}}))},"X+cX":function(Lt,j,e){"use strict";e.d(j,"i",function(){return I}),e.d(j,"f",function(){return U}),e.d(j,"j",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"l",function(){return H}),e.d(j,"g",function(){return x}),e.d(j,"h",function(){return u}),e.d(j,"e",function(){return y}),e.d(j,"c",function(){return _}),e.d(j,"d",function(){return f}),e.d(j,"k",function(){return v}),e.d(j,"b",function(){return w});var T=e("JQT/"),re=e("/cxE"),J=e("pmY6");function I(p){return p&&typeof p.then=="function"}function U(p){var c=new T.b,s=p(c.token),l=new Promise(function(d,m){c.token.onCancellationRequested(function(){m(re.a())}),Promise.resolve(s).then(function(E){c.dispose(),d(E)},function(E){c.dispose(),m(E)})});return new(function(){function d(){}return d.prototype.cancel=function(){c.cancel()},d.prototype.then=function(m,E){return l.then(m,E)},d.prototype.catch=function(m){return this.then(void 0,m)},d.prototype.finally=function(m){return l.finally(m)},d}())}function z(p,c,s){return Promise.race([p,new Promise(function(l){return c.onCancellationRequested(function(){return l(s)})})])}var O=function(){function p(c){this.defaultDelay=c,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}return p.prototype.trigger=function(c,s){var l=this;return s===void 0&&(s=this.defaultDelay),this.task=c,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise(function(d,m){l.doResolve=d,l.doReject=m}).then(function(){if(l.completionPromise=null,l.doResolve=null,l.task){var d=l.task;return l.task=null,d()}return})),this.timeout=setTimeout(function(){l.timeout=null,l.doResolve&&l.doResolve(null)},s),this.completionPromise},p.prototype.isTriggered=function(){return this.timeout!==null},p.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(re.a()),this.completionPromise=null)},p.prototype.cancelTimeout=function(){this.timeout!==null&&(clearTimeout(this.timeout),this.timeout=null)},p.prototype.dispose=function(){this.cancelTimeout()},p}();function H(p,c){return c?new Promise(function(s,l){var d=setTimeout(s,p);c.onCancellationRequested(function(){clearTimeout(d),l(re.a())})}):U(function(s){return H(p,s)})}function x(p,c){c===void 0&&(c=0);var s=setTimeout(p,c);return Object(J.h)(function(){return clearTimeout(s)})}function u(p,c,s){c===void 0&&(c=function(L){return!!L}),s===void 0&&(s=null);var l=0,d=p.length,m=function E(){if(l>=d)return Promise.resolve(s);var L=p[l++],A=Promise.resolve(L());return A.then(function(k){return c(k)?Promise.resolve(k):E()})};return m()}var y=function(){function p(c,s){this._token=-1,typeof c=="function"&&typeof s=="number"&&this.setIfNotSet(c,s)}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){var l=this;this.cancel(),this._token=setTimeout(function(){l._token=-1,c()},s)},p.prototype.setIfNotSet=function(c,s){var l=this;if(this._token!==-1)return;this._token=setTimeout(function(){l._token=-1,c()},s)},p}(),_=function(){function p(){this._token=-1}return p.prototype.dispose=function(){this.cancel()},p.prototype.cancel=function(){this._token!==-1&&(clearInterval(this._token),this._token=-1)},p.prototype.cancelAndSet=function(c,s){this.cancel(),this._token=setInterval(function(){c()},s)},p}(),f=function(){function p(c,s){this.timeoutToken=-1,this.runner=c,this.timeout=s,this.timeoutHandler=this.onTimeout.bind(this)}return p.prototype.dispose=function(){this.cancel(),this.runner=null},p.prototype.cancel=function(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)},p.prototype.schedule=function(c){c===void 0&&(c=this.timeout),this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,c)},p.prototype.isScheduled=function(){return this.timeoutToken!==-1},p.prototype.onTimeout=function(){this.timeoutToken=-1,this.runner&&this.doRun()},p.prototype.doRun=function(){this.runner&&this.runner()},p}(),v;(function(){if(typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"){var p=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});v=function(s){var l=setTimeout(function(){return s(p)}),d=!1;return{dispose:function(){if(d)return;d=!0,clearTimeout(l)}}}}else v=function(s,l){var d=requestIdleCallback(s,typeof l=="number"?{timeout:l}:void 0),m=!1;return{dispose:function(){if(m)return;m=!0,cancelIdleCallback(d)}}}})();var w=function(){function p(c){var s=this;this._didRun=!1,this._executor=function(){try{s._value=c()}catch(l){s._error=l}finally{s._didRun=!0}},this._handle=v(function(){return s._executor()})}return p.prototype.dispose=function(){this._handle.dispose()},p.prototype.getValue=function(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value},p}()},XNtB:function(Lt,j,e){},XQgg:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:function(){return e.e(315).then(e.bind(null,"/0xJ"))}})},XSiN:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return z}),e.d(j,"c",function(){return O});var T=e("D3Dy"),re=e("51f4"),J=e("MNsG"),I=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),U=function(){function H(x){this.timestamp=Date.now(),this.browserEvent=x,this.leftButton=x.button===0,this.middleButton=x.button===1,this.rightButton=x.button===2,this.buttons=x.buttons,this.target=x.target,this.detail=x.detail||1,x.type==="dblclick"&&(this.detail=2),this.ctrlKey=x.ctrlKey,this.shiftKey=x.shiftKey,this.altKey=x.altKey,this.metaKey=x.metaKey,typeof x.pageX=="number"?(this.posx=x.pageX,this.posy=x.pageY):(this.posx=x.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,this.posy=x.clientY+document.body.scrollTop+document.documentElement.scrollTop);var u=re.a.getPositionOfChildWindowRelativeToAncestorWindow(self,x.view);this.posx-=u.left,this.posy-=u.top}return H.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()},H.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()},H}(),z=function(H){I(x,H);function x(u){var y=H.call(this,u)||this;return y.dataTransfer=u.dataTransfer,y}return x}(U),O=function(){function H(x,u,y){if(u===void 0&&(u=0),y===void 0&&(y=0),this.browserEvent=x||null,this.target=x?x.target||x.targetNode||x.srcElement:null,this.deltaY=y,this.deltaX=u,x){var _=x,f=x;if(typeof _.wheelDeltaY!="undefined")this.deltaY=_.wheelDeltaY/120;else if(typeof f.VERTICAL_AXIS!="undefined"&&f.axis===f.VERTICAL_AXIS)this.deltaY=-f.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaY=-x.deltaY:this.deltaY=-x.deltaY/40}if(typeof _.wheelDeltaX!="undefined")T.k&&J.h?this.deltaX=-(_.wheelDeltaX/120):this.deltaX=_.wheelDeltaX/120;else if(typeof f.HORIZONTAL_AXIS!="undefined"&&f.axis===f.HORIZONTAL_AXIS)this.deltaX=-x.detail/3;else if(x.type==="wheel"){var v=x;v.deltaMode===v.DOM_DELTA_LINE?this.deltaX=-x.deltaX:this.deltaX=-x.deltaX/40}this.deltaY===0&&this.deltaX===0&&x.wheelDelta&&(this.deltaY=x.wheelDelta/120)}}return H.prototype.preventDefault=function(){this.browserEvent&&(this.browserEvent.preventDefault&&this.browserEvent.preventDefault())},H.prototype.stopPropagation=function(){this.browserEvent&&(this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation())},H}()},XXBq:function(Lt,j,e){},XXUj:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("telemetryService")},XtJs:function(Lt,j,e){"use strict";e.r(j),e.d(j,"getOccurrencesAtPosition",function(){return R});var T=e("3/fG"),re=e("6OMU"),J=e("X+cX"),I=e("JQT/"),U=e("/cxE"),z=e("pmY6"),O=e("sswD"),H=e("aokT"),x=e("wQH0"),u=e("M1Kb"),y=e("tX9W"),_=e("twdY"),f=e("T8No"),v=e("MD5Z"),w=e("t9D7"),p=function(){var Pe=function(ee,ae){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,ue){q.__proto__=ue}||function(q,ue){for(var X in ue)ue.hasOwnProperty(X)&&(q[X]=ue[X])},Pe(ee,ae)};return function(ne,ee){Pe(ne,ee);function ae(){this.constructor=ne}ne.prototype=ee===null?Object.create(ee):(ae.prototype=ee.prototype,new ae)}}(),c=function(Pe,ne,ee,ae){var q=arguments.length,ue=q<3?ne:ae===null?ae=Object.getOwnPropertyDescriptor(ne,ee):ae,X;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ue=Reflect.decorate(Pe,ne,ee,ae);else for(var he=Pe.length-1;he>=0;he--)(X=Pe[he])&&(ue=(q<3?X(ue):q>3?X(ne,ee,ue):X(ne,ee))||ue);return q>3&&ue&&Object.defineProperty(ne,ee,ue),ue},s=function(Pe,ne){return function(ee,ae){ne(ee,ae,Pe)}},l=Object(v.Tb)("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hc:null},T.a("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0),d=Object(v.Tb)("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hc:null},T.a("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0),m=Object(v.Tb)("editor.wordHighlightBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable.")),E=Object(v.Tb)("editor.wordHighlightStrongBorder",{light:null,dark:null,hc:v.b},T.a("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable.")),L=Object(v.Tb)("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},T.a("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),A=Object(v.Tb)("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hc:"#C0A0C0CC"},T.a("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),k=new f.d("hasWordHighlights",!1);function R(Pe,ne,ee){var ae=_.i.ordered(Pe);return Object(J.h)(ae.map(function(q){return function(){return Promise.resolve(q.provideDocumentHighlights(Pe,ne,ee)).then(void 0,U.f)}}),re.q)}var $=function(){function Pe(ne,ee,ae){var q=this;this._wordRange=this._getCurrentWordRange(ne,ee),this.result=Object(J.f)(function(ue){return q._compute(ne,ee,ae,ue)})}return Pe.prototype._getCurrentWordRange=function(ne,ee){var ae=ne.getWordAtPosition(ee.getPosition());return ae?new H.a(ee.startLineNumber,ae.startColumn,ee.startLineNumber,ae.endColumn):null},Pe.prototype.isValid=function(ne,ee,ae){for(var q=ee.startLineNumber,ue=ee.startColumn,X=ee.endColumn,he=this._getCurrentWordRange(ne,ee),je=Boolean(this._wordRange&&this._wordRange.equalsRange(he)),Xe=0,me=ae.length;!je&&Xe=X&&(je=!0))}return je},Pe.prototype.cancel=function(){this.result.cancel()},Pe}(),ie=function(Pe){p(ne,Pe);function ne(){return Pe!==null&&Pe.apply(this,arguments)||this}return ne.prototype._compute=function(ee,ae,q,ue){return R(ee,ae.getPosition(),ue).then(function(X){return X||[]})},ne}($),W=function(Pe){p(ne,Pe);function ne(ee,ae,q){var ue=Pe.call(this,ee,ae,q)||this;return ue._selectionIsEmpty=ae.isEmpty(),ue}return ne.prototype._compute=function(ee,ae,q,ue){return Object(J.l)(250,ue).then(function(){if(!ae.isEmpty())return[];var X=ee.getWordAtPosition(ae.getPosition());if(!X)return[];var he=ee.findMatches(X.word,!0,!1,!0,q,!1);return he.map(function(je){return{range:je.range,kind:_.h.Text}})})},ne.prototype.isValid=function(ee,ae,q){var ue=ae.isEmpty();return this._selectionIsEmpty!==ue?!1:Pe.prototype.isValid.call(this,ee,ae,q)},ne}($);function B(Pe,ne,ee){return _.i.has(Pe)?new ie(Pe,ne,ee):new W(Pe,ne,ee)}Object(O.k)("_executeDocumentHighlights",function(Pe,ne){return R(Pe,ne,I.a.None)});var le=function(){function Pe(ne,ee){var ae=this;this.toUnhook=new z.b,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=ne,this._hasWordHighlights=k.bindTo(ee),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(61),this.model=this.editor.getModel(),this.toUnhook.add(ne.onDidChangeCursorPosition(function(q){if(ae._ignorePositionChangeEvent)return;if(!ae.occurrencesHighlight)return;ae._onPositionChanged(q)})),this.toUnhook.add(ne.onDidChangeModelContent(function(q){ae._stopAll()})),this.toUnhook.add(ne.onDidChangeConfiguration(function(q){var ue=ae.editor.getOption(61);ae.occurrencesHighlight!==ue&&(ae.occurrencesHighlight=ue,ae._stopAll())})),this._decorationIds=[],this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}return Pe.prototype.hasDecorations=function(){return this._decorationIds.length>0},Pe.prototype.restore=function(){if(!this.occurrencesHighlight)return;this._run()},Pe.prototype._getSortedHighlights=function(){var ne=this;return re.d(this._decorationIds.map(function(ee){return ne.model.getDecorationRange(ee)}).sort(H.a.compareRangesUsingStarts))},Pe.prototype.moveNext=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae+1)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype.moveBack=function(){var ne=this,ee=this._getSortedHighlights(),ae=re.k(ee,function(X){return X.containsPosition(ne.editor.getPosition())}),q=(ae-1+ee.length)%ee.length,ue=ee[q];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(ue.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(ue)}finally{this._ignorePositionChangeEvent=!1}},Pe.prototype._removeDecorations=function(){this._decorationIds.length>0&&(this._decorationIds=this.editor.deltaDecorations(this._decorationIds,[]),this._hasWordHighlights.set(!1))},Pe.prototype._stopAll=function(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)},Pe.prototype._onPositionChanged=function(ne){if(!this.occurrencesHighlight){this._stopAll();return}if(ne.reason!==3){this._stopAll();return}this._run()},Pe.prototype._run=function(){var ne=this,ee=this.editor.getSelection();if(ee.startLineNumber!==ee.endLineNumber){this._stopAll();return}var ae=ee.startLineNumber,q=ee.startColumn,ue=ee.endColumn,X=this.model.getWordAtPosition({lineNumber:ae,column:q});if(!X||X.startColumn>q||X.endColumn=ae?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(function(){ne.renderDecorations()},ae-ee)},Pe.prototype.renderDecorations=function(){this.renderDecorationsTimer=-1;for(var ne=[],ee=0,ae=this.workerRequestValue.length;ee0&&_[_.length-1])&&(p[0]===6||p[0]===2)){x=0;continue}if(p[0]===3&&(!_||p[1]>_[0]&&p[1]<_[3])){x.label=p[1];break}if(p[0]===6&&x.label<_[1]){x.label=_[1],_=p;break}if(_&&x.label<_[2]){x.label=_[2],x.ops.push(p);break}_[2]&&x.ops.pop(),x.trys.pop();continue}p=H.call(O,x)}catch(c){p=[6,c],y=0}finally{u=_=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},z=function(){function O(){}return O.prototype.provideSelectionRanges=function(H,x){return I(this,void 0,void 0,function(){var u,y,_,f,v;return U(this,function(w){switch(w.label){case 0:u=[],y=function(c){var s,l;return U(this,function(d){switch(d.label){case 0:return s=[],u.push(s),l=new Map,[4,new Promise(function(m){return O._bracketsRightYield(m,0,H,c,l)})];case 1:return d.sent(),[4,new Promise(function(m){return O._bracketsLeftYield(m,0,H,c,l,s)})];case 2:return d.sent(),[2]}})},_=0,f=x,w.label=1;case 1:return _=O._maxRounds){H();break}if(!y){H();break}var w=u.findNextBracket(y);if(!w){H();break}var p=Date.now()-v;if(p>O._maxDuration){setTimeout(function(){return O._bracketsRightYield(H,x+1,u,y,_)});break}var c=w.close[0];if(w.isOpen){var s=f.has(c)?f.get(c):0;f.set(c,s+1)}else{var s=f.has(c)?f.get(c):0;if(s-=1,f.set(c,Math.max(0,s)),s<0){var l=_.get(c);l||(l=new J.a,_.set(c,l)),l.push(w.range)}}y=w.range.getEndPosition()}},O._bracketsLeftYield=function(H,x,u,y,_,f){for(var v=new Map,w=Date.now();;){if(x>=O._maxRounds&&_.size===0){H();break}if(!y){H();break}var p=u.findPrevBracket(y);if(!p){H();break}var c=Date.now()-w;if(c>O._maxDuration){setTimeout(function(){return O._bracketsLeftYield(H,x+1,u,y,_,f)});break}var s=p.close[0];if(p.isOpen){var l=v.has(s)?v.get(s):0;if(l-=1,v.set(s,Math.max(0,l)),l<0){var d=_.get(s);if(d){var m=d.shift();d.size===0&&_.delete(s);var E=re.a.fromPositions(p.range.getEndPosition(),m.getStartPosition()),L=re.a.fromPositions(p.range.getStartPosition(),m.getEndPosition());f.push({range:E}),f.push({range:L}),O._addBracketLeading(u,L,f)}}}else{var l=v.has(s)?v.get(s):0;v.set(s,l+1)}y=p.range.getStartPosition()}},O._addBracketLeading=function(H,x,u){if(x.startLineNumber===x.endLineNumber)return;var y=x.startLineNumber,_=H.getLineFirstNonWhitespaceColumn(y);_!==0&&_!==x.startColumn&&(u.push({range:re.a.fromPositions(new T.a(y,_),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(y,1),x.getEndPosition())}));var f=y-1;if(f>0){var v=H.getLineFirstNonWhitespaceColumn(f);v===x.startColumn&&v!==H.getLineLastNonWhitespaceColumn(f)&&(u.push({range:re.a.fromPositions(new T.a(f,v),x.getEndPosition())}),u.push({range:re.a.fromPositions(new T.a(f,1),x.getEndPosition())}))}},O._maxDuration=30,O._maxRounds=2,O}()},ZCR3:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=0;function re(){var I="$memoize"+T++,U=void 0,z=function(H,x,u){var y=null,_=null;if(typeof u.value=="function"?(y="value",_=u.value,_.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof u.get=="function"&&(y="get",_=u.get),!_)throw new Error("not supported");var f=I+":"+x;u[y]=function(){for(var v=[],w=0;wz||I===z&&U>O?(this.startLineNumber=z,this.startColumn=O,this.endLineNumber=I,this.endColumn=U):(this.startLineNumber=I,this.startColumn=U,this.endLineNumber=z,this.endColumn=O)}return J.prototype.isEmpty=function(){return J.isEmpty(this)},J.isEmpty=function(I){return I.startLineNumber===I.endLineNumber&&I.startColumn===I.endColumn},J.prototype.containsPosition=function(I){return J.containsPosition(this,I)},J.containsPosition=function(I,U){return U.lineNumberI.endLineNumber||U.lineNumber===I.startLineNumber&&U.columnI.endColumn)},J.prototype.containsRange=function(I){return J.containsRange(this,I)},J.containsRange=function(I,U){return U.startLineNumberI.endLineNumber||U.endLineNumber>I.endLineNumber||U.startLineNumber===I.startLineNumber&&U.startColumnI.endColumn)},J.prototype.strictContainsRange=function(I){return J.strictContainsRange(this,I)},J.strictContainsRange=function(I,U){return U.startLineNumberI.endLineNumber||U.endLineNumber>I.endLineNumber||U.startLineNumber===I.startLineNumber&&U.startColumn<=I.startColumn)?!1:!(U.endLineNumber===I.endLineNumber&&U.endColumn>=I.endColumn)},J.prototype.plusRange=function(I){return J.plusRange(this,I)},J.plusRange=function(I,U){var z,O,H,x;return U.startLineNumberI.endLineNumber?(H=U.endLineNumber,x=U.endColumn):U.endLineNumber===I.endLineNumber?(H=U.endLineNumber,x=Math.max(U.endColumn,I.endColumn)):(H=I.endLineNumber,x=I.endColumn),new J(z,O,H,x)},J.prototype.intersectRanges=function(I){return J.intersectRanges(this,I)},J.intersectRanges=function(I,U){var z=I.startLineNumber,O=I.startColumn,H=I.endLineNumber,x=I.endColumn,u=U.startLineNumber,y=U.startColumn,_=U.endLineNumber,f=U.endColumn;return z_?(H=_,x=f):H===_&&(x=Math.min(x,f)),z>H||z===H&&O>x?null:new J(z,O,H,x)},J.prototype.equalsRange=function(I){return J.equalsRange(this,I)},J.equalsRange=function(I,U){return!!I&&!!U&&I.startLineNumber===U.startLineNumber&&I.startColumn===U.startColumn&&I.endLineNumber===U.endLineNumber&&I.endColumn===U.endColumn},J.prototype.getEndPosition=function(){return new T.a(this.endLineNumber,this.endColumn)},J.prototype.getStartPosition=function(){return new T.a(this.startLineNumber,this.startColumn)},J.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"},J.prototype.setEndPosition=function(I,U){return new J(this.startLineNumber,this.startColumn,I,U)},J.prototype.setStartPosition=function(I,U){return new J(I,U,this.endLineNumber,this.endColumn)},J.prototype.collapseToStart=function(){return J.collapseToStart(this)},J.collapseToStart=function(I){return new J(I.startLineNumber,I.startColumn,I.startLineNumber,I.startColumn)},J.fromPositions=function(I,U){return U===void 0&&(U=I),new J(I.lineNumber,I.column,U.lineNumber,U.column)},J.lift=function(I){return I?new J(I.startLineNumber,I.startColumn,I.endLineNumber,I.endColumn):null},J.isIRange=function(I){return I&&typeof I.startLineNumber=="number"&&typeof I.startColumn=="number"&&typeof I.endLineNumber=="number"&&typeof I.endColumn=="number"},J.areIntersectingOrTouching=function(I,U){return I.endLineNumberI.startLineNumber},J}()},bY76:function(Lt,j,e){"use strict";e.d(j,"a",function(){return f});var T=e("MNsG"),re=function(){var A=function(R,$){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ie,W){ie.__proto__=W}||function(ie,W){for(var B in W)W.hasOwnProperty(B)&&(ie[B]=W[B])},A(R,$)};return function(k,R){A(k,R);function $(){this.constructor=k}k.prototype=R===null?Object.create(R):($.prototype=R.prototype,new $)}}(),J,I=/^\w[\w\d+.-]*$/,U=/^\//,z=/^\/\//;function O(A,k){if(!A.scheme&&k)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+A.authority+'", path: "'+A.path+'", query: "'+A.query+'", fragment: "'+A.fragment+'"}');if(A.scheme&&!I.test(A.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(A.path){if(A.authority){if(!U.test(A.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(z.test(A.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function H(A,k){return!A&&!k?"file":A}function x(A,k){switch(A){case"https":case"http":case"file":k?k[0]!==y&&(k=y+k):k=y;break}return k}var u="",y="/",_=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,f=function(){function A(k,R,$,ie,W,B){B===void 0&&(B=!1),typeof k=="object"?(this.scheme=k.scheme||u,this.authority=k.authority||u,this.path=k.path||u,this.query=k.query||u,this.fragment=k.fragment||u):(this.scheme=H(k,B),this.authority=R||u,this.path=x(this.scheme,$||u),this.query=ie||u,this.fragment=W||u,O(this,B))}return A.isUri=function(k){return k instanceof A?!0:k?typeof k.authority=="string"&&typeof k.fragment=="string"&&typeof k.path=="string"&&typeof k.query=="string"&&typeof k.scheme=="string"&&typeof k.fsPath=="function"&&typeof k.with=="function"&&typeof k.toString=="function":!1},Object.defineProperty(A.prototype,"fsPath",{get:function(){return l(this)},enumerable:!0,configurable:!0}),A.prototype.with=function(k){if(!k)return this;var R=k.scheme,$=k.authority,ie=k.path,W=k.query,B=k.fragment;return R===void 0?R=this.scheme:R===null&&(R=u),$===void 0?$=this.authority:$===null&&($=u),ie===void 0?ie=this.path:ie===null&&(ie=u),W===void 0?W=this.query:W===null&&(W=u),B===void 0?B=this.fragment:B===null&&(B=u),R===this.scheme&&$===this.authority&&ie===this.path&&W===this.query&&B===this.fragment?this:new w(R,$,ie,W,B)},A.parse=function(k,R){R===void 0&&(R=!1);var $=_.exec(k);return $?new w($[2]||u,L($[4]||u),L($[5]||u),L($[7]||u),L($[9]||u),R):new w(u,u,u,u,u)},A.file=function(k){var R=u;if(T.h&&(k=k.replace(/\\/g,y)),k[0]===y&&k[1]===y){var $=k.indexOf(y,2);$===-1?(R=k.substring(2),k=y):(R=k.substring(2,$),k=k.substring($)||y)}return new w("file",R,k,u,u)},A.from=function(k){return new w(k.scheme,k.authority,k.path,k.query,k.fragment)},A.prototype.toString=function(k){return k===void 0&&(k=!1),d(this,k)},A.prototype.toJSON=function(){return this},A.revive=function(k){if(k){if(k instanceof A)return k;var R=new w(k);return R._formatted=k.external,R._fsPath=k._sep===v?k.fsPath:null,R}else return k},A}(),v=T.h?1:void 0,w=function(A){re(k,A);function k(){var R=A!==null&&A.apply(this,arguments)||this;return R._formatted=null,R._fsPath=null,R}return Object.defineProperty(k.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=l(this)),this._fsPath},enumerable:!0,configurable:!0}),k.prototype.toString=function(R){return R===void 0&&(R=!1),R?d(this,!0):(this._formatted||(this._formatted=d(this,!1)),this._formatted)},k.prototype.toJSON=function(){var R={$mid:1};return this._fsPath&&(R.fsPath=this._fsPath,R._sep=v),this._formatted&&(R.external=this._formatted),this.path&&(R.path=this.path),this.scheme&&(R.scheme=this.scheme),this.authority&&(R.authority=this.authority),this.query&&(R.query=this.query),this.fragment&&(R.fragment=this.fragment),R},k}(f),p=(J={},J[58]="%3A",J[47]="%2F",J[63]="%3F",J[35]="%23",J[91]="%5B",J[93]="%5D",J[64]="%40",J[33]="%21",J[36]="%24",J[38]="%26",J[39]="%27",J[40]="%28",J[41]="%29",J[42]="%2A",J[43]="%2B",J[44]="%2C",J[59]="%3B",J[61]="%3D",J[32]="%20",J);function c(A,k){for(var R=void 0,$=-1,ie=0;ie=97&&W<=122||W>=65&&W<=90||W>=48&&W<=57||W===45||W===46||W===95||W===126||k&&W===47)$!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R!==void 0&&(R+=A.charAt(ie));else{R===void 0&&(R=A.substr(0,ie));var B=p[W];B!==void 0?($!==-1&&(R+=encodeURIComponent(A.substring($,ie)),$=-1),R+=B):$===-1&&($=ie)}}return $!==-1&&(R+=encodeURIComponent(A.substring($))),R!==void 0?R:A}function s(A){for(var k=void 0,R=0;R1&&A.scheme==="file"?k="//"+A.authority+A.path:A.path.charCodeAt(0)===47&&(A.path.charCodeAt(1)>=65&&A.path.charCodeAt(1)<=90||A.path.charCodeAt(1)>=97&&A.path.charCodeAt(1)<=122)&&A.path.charCodeAt(2)===58?k=A.path[1].toLowerCase()+A.path.substr(2):k=A.path,T.h&&(k=k.replace(/\//g,"\\")),k}function d(A,k){var R=k?s:c,$="",ie=A.scheme,W=A.authority,B=A.path,le=A.query,Ce=A.fragment;if(ie&&($+=ie,$+=":"),(W||ie==="file")&&($+=y,$+=y),W){var Me=W.indexOf("@");if(Me!==-1){var Te=W.substr(0,Me);W=W.substr(Me+1),Me=Te.indexOf(":"),Me===-1?$+=R(Te,!1):($+=R(Te.substr(0,Me),!1),$+=":",$+=R(Te.substr(Me+1),!1)),$+="@"}W=W.toLowerCase(),Me=W.indexOf(":"),Me===-1?$+=R(W,!1):($+=R(W.substr(0,Me),!1),$+=W.substr(Me))}if(B){if(B.length>=3&&B.charCodeAt(0)===47&&B.charCodeAt(2)===58){var Fe=B.charCodeAt(1);Fe>=65&&Fe<=90&&(B="/"+String.fromCharCode(Fe+32)+":"+B.substr(3))}else if(B.length>=2&&B.charCodeAt(1)===58){var Fe=B.charCodeAt(0);Fe>=65&&Fe<=90&&(B=String.fromCharCode(Fe+32)+":"+B.substr(2))}$+=R(B,!0)}return le&&($+="?",$+=R(le,!1)),Ce&&($+="#",$+=k?Ce:c(Ce,!1)),$}function m(A){try{return decodeURIComponent(A)}catch(k){return A.length>3?A.substr(0,3)+m(A.substr(3)):A}}var E=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(A){return A.match(E)?A.replace(E,function(k){return m(k)}):A}},ba9Q:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("LCkn"),I=e("aokT"),U=e("wQH0"),z=e("+Fos"),O=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),H=function(x){O(u,x);function u(){return x.call(this,{id:"editor.action.transposeLetters",label:T.a("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:U.a.writable,kbOpts:{kbExpr:U.a.textInputFocus,primary:0,mac:{primary:256|50},weight:100}})||this}return u.prototype.run=function(y,_){if(!_.hasModel())return;for(var f=_.getModel(),v=[],w=_.getSelections(),p=0,c=w;p0&&(_.pushUndoStop(),_.executeCommands(this.id,v),_.pushUndoStop())},u}(re.b);Object(re.f)(H)},baJR:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"c",function(){return z}),e.d(j,"a",function(){return O}),e.d(j,"d",function(){return x}),e.d(j,"e",function(){return y});var T=e("N0LK"),re=e("erNZ"),J=e("dBaI"),I=function(){function l(d,m){this.endIndex=d,this.type=m}return l}(),U=function(){function l(d,m){this.startOffset=d,this.endOffset=m}return l.prototype.equals=function(d){return this.startOffset===d.startOffset&&this.endOffset===d.endOffset},l}(),z=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te,Fe,Ue,Pe){this.useMonospaceOptimizations=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.continuesWithWrappedLine=L,this.isBasicASCII=A,this.containsRTL=k,this.fauxIndentLength=R,this.lineTokens=$,this.lineDecorations=ie,this.tabSize=W,this.startVisibleColumn=B,this.spaceWidth=le,this.middotWidth=Ce,this.stopRenderingLineAfter=Me,this.renderWhitespace=Te==="all"?3:Te==="boundary"?1:Te==="selection"?2:0,this.renderControlCharacters=Fe,this.fontLigatures=Ue,this.selectionsOnLine=Pe&&Pe.sort(function(ne,ee){return ne.startOffset>>16},l.getCharIndex=function(d){return(d&65535)>>>0},l.prototype.setPartData=function(d,m,E,L){var A=(m<<16|E<<0)>>>0;this._data[d]=A,this._absoluteOffsets[d]=L+E},l.prototype.getAbsoluteOffsets=function(){return this._absoluteOffsets},l.prototype.charOffsetToPartData=function(d){return this.length===0?0:d<0?this._data[0]:d>=this.length?this._data[this.length-1]:this._data[d]},l.prototype.partDataToCharOffset=function(d,m,E){if(this.length===0)return 0;for(var L=(d<<16|E<<0)>>>0,A=0,k=this.length-1;A+1>>1,$=this._data[R];if($===L)return R;$>L?k=R:A=R}if(A===k)return A;var ie=this._data[A],W=this._data[k];if(ie===L)return A;if(W===L)return k;var B=l.getPartIndex(ie),le=l.getCharIndex(ie),Ce=l.getPartIndex(W),Me;B!==Ce?Me=m:Me=l.getCharIndex(W);var Te=E-le,Fe=Me-E;return Te<=Fe?A:k},l}(),H=function(){function l(d,m,E){this.characterMapping=d,this.containsRTL=m,this.containsForeignElements=E}return l}();function x(l,d){if(l.lineContent.length===0){var m=0,E="\xA0";if(l.lineDecorations.length>0){for(var L=[],A=[],k=0,R=l.lineDecorations.length;k0?'':"",W=A.length>0?'':"";E=""+ie+W+""}}return d.appendASCIIString(E),new H(new O(0,0),!1,m)}return s(f(l),d)}var u=function(){function l(d,m,E,L){this.characterMapping=d,this.html=m,this.containsRTL=E,this.containsForeignElements=L}return l}();function y(l){var d=Object(re.a)(1e4),m=x(l,d);return new u(m.characterMapping,d.build(),m.containsRTL,m.containsForeignElements)}var _=function(){function l(d,m,E,L,A,k,R,$,ie,W,B,le,Ce,Me,Te){this.fontIsMonospace=d,this.canUseHalfwidthRightwardsArrow=m,this.lineContent=E,this.len=L,this.isOverflowing=A,this.parts=k,this.containsForeignElements=R,this.fauxIndentLength=$,this.tabSize=ie,this.startVisibleColumn=W,this.containsRTL=B,this.spaceWidth=le,this.middotWidth=Ce,this.renderWhitespace=Me,this.renderControlCharacters=Te}return l}();function f(l){var d=l.useMonospaceOptimizations,m=l.lineContent,E,L;l.stopRenderingLineAfter!==-1&&l.stopRenderingLineAfter0){for(var R=0,$=l.lineDecorations.length;R<$;R++){var ie=l.lineDecorations[R];ie.type===3||ie.type===1?k|=1:ie.type===2&&(k|=2)}A=c(m,L,A,l.lineDecorations)}return l.containsRTL||(A=w(m,A,!l.isBasicASCII||l.fontLigatures)),new _(d,l.canUseHalfwidthRightwardsArrow,m,L,E,A,k,l.fauxIndentLength,l.tabSize,l.startVisibleColumn,l.containsRTL,l.spaceWidth,l.middotWidth,l.renderWhitespace,l.renderControlCharacters)}function v(l,d,m){var E=[],L=0;d>0&&(E[L++]=new I(d,""));for(var A=0,k=l.getCount();A=m){E[L++]=new I(m,$);break}E[L++]=new I(R,$)}return E}function w(l,d,m){var E=0,L=[],A=0;if(m)for(var k=0,R=d.length;k=50&&(L[A++]=new I(B+1,W),le=B+1,B=-1);le!==ie&&(L[A++]=new I(ie,W))}else L[A++]=$;E=ie}else for(var k=0,R=d.length;k50){for(var W=$.type,Te=Math.ceil(Me/50),Ce=1;Ce=ee.endOffset&&(ne++,ee=$&&$[ne]);var X=void 0;if(qUe)X=!0;else if(ue===9)X=!0;else if(ue===32)if(ie)if(Pe)X=!0;else{var he=q+1q),Pe?(!X||!R&&ae>=A)&&(W[B++]=new I(q,"vs-whitespace"),ae=ae%A):(q===Me||X&&q>L)&&(W[B++]=new I(q,Ce),ae=ae%A),ue===9?ae=A:T.y(ue)?ae+=2:ae++,Pe=X,q===Me&&(le++,le0?l.charCodeAt(d-1):0,me=d>1?l.charCodeAt(d-2):0,ge=Xe===32&&me!==32&&me!==9;ge||(je=!0)}else je=!0;return W[B++]=new I(d,je?"vs-whitespace":Ce),W}function c(l,d,m,E){E.sort(J.a.compare);for(var L=J.b.normalize(l,E),A=L.length,k=0,R=[],$=0,ie=0,W=0,B=m.length;Wie&&(ie=Te.startOffset,R[$++]=new I(ie,Me)),Te.endOffset+1<=Ce)ie=Te.endOffset+1,R[$++]=new I(ie,Me+" "+Te.className),k++;else{ie=Ce,R[$++]=new I(ie,Me+" "+Te.className);break}}Ce>ie&&(ie=Ce,R[$++]=new I(ie,Me))}var Fe=m[m.length-1].endIndex;if(kCe?11825:183,Pe=new O(k+1,$.length),ne=0,ee=B,ae=0,q=0,ue=0;d.appendASCIIString("");for(var X=0,he=$.length;X=0;if(ae=0,d.appendASCIIString('1?d.write1(8594):d.write1(65515);for(var F=2;F<=Q;F++)d.write1(160)}else Q=1,d.write1(Ue);ae+=Q,ne>=ie&&(ee+=Q)}q=we}else{var we=0;for(le&&d.appendASCIIString(' dir="ltr"'),d.appendASCII(62);ne=ie&&(ee+=Q)}q=we}d.appendASCIIString("")}return Pe.setPartData(k,$.length-1,ae,ue),R&&d.appendASCIIString(""),d.appendASCIIString(""),new H(Pe,le,L)}},bexQ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("keybindingService")},bfR1:function(Lt,j,e){"use strict";e.r(j);var T=e("3/fG"),re=e("sswD"),J=e("Yr1X"),I=function(){var H=function(u,y){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,f){_.__proto__=f}||function(_,f){for(var v in f)f.hasOwnProperty(v)&&(_[v]=f[v])},H(u,y)};return function(x,u){H(x,u);function y(){this.constructor=x}x.prototype=u===null?Object.create(u):(y.prototype=u.prototype,new y)}}(),U=function(H){I(x,H);function x(){return H.call(this,{id:"editor.action.fontZoomIn",label:T.a("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()+1)},x}(re.b),z=function(H){I(x,H);function x(){return H.call(this,{id:"editor.action.fontZoomOut",label:T.a("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(J.a.getZoomLevel()-1)},x}(re.b),O=function(H){I(x,H);function x(){return H.call(this,{id:"editor.action.fontZoomReset",label:T.a("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})||this}return x.prototype.run=function(u,y){J.a.setZoomLevel(0)},x}(re.b);Object(re.f)(U),Object(re.f)(z),Object(re.f)(O)},bk7F:function(Lt,j,e){"use strict";e.r(j),e.d(j,"BracketMatchingController",function(){return E});var T=e("8ATB"),re=e.n(T),J=e("3/fG"),I=e("X+cX"),U=e("pmY6"),z=e("sswD"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("wQH0"),y=e("M1Kb"),_=e("tX9W"),f=e("kYye"),v=e("MD5Z"),w=e("t9D7"),p=e("fjLI"),c=function(){var L=function(k,R){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,ie){$.__proto__=ie}||function($,ie){for(var W in ie)ie.hasOwnProperty(W)&&($[W]=ie[W])},L(k,R)};return function(A,k){L(A,k);function R(){this.constructor=A}A.prototype=k===null?Object.create(k):(R.prototype=k.prototype,new R)}}(),s=Object(v.Tb)("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hc:"#A0A0A0"},J.a("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),l=function(L){c(A,L);function A(){return L.call(this,{id:"editor.action.jumpToBracket",label:J.a("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:u.a.editorTextFocus,primary:2048|1024|88,weight:100}})||this}return A.prototype.run=function(k,R){var $=E.get(R);if(!$)return;$.jumpToBracket()},A}(z.b),d=function(L){c(A,L);function A(){return L.call(this,{id:"editor.action.selectToBracket",label:J.a("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})||this}return A.prototype.run=function(k,R,$){var ie=E.get(R);if(!ie)return;var W=!0;$&&$.selectBrackets===!1&&(W=!1),ie.selectToBracket(W)},A}(z.b),m=function(){function L(A,k,R){this.position=A,this.brackets=k,this.options=R}return L}(),E=function(L){c(A,L);function A(k){var R=L.call(this)||this;return R._editor=k,R._lastBracketsData=[],R._lastVersionId=0,R._decorations=[],R._updateBracketsSoon=R._register(new I.d(function(){return R._updateBrackets()},50)),R._matchBrackets=R._editor.getOption(53),R._updateBracketsSoon.schedule(),R._register(k.onDidChangeCursorPosition(function($){if(R._matchBrackets==="never")return;R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelContent(function($){R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModel(function($){R._lastBracketsData=[],R._decorations=[],R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeModelLanguageConfiguration(function($){R._lastBracketsData=[],R._updateBracketsSoon.schedule()})),R._register(k.onDidChangeConfiguration(function($){$.hasChanged(53)&&(R._matchBrackets=R._editor.getOption(53),R._decorations=R._editor.deltaDecorations(R._decorations,[]),R._lastBracketsData=[],R._lastVersionId=0,R._updateBracketsSoon.schedule())})),R}return A.get=function(k){return k.getContribution(A.ID)},A.prototype.jumpToBracket=function(){if(!this._editor.hasModel())return;var k=this._editor.getModel(),R=this._editor.getSelections().map(function($){var ie=$.getStartPosition(),W=k.matchBracket(ie),B=null;if(W)W[0].containsPosition(ie)?B=W[1].getStartPosition():W[1].containsPosition(ie)&&(B=W[0].getStartPosition());else{var le=k.findEnclosingBrackets(ie);if(le)B=le[0].getStartPosition();else{var Ce=k.findNextBracket(ie);Ce&&Ce.range&&(B=Ce.range.getStartPosition())}}return B?new x.a(B.lineNumber,B.column,B.lineNumber,B.column):new x.a(ie.lineNumber,ie.column,ie.lineNumber,ie.column)});this._editor.setSelections(R),this._editor.revealRange(R[0])},A.prototype.selectToBracket=function(k){if(!this._editor.hasModel())return;var R=this._editor.getModel(),$=[];this._editor.getSelections().forEach(function(ie){var W=ie.getStartPosition(),B=R.matchBracket(W);if(!B&&(B=R.findEnclosingBrackets(W),!B)){var le=R.findNextBracket(W);le&&le.range&&(B=R.matchBracket(le.range.getStartPosition()))}var Ce=null,Me=null;if(B){B.sort(H.a.compareRangesUsingStarts);var Te=B[0],Fe=B[1];Ce=k?Te.getStartPosition():Te.getEndPosition(),Me=k?Fe.getEndPosition():Fe.getStartPosition()}Ce&&Me&&$.push(new x.a(Ce.lineNumber,Ce.column,Me.lineNumber,Me.column))}),$.length>0&&(this._editor.setSelections($),this._editor.revealRange($[0]))},A.prototype._updateBrackets=function(){if(this._matchBrackets==="never")return;this._recomputeBrackets();for(var k=[],R=0,$=0,ie=this._lastBracketsData;$100){this._lastBracketsData=[],this._lastVersionId=0;return}var R=this._editor.getModel(),$=R.getVersionId(),ie=[];this._lastVersionId===$&&(ie=this._lastBracketsData);for(var W=[],B=0,le=0,Ce=k.length;le1&&W.sort(O.a.compare);for(var Te=[],Fe=0,Ue=0,Pe=ie.length,le=0,Ce=W.length;le0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]=0;oe--)(se=Re[oe])&&(F=(C<3?se(F):C>3?se(Ee,ve,F):se(Ee,ve))||F);return C>3&&F&&Object.defineProperty(Ee,ve,F),F},X=function(Re,Ee){return function(ve,Q){Ee(ve,Q,Re)}},he=function(Re,Ee,ve,Q){function C(F){return F instanceof ve?F:new ve(function(se){se(F)})}return new(ve||(ve=Promise))(function(F,se){function oe(Se){try{De(Q.next(Se))}catch(Ve){se(Ve)}}function be(Se){try{De(Q.throw(Se))}catch(Ve){se(Ve)}}function De(Se){Se.done?F(Se.value):C(Se.value).then(oe,be)}De((Q=Q.apply(Re,Ee||[])).next())})},je=function(Re,Ee){var ve={label:0,sent:function(){if(F[0]&1)throw F[1];return F[1]},trys:[],ops:[]},Q,C,F,se;return se={next:oe(0),throw:oe(1),return:oe(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function oe(De){return function(Se){return be([De,Se])}}function be(De){if(Q)throw new TypeError("Generator is already executing.");for(;ve;)try{if(Q=1,C&&(F=De[0]&2?C.return:De[0]?C.throw||((F=C.return)&&F.call(C),0):C.next)&&!(F=F.call(C,De[1])).done)return F;(C=0,F)&&(De=[De[0]&2,F.value]);switch(De[0]){case 0:case 1:F=De;break;case 4:return ve.label++,{value:De[1],done:!1};case 5:ve.label++,C=De[1],De=[0];continue;case 7:De=ve.ops.pop(),ve.trys.pop();continue;default:if(!(F=ve.trys,F=F.length>0&&F[F.length-1])&&(De[0]===6||De[0]===2)){ve=0;continue}if(De[0]===3&&(!F||De[1]>F[0]&&De[1]1)return;var Q=this._editor.getModel(),C=this._editor.getPosition(),F=!1,se=this._editor.onDidChangeModelContent(function(oe){if(oe.isFlush){F=!0,se.dispose();return}for(var be=0,De=oe.changes.length;be1)return;this._instantiationService.invokeFunction(Me,this.editor,Ee,2,re.a.None).catch(f.e)},Re.ID="editor.contrib.formatOnPaste",Re=ue([X(1,A.a)],Re),Re}(),ge=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatDocument",label:E.a("formatDocument.label","Format Document"),alias:"Format Document",precondition:ae.a.and(x.a.writable,x.a.hasDocumentFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentFormattingProvider),primary:1024|512|36,linux:{primary:2048|1024|39},weight:100},contextMenuOpts:{when:x.a.hasDocumentFormattingProvider,group:"1_modification",order:1.3}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var C;return je(this,function(F){switch(F.label){case 0:return Q.hasModel()?(C=ve.get(A.a),[4,C.invokeFunction(Fe,Q,1,re.a.None)]):[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})},Ee}(U.b),we=function(Re){q(Ee,Re);function Ee(){return Re.call(this,{id:"editor.action.formatSelection",label:E.a("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ae.a.and(x.a.writable,x.a.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:ae.a.and(x.a.editorTextFocus,x.a.hasDocumentSelectionFormattingProvider),primary:Object(J.a)(2048|41,2048|36),weight:100},contextMenuOpts:{when:ae.a.and(x.a.hasDocumentSelectionFormattingProvider,x.a.hasNonEmptySelection),group:"1_modification",order:1.31}})||this}return Ee.prototype.run=function(ve,Q){return he(this,void 0,void 0,function(){var C,F,se;return je(this,function(oe){switch(oe.label){case 0:return Q.hasModel()?(C=ve.get(A.a),F=Q.getModel(),se=Q.getSelection(),se.isEmpty()&&(se=new H.a(se.startLineNumber,1,se.startLineNumber,F.getLineMaxColumn(se.startLineNumber))),[4,C.invokeFunction(Me,Q,se,1,re.a.None)]):[2];case 1:return oe.sent(),[2]}})})},Ee}(U.b);Object(U.h)(Xe.ID,Xe),Object(U.h)(me.ID,me),Object(U.f)(ge),Object(U.f)(we),R.a.registerCommand("editor.action.format",function(Re){return he(void 0,void 0,void 0,function(){var Ee,ve;return je(this,function(Q){switch(Q.label){case 0:return Ee=Re.get(z.a).getFocusedCodeEditor(),!Ee||!Ee.hasModel()?[2]:(ve=Re.get(R.b),Ee.getSelection().isEmpty()?[4,ve.executeCommand("editor.action.formatDocument")]:[3,2]);case 1:return Q.sent(),[3,4];case 2:return[4,ve.executeCommand("editor.action.formatSelection")];case 3:Q.sent(),Q.label=4;case 4:return[2]}})})})},cMOf:function(Lt,j,e){"use strict";e.d(j,"a",function(){return w});var T=e("undH"),re=e.n(T),J=e("pmY6"),I=e("D3Dy"),U=e("MNsG"),z=e("746U"),O=e("pg8w"),H=e("XSiN"),x=e("MI8n"),u=e("EffR"),y=e("4y0V"),_=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),f=function(){for(var p=0,c=0,s=arguments.length;c=this.el.clientHeight-4)return this.orthogonalEndSash}else{if(s.offsetX<=4)return this.orthogonalStartSash;if(s.offsetX>=this.el.clientWidth-4)return this.orthogonalEndSash}return},c.prototype.dispose=function(){p.prototype.dispose.call(this),this.el.remove()},c}(J.a)},cMvZ:function(Lt,j,e){"use strict";e.d(j,"a",function(){return p});var T=e("MI8n"),re=e("pmY6"),J=e("N0LK"),I=e("0JNc"),U=e("KDc4"),z=e("BFtn"),O=function(){function c(s){if(s.autoClosingPairs?this._autoClosingPairs=s.autoClosingPairs.map(function(d){return new U.b(d)}):s.brackets?this._autoClosingPairs=s.brackets.map(function(d){return new U.b({open:d[0],close:d[1]})}):this._autoClosingPairs=[],s.__electricCharacterSupport&&s.__electricCharacterSupport.docComment){var l=s.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new U.b({open:l.open,close:l.close||""}))}this._autoCloseBefore=typeof s.autoCloseBefore=="string"?s.autoCloseBefore:c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED,this._surroundingPairs=s.surroundingPairs||this._autoClosingPairs}return c.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs},c.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore},c.shouldAutoClosePair=function(s,l,d){if(l.getTokenCount()===0)return!0;var m=l.findTokenIndexAtOffset(d-2),E=l.getStandardTokenType(m);return s.isOK(E)},c.prototype.getSurroundingPairs=function(){return this._surroundingPairs},c.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=`;:.,=}])> + `,c}(),H=e("EIAu"),x=function(){function c(s){this._richEditBrackets=s}return c.prototype.getElectricCharacters=function(){var s=[];if(this._richEditBrackets)for(var l=0,d=this._richEditBrackets.brackets;l=3)for(var E=0,L=this._regExpRules.length;E=2&&(d.length>0&&m.length>0))for(var E=0,L=this._brackets.length;E=2&&d.length>0)for(var E=0,L=this._brackets.length;E1){var E=void 0,L=-1;for(E=l-1;E>=1;E--){if(s.getLanguageIdAtPosition(E,0)!==m)return L;var A=s.getLineContent(E);if(d.shouldIgnore(A)||/^\s+$/.test(A)||A===""){L=E;continue}return E}}return-1},c.prototype.getInheritIndentForLine=function(s,l,d,m){if(m===void 0&&(m=!0),s<4)return null;var E=this.getIndentRulesSupport(l.getLanguageIdentifier().id);if(!E)return null;if(d<=1)return{indentation:"",action:null};var L=this.getPrecedingValidLine(l,d,E);if(L<0)return null;if(L<1)return{indentation:"",action:null};var A=l.getLineContent(L);if(E.shouldIncrease(A)||E.shouldIndentNextLine(A))return{indentation:J.t(A),action:U.a.Indent,line:L};if(E.shouldDecrease(A))return{indentation:J.t(A),action:null,line:L};if(L===1)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};var k=L-1,R=E.getIndentMetadata(l.getLineContent(k));if(!(R&(1|2))&&R&4){for(var $=0,ie=k-1;ie>0;ie--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=ie;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}if(m)return{indentation:J.t(l.getLineContent(L)),action:null,line:L};for(var ie=L;ie>0;ie--){var W=l.getLineContent(ie);if(E.shouldIncrease(W))return{indentation:J.t(W),action:U.a.Indent,line:ie};if(E.shouldIndentNextLine(W)){for(var $=0,B=ie-1;B>0;B--){if(E.shouldIndentNextLine(l.getLineContent(ie)))continue;$=B;break}return{indentation:J.t(l.getLineContent($+1)),action:null,line:$+1}}else if(E.shouldDecrease(W))return{indentation:J.t(W),action:null,line:ie}}return{indentation:J.t(l.getLineContent(1)),action:null,line:1}},c.prototype.getGoodIndentForLine=function(s,l,d,m,E){if(s<4)return null;var L=this._getRichEditSupport(d);if(!L)return null;var A=this.getIndentRulesSupport(d);if(!A)return null;var k=this.getInheritIndentForLine(s,l,m),R=l.getLineContent(m);if(k){var $=k.line;if($!==void 0){var ie=L.onEnter(s,"",l.getLineContent($),"");if(ie){var W=J.t(l.getLineContent($));return ie.removeText&&(W=W.substring(0,W.length-ie.removeText)),ie.indentAction===U.a.Indent||ie.indentAction===U.a.IndentOutdent?W=E.shiftIndent(W):ie.indentAction===U.a.Outdent&&(W=E.unshiftIndent(W)),A.shouldDecrease(R)&&(W=E.unshiftIndent(W)),ie.appendText&&(W+=ie.appendText),J.t(W)}}return A.shouldDecrease(R)?k.action===U.a.Indent?k.indentation:E.unshiftIndent(k.indentation):k.action===U.a.Indent?E.shiftIndent(k.indentation):k.indentation}return null},c.prototype.getIndentForEnter=function(s,l,d,m){if(s<4)return null;l.forceTokenization(d.startLineNumber);var E=l.getLineTokens(d.startLineNumber),L=Object(z.a)(E,d.startColumn-1),A=L.getLineContent(),k=!1,R;L.firstCharOffset>0&&E.getLanguageId(0)!==L.languageId?(k=!0,R=A.substr(0,d.startColumn-1-L.firstCharOffset)):R=E.getLineContent().substring(0,d.startColumn-1);var $;if(d.isEmpty())$=A.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}var W=this.getIndentRulesSupport(L.languageId);if(!W)return null;var B=R,le=J.t(R),Ce={getLineTokens:function(ne){return l.getLineTokens(ne)},getLanguageIdentifier:function(){return l.getLanguageIdentifier()},getLanguageIdAtPosition:function(ne,ee){return l.getLanguageIdAtPosition(ne,ee)},getLineContent:function(ne){return ne===d.startLineNumber?B:l.getLineContent(ne)}},Me=J.t(E.getLineContent()),Te=this.getInheritIndentForLine(s,Ce,d.startLineNumber+1);if(!Te){var Fe=k?Me:le;return{beforeEnter:Fe,afterEnter:Fe}}var Ue=k?Me:Te.indentation;return Te.action===U.a.Indent&&(Ue=m.shiftIndent(Ue)),W.shouldDecrease($)&&(Ue=m.unshiftIndent(Ue)),{beforeEnter:k?Me:le,afterEnter:Ue}},c.prototype.getIndentActionForType=function(s,l,d,m,E){if(s<4)return null;var L=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),A=this.getIndentRulesSupport(L.languageId);if(!A)return null;var k=L.getLineContent(),R=k.substr(0,d.startColumn-1-L.firstCharOffset),$;if(d.isEmpty())$=k.substr(d.startColumn-1-L.firstCharOffset);else{var ie=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);$=ie.getLineContent().substr(d.endColumn-1-L.firstCharOffset)}if(!A.shouldDecrease(R+$)&&A.shouldDecrease(R+m+$)){var W=this.getInheritIndentForLine(s,l,d.startLineNumber,!1);if(!W)return null;var B=W.indentation;return W.action!==U.a.Indent&&(B=E.unshiftIndent(B)),B}return null},c.prototype.getIndentMetadata=function(s,l){var d=this.getIndentRulesSupport(s.getLanguageIdentifier().id);return d?l<1||l>s.getLineCount()?null:d.getIndentMetadata(s.getLineContent(l)):null},c.prototype.getEnterAction=function(s,l,d){var m=this.getScopedLineTokens(l,d.startLineNumber,d.startColumn),E=this._getRichEditSupport(m.languageId);if(!E)return null;var L=m.getLineContent(),A=L.substr(0,d.startColumn-1-m.firstCharOffset),k;if(d.isEmpty())k=L.substr(d.startColumn-1-m.firstCharOffset);else{var R=this.getScopedLineTokens(l,d.endLineNumber,d.endColumn);k=R.getLineContent().substr(d.endColumn-1-m.firstCharOffset)}var $="";if(d.startLineNumber>1&&m.firstCharOffset===0){var ie=this.getScopedLineTokens(l,d.startLineNumber-1);ie.languageId===m.languageId&&($=ie.getLineContent())}var W=E.onEnter(s,$,A,k);if(!W)return null;var B=W.indentAction,le=W.appendText,Ce=W.removeText||0;le||(B===U.a.Indent||B===U.a.IndentOutdent?le=" ":le="");var Me=this.getIndentationAtPosition(l,d.startLineNumber,d.startColumn);return Ce&&(Me=Me.substring(0,Me.length-Ce)),{indentAction:B,appendText:le,removeText:Ce,indentation:Me}},c.prototype.getIndentationAtPosition=function(s,l,d){var m=s.getLineContent(l),E=J.t(m);return E.length>d-1&&(E=E.substring(0,d-1)),E},c.prototype.getScopedLineTokens=function(s,l,d){s.forceTokenization(l);var m=s.getLineTokens(l),E=typeof d=="undefined"?s.getLineMaxColumn(l)-1:d-1;return Object(z.a)(m,E)},c.prototype.getBracketsSupport=function(s){var l=this._getRichEditSupport(s);return l&&l.brackets||null},c}(),p=new w},"ci+S":function(Lt,j,e){},cl4r:function(Lt,j,e){},cldp:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"javascript",extensions:[".js",".es6",".jsx"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:function(){return e.e(268).then(e.bind(null,"7Xl7"))}})},cqdO:function(Lt,j,e){"use strict";e.d(j,"a",function(){return Me}),e.d(j,"f",function(){return Ue}),e.d(j,"e",function(){return Pe}),e.d(j,"d",function(){return q}),e.d(j,"b",function(){return ue}),e.d(j,"c",function(){return ve});var T=e("4rho"),re=e("3/fG"),J=e("pmY6"),I=e("746U"),U=e("6OMU"),z=e("ZCR3"),O=e("EffR"),H=e("MNsG"),x=e("pg8w"),u=e("uDWl"),y=e("MI8n"),_=e("4y0V"),f=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),v;(function(Q){Q.TREE="tree",Q.FORM="form"})(v||(v={}));var w=function(Q){f(C,Q);function C(F,se){return Q.call(this,"ListError ["+F+"] "+se)||this}return C}(Error),p=e("feEw"),c=e("zrhQ"),s=e("qj0h"),l=function(){function Q(C){this.spliceables=C}return Q.prototype.splice=function(C,F,se){this.spliceables.forEach(function(oe){return oe.splice(C,F,se)})},Q}(),d=e("Sdnv"),m=e("fpMC"),E=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),L=function(){return L=Object.assign||function(Q){for(var C,F=1,se=arguments.length;F=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},k=function(){for(var Q=0,C=0,F=arguments.length;C=0){var be=this.renderedElements[oe];this.trait.unrender(se),be.index=F}else{var be={index:F,templateData:se};this.renderedElements.push(be)}this.trait.renderIndex(F,se)},Q.prototype.splice=function(C,F,se){for(var oe=[],be=0,De=this.renderedElements;be=C+F&&oe.push({index:Se.index+se-F,templateData:Se.templateData})}this.renderedElements=oe},Q.prototype.renderIndexes=function(C){for(var F=0,se=this.renderedElements;F-1&&this.trait.renderIndex(be,De)}},Q.prototype.disposeTemplate=function(C){var F=Object(U.k)(this.renderedElements,function(se){return se.templateData===C});if(F<0)return;this.renderedElements.splice(F,1)},Q}(),$=function(){function Q(C){this._trait=C,this.indexes=[],this.sortedIndexes=[],this._onChange=new y.a,this.onChange=this._onChange.event}return Object.defineProperty(Q.prototype,"trait",{get:function(){return this._trait},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"renderer",{get:function(){return new R(this)},enumerable:!0,configurable:!0}),Q.prototype.splice=function(C,F,se){var oe=se.length-F,be=C+F,De=k(this.sortedIndexes.filter(function(Se){return Se=be}).map(function(Se){return Se+oe}));this.renderer.splice(C,F,se.length),this._set(De,De)},Q.prototype.renderIndex=function(C,F){O.Y(F,this._trait,this.contains(C))},Q.prototype.unrender=function(C){O.P(C,this._trait)},Q.prototype.set=function(C,F){return this._set(C,k(C).sort(ge),F)},Q.prototype._set=function(C,F,se){var oe=this.indexes,be=this.sortedIndexes;this.indexes=C,this.sortedIndexes=F;var De=Xe(be,C);return this.renderer.renderIndexes(De),this._onChange.fire({indexes:C,browserEvent:se}),oe},Q.prototype.get=function(){return this.indexes},Q.prototype.contains=function(C){return Object(U.c)(this.sortedIndexes,C,ge)>=0},Q.prototype.dispose=function(){Object(J.f)(this._onChange)},A([z.a],Q.prototype,"renderer",null),Q}(),ie=function(Q){E(C,Q);function C(){return Q.call(this,"focused")||this}return C.prototype.renderIndex=function(F,se){Q.prototype.renderIndex.call(this,F,se),this.contains(F)?se.setAttribute("aria-selected","true"):se.removeAttribute("aria-selected")},C}($),W=function(){function Q(C,F,se){this.trait=C,this.view=F,this.identityProvider=se}return Q.prototype.splice=function(C,F,se){var oe=this;if(!this.identityProvider)return this.trait.splice(C,F,se.map(function(){return!1}));var be=this.trait.get().map(function(Se){return oe.identityProvider.getId(oe.view.element(Se)).toString()}),De=se.map(function(Se){return be.indexOf(oe.identityProvider.getId(Se).toString())>-1});this.trait.splice(C,F,De)},Q}();function B(Q){return Q.tagName==="INPUT"||Q.tagName==="TEXTAREA"}var le=function(){function Q(C,F,se){this.list=C,this.view=F,this.disposables=new J.b;var oe=se.multipleSelectionSupport!==!1;this.openController=se.openController||ae;var be=y.b.chain(Object(_.a)(F.domNode,"keydown")).filter(function(De){return!B(De.target)}).map(function(De){return new u.a(De)});be.filter(function(De){return De.keyCode===3}).on(this.onEnter,this,this.disposables),be.filter(function(De){return De.keyCode===16}).on(this.onUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===18}).on(this.onDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===11}).on(this.onPageUpArrow,this,this.disposables),be.filter(function(De){return De.keyCode===12}).on(this.onPageDownArrow,this,this.disposables),be.filter(function(De){return De.keyCode===9}).on(this.onEscape,this,this.disposables),oe&&be.filter(function(De){return(H.e?De.metaKey:De.ctrlKey)&&De.keyCode===31}).on(this.onCtrlA,this,this.disposables)}return Q.prototype.onEnter=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(this.list.getFocus(),C.browserEvent),this.openController.shouldOpen(C.browserEvent)&&this.list.open(this.list.getFocus(),C.browserEvent)},Q.prototype.onUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPrevious(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNext(1,!1,C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageUpArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusPreviousPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onPageDownArrow=function(C){C.preventDefault(),C.stopPropagation(),this.list.focusNextPage(C.browserEvent),this.list.reveal(this.list.getFocus()[0]),this.view.domNode.focus()},Q.prototype.onCtrlA=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection(Object(U.u)(this.list.length),C.browserEvent),this.view.domNode.focus()},Q.prototype.onEscape=function(C){C.preventDefault(),C.stopPropagation(),this.list.setSelection([],C.browserEvent),this.view.domNode.focus()},Q.prototype.dispose=function(){this.disposables.dispose()},Q}(),Ce;(function(Q){Q[Q.Idle=0]="Idle",Q[Q.Typing=1]="Typing"})(Ce||(Ce={}));var Me=new(function(){function Q(){}return Q.prototype.mightProducePrintableCharacter=function(C){return C.ctrlKey||C.metaKey||C.altKey?!1:C.keyCode>=31&&C.keyCode<=56||C.keyCode>=21&&C.keyCode<=30||C.keyCode>=93&&C.keyCode<=102||C.keyCode>=80&&C.keyCode<=90},Q}()),Te=function(){function Q(C,F,se,oe){this.list=C,this.view=F,this.keyboardNavigationLabelProvider=se,this.delegate=oe,this.enabled=!1,this.state=Ce.Idle,this.automaticKeyboardNavigation=!0,this.triggered=!1,this.enabledDisposables=new J.b,this.disposables=new J.b,this.updateOptions(C.options)}return Q.prototype.updateOptions=function(C){var F=typeof C.enableKeyboardNavigation=="undefined"?!0:!!C.enableKeyboardNavigation;F?this.enable():this.disable(),typeof C.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=C.automaticKeyboardNavigation)},Q.prototype.enable=function(){var C=this;if(this.enabled)return;var F=y.b.chain(Object(_.a)(this.view.domNode,"keydown")).filter(function(be){return!B(be.target)}).filter(function(){return C.automaticKeyboardNavigation||C.triggered}).map(function(be){return new u.a(be)}).filter(function(be){return C.delegate.mightProducePrintableCharacter(be)}).forEach(function(be){be.stopPropagation(),be.preventDefault()}).map(function(be){return be.browserEvent.key}).event,se=y.b.debounce(F,function(){return null},800),oe=y.b.reduce(y.b.any(F,se),function(be,De){return De===null?null:(be||"")+De});oe(this.onInput,this,this.enabledDisposables),this.enabled=!0,this.triggered=!1},Q.prototype.disable=function(){if(!this.enabled)return;this.enabledDisposables.clear(),this.enabled=!1,this.triggered=!1},Q.prototype.onInput=function(C){if(!C){this.state=Ce.Idle,this.triggered=!1;return}var F=this.list.getFocus(),se=F.length>0?F[0]:0,oe=this.state===Ce.Idle?1:0;this.state=Ce.Typing;for(var be=0;be=0&&Q[oe]===C-(F-oe);)se.push(Q[oe--]);for(se.reverse(),oe=F;oe=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){F.push(Q[se]),se++,oe++;continue}else Q[se]=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){se++,oe++;continue}else Q[se]-1?F:[C];return se},Q.prototype.getDragURI=function(C){return this.dnd.getDragURI(C)},Q.prototype.getDragLabel=function(C,F){return this.dnd.getDragLabel?this.dnd.getDragLabel(C,F):void 0},Q.prototype.onDragStart=function(C,F){this.dnd.onDragStart&&this.dnd.onDragStart(C,F)},Q.prototype.onDragOver=function(C,F,se,oe){return this.dnd.onDragOver(C,F,se,oe)},Q.prototype.onDragEnd=function(C){this.dnd.onDragEnd&&this.dnd.onDragEnd(C)},Q.prototype.drop=function(C,F,se,oe){this.dnd.drop(C,F,se,oe)},Q}(),ve=function(){function Q(C,F,se,oe,be){be===void 0&&(be=he),this.user=C,this._options=be,this.eventBufferer=new y.c,this.disposables=new J.b,this._onDidOpen=new y.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new y.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event,this.focus=new ie,this.selection=new $("selected"),Object(s.g)(be,X,!1);var De=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=be.accessibilityProvider,this.accessibilityProvider&&(De.push(new Re(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),oe=oe.map(function(pt){return new _e(pt.templateId,k(De,[pt]))});var Se=L(L({},be),{dnd:be.dnd&&new Ee(this,be.dnd)});if(this.view=new p.b(F,se,oe,Se),typeof be.ariaRole!="string"?this.view.domNode.setAttribute("role",v.TREE):this.view.domNode.setAttribute("role",be.ariaRole),be.styleController)this.styleController=be.styleController(this.view.domId);else{var Ve=O.w(this.view.domNode);this.styleController=new ue(Ve,this.view.domId)}if(this.spliceable=new l([new W(this.focus,this.view,be.identityProvider),new W(this.selection,this.view,be.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=y.b.map(Object(w.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=y.b.map(Object(w.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new Fe(this,this.view)),typeof be.keyboardSupport!="boolean"||be.keyboardSupport){var Qe=new le(this,this.view,be);this.disposables.add(Qe)}if(be.keyboardNavigationLabelProvider){var it=be.keyboardNavigationDelegate||Me;this.typeLabelController=new Te(this,this.view,be.keyboardNavigationLabelProvider,it),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(be)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),be.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(re.a)("aria list","{0}. Use the navigation keys to navigate.",be.ariaLabel))}return Object.defineProperty(Q.prototype,"onFocusChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(se){return F.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(se){return F.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onContextMenu",{get:function(){var F=this,se=y.b.chain(Object(w.a)(this.view.domNode,"keydown")).map(function(De){return new u.a(De)}).filter(function(De){return F.didJustPressContextMenuKey=De.keyCode===58||De.shiftKey&&De.keyCode===68}).filter(function(De){return De.preventDefault(),De.stopPropagation(),!1}).event,oe=y.b.chain(Object(w.a)(this.view.domNode,"keyup")).filter(function(){var De=F.didJustPressContextMenuKey;return F.didJustPressContextMenuKey=!1,De}).filter(function(){return F.getFocus().length>0&&!!F.view.domElement(F.getFocus()[0])}).map(function(De){var Se=F.getFocus()[0],Ve=F.view.element(Se),Qe=F.view.domElement(Se);return{index:Se,element:Ve,anchor:Qe,browserEvent:De}}).event,be=y.b.chain(this.view.onContextMenu).filter(function(){return!F.didJustPressContextMenuKey}).map(function(De){var Se=De.element,Ve=De.index,Qe=De.browserEvent;return{element:Se,index:Ve,anchor:{x:Qe.clientX+1,y:Qe.clientY},browserEvent:Qe}}).event;return y.b.any(se,oe,be)},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onKeyDown",{get:function(){return Object(w.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Q.prototype.createMouseController=function(C){return new q(this)},Q.prototype.updateOptions=function(C){C===void 0&&(C={}),this._options=L(L({},this._options),C),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(Q.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Q.prototype.splice=function(C,F,se){var oe=this;if(se===void 0&&(se=[]),C<0||C>this.view.length)throw new _(this.user,"Invalid start index: "+C);if(F<0)throw new _(this.user,"Invalid delete count: "+F);if(F===0&&se.length===0)return;this.eventBufferer.bufferEvents(function(){return oe.spliceable.splice(C,F,se)})},Q.prototype.rerender=function(){this.view.rerender()},Q.prototype.element=function(C){return this.view.element(C)},Object.defineProperty(Q.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(F){this.view.setScrollTop(F)},enumerable:!0,configurable:!0}),Q.prototype.domFocus=function(){this.view.domNode.focus()},Q.prototype.layout=function(C,F){this.view.layout(C,F)},Q.prototype.setSelection=function(C,F){for(var se=0,oe=C;se=this.length)throw new _(this.user,"Invalid index "+be)}this.selection.set(C,F)},Q.prototype.getSelection=function(){return this.selection.get()},Q.prototype.getSelectedElements=function(){var C=this;return this.getSelection().map(function(F){return C.view.element(F)})},Q.prototype.setFocus=function(C,F){for(var se=0,oe=C;se=this.length)throw new _(this.user,"Invalid index "+be)}this.focus.set(C,F)},Q.prototype.focusNext=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findNextIndex(be.length>0?be[0]+C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusPrevious=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findPreviousIndex(be.length>0?be[0]-C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusNextPage=function(C,F){var se=this,oe=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);oe=oe===0?0:oe-1;var be=this.view.element(oe),De=this.getFocusedElements()[0];if(De!==be){var Se=this.findPreviousIndex(oe,!1,F);Se>-1&&De!==this.view.element(Se)?this.setFocus([Se],C):this.setFocus([oe],C)}else{var Ve=this.view.getScrollTop();this.view.setScrollTop(Ve+this.view.renderHeight-this.view.elementHeight(oe)),this.view.getScrollTop()!==Ve&&setTimeout(function(){return se.focusNextPage(C,F)},0)}},Q.prototype.focusPreviousPage=function(C,F){var se=this,oe,be=this.view.getScrollTop();be===0?oe=this.view.indexAt(be):oe=this.view.indexAfter(be-1);var De=this.view.element(oe),Se=this.getFocusedElements()[0];if(Se!==De){var Ve=this.findNextIndex(oe,!1,F);Ve>-1&&Se!==this.view.element(Ve)?this.setFocus([Ve],C):this.setFocus([oe],C)}else{var Qe=be;this.view.setScrollTop(be-this.view.renderHeight),this.view.getScrollTop()!==Qe&&setTimeout(function(){return se.focusPreviousPage(C,F)},0)}},Q.prototype.focusLast=function(C,F){if(this.length===0)return;var se=this.findPreviousIndex(this.length-1,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.focusFirst=function(C,F){if(this.length===0)return;var se=this.findNextIndex(0,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.findNextIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe=this.length&&!F)return-1;if(C=C%this.length,!se||se(this.element(C)))return C;C++}return-1},Q.prototype.findPreviousIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe=this.length)throw new _(this.user,"Invalid index "+C);var se=this.view.getScrollTop(),oe=this.view.elementTop(C),be=this.view.elementHeight(C);if(Object(I.h)(F)){var De=be-this.view.renderHeight;this.view.setScrollTop(De*Object(d.a)(F,0,1)+oe)}else{var Se=oe+be,Ve=se+this.view.renderHeight;oe=Ve||(oe=Ve&&this.view.setScrollTop(Se-this.view.renderHeight))}},Q.prototype.getRelativeTop=function(C){if(C<0||C>=this.length)throw new _(this.user,"Invalid index "+C);var F=this.view.getScrollTop(),se=this.view.elementTop(C),oe=this.view.elementHeight(C);if(seF+this.view.renderHeight)return null;var be=oe-this.view.renderHeight;return Math.abs((F-se)/be)},Q.prototype.getHTMLElement=function(){return this.view.domNode},Q.prototype.open=function(C,F){for(var se=this,oe=0,be=C;oe=this.length)throw new _(this.user,"Invalid index "+De)}this._onDidOpen.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.pin=function(C,F){for(var se=this,oe=0,be=C;oe=this.length)throw new _(this.user,"Invalid index "+De)}this._onDidPin.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.style=function(C){this.styleController.style(C)},Q.prototype.toListEvent=function(C){var F=this,se=C.indexes,oe=C.browserEvent;return{indexes:se,elements:se.map(function(be){return F.view.element(be)}),browserEvent:oe}},Q.prototype._onFocusChange=function(){var C=this.focus.get();O.Y(this.view.domNode,"element-focused",C.length>0),this.onDidChangeActiveDescendant()},Q.prototype.onDidChangeActiveDescendant=function(){var C,F=this.focus.get();if(F.length>0){var se=void 0;((C=this.accessibilityProvider)===null||C===void 0?void 0:C.getActiveDescendantId)&&(se=this.accessibilityProvider.getActiveDescendantId(this.view.element(F[0]))),this.view.domNode.setAttribute("aria-activedescendant",se||this.view.getElementDomId(F[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},Q.prototype._onSelectionChange=function(){var C=this.selection.get();O.Y(this.view.domNode,"selection-none",C.length===0),O.Y(this.view.domNode,"selection-single",C.length===1),O.Y(this.view.domNode,"selection-multiple",C.length>1)},Q.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},A([z.a],Q.prototype,"onFocusChange",null),A([z.a],Q.prototype,"onSelectionChange",null),A([z.a],Q.prototype,"onContextMenu",null),Q}()},d6R0:function(Lt,j,e){"use strict";e.r(j),e.d(j,"CodeLensContribution",function(){return ue});var T=e("X+cX"),re=e("/cxE"),J=e("pmY6"),I=e("vATl"),H=e("sswD"),z=e("twdY"),O=e("6OMU"),U=e("JQT/"),x=e("bY76"),u=e("G2kB"),y=function(){function X(){this.lenses=[],this._disposables=new J.b}return X.prototype.dispose=function(){this._disposables.dispose()},X.prototype.add=function(he,je){this._disposables.add(he);for(var Xe=0,me=he.lenses;XeRe.symbol.range.startLineNumber?1:Xe.get(_e.provider)Xe.get(Re.provider)?1:_e.symbol.range.startColumnRe.symbol.range.startColumn?1:0}),me})}Object(H.j)("_executeCodeLensProvider",function(X,he){var je=he.resource,Xe=he.itemResolveCount;if(!(je instanceof x.a))throw Object(re.b)();var me=X.get(u.a).getModel(je);if(!me)throw Object(re.b)();var ge=[],_e=new J.b;return w(me,U.a.None).then(function(Re){_e.add(Re);for(var Ee=[],ve=function(oe){typeof Xe=="undefined"||Boolean(oe.symbol.command)?ge.push(oe.symbol):Xe-- >0&&oe.provider.resolveCodeLens&&Ee.push(Promise.resolve(oe.provider.resolveCodeLens(me,oe.symbol,U.a.None)).then(function(be){return ge.push(be||oe.symbol)}))},Q=0,C=Re.lenses;Q"+Re+"",this._commands.set(String(ge),_e.command)):Xe+=""+Re+"",ge+1 | ")}}me?(Xe||(Xe=" "),this._domNode.innerHTML=Xe,this._isEmpty&&je&&v.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="no commands"},X.prototype.getCommand=function(he){return he.parentElement===this._domNode?this._commands.get(he.id):void 0},X.prototype.getId=function(){return this._id},X.prototype.getDomNode=function(){return this._domNode},X.prototype.updatePosition=function(he){var je=this._editor.getModel().getLineFirstNonWhitespaceColumn(he);this._widgetPosition={position:{lineNumber:he,column:je},preference:[1]}},X.prototype.getPosition=function(){return this._widgetPosition||null},X._idPool=0,X}(),A=function(){function X(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return X.prototype.addDecoration=function(he,je){this._addDecorations.push(he),this._addDecorationsCallbacks.push(je)},X.prototype.removeDecoration=function(he){this._removeDecorations.push(he)},X.prototype.commit=function(he){for(var je=he.deltaDecorations(this._removeDecorations,this._addDecorations),Xe=0,me=je.length;Xe0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ve,!1))}return X.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},X.prototype.dispose=function(he,je){this._decorationIds.forEach(he.removeDecoration,he),this._decorationIds=[],je&&je.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},X.prototype.isDisposed=function(){return this._isDisposed},X.prototype.isValid=function(){var he=this;return this._decorationIds.some(function(je,Xe){var me=he._editor.getModel().getDecorationRange(je),ge=he._data[Xe].symbol;return!!(me&&c.a.isEmpty(ge.range)===me.isEmpty())})},X.prototype.updateCodeLensSymbols=function(he,je){var Xe=this;this._decorationIds.forEach(je.removeDecoration,je),this._decorationIds=[],this._data=he,this._data.forEach(function(me,ge){je.addDecoration({range:me.symbol.range,options:s.a.EMPTY},function(_e){return Xe._decorationIds[ge]=_e})})},X.prototype.computeIfNecessary=function(he){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var je=0;je a:hover { color: "+Xe+" !important; }"),he.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+Xe+" !important; }"))});var R=e("nnTU"),$=e("sM1p"),ie=e("Cg/j"),W=e("9fML"),B=e("QDVR"),le=e("A+jI"),Ce=e("C/vA"),Me=function(X,he,je,Xe){var me=arguments.length,ge=me<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,je):Xe,_e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(X,he,je,Xe);else for(var Re=X.length-1;Re>=0;Re--)(_e=X[Re])&&(ge=(me<3?_e(ge):me>3?_e(he,je,ge):_e(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},Te=function(X,he){return function(je,Xe){he(je,Xe,X)}},Fe=Object(ie.c)("ICodeLensCache"),He=function(){function X(he,je){this.lineCount=he,this.data=je}return X}(),Pe=function(){function X(he){var je=this;this._fakeProvider=new(function(){function _e(){}return _e.prototype.provideCodeLenses=function(){throw new Error("not supported")},_e}()),this._cache=new B.a(20,.75);var Xe="codelens/cache";Object(T.k)(function(){return he.remove(Xe,1)});var me="codelens/cache2",ge=he.get(me,1,"{}");this._deserialize(ge),Object(Ce.a)(he.onWillSaveState)(function(_e){_e.reason===le.c.SHUTDOWN&&he.store(me,je._serialize(),1)})}return X.prototype.put=function(he,je){var Xe=je.lenses.map(function(_e){var Re;return{range:_e.symbol.range,command:_e.symbol.command&&{id:"",title:(Re=_e.symbol.command)===null||Re===void 0?void 0:Re.title}}}),me=new y;me.add({lenses:Xe,dispose:function(){}},this._fakeProvider);var ge=new He(he.getLineCount(),me);this._cache.set(he.uri.toString(),ge)},X.prototype.get=function(he){var je=this._cache.get(he.uri.toString());return je&&je.lineCount===he.getLineCount()?je.data:void 0},X.prototype.delete=function(he){this._cache.delete(he.uri.toString())},X.prototype._serialize=function(){var he=Object.create(null);return this._cache.forEach(function(je,Xe){for(var me=new Set,ge=0,_e=je.data.lenses;ge<_e.length;ge++){var Re=_e[ge];me.add(Re.symbol.range.startLineNumber)}he[Xe]={lineCount:je.lineCount,lines:Object(B.e)(me)}}),JSON.stringify(he)},X.prototype._deserialize=function(he){try{var je=JSON.parse(he);for(var Xe in je){for(var me=je[Xe],ge=[],_e=0,Re=me.lines;_e=0;Re--)(_e=X[Re])&&(ge=(me<3?_e(ge):me>3?_e(he,je,ge):_e(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},ae=function(X,he){return function(je,Xe){he(je,Xe,X)}},q=function(){for(var X=0,he=0,je=arguments.length;he=0&&Q[oe]===C-(F-oe);)se.push(Q[oe--]);for(se.reverse(),oe=F;oe=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){F.push(Q[se]),se++,oe++;continue}else Q[se]=Q.length)F.push(C[oe++]);else if(oe>=C.length)F.push(Q[se++]);else if(Q[se]===C[oe]){se++,oe++;continue}else Q[se]-1?F:[C];return se},Q.prototype.getDragURI=function(C){return this.dnd.getDragURI(C)},Q.prototype.getDragLabel=function(C,F){return this.dnd.getDragLabel?this.dnd.getDragLabel(C,F):void 0},Q.prototype.onDragStart=function(C,F){this.dnd.onDragStart&&this.dnd.onDragStart(C,F)},Q.prototype.onDragOver=function(C,F,se,oe){return this.dnd.onDragOver(C,F,se,oe)},Q.prototype.onDragEnd=function(C){this.dnd.onDragEnd&&this.dnd.onDragEnd(C)},Q.prototype.drop=function(C,F,se,oe){this.dnd.drop(C,F,se,oe)},Q}(),ve=function(){function Q(C,F,se,oe,be){be===void 0&&(be=he),this.user=C,this._options=be,this.eventBufferer=new y.c,this.disposables=new J.b,this._onDidOpen=new y.a,this.onDidOpen=this._onDidOpen.event,this._onDidPin=new y.a,this.didJustPressContextMenuKey=!1,this._onDidDispose=new y.a,this.onDidDispose=this._onDidDispose.event,this.focus=new ie,this.selection=new $("selected"),Object(s.g)(be,X,!1);var De=[this.focus.renderer,this.selection.renderer];this.accessibilityProvider=be.accessibilityProvider,this.accessibilityProvider&&(De.push(new Re(this.accessibilityProvider)),this.accessibilityProvider.onDidChangeActiveDescendant&&this.accessibilityProvider.onDidChangeActiveDescendant(this.onDidChangeActiveDescendant,this,this.disposables)),oe=oe.map(function(pt){return new we(pt.templateId,k(De,[pt]))});var Se=L(L({},be),{dnd:be.dnd&&new Ee(this,be.dnd)});if(this.view=new p.b(F,se,oe,Se),typeof be.ariaRole!="string"?this.view.domNode.setAttribute("role",v.TREE):this.view.domNode.setAttribute("role",be.ariaRole),be.styleController)this.styleController=be.styleController(this.view.domId);else{var Ve=O.w(this.view.domNode);this.styleController=new ue(Ve,this.view.domId)}if(this.spliceable=new l([new W(this.focus,this.view,be.identityProvider),new W(this.selection,this.view,be.identityProvider),this.view]),this.disposables.add(this.focus),this.disposables.add(this.selection),this.disposables.add(this.view),this.disposables.add(this._onDidDispose),this.onDidFocus=y.b.map(Object(_.a)(this.view.domNode,"focus",!0),function(){return null}),this.onDidBlur=y.b.map(Object(_.a)(this.view.domNode,"blur",!0),function(){return null}),this.disposables.add(new Fe(this,this.view)),typeof be.keyboardSupport!="boolean"||be.keyboardSupport){var Qe=new le(this,this.view,be);this.disposables.add(Qe)}if(be.keyboardNavigationLabelProvider){var it=be.keyboardNavigationDelegate||Me;this.typeLabelController=new Te(this,this.view,be.keyboardNavigationLabelProvider,it),this.disposables.add(this.typeLabelController)}this.disposables.add(this.createMouseController(be)),this.onFocusChange(this._onFocusChange,this,this.disposables),this.onSelectionChange(this._onSelectionChange,this,this.disposables),be.ariaLabel&&this.view.domNode.setAttribute("aria-label",Object(re.a)("aria list","{0}. Use the navigation keys to navigate.",be.ariaLabel))}return Object.defineProperty(Q.prototype,"onFocusChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.focus.onChange),function(se){return F.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onSelectionChange",{get:function(){var F=this;return y.b.map(this.eventBufferer.wrapEvent(this.selection.onChange),function(se){return F.toListEvent(se)})},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"domId",{get:function(){return this.view.domId},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseClick",{get:function(){return this.view.onMouseClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDblClick",{get:function(){return this.view.onMouseDblClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseMiddleClick",{get:function(){return this.view.onMouseMiddleClick},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onMouseDown",{get:function(){return this.view.onMouseDown},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTouchStart",{get:function(){return this.view.onTouchStart},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onTap",{get:function(){return this.view.onTap},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onContextMenu",{get:function(){var F=this,se=y.b.chain(Object(_.a)(this.view.domNode,"keydown")).map(function(De){return new u.a(De)}).filter(function(De){return F.didJustPressContextMenuKey=De.keyCode===58||De.shiftKey&&De.keyCode===68}).filter(function(De){return De.preventDefault(),De.stopPropagation(),!1}).event,oe=y.b.chain(Object(_.a)(this.view.domNode,"keyup")).filter(function(){var De=F.didJustPressContextMenuKey;return F.didJustPressContextMenuKey=!1,De}).filter(function(){return F.getFocus().length>0&&!!F.view.domElement(F.getFocus()[0])}).map(function(De){var Se=F.getFocus()[0],Ve=F.view.element(Se),Qe=F.view.domElement(Se);return{index:Se,element:Ve,anchor:Qe,browserEvent:De}}).event,be=y.b.chain(this.view.onContextMenu).filter(function(){return!F.didJustPressContextMenuKey}).map(function(De){var Se=De.element,Ve=De.index,Qe=De.browserEvent;return{element:Se,index:Ve,anchor:{x:Qe.clientX+1,y:Qe.clientY},browserEvent:Qe}}).event;return y.b.any(se,oe,be)},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"onKeyDown",{get:function(){return Object(_.a)(this.view.domNode,"keydown")},enumerable:!0,configurable:!0}),Q.prototype.createMouseController=function(C){return new q(this)},Q.prototype.updateOptions=function(C){C===void 0&&(C={}),this._options=L(L({},this._options),C),this.typeLabelController&&this.typeLabelController.updateOptions(this._options)},Object.defineProperty(Q.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),Q.prototype.splice=function(C,F,se){var oe=this;if(se===void 0&&(se=[]),C<0||C>this.view.length)throw new w(this.user,"Invalid start index: "+C);if(F<0)throw new w(this.user,"Invalid delete count: "+F);if(F===0&&se.length===0)return;this.eventBufferer.bufferEvents(function(){return oe.spliceable.splice(C,F,se)})},Q.prototype.rerender=function(){this.view.rerender()},Q.prototype.element=function(C){return this.view.element(C)},Object.defineProperty(Q.prototype,"length",{get:function(){return this.view.length},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"contentHeight",{get:function(){return this.view.contentHeight},enumerable:!0,configurable:!0}),Object.defineProperty(Q.prototype,"scrollTop",{get:function(){return this.view.getScrollTop()},set:function(F){this.view.setScrollTop(F)},enumerable:!0,configurable:!0}),Q.prototype.domFocus=function(){this.view.domNode.focus()},Q.prototype.layout=function(C,F){this.view.layout(C,F)},Q.prototype.setSelection=function(C,F){for(var se=0,oe=C;se=this.length)throw new w(this.user,"Invalid index "+be)}this.selection.set(C,F)},Q.prototype.getSelection=function(){return this.selection.get()},Q.prototype.getSelectedElements=function(){var C=this;return this.getSelection().map(function(F){return C.view.element(F)})},Q.prototype.setFocus=function(C,F){for(var se=0,oe=C;se=this.length)throw new w(this.user,"Invalid index "+be)}this.focus.set(C,F)},Q.prototype.focusNext=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findNextIndex(be.length>0?be[0]+C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusPrevious=function(C,F,se,oe){if(C===void 0&&(C=1),F===void 0&&(F=!1),this.length===0)return;var be=this.focus.get(),De=this.findPreviousIndex(be.length>0?be[0]-C:0,F,oe);De>-1&&this.setFocus([De],se)},Q.prototype.focusNextPage=function(C,F){var se=this,oe=this.view.indexAt(this.view.getScrollTop()+this.view.renderHeight);oe=oe===0?0:oe-1;var be=this.view.element(oe),De=this.getFocusedElements()[0];if(De!==be){var Se=this.findPreviousIndex(oe,!1,F);Se>-1&&De!==this.view.element(Se)?this.setFocus([Se],C):this.setFocus([oe],C)}else{var Ve=this.view.getScrollTop();this.view.setScrollTop(Ve+this.view.renderHeight-this.view.elementHeight(oe)),this.view.getScrollTop()!==Ve&&setTimeout(function(){return se.focusNextPage(C,F)},0)}},Q.prototype.focusPreviousPage=function(C,F){var se=this,oe,be=this.view.getScrollTop();be===0?oe=this.view.indexAt(be):oe=this.view.indexAfter(be-1);var De=this.view.element(oe),Se=this.getFocusedElements()[0];if(Se!==De){var Ve=this.findNextIndex(oe,!1,F);Ve>-1&&Se!==this.view.element(Ve)?this.setFocus([Ve],C):this.setFocus([oe],C)}else{var Qe=be;this.view.setScrollTop(be-this.view.renderHeight),this.view.getScrollTop()!==Qe&&setTimeout(function(){return se.focusPreviousPage(C,F)},0)}},Q.prototype.focusLast=function(C,F){if(this.length===0)return;var se=this.findPreviousIndex(this.length-1,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.focusFirst=function(C,F){if(this.length===0)return;var se=this.findNextIndex(0,!1,F);se>-1&&this.setFocus([se],C)},Q.prototype.findNextIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe=this.length&&!F)return-1;if(C=C%this.length,!se||se(this.element(C)))return C;C++}return-1},Q.prototype.findPreviousIndex=function(C,F,se){F===void 0&&(F=!1);for(var oe=0;oe=this.length)throw new w(this.user,"Invalid index "+C);var se=this.view.getScrollTop(),oe=this.view.elementTop(C),be=this.view.elementHeight(C);if(Object(I.h)(F)){var De=be-this.view.renderHeight;this.view.setScrollTop(De*Object(d.a)(F,0,1)+oe)}else{var Se=oe+be,Ve=se+this.view.renderHeight;oe=Ve||(oe=Ve&&this.view.setScrollTop(Se-this.view.renderHeight))}},Q.prototype.getRelativeTop=function(C){if(C<0||C>=this.length)throw new w(this.user,"Invalid index "+C);var F=this.view.getScrollTop(),se=this.view.elementTop(C),oe=this.view.elementHeight(C);if(seF+this.view.renderHeight)return null;var be=oe-this.view.renderHeight;return Math.abs((F-se)/be)},Q.prototype.getHTMLElement=function(){return this.view.domNode},Q.prototype.open=function(C,F){for(var se=this,oe=0,be=C;oe=this.length)throw new w(this.user,"Invalid index "+De)}this._onDidOpen.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.pin=function(C,F){for(var se=this,oe=0,be=C;oe=this.length)throw new w(this.user,"Invalid index "+De)}this._onDidPin.fire({indexes:C,elements:C.map(function(Se){return se.view.element(Se)}),browserEvent:F})},Q.prototype.style=function(C){this.styleController.style(C)},Q.prototype.toListEvent=function(C){var F=this,se=C.indexes,oe=C.browserEvent;return{indexes:se,elements:se.map(function(be){return F.view.element(be)}),browserEvent:oe}},Q.prototype._onFocusChange=function(){var C=this.focus.get();O.Y(this.view.domNode,"element-focused",C.length>0),this.onDidChangeActiveDescendant()},Q.prototype.onDidChangeActiveDescendant=function(){var C,F=this.focus.get();if(F.length>0){var se=void 0;((C=this.accessibilityProvider)===null||C===void 0?void 0:C.getActiveDescendantId)&&(se=this.accessibilityProvider.getActiveDescendantId(this.view.element(F[0]))),this.view.domNode.setAttribute("aria-activedescendant",se||this.view.getElementDomId(F[0]))}else this.view.domNode.removeAttribute("aria-activedescendant")},Q.prototype._onSelectionChange=function(){var C=this.selection.get();O.Y(this.view.domNode,"selection-none",C.length===0),O.Y(this.view.domNode,"selection-single",C.length===1),O.Y(this.view.domNode,"selection-multiple",C.length>1)},Q.prototype.dispose=function(){this._onDidDispose.fire(),this.disposables.dispose(),this._onDidOpen.dispose(),this._onDidPin.dispose(),this._onDidDispose.dispose()},A([z.a],Q.prototype,"onFocusChange",null),A([z.a],Q.prototype,"onSelectionChange",null),A([z.a],Q.prototype,"onContextMenu",null),Q}()},d6R0:function(Lt,j,e){"use strict";e.r(j),e.d(j,"CodeLensContribution",function(){return ue});var T=e("X+cX"),re=e("/cxE"),J=e("pmY6"),I=e("vATl"),U=e("sswD"),z=e("twdY"),O=e("6OMU"),H=e("JQT/"),x=e("bY76"),u=e("G2kB"),y=function(){function X(){this.lenses=[],this._disposables=new J.b}return X.prototype.dispose=function(){this._disposables.dispose()},X.prototype.add=function(he,je){this._disposables.add(he);for(var Xe=0,me=he.lenses;XeRe.symbol.range.startLineNumber?1:Xe.get(we.provider)Xe.get(Re.provider)?1:we.symbol.range.startColumnRe.symbol.range.startColumn?1:0}),me})}Object(U.j)("_executeCodeLensProvider",function(X,he){var je=he.resource,Xe=he.itemResolveCount;if(!(je instanceof x.a))throw Object(re.b)();var me=X.get(u.a).getModel(je);if(!me)throw Object(re.b)();var ge=[],we=new J.b;return _(me,H.a.None).then(function(Re){we.add(Re);for(var Ee=[],ve=function(oe){typeof Xe=="undefined"||Boolean(oe.symbol.command)?ge.push(oe.symbol):Xe-- >0&&oe.provider.resolveCodeLens&&Ee.push(Promise.resolve(oe.provider.resolveCodeLens(me,oe.symbol,H.a.None)).then(function(be){return ge.push(be||oe.symbol)}))},Q=0,C=Re.lenses;Q"+Re+"",this._commands.set(String(ge),we.command)):Xe+=""+Re+"",ge+1 | ")}}me?(Xe||(Xe=" "),this._domNode.innerHTML=Xe,this._isEmpty&&je&&v.f(this._domNode,"fadein"),this._isEmpty=!1):this._domNode.innerHTML="no commands"},X.prototype.getCommand=function(he){return he.parentElement===this._domNode?this._commands.get(he.id):void 0},X.prototype.getId=function(){return this._id},X.prototype.getDomNode=function(){return this._domNode},X.prototype.updatePosition=function(he){var je=this._editor.getModel().getLineFirstNonWhitespaceColumn(he);this._widgetPosition={position:{lineNumber:he,column:je},preference:[1]}},X.prototype.getPosition=function(){return this._widgetPosition||null},X._idPool=0,X}(),A=function(){function X(){this._removeDecorations=[],this._addDecorations=[],this._addDecorationsCallbacks=[]}return X.prototype.addDecoration=function(he,je){this._addDecorations.push(he),this._addDecorationsCallbacks.push(je)},X.prototype.removeDecoration=function(he){this._removeDecorations.push(he)},X.prototype.commit=function(he){for(var je=he.deltaDecorations(this._removeDecorations,this._addDecorations),Xe=0,me=je.length;Xe0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(ve,!1))}return X.prototype._createContentWidgetIfNecessary=function(){this._contentWidget||(this._contentWidget=new L(this._editor,this._className,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))},X.prototype.dispose=function(he,je){this._decorationIds.forEach(he.removeDecoration,he),this._decorationIds=[],je&&je.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0},X.prototype.isDisposed=function(){return this._isDisposed},X.prototype.isValid=function(){var he=this;return this._decorationIds.some(function(je,Xe){var me=he._editor.getModel().getDecorationRange(je),ge=he._data[Xe].symbol;return!!(me&&c.a.isEmpty(ge.range)===me.isEmpty())})},X.prototype.updateCodeLensSymbols=function(he,je){var Xe=this;this._decorationIds.forEach(je.removeDecoration,je),this._decorationIds=[],this._data=he,this._data.forEach(function(me,ge){je.addDecoration({range:me.symbol.range,options:s.a.EMPTY},function(we){return Xe._decorationIds[ge]=we})})},X.prototype.computeIfNecessary=function(he){if(!this._viewZone.domNode.hasAttribute("monaco-visible-view-zone"))return null;for(var je=0;je a:hover { color: "+Xe+" !important; }"),he.addRule(".monaco-editor .codelens-decoration > a:hover .codicon { color: "+Xe+" !important; }"))});var R=e("nnTU"),$=e("sM1p"),ie=e("Cg/j"),W=e("9fML"),B=e("QDVR"),le=e("A+jI"),Ce=e("C/vA"),Me=function(X,he,je,Xe){var me=arguments.length,ge=me<3?he:Xe===null?Xe=Object.getOwnPropertyDescriptor(he,je):Xe,we;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ge=Reflect.decorate(X,he,je,Xe);else for(var Re=X.length-1;Re>=0;Re--)(we=X[Re])&&(ge=(me<3?we(ge):me>3?we(he,je,ge):we(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},Te=function(X,he){return function(je,Xe){he(je,Xe,X)}},Fe=Object(ie.c)("ICodeLensCache"),Ue=function(){function X(he,je){this.lineCount=he,this.data=je}return X}(),Pe=function(){function X(he){var je=this;this._fakeProvider=new(function(){function we(){}return we.prototype.provideCodeLenses=function(){throw new Error("not supported")},we}()),this._cache=new B.a(20,.75);var Xe="codelens/cache";Object(T.k)(function(){return he.remove(Xe,1)});var me="codelens/cache2",ge=he.get(me,1,"{}");this._deserialize(ge),Object(Ce.a)(he.onWillSaveState)(function(we){we.reason===le.c.SHUTDOWN&&he.store(me,je._serialize(),1)})}return X.prototype.put=function(he,je){var Xe=je.lenses.map(function(we){var Re;return{range:we.symbol.range,command:we.symbol.command&&{id:"",title:(Re=we.symbol.command)===null||Re===void 0?void 0:Re.title}}}),me=new y;me.add({lenses:Xe,dispose:function(){}},this._fakeProvider);var ge=new Ue(he.getLineCount(),me);this._cache.set(he.uri.toString(),ge)},X.prototype.get=function(he){var je=this._cache.get(he.uri.toString());return je&&je.lineCount===he.getLineCount()?je.data:void 0},X.prototype.delete=function(he){this._cache.delete(he.uri.toString())},X.prototype._serialize=function(){var he=Object.create(null);return this._cache.forEach(function(je,Xe){for(var me=new Set,ge=0,we=je.data.lenses;ge=0;Re--)(we=X[Re])&&(ge=(me<3?we(ge):me>3?we(he,je,ge):we(he,je))||ge);return me>3&&ge&&Object.defineProperty(he,je,ge),ge},ae=function(X,he){return function(je,Xe){he(je,Xe,X)}},q=function(){for(var X=0,he=0,je=arguments.length;he a > .codicon { line-height: "+Xe+"px; font-size: "+ge+`px; } - `;this._styleElement.innerHTML=_e},X.prototype._localDispose=function(){this._currentFindCodeLensSymbolsPromise&&(this._currentFindCodeLensSymbolsPromise.cancel(),this._currentFindCodeLensSymbolsPromise=void 0,this._modelChangeCounter++),this._currentResolveCodeLensSymbolsPromise&&(this._currentResolveCodeLensSymbolsPromise.cancel(),this._currentResolveCodeLensSymbolsPromise=void 0),this._localToDispose.clear(),this._oldCodeLensModels.clear(),Object(J.f)(this._currentCodeLensModel)},X.prototype._onModelChange=function(){var he=this;this._localDispose();var je=this._editor.getModel();if(!je)return;if(!this._isEnabled)return;var Xe=this._codeLensCache.get(je);if(Xe&&this._renderCodeLensSymbols(Xe),!z.b.has(je)){Xe&&this._localToDispose.add(Object(T.g)(function(){var Q=he._codeLensCache.get(je);Xe===Q&&(he._codeLensCache.delete(je),he._onModelChange())},30*1e3));return}for(var me=0,ge=z.b.all(je);me0&&Ee.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){Ee.schedule()})),this._localToDispose.add(Object(J.h)(function(){if(he._editor.getModel()){var Q=I.c.capture(he._editor);he._editor.changeDecorations(function(C){he._editor.changeViewZones(function(F){he._disposeAllLenses(C,F)})}),Q.restore(he._editor)}else he._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function(Q){var C;if(Q.target.type!==9)return;var F=Q.target.element;if((F==null?void 0:F.tagName)==="SPAN"&&(F=F.parentElement),(F==null?void 0:F.tagName)==="A")for(var se=0,oe=he._lenses;seXe)continue;ge&&ge[ge.length-1].symbol.range.startLineNumber===ve?ge.push(Ee):(ge=[Ee],me.push(ge))}var Q=I.c.capture(this._editor);this._editor.changeDecorations(function(C){je._editor.changeViewZones(function(F){for(var se=new A,oe=0,be=0;beU)continue;if(p.isEmpty()&&(_.type===0||_.type===3))continue;var c=p.startLineNumber===U?p.startColumn:x,s=p.endLineNumber===U?p.endColumn:u;y[w++]=new z(c,s,_.inlineClassName,_.type)}return y},z.compare=function(O,U){return O.startColumn===U.startColumn?O.endColumn===U.endColumn?O.classNameU.className?1:0:O.endColumn-U.endColumn:O.startColumn-U.startColumn},z}(),J=function(){function z(O,U,x){this.startOffset=O,this.endOffset=U,this.className=x}return z}(),I=function(){function z(){this.stopOffsets=[],this.classNames=[],this.count=0}return z.prototype.consumeLowerThan=function(O,U,x){for(;this.count>0&&this.stopOffsets[0]0&&U=O){this.stopOffsets.splice(x,0,O),this.classNames.splice(x,0,U);break}this.count++;return},z}(),H=function(){function z(){}return z.normalize=function(O,U){if(U.length===0)return[];for(var x=[],u=new I,y=0,w=0,f=U.length;w1){var s=O.charCodeAt(_-2);T.z(s)&&_--}if(p>1){var s=O.charCodeAt(p-2);T.z(s)&&p--}var l=_-1,d=p-2;y=u.consumeLowerThan(l,y,x),u.count===0&&(y=l),u.insert(d,c)}return u.consumeLowerThan(1073741824,y,x),x},z}()},dFcq:function(Lt,j,e){},"dH+W":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DuplicateSelectionAction",function(){return W}),e.d(j,"AbstractSortLinesAction",function(){return Me}),e.d(j,"SortLinesAscendingAction",function(){return Te}),e.d(j,"SortLinesDescendingAction",function(){return Fe}),e.d(j,"TrimTrailingWhitespaceAction",function(){return He}),e.d(j,"DeleteLinesAction",function(){return Pe}),e.d(j,"IndentLinesAction",function(){return ne}),e.d(j,"InsertLineBeforeAction",function(){return ae}),e.d(j,"InsertLineAfterAction",function(){return q}),e.d(j,"AbstractDeleteAllToBoundaryAction",function(){return ue}),e.d(j,"DeleteAllLeftAction",function(){return X}),e.d(j,"DeleteAllRightAction",function(){return he}),e.d(j,"JoinLinesAction",function(){return je}),e.d(j,"TransposeAction",function(){return Xe}),e.d(j,"AbstractCaseAction",function(){return me}),e.d(j,"UpperCaseAction",function(){return ge}),e.d(j,"LowerCaseAction",function(){return _e}),e.d(j,"TitleCaseAction",function(){return Re});var T=e("3/fG"),re=e("/kV6"),J=e("1YUG"),I=e("sswD"),H=e("LCkn"),z=e("N0LK"),O=e("0/Sa"),U=e("aokT"),x=function(){function Ee(ve,Q){this._selection=ve,this._cursors=Q,this._selectionId=null}return Ee.prototype.getEditOperations=function(ve,Q){for(var C=u(ve,this._cursors),F=0,se=C.length;F=0;Q--)ve[Q].lineNumber===ve[Q+1].lineNumber&&ve.splice(Q,1);for(var C=[],F=0,se=0,oe=ve.length,be=1,De=Ee.getLineCount();be<=De;be++){var Se=Ee.getLineContent(be),Ve=Se.length+1,Qe=0;if(se=F.startLineNumber+1&&Ct<=F.endLineNumber+1?ve.getLineContent(Ct-1):ve.getLineContent(Ct)};var At=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(pt,1),F.startLineNumber+1,Se);if(At!==null){var uo=z.t(ve.getLineContent(F.startLineNumber)),ao=l(At,oe),ft=l(uo,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}else Q.addEditOperation(new U.a(F.startLineNumber,1,F.startLineNumber,1),Mt+` -`)}else if(pt=F.startLineNumber-1,Rt=ve.getLineContent(pt),Q.addEditOperation(new U.a(pt,1,pt+1,1),null),Q.addEditOperation(new U.a(F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber),F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber)),` -`+Rt),this.shouldAutoIndent(ve,F)){Ve.getLineContent=function(gt){return gt===pt?ve.getLineContent(F.startLineNumber):ve.getLineContent(gt)};var vt=this.matchEnterRule(ve,Se,oe,F.startLineNumber,F.startLineNumber-2);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,vt);else{var tt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(F.startLineNumber,1),pt,Se);if(tt!==null){var ut=z.t(ve.getLineContent(F.startLineNumber)),ao=l(tt,oe),ft=l(ut,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}}this._selectionId=Q.trackSelection(F)},Ee.prototype.buildIndentConverter=function(ve,Q,C){return{shiftIndent:function(se){return p.a.shiftIndent(se,se.length+1,ve,Q,C)},unshiftIndent:function(se){return p.a.unshiftIndent(se,se.length+1,ve,Q,C)}}},Ee.prototype.matchEnterRule=function(ve,Q,C,F,se,oe){for(var be=se;be>=1;){var De=void 0;be===se&&oe!==void 0?De=oe:De=ve.getLineContent(be);var Se=z.D(De);if(Se>=0)break;be--}if(be<1||F>ve.getLineCount())return null;var Ve=ve.getLineMaxColumn(be),Qe=s.a.getEnterAction(this._autoIndent,ve,new U.a(be,Ve,be,Ve));if(Qe){var it=Qe.indentation;Qe.indentAction===c.a.None||Qe.indentAction===c.a.Indent?it=Qe.indentation+Qe.appendText:Qe.indentAction===c.a.IndentOutdent?it=Qe.indentation:Qe.indentAction===c.a.Outdent&&(it=Q.unshiftIndent(Qe.indentation)+Qe.appendText);var pt=ve.getLineContent(F);if(this.trimLeft(pt).indexOf(this.trimLeft(it))>=0){var Rt=z.t(ve.getLineContent(F)),Mt=z.t(it),zt=s.a.getIndentMetadata(ve,F);zt!==null&&zt&2&&(Mt=Q.unshiftIndent(Mt));var uo=l(Mt,C),ao=l(Rt,C);return uo-ao}}return null},Ee.prototype.trimLeft=function(ve){return ve.replace(/^\s+/,"")},Ee.prototype.shouldAutoIndent=function(ve,Q){if(this._autoIndent<4)return!1;if(!ve.isCheapToTokenize(Q.startLineNumber))return!1;var C=ve.getLanguageIdAtPosition(Q.startLineNumber,1),F=ve.getLanguageIdAtPosition(Q.endLineNumber,1);return C!==F?!1:!(s.a.getIndentRulesSupport(C)===null)},Ee.prototype.getIndentEditsOfMovingBlock=function(ve,Q,C,F,se,oe){for(var be=C.startLineNumber;be<=C.endLineNumber;be++){var De=ve.getLineContent(be),Se=z.t(De),Ve=l(Se,F),Qe=Ve+oe,it=d(Qe,F,se);it!==Se&&(Q.addEditOperation(new U.a(be,1,be,Se.length+1),it),be===C.endLineNumber&&C.endColumn<=Se.length+1&&it===""&&(this._moveEndLineSelectionShrink=!0))}},Ee.prototype.computeCursorState=function(ve,Q){var C=Q.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(C=C.setEndPosition(C.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&C.startLineNumber=F)return null;for(var se=[],oe=C;oe<=F;oe++)se.push(Ee.getLineContent(oe));var be=se.slice(0);return be.sort(E.getCollator().compare),Q===!0&&(be=be.reverse()),{startLineNumber:C,endLineNumber:F,before:se,after:be}}function A(Ee,ve,Q){var C=L(Ee,ve,Q);return C?O.a.replace(new U.a(C.startLineNumber,1,C.endLineNumber,Ee.getLineMaxColumn(C.endLineNumber)),C.after.join(` -`)):null}var k=function(){var Ee=function(Q,C){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,se){F.__proto__=se}||function(F,se){for(var oe in se)se.hasOwnProperty(oe)&&(F[oe]=se[oe])},Ee(Q,C)};return function(ve,Q){Ee(ve,Q);function C(){this.constructor=ve}ve.prototype=Q===null?Object.create(Q):(C.prototype=Q.prototype,new C)}}(),R=function(Ee){k(ve,Ee);function ve(Q,C){var F=Ee.call(this,C)||this;return F.down=Q,F}return ve.prototype.run=function(Q,C){for(var F=[],se=C.getSelections()||[],oe=0,be=se;oe1&&(it-=1,Rt=se.getLineMaxColumn(it)),be.push(O.a.replace(new f.a(it,Rt,pt,Mt),"")),De.push(new f.a(it-oe,Qe.positionColumn,it-oe,Qe.positionColumn)),oe+=Qe.endLineNumber-Qe.startLineNumber+1}C.pushUndoStop(),C.executeEdits(this.id,be,De),C.pushUndoStop()},ve.prototype._getLinesToRemove=function(Q){var C=Q.getSelections().map(function(be){var De=be.endLineNumber;return be.startLineNumber=C[oe].startLineNumber?se.endLineNumber=C[oe].endLineNumber:(F.push(se),se=C[oe]);return F.push(se),F},ve}(I.b),ne=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.indentLines",label:T.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|89,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.indent(F.context.config,C.getModel(),C.getSelections())),C.pushUndoStop()},ve}(I.b),ee=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.outdentLines",label:T.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|87,weight:100}})||this}return ve.prototype.run=function(Q,C){J.CoreEditingCommands.Outdent.runEditorCommand(Q,C,null)},ve}(I.b),ae=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineBefore",label:T.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|1024|3,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertBefore(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),q=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineAfter",label:T.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|3,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertAfter(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),ue=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){if(!C.hasModel())return;for(var F=C.getSelection(),se=this._getRangesToDelete(C),oe=[],be=0,De=se.length-1;be0){var Se=be.startLineNumber-oe;De=new f.a(Se,be.startColumn,Se,be.startColumn)}else De=new f.a(be.startLineNumber,be.startColumn,be.startLineNumber,be.startColumn);oe+=be.endLineNumber-be.startLineNumber,be.intersectRanges(Q)?F=De:se.push(De)}),F&&se.unshift(F),se},ve.prototype._getRangesToDelete=function(Q){var C=Q.getSelections();if(C===null)return[];var F=C,se=Q.getModel();return se===null?[]:(F.sort(U.a.compareRangesUsingStarts),F=F.map(function(oe){if(oe.isEmpty())if(oe.startColumn===1){var be=Math.max(1,oe.startLineNumber-1),De=oe.startLineNumber===1?1:se.getLineContent(be).length+1;return new U.a(be,De,oe.startLineNumber,1)}else return new U.a(oe.startLineNumber,1,oe.startLineNumber,oe.startColumn);else return new U.a(oe.startLineNumber,1,oe.endLineNumber,oe.endColumn)}),F)},ve}(ue),he=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"deleteAllRight",label:T.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|41,secondary:[2048|20]},weight:100}})||this}return ve.prototype._getEndCursorState=function(Q,C){for(var F=null,se=[],oe=0,be=C.length,De=0;oeNt.endLineNumber+1?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn):Et.startLineNumber>Nt.endLineNumber?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn)});oe.push(be);var De=C.getModel();if(De===null)return;for(var Se=[],Ve=[],Qe=se,it=0,pt=0,Rt=oe.length;pt=1){var Ct=!0;At===""&&(Ct=!1),Ct&&(At.charAt(At.length-1)===" "||At.charAt(At.length-1)===" ")&&(Ct=!1,At=At.replace(/[\s\uFEFF\xA0]+$/g," "));var gt=tt.substr(ut-1);At+=(Ct?" ":"")+gt,Ct?ao=gt.length+1:ao=gt.length}else ao=0}var bt=new U.a(zt,uo,so,Pt);if(!bt.isEmpty()){var Gt=void 0;Mt.isEmpty()?(Se.push(O.a.replace(bt,At)),Gt=new f.a(bt.startLineNumber-it,At.length-ao+1,zt-it,At.length-ao+1)):Mt.startLineNumber===Mt.endLineNumber?(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.endLineNumber-it,Mt.endColumn)):(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.startLineNumber-it,At.length-ft)),U.a.intersectRanges(bt,se)!==null?Qe=Gt:Ve.push(Gt)}it+=bt.endLineNumber-bt.startLineNumber}Ve.unshift(Qe),C.pushUndoStop(),C.executeEdits(this.id,Se,Ve),C.pushUndoStop()},ve}(I.b),Xe=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transpose",label:T.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:v.a.writable})||this}return ve.prototype.run=function(Q,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=[],be=0,De=F.length;be=Qe){if(Ve.lineNumber===se.getLineCount())continue;var it=new U.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new H.a(new f.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt))}else{var it=new U.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber,Ve.column+1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new H.b(it,pt,new f.a(Ve.lineNumber,Ve.column+1,Ve.lineNumber,Ve.column+1)))}}C.pushUndoStop(),C.executeCommands(this.id,oe),C.pushUndoStop()},ve}(I.b),me=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=C.getOption(96),be=[],De=0,Se=F.length;De=0?(be=!0,oe+=Se):be?(be=!1,oe+=Se.toLocaleUpperCase()):oe+=Se.toLocaleLowerCase()}return oe},ve}(me);Object(I.f)($),Object(I.f)(ie),Object(I.f)(W),Object(I.f)(le),Object(I.f)(Ce),Object(I.f)(Te),Object(I.f)(Fe),Object(I.f)(He),Object(I.f)(Pe),Object(I.f)(ne),Object(I.f)(ee),Object(I.f)(ae),Object(I.f)(q),Object(I.f)(X),Object(I.f)(he),Object(I.f)(je),Object(I.f)(Xe),Object(I.f)(ge),Object(I.f)(_e),Object(I.f)(Re)},dgXF:function(Lt,j,e){"use strict";e.r(j),e.d(j,"FoldingController",function(){return F}),e.d(j,"foldBackgroundBackground",function(){return so});var T=e("CjOT"),re=e("3/fG"),J=e("746U"),I=e("N0LK"),H=e("X+cX"),z=e("/kV6"),O=e("pmY6"),U=e("sswD"),x=e("MI8n"),u=65535,y=16777215,w=4278190080,f=function(){function Pt(ft,vt,At){if(ft.length!==vt.length||ft.length>u)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=ft,this._endIndexes=vt,this._collapseStates=new Uint32Array(Math.ceil(ft.length/32)),this._types=At,this._parentsComputed=!1}return Pt.prototype.ensureParentIndices=function(){var ft=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var vt=[],At=function(Gt,Nt){var Et=vt[vt.length-1];return ft.getStartLineNumber(Et)<=Gt&&ft.getEndLineNumber(Et)>=Nt},at=0,tt=this._startIndexes.length;aty||Ct>y)throw new Error("startLineNumber or endLineNumber must not exceed "+y);for(;vt.length>0&&!At(ut,Ct);)vt.pop();var gt=vt.length>0?vt[vt.length-1]:-1;vt.push(at),this._startIndexes[at]=ut+((gt&255)<<24),this._endIndexes[at]=Ct+((gt&65280)<<16)}}},Object.defineProperty(Pt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Pt.prototype.getStartLineNumber=function(ft){return this._startIndexes[ft]&y},Pt.prototype.getEndLineNumber=function(ft){return this._endIndexes[ft]&y},Pt.prototype.getType=function(ft){return this._types?this._types[ft]:void 0},Pt.prototype.hasTypes=function(){return!!this._types},Pt.prototype.isCollapsed=function(ft){var vt=ft/32|0,At=ft%32;return(this._collapseStates[vt]&1<>>24)+((this._endIndexes[ft]&w)>>>16);return vt===u?-1:vt},Pt.prototype.contains=function(ft,vt){return this.getStartLineNumber(ft)<=vt&&this.getEndLineNumber(ft)>=vt},Pt.prototype.findIndex=function(ft){var vt=0,At=this._startIndexes.length;if(At===0)return-1;for(;vt=0){var At=this.getEndLineNumber(vt);if(At>=ft)return vt;for(vt=this.getParentIndex(vt);vt!==-1;){if(this.contains(vt,ft))return vt;vt=this.getParentIndex(vt)}}return-1},Pt.prototype.toString=function(){for(var ft=[],vt=0;vt=this.endLineNumber},Pt.prototype.containsLine=function(ft){return this.startLineNumber<=ft&&ft<=this.endLineNumber},Pt}(),_=function(){function Pt(ft,vt){this._updateEventEmitter=new x.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=ft,this._decorationProvider=vt,this._regions=new f(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(Pt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Pt.prototype.toggleCollapseState=function(ft){var vt=this;if(!ft.length)return;var At={};this._decorationProvider.changeDecorations(function(at){for(var tt=0,ut=ft;tt=Je)ut(bt,Et===Je),bt++;else break}}Gt=gt()}for(;bt0?ft:void 0},Pt.prototype.applyMemento=function(ft){if(!Array.isArray(ft))return;for(var vt=[],At=0,at=ft;At=0;){var ut=this._regions.toRegion(at);(!vt||vt(ut,tt))&&At.push(ut),tt++,at=ut.parentIndex}return At},Pt.prototype.getRegionAtLine=function(ft){if(this._regions){var vt=this._regions.findRange(ft);if(vt>=0)return this._regions.toRegion(vt)}return null},Pt.prototype.getRegionsInside=function(ft,vt){var At=[],at=ft?ft.regionIndex+1:0,tt=ft?ft.endLineNumber:Number.MAX_VALUE;if(vt&&vt.length===2)for(var ut=[],Ct=at,gt=this._regions.length;Ct0&&!bt.containedBy(ut[ut.length-1]);)ut.pop();ut.push(bt),vt(bt,ut.length)&&At.push(bt)}else break}else for(var Ct=at,gt=this._regions.length;Ct1){var Et=Pt.getRegionsInside(Gt,function(Je,$e){return Je.isCollapsed!==Nt&&$e0)for(var tt=0,ut=At;tt1)){var bt=Pt.getRegionsInside(gt,function(Gt,Nt){return Gt.isCollapsed!==ft&&Nt0&&At.push(Ct[0])}Pt.toggleCollapseState(At)}function d(Pt,ft,vt,At){var at=function(Ct,gt){return gt===ft&&Ct.isCollapsed!==vt&&!At.some(function(bt){return Ct.containsLine(bt)})},tt=Pt.getRegionsInside(null,at);Pt.toggleCollapseState(tt)}function m(Pt,ft,vt){for(var At=Pt.textModel,at=Pt.regions,tt=[],ut=at.length-1;ut>=0;ut--)if(vt!==at.isCollapsed(ut)){var Ct=at.getStartLineNumber(ut);ft.test(At.getLineContent(Ct))&&tt.push(at.toRegion(ut))}Pt.toggleCollapseState(tt)}function E(Pt,ft,vt){for(var At=Pt.regions,at=[],tt=At.length-1;tt>=0;tt--)vt!==At.isCollapsed(tt)&&ft===At.getType(tt)&&at.push(At.toRegion(tt));Pt.toggleCollapseState(at)}var L=e("tX9W"),A=function(){function Pt(ft){this.editor=ft,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Pt.prototype.getDecorationOption=function(ft){return ft?this.showFoldingHighlights?Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Pt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Pt.EXPANDED_VISUAL_DECORATION},Pt.prototype.deltaDecorations=function(ft,vt){return this.editor.deltaDecorations(ft,vt)},Pt.prototype.changeDecorations=function(ft){return this.editor.changeDecorations(ft)},Pt.COLLAPSED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Pt.EXPANDED_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Pt}(),k=e("wQH0"),R=e("aokT"),$=e("6OMU"),ie=function(){function Pt(ft){var vt=this;this._updateEventEmitter=new x.a,this._foldingModel=ft,this._foldingModelListener=ft.onDidChange(function(At){return vt.updateHiddenRanges()}),this._hiddenRanges=[],ft.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Pt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Pt.prototype.updateHiddenRanges=function(){for(var ft=!1,vt=[],At=0,at=0,tt=Number.MAX_VALUE,ut=-1,Ct=this._foldingModel.regions;At0},Pt.prototype.isHidden=function(ft){return B(this._hiddenRanges,ft)!==null},Pt.prototype.adjustSelections=function(ft){for(var vt=this,At=!1,at=this._foldingModel.textModel,tt=null,ut=function(Je){return(!tt||!W(Je,tt))&&(tt=B(vt._hiddenRanges,Je)),tt?tt.startLineNumber-1:null},Ct=0,gt=ft.length;Ct0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Pt}();function W(Pt,ft){return Pt>=ft.startLineNumber&&Pt<=ft.endLineNumber}function B(Pt,ft){var vt=Object($.i)(Pt,function(At){return ft=0&&Pt[vt].endLineNumber>=ft?Pt[vt]:null}var le=e("cMvZ"),Ce=5e3,Me="indent",Te=function(){function Pt(ft){this.editorModel=ft,this.id=Me}return Pt.prototype.dispose=function(){},Pt.prototype.compute=function(ft){var vt=le.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),At=vt&&!!vt.offSide,at=vt&&vt.markers;return Promise.resolve(He(this.editorModel,At,at))},Pt}(),Fe=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.insertFirst=function(ft,vt,At){if(ft>y||vt>y)return;var at=this._length;this._startIndexes[at]=ft,this._endIndexes[at]=vt,this._length++,At<1e3&&(this._indentOccurrences[At]=(this._indentOccurrences[At]||0)+1)},Pt.prototype.toIndentRanges=function(ft){if(this._length<=this._foldingRangesLimit){for(var vt=new Uint32Array(this._length),At=new Uint32Array(this._length),at=this._length-1,tt=0;at>=0;at--,tt++)vt[tt]=this._startIndexes[at],At[tt]=this._endIndexes[at];return new f(vt,At)}else{for(var ut=0,Ct=this._indentOccurrences.length,at=0;atthis._foldingRangesLimit){Ct=at;break}ut+=gt}}for(var bt=ft.getOptions().tabSize,vt=new Uint32Array(this._foldingRangesLimit),At=new Uint32Array(this._foldingRangesLimit),at=this._length-1,tt=0;at>=0;at--){var Gt=this._startIndexes[at],Nt=ft.getLineContent(Gt),Et=L.b.computeIndentLevel(Nt,bt);(Et0;bt--){var Gt=Pt.getLineContent(bt),Nt=L.b.computeIndentLevel(Gt,at),Et=Ct[Ct.length-1];if(Nt===-1){ft&&(Et.endAbove=bt);continue}var Je=void 0;if(ut&&(Je=Gt.match(ut)))if(Je[1]){for(var $e=Ct.length-1;$e>0&&Ct[$e].indent!==-2;)$e--;if($e>0){Ct.length=$e+1,Et=Ct[$e],tt.insertFirst(bt,Et.line,Nt),Et.line=bt,Et.indent=Nt,Et.endAbove=bt;continue}}else{Ct.push({indent:-2,endAbove:bt,line:bt});continue}if(Et.indent>Nt){do Ct.pop(),Et=Ct[Ct.length-1];while(Et.indent>Nt);var ze=Et.endAbove-1;ze-bt>=1&&tt.insertFirst(bt,ze,Nt)}Et.indent===Nt?Et.endAbove=bt:Ct.push({indent:Nt,endAbove:bt,line:bt})}return tt.toIndentRanges(Pt)}var Pe=e("twdY"),ne=e("/cxE"),ee=5e3,ae={},q="syntax",ue=function(){function Pt(ft,vt,At){At===void 0&&(At=ee),this.editorModel=ft,this.providers=vt,this.limit=At,this.id=q}return Pt.prototype.compute=function(ft){var vt=this;return X(this.providers,this.editorModel,ft).then(function(At){if(At){var at=je(At,vt.limit);return at}return null})},Pt.prototype.dispose=function(){},Pt}();function X(Pt,ft,vt){var At=null,at=Pt.map(function(tt,ut){return Promise.resolve(tt.provideFoldingRanges(ft,ae,vt)).then(function(Ct){if(vt.isCancellationRequested)return;if(Array.isArray(Ct)){Array.isArray(At)||(At=[]);for(var gt=ft.getLineCount(),bt=0,Gt=Ct;bt0&&Nt.end>Nt.start&&Nt.end<=gt&&At.push({start:Nt.start,end:Nt.end,rank:ut,kind:Nt.kind})}}},ne.f)});return Promise.all(at).then(function(tt){return At})}var he=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.add=function(ft,vt,At,at){if(ft>y||vt>y)return;var tt=this._length;this._startIndexes[tt]=ft,this._endIndexes[tt]=vt,this._nestingLevels[tt]=at,this._types[tt]=At,this._length++,at<30&&(this._nestingLevelCounts[at]=(this._nestingLevelCounts[at]||0)+1)},Pt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var ft=new Uint32Array(this._length),vt=new Uint32Array(this._length),At=0;Atthis._foldingRangesLimit){tt=At;break}at+=ut}}for(var ft=new Uint32Array(this._foldingRangesLimit),vt=new Uint32Array(this._foldingRangesLimit),Ct=[],At=0,gt=0;Atat.start)if(gt.end<=at.end)tt.push(at),at=gt,At.add(gt.start,gt.end,gt.kind&>.kind.value,tt.length);else{if(gt.start>at.end){do at=tt.pop();while(at&>.start>at.end);at&&tt.push(at),at=gt}At.add(gt.start,gt.end,gt.kind&>.kind.value,tt.length)}}return At.toIndentRanges()}var Xe="init",me=function(){function Pt(ft,vt,At,at){if(this.editorModel=ft,this.id=Xe,vt.length){var tt=function(Ct){return{range:{startLineNumber:Ct.startLineNumber,startColumn:0,endLineNumber:Ct.endLineNumber,endColumn:ft.getLineLength(Ct.endLineNumber)},options:{stickiness:1}}};this.decorationIds=ft.deltaDecorations([],vt.map(tt)),this.timeout=setTimeout(At,at)}}return Pt.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},Pt.prototype.compute=function(ft){var vt=[];if(this.decorationIds)for(var At=0,at=this.decorationIds;At=0;Ct--)(ut=Pt[Ct])&&(tt=(at<3?ut(tt):at>3?ut(ft,vt,tt):ut(ft,vt))||tt);return at>3&&tt&&Object.defineProperty(ft,vt,tt),tt},Q=function(Pt,ft){return function(vt,At){ft(vt,At,Pt)}},C=new ge.d("foldingEnabled",!1),F=function(Pt){Ee(ft,Pt);function ft(vt,At){var at=Pt.call(this)||this;at.contextKeyService=At,at.localToDispose=at._register(new O.b),at.editor=vt;var tt=at.editor.getOptions();return at._isEnabled=tt.get(30),at._useFoldingProviders=tt.get(31)!=="indentation",at.foldingModel=null,at.hiddenRangeModel=null,at.rangeProvider=null,at.foldingRegionPromise=null,at.foldingStateMemento=null,at.foldingModelPromise=null,at.updateScheduler=null,at.cursorChangedScheduler=null,at.mouseDownInfo=null,at.foldingDecorationProvider=new A(vt),at.foldingDecorationProvider.autoHideFoldingControls=tt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=tt.get(32),at.foldingEnabled=C.bindTo(at.contextKeyService),at.foldingEnabled.set(at._isEnabled),at._register(at.editor.onDidChangeModel(function(){return at.onModelChanged()})),at._register(at.editor.onDidChangeConfiguration(function(ut){if(ut.hasChanged(30)){var Ct=at.editor.getOptions();at._isEnabled=Ct.get(30),at.foldingEnabled.set(at._isEnabled),at.onModelChanged()}if(ut.hasChanged(84)||ut.hasChanged(32)){var gt=at.editor.getOptions();at.foldingDecorationProvider.autoHideFoldingControls=gt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=gt.get(32),at.onModelContentChanged()}if(ut.hasChanged(31)){var bt=at.editor.getOptions();at._useFoldingProviders=bt.get(31)!=="indentation",at.onFoldingStrategyChanged()}})),at.onModelChanged(),at}return ft.get=function(vt){return vt.getContribution(ft.ID)},ft.prototype.saveViewState=function(){var vt=this.editor.getModel();if(!vt||!this._isEnabled||vt.isTooLargeForTokenization())return{};if(this.foldingModel){var At=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),at=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:At,lineCount:vt.getLineCount(),provider:at}}return},ft.prototype.restoreViewState=function(vt){var At=this.editor.getModel();if(!At||!this._isEnabled||At.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!vt||!vt.collapsedRegions||vt.lineCount!==At.getLineCount())return;(vt.provider===q||vt.provider===Xe)&&(this.foldingStateMemento=vt);var at=vt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(at)){var tt=this.getFoldingModel();tt&&tt.then(function(ut){ut&&ut.applyMemento(at)}).then(void 0,ne.e)}},ft.prototype.onModelChanged=function(){var vt=this;this.localToDispose.clear();var At=this.editor.getModel();if(!this._isEnabled||!At||At.isTooLargeForTokenization())return;this.foldingModel=new _(At,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new ie(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(at){return vt.onHiddenRangesChanges(at)})),this.updateScheduler=new H.a(200),this.cursorChangedScheduler=new H.d(function(){return vt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(Pe.o.onDidChange(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return vt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return vt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(at){return vt.onEditorMouseDown(at)})),this.localToDispose.add(this.editor.onMouseUp(function(at){return vt.onEditorMouseUp(at)})),this.localToDispose.add({dispose:function(){vt.foldingRegionPromise&&(vt.foldingRegionPromise.cancel(),vt.foldingRegionPromise=null),vt.updateScheduler&&vt.updateScheduler.cancel(),vt.updateScheduler=null,vt.foldingModel=null,vt.foldingModelPromise=null,vt.hiddenRangeModel=null,vt.cursorChangedScheduler=null,vt.foldingStateMemento=null,vt.rangeProvider&&vt.rangeProvider.dispose(),vt.rangeProvider=null}}),this.onModelContentChanged()},ft.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ft.prototype.getRangeProvider=function(vt){var At=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Te(vt),this._useFoldingProviders&&this.foldingModel){var at=Pe.o.ordered(this.foldingModel.textModel);if(at.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var tt=this.rangeProvider=new me(vt,this.foldingStateMemento.collapsedRegions,function(){At.foldingStateMemento=null,At.onFoldingStrategyChanged()},3e4);return tt}else at.length>0&&(this.rangeProvider=new ue(vt,at))}return this.foldingStateMemento=null,this.rangeProvider},ft.prototype.getFoldingModel=function(){return this.foldingModelPromise},ft.prototype.onModelContentChanged=function(){var vt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var At=vt.foldingModel;if(!At)return null;var at=vt.foldingRegionPromise=Object(H.f)(function(tt){return vt.getRangeProvider(At.textModel).compute(tt)});return at.then(function(tt){if(tt&&at===vt.foldingRegionPromise){var ut=vt.editor.getSelections(),Ct=ut?ut.map(function(gt){return gt.startLineNumber}):[];At.update(tt,Ct)}return At})}).then(void 0,function(At){return Object(ne.e)(At),null}))},ft.prototype.onHiddenRangesChanges=function(vt){if(this.hiddenRangeModel&&vt.length){var At=this.editor.getSelections();At&&(this.hiddenRangeModel.adjustSelections(At)&&this.editor.setSelections(At))}this.editor.setHiddenAreas(vt)},ft.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ft.prototype.revealCursor=function(){var vt=this,At=this.getFoldingModel();if(!At)return;At.then(function(at){if(at){var tt=vt.editor.getSelections();if(tt&&tt.length>0){for(var ut=[],Ct=function(Et){var Je=Et.selectionStartLineNumber;vt.hiddenRangeModel&&vt.hiddenRangeModel.isHidden(Je)&&ut.push.apply(ut,at.getAllRegionsAtLine(Je,function($e){return $e.isCollapsed&&Je>$e.startLineNumber}))},gt=0,bt=tt;gt0&&Ee.schedule()})),this._localToDispose.add(this._editor.onDidLayoutChange(function(){Ee.schedule()})),this._localToDispose.add(Object(J.h)(function(){if(he._editor.getModel()){var Q=I.c.capture(he._editor);he._editor.changeDecorations(function(C){he._editor.changeViewZones(function(F){he._disposeAllLenses(C,F)})}),Q.restore(he._editor)}else he._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseUp(function(Q){var C;if(Q.target.type!==9)return;var F=Q.target.element;if((F==null?void 0:F.tagName)==="SPAN"&&(F=F.parentElement),(F==null?void 0:F.tagName)==="A")for(var se=0,oe=he._lenses;seXe)continue;ge&&ge[ge.length-1].symbol.range.startLineNumber===ve?ge.push(Ee):(ge=[Ee],me.push(ge))}var Q=I.c.capture(this._editor);this._editor.changeDecorations(function(C){je._editor.changeViewZones(function(F){for(var se=new A,oe=0,be=0;beH)continue;if(p.isEmpty()&&(w.type===0||w.type===3))continue;var c=p.startLineNumber===H?p.startColumn:x,s=p.endLineNumber===H?p.endColumn:u;y[_++]=new z(c,s,w.inlineClassName,w.type)}return y},z.compare=function(O,H){return O.startColumn===H.startColumn?O.endColumn===H.endColumn?O.classNameH.className?1:0:O.endColumn-H.endColumn:O.startColumn-H.startColumn},z}(),J=function(){function z(O,H,x){this.startOffset=O,this.endOffset=H,this.className=x}return z}(),I=function(){function z(){this.stopOffsets=[],this.classNames=[],this.count=0}return z.prototype.consumeLowerThan=function(O,H,x){for(;this.count>0&&this.stopOffsets[0]0&&H=O){this.stopOffsets.splice(x,0,O),this.classNames.splice(x,0,H);break}this.count++;return},z}(),U=function(){function z(){}return z.normalize=function(O,H){if(H.length===0)return[];for(var x=[],u=new I,y=0,_=0,f=H.length;_1){var s=O.charCodeAt(w-2);T.z(s)&&w--}if(p>1){var s=O.charCodeAt(p-2);T.z(s)&&p--}var l=w-1,d=p-2;y=u.consumeLowerThan(l,y,x),u.count===0&&(y=l),u.insert(d,c)}return u.consumeLowerThan(1073741824,y,x),x},z}()},dFcq:function(Lt,j,e){},"dH+W":function(Lt,j,e){"use strict";e.r(j),e.d(j,"DuplicateSelectionAction",function(){return W}),e.d(j,"AbstractSortLinesAction",function(){return Me}),e.d(j,"SortLinesAscendingAction",function(){return Te}),e.d(j,"SortLinesDescendingAction",function(){return Fe}),e.d(j,"TrimTrailingWhitespaceAction",function(){return Ue}),e.d(j,"DeleteLinesAction",function(){return Pe}),e.d(j,"IndentLinesAction",function(){return ne}),e.d(j,"InsertLineBeforeAction",function(){return ae}),e.d(j,"InsertLineAfterAction",function(){return q}),e.d(j,"AbstractDeleteAllToBoundaryAction",function(){return ue}),e.d(j,"DeleteAllLeftAction",function(){return X}),e.d(j,"DeleteAllRightAction",function(){return he}),e.d(j,"JoinLinesAction",function(){return je}),e.d(j,"TransposeAction",function(){return Xe}),e.d(j,"AbstractCaseAction",function(){return me}),e.d(j,"UpperCaseAction",function(){return ge}),e.d(j,"LowerCaseAction",function(){return we}),e.d(j,"TitleCaseAction",function(){return Re});var T=e("3/fG"),re=e("/kV6"),J=e("1YUG"),I=e("sswD"),U=e("LCkn"),z=e("N0LK"),O=e("0/Sa"),H=e("aokT"),x=function(){function Ee(ve,Q){this._selection=ve,this._cursors=Q,this._selectionId=null}return Ee.prototype.getEditOperations=function(ve,Q){for(var C=u(ve,this._cursors),F=0,se=C.length;F=0;Q--)ve[Q].lineNumber===ve[Q+1].lineNumber&&ve.splice(Q,1);for(var C=[],F=0,se=0,oe=ve.length,be=1,De=Ee.getLineCount();be<=De;be++){var Se=Ee.getLineContent(be),Ve=Se.length+1,Qe=0;if(se=F.startLineNumber+1&&Ct<=F.endLineNumber+1?ve.getLineContent(Ct-1):ve.getLineContent(Ct)};var At=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(pt,1),F.startLineNumber+1,Se);if(At!==null){var uo=z.t(ve.getLineContent(F.startLineNumber)),ao=l(At,oe),ft=l(uo,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}else Q.addEditOperation(new H.a(F.startLineNumber,1,F.startLineNumber,1),Mt+` +`)}else if(pt=F.startLineNumber-1,Rt=ve.getLineContent(pt),Q.addEditOperation(new H.a(pt,1,pt+1,1),null),Q.addEditOperation(new H.a(F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber),F.endLineNumber,ve.getLineMaxColumn(F.endLineNumber)),` +`+Rt),this.shouldAutoIndent(ve,F)){Ve.getLineContent=function(gt){return gt===pt?ve.getLineContent(F.startLineNumber):ve.getLineContent(gt)};var vt=this.matchEnterRule(ve,Se,oe,F.startLineNumber,F.startLineNumber-2);if(vt!==null)vt!==0&&this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,vt);else{var tt=s.a.getGoodIndentForLine(this._autoIndent,Ve,ve.getLanguageIdAtPosition(F.startLineNumber,1),pt,Se);if(tt!==null){var ut=z.t(ve.getLineContent(F.startLineNumber)),ao=l(tt,oe),ft=l(ut,oe);if(ao!==ft){var at=ao-ft;this.getIndentEditsOfMovingBlock(ve,Q,F,oe,De,at)}}}}}this._selectionId=Q.trackSelection(F)},Ee.prototype.buildIndentConverter=function(ve,Q,C){return{shiftIndent:function(se){return p.a.shiftIndent(se,se.length+1,ve,Q,C)},unshiftIndent:function(se){return p.a.unshiftIndent(se,se.length+1,ve,Q,C)}}},Ee.prototype.matchEnterRule=function(ve,Q,C,F,se,oe){for(var be=se;be>=1;){var De=void 0;be===se&&oe!==void 0?De=oe:De=ve.getLineContent(be);var Se=z.D(De);if(Se>=0)break;be--}if(be<1||F>ve.getLineCount())return null;var Ve=ve.getLineMaxColumn(be),Qe=s.a.getEnterAction(this._autoIndent,ve,new H.a(be,Ve,be,Ve));if(Qe){var it=Qe.indentation;Qe.indentAction===c.a.None||Qe.indentAction===c.a.Indent?it=Qe.indentation+Qe.appendText:Qe.indentAction===c.a.IndentOutdent?it=Qe.indentation:Qe.indentAction===c.a.Outdent&&(it=Q.unshiftIndent(Qe.indentation)+Qe.appendText);var pt=ve.getLineContent(F);if(this.trimLeft(pt).indexOf(this.trimLeft(it))>=0){var Rt=z.t(ve.getLineContent(F)),Mt=z.t(it),zt=s.a.getIndentMetadata(ve,F);zt!==null&&zt&2&&(Mt=Q.unshiftIndent(Mt));var uo=l(Mt,C),ao=l(Rt,C);return uo-ao}}return null},Ee.prototype.trimLeft=function(ve){return ve.replace(/^\s+/,"")},Ee.prototype.shouldAutoIndent=function(ve,Q){if(this._autoIndent<4)return!1;if(!ve.isCheapToTokenize(Q.startLineNumber))return!1;var C=ve.getLanguageIdAtPosition(Q.startLineNumber,1),F=ve.getLanguageIdAtPosition(Q.endLineNumber,1);return C!==F?!1:!(s.a.getIndentRulesSupport(C)===null)},Ee.prototype.getIndentEditsOfMovingBlock=function(ve,Q,C,F,se,oe){for(var be=C.startLineNumber;be<=C.endLineNumber;be++){var De=ve.getLineContent(be),Se=z.t(De),Ve=l(Se,F),Qe=Ve+oe,it=d(Qe,F,se);it!==Se&&(Q.addEditOperation(new H.a(be,1,be,Se.length+1),it),be===C.endLineNumber&&C.endColumn<=Se.length+1&&it===""&&(this._moveEndLineSelectionShrink=!0))}},Ee.prototype.computeCursorState=function(ve,Q){var C=Q.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(C=C.setEndPosition(C.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&C.startLineNumber=F)return null;for(var se=[],oe=C;oe<=F;oe++)se.push(Ee.getLineContent(oe));var be=se.slice(0);return be.sort(E.getCollator().compare),Q===!0&&(be=be.reverse()),{startLineNumber:C,endLineNumber:F,before:se,after:be}}function A(Ee,ve,Q){var C=L(Ee,ve,Q);return C?O.a.replace(new H.a(C.startLineNumber,1,C.endLineNumber,Ee.getLineMaxColumn(C.endLineNumber)),C.after.join(` +`)):null}var k=function(){var Ee=function(Q,C){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,se){F.__proto__=se}||function(F,se){for(var oe in se)se.hasOwnProperty(oe)&&(F[oe]=se[oe])},Ee(Q,C)};return function(ve,Q){Ee(ve,Q);function C(){this.constructor=ve}ve.prototype=Q===null?Object.create(Q):(C.prototype=Q.prototype,new C)}}(),R=function(Ee){k(ve,Ee);function ve(Q,C){var F=Ee.call(this,C)||this;return F.down=Q,F}return ve.prototype.run=function(Q,C){for(var F=[],se=C.getSelections()||[],oe=0,be=se;oe1&&(it-=1,Rt=se.getLineMaxColumn(it)),be.push(O.a.replace(new f.a(it,Rt,pt,Mt),"")),De.push(new f.a(it-oe,Qe.positionColumn,it-oe,Qe.positionColumn)),oe+=Qe.endLineNumber-Qe.startLineNumber+1}C.pushUndoStop(),C.executeEdits(this.id,be,De),C.pushUndoStop()},ve.prototype._getLinesToRemove=function(Q){var C=Q.getSelections().map(function(be){var De=be.endLineNumber;return be.startLineNumber=C[oe].startLineNumber?se.endLineNumber=C[oe].endLineNumber:(F.push(se),se=C[oe]);return F.push(se),F},ve}(I.b),ne=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.indentLines",label:T.a("lines.indent","Indent Line"),alias:"Indent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|89,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.indent(F.context.config,C.getModel(),C.getSelections())),C.pushUndoStop()},ve}(I.b),ee=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.outdentLines",label:T.a("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|87,weight:100}})||this}return ve.prototype.run=function(Q,C){J.CoreEditingCommands.Outdent.runEditorCommand(Q,C,null)},ve}(I.b),ae=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineBefore",label:T.a("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|1024|3,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertBefore(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),q=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.insertLineAfter",label:T.a("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:v.a.writable,kbOpts:{kbExpr:v.a.editorTextFocus,primary:2048|3,weight:100}})||this}return ve.prototype.run=function(Q,C){var F=C._getCursors();if(!F)return;C.pushUndoStop(),C.executeCommands(this.id,y.a.lineInsertAfter(F.context.config,C.getModel(),C.getSelections()))},ve}(I.b),ue=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){if(!C.hasModel())return;for(var F=C.getSelection(),se=this._getRangesToDelete(C),oe=[],be=0,De=se.length-1;be0){var Se=be.startLineNumber-oe;De=new f.a(Se,be.startColumn,Se,be.startColumn)}else De=new f.a(be.startLineNumber,be.startColumn,be.startLineNumber,be.startColumn);oe+=be.endLineNumber-be.startLineNumber,be.intersectRanges(Q)?F=De:se.push(De)}),F&&se.unshift(F),se},ve.prototype._getRangesToDelete=function(Q){var C=Q.getSelections();if(C===null)return[];var F=C,se=Q.getModel();return se===null?[]:(F.sort(H.a.compareRangesUsingStarts),F=F.map(function(oe){if(oe.isEmpty())if(oe.startColumn===1){var be=Math.max(1,oe.startLineNumber-1),De=oe.startLineNumber===1?1:se.getLineContent(be).length+1;return new H.a(be,De,oe.startLineNumber,1)}else return new H.a(oe.startLineNumber,1,oe.startLineNumber,oe.startColumn);else return new H.a(oe.startLineNumber,1,oe.endLineNumber,oe.endColumn)}),F)},ve}(ue),he=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"deleteAllRight",label:T.a("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:v.a.writable,kbOpts:{kbExpr:v.a.textInputFocus,primary:0,mac:{primary:256|41,secondary:[2048|20]},weight:100}})||this}return ve.prototype._getEndCursorState=function(Q,C){for(var F=null,se=[],oe=0,be=C.length,De=0;oeNt.endLineNumber+1?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn):Et.startLineNumber>Nt.endLineNumber?(oe.push(Nt),Et):new f.a(Nt.startLineNumber,Nt.startColumn,Et.endLineNumber,Et.endColumn)});oe.push(be);var De=C.getModel();if(De===null)return;for(var Se=[],Ve=[],Qe=se,it=0,pt=0,Rt=oe.length;pt=1){var Ct=!0;At===""&&(Ct=!1),Ct&&(At.charAt(At.length-1)===" "||At.charAt(At.length-1)===" ")&&(Ct=!1,At=At.replace(/[\s\uFEFF\xA0]+$/g," "));var gt=tt.substr(ut-1);At+=(Ct?" ":"")+gt,Ct?ao=gt.length+1:ao=gt.length}else ao=0}var bt=new H.a(zt,uo,so,Pt);if(!bt.isEmpty()){var Gt=void 0;Mt.isEmpty()?(Se.push(O.a.replace(bt,At)),Gt=new f.a(bt.startLineNumber-it,At.length-ao+1,zt-it,At.length-ao+1)):Mt.startLineNumber===Mt.endLineNumber?(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.endLineNumber-it,Mt.endColumn)):(Se.push(O.a.replace(bt,At)),Gt=new f.a(Mt.startLineNumber-it,Mt.startColumn,Mt.startLineNumber-it,At.length-ft)),H.a.intersectRanges(bt,se)!==null?Qe=Gt:Ve.push(Gt)}it+=bt.endLineNumber-bt.startLineNumber}Ve.unshift(Qe),C.pushUndoStop(),C.executeEdits(this.id,Se,Ve),C.pushUndoStop()},ve}(I.b),Xe=function(Ee){k(ve,Ee);function ve(){return Ee.call(this,{id:"editor.action.transpose",label:T.a("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:v.a.writable})||this}return ve.prototype.run=function(Q,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=[],be=0,De=F.length;be=Qe){if(Ve.lineNumber===se.getLineCount())continue;var it=new H.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new U.a(new f.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber+1,1),pt))}else{var it=new H.a(Ve.lineNumber,Math.max(1,Ve.column-1),Ve.lineNumber,Ve.column+1),pt=se.getValueInRange(it).split("").reverse().join("");oe.push(new U.b(it,pt,new f.a(Ve.lineNumber,Ve.column+1,Ve.lineNumber,Ve.column+1)))}}C.pushUndoStop(),C.executeCommands(this.id,oe),C.pushUndoStop()},ve}(I.b),me=function(Ee){k(ve,Ee);function ve(){return Ee!==null&&Ee.apply(this,arguments)||this}return ve.prototype.run=function(Q,C){var F=C.getSelections();if(F===null)return;var se=C.getModel();if(se===null)return;for(var oe=C.getOption(96),be=[],De=0,Se=F.length;De=0?(be=!0,oe+=Se):be?(be=!1,oe+=Se.toLocaleUpperCase()):oe+=Se.toLocaleLowerCase()}return oe},ve}(me);Object(I.f)($),Object(I.f)(ie),Object(I.f)(W),Object(I.f)(le),Object(I.f)(Ce),Object(I.f)(Te),Object(I.f)(Fe),Object(I.f)(Ue),Object(I.f)(Pe),Object(I.f)(ne),Object(I.f)(ee),Object(I.f)(ae),Object(I.f)(q),Object(I.f)(X),Object(I.f)(he),Object(I.f)(je),Object(I.f)(Xe),Object(I.f)(ge),Object(I.f)(we),Object(I.f)(Re)},dgXF:function(Lt,j,e){"use strict";e.r(j),e.d(j,"FoldingController",function(){return F}),e.d(j,"foldBackgroundBackground",function(){return so});var T=e("CjOT"),re=e("3/fG"),J=e("746U"),I=e("N0LK"),U=e("X+cX"),z=e("/kV6"),O=e("pmY6"),H=e("sswD"),x=e("MI8n"),u=65535,y=16777215,_=4278190080,f=function(){function Pt(ft,vt,At){if(ft.length!==vt.length||ft.length>u)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=ft,this._endIndexes=vt,this._collapseStates=new Uint32Array(Math.ceil(ft.length/32)),this._types=At,this._parentsComputed=!1}return Pt.prototype.ensureParentIndices=function(){var ft=this;if(!this._parentsComputed){this._parentsComputed=!0;for(var vt=[],At=function(Gt,Nt){var Et=vt[vt.length-1];return ft.getStartLineNumber(Et)<=Gt&&ft.getEndLineNumber(Et)>=Nt},at=0,tt=this._startIndexes.length;aty||Ct>y)throw new Error("startLineNumber or endLineNumber must not exceed "+y);for(;vt.length>0&&!At(ut,Ct);)vt.pop();var gt=vt.length>0?vt[vt.length-1]:-1;vt.push(at),this._startIndexes[at]=ut+((gt&255)<<24),this._endIndexes[at]=Ct+((gt&65280)<<16)}}},Object.defineProperty(Pt.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0}),Pt.prototype.getStartLineNumber=function(ft){return this._startIndexes[ft]&y},Pt.prototype.getEndLineNumber=function(ft){return this._endIndexes[ft]&y},Pt.prototype.getType=function(ft){return this._types?this._types[ft]:void 0},Pt.prototype.hasTypes=function(){return!!this._types},Pt.prototype.isCollapsed=function(ft){var vt=ft/32|0,At=ft%32;return(this._collapseStates[vt]&1<>>24)+((this._endIndexes[ft]&_)>>>16);return vt===u?-1:vt},Pt.prototype.contains=function(ft,vt){return this.getStartLineNumber(ft)<=vt&&this.getEndLineNumber(ft)>=vt},Pt.prototype.findIndex=function(ft){var vt=0,At=this._startIndexes.length;if(At===0)return-1;for(;vt=0){var At=this.getEndLineNumber(vt);if(At>=ft)return vt;for(vt=this.getParentIndex(vt);vt!==-1;){if(this.contains(vt,ft))return vt;vt=this.getParentIndex(vt)}}return-1},Pt.prototype.toString=function(){for(var ft=[],vt=0;vt=this.endLineNumber},Pt.prototype.containsLine=function(ft){return this.startLineNumber<=ft&&ft<=this.endLineNumber},Pt}(),w=function(){function Pt(ft,vt){this._updateEventEmitter=new x.a,this.onDidChange=this._updateEventEmitter.event,this._textModel=ft,this._decorationProvider=vt,this._regions=new f(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[],this._isInitialized=!1}return Object.defineProperty(Pt.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0}),Pt.prototype.toggleCollapseState=function(ft){var vt=this;if(!ft.length)return;var At={};this._decorationProvider.changeDecorations(function(at){for(var tt=0,ut=ft;tt=Je)ut(bt,Et===Je),bt++;else break}}Gt=gt()}for(;bt0?ft:void 0},Pt.prototype.applyMemento=function(ft){if(!Array.isArray(ft))return;for(var vt=[],At=0,at=ft;At=0;){var ut=this._regions.toRegion(at);(!vt||vt(ut,tt))&&At.push(ut),tt++,at=ut.parentIndex}return At},Pt.prototype.getRegionAtLine=function(ft){if(this._regions){var vt=this._regions.findRange(ft);if(vt>=0)return this._regions.toRegion(vt)}return null},Pt.prototype.getRegionsInside=function(ft,vt){var At=[],at=ft?ft.regionIndex+1:0,tt=ft?ft.endLineNumber:Number.MAX_VALUE;if(vt&&vt.length===2)for(var ut=[],Ct=at,gt=this._regions.length;Ct0&&!bt.containedBy(ut[ut.length-1]);)ut.pop();ut.push(bt),vt(bt,ut.length)&&At.push(bt)}else break}else for(var Ct=at,gt=this._regions.length;Ct1){var Et=Pt.getRegionsInside(Gt,function(Je,$e){return Je.isCollapsed!==Nt&&$e0)for(var tt=0,ut=At;tt1)){var bt=Pt.getRegionsInside(gt,function(Gt,Nt){return Gt.isCollapsed!==ft&&Nt0&&At.push(Ct[0])}Pt.toggleCollapseState(At)}function d(Pt,ft,vt,At){var at=function(Ct,gt){return gt===ft&&Ct.isCollapsed!==vt&&!At.some(function(bt){return Ct.containsLine(bt)})},tt=Pt.getRegionsInside(null,at);Pt.toggleCollapseState(tt)}function m(Pt,ft,vt){for(var At=Pt.textModel,at=Pt.regions,tt=[],ut=at.length-1;ut>=0;ut--)if(vt!==at.isCollapsed(ut)){var Ct=at.getStartLineNumber(ut);ft.test(At.getLineContent(Ct))&&tt.push(at.toRegion(ut))}Pt.toggleCollapseState(tt)}function E(Pt,ft,vt){for(var At=Pt.regions,at=[],tt=At.length-1;tt>=0;tt--)vt!==At.isCollapsed(tt)&&ft===At.getType(tt)&&at.push(At.toRegion(tt));Pt.toggleCollapseState(at)}var L=e("tX9W"),A=function(){function Pt(ft){this.editor=ft,this.autoHideFoldingControls=!0,this.showFoldingHighlights=!0}return Pt.prototype.getDecorationOption=function(ft){return ft?this.showFoldingHighlights?Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:Pt.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:Pt.EXPANDED_VISUAL_DECORATION},Pt.prototype.deltaDecorations=function(ft,vt){return this.editor.deltaDecorations(ft,vt)},Pt.prototype.changeDecorations=function(ft){return this.editor.changeDecorations(ft)},Pt.COLLAPSED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=L.a.register({stickiness:1,afterContentClassName:"inline-folded",className:"folded-background",isWholeLine:!0,linesDecorationsClassName:"codicon codicon-chevron-right"}),Pt.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down"}),Pt.EXPANDED_VISUAL_DECORATION=L.a.register({stickiness:1,linesDecorationsClassName:"codicon codicon-chevron-down alwaysShowFoldIcons"}),Pt}(),k=e("wQH0"),R=e("aokT"),$=e("6OMU"),ie=function(){function Pt(ft){var vt=this;this._updateEventEmitter=new x.a,this._foldingModel=ft,this._foldingModelListener=ft.onDidChange(function(At){return vt.updateHiddenRanges()}),this._hiddenRanges=[],ft.regions.length&&this.updateHiddenRanges()}return Object.defineProperty(Pt.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0}),Object.defineProperty(Pt.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0}),Pt.prototype.updateHiddenRanges=function(){for(var ft=!1,vt=[],At=0,at=0,tt=Number.MAX_VALUE,ut=-1,Ct=this._foldingModel.regions;At0},Pt.prototype.isHidden=function(ft){return B(this._hiddenRanges,ft)!==null},Pt.prototype.adjustSelections=function(ft){for(var vt=this,At=!1,at=this._foldingModel.textModel,tt=null,ut=function(Je){return(!tt||!W(Je,tt))&&(tt=B(vt._hiddenRanges,Je)),tt?tt.startLineNumber-1:null},Ct=0,gt=ft.length;Ct0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)},Pt}();function W(Pt,ft){return Pt>=ft.startLineNumber&&Pt<=ft.endLineNumber}function B(Pt,ft){var vt=Object($.i)(Pt,function(At){return ft=0&&Pt[vt].endLineNumber>=ft?Pt[vt]:null}var le=e("cMvZ"),Ce=5e3,Me="indent",Te=function(){function Pt(ft){this.editorModel=ft,this.id=Me}return Pt.prototype.dispose=function(){},Pt.prototype.compute=function(ft){var vt=le.a.getFoldingRules(this.editorModel.getLanguageIdentifier().id),At=vt&&!!vt.offSide,at=vt&&vt.markers;return Promise.resolve(Ue(this.editorModel,At,at))},Pt}(),Fe=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.insertFirst=function(ft,vt,At){if(ft>y||vt>y)return;var at=this._length;this._startIndexes[at]=ft,this._endIndexes[at]=vt,this._length++,At<1e3&&(this._indentOccurrences[At]=(this._indentOccurrences[At]||0)+1)},Pt.prototype.toIndentRanges=function(ft){if(this._length<=this._foldingRangesLimit){for(var vt=new Uint32Array(this._length),At=new Uint32Array(this._length),at=this._length-1,tt=0;at>=0;at--,tt++)vt[tt]=this._startIndexes[at],At[tt]=this._endIndexes[at];return new f(vt,At)}else{for(var ut=0,Ct=this._indentOccurrences.length,at=0;atthis._foldingRangesLimit){Ct=at;break}ut+=gt}}for(var bt=ft.getOptions().tabSize,vt=new Uint32Array(this._foldingRangesLimit),At=new Uint32Array(this._foldingRangesLimit),at=this._length-1,tt=0;at>=0;at--){var Gt=this._startIndexes[at],Nt=ft.getLineContent(Gt),Et=L.b.computeIndentLevel(Nt,bt);(Et0;bt--){var Gt=Pt.getLineContent(bt),Nt=L.b.computeIndentLevel(Gt,at),Et=Ct[Ct.length-1];if(Nt===-1){ft&&(Et.endAbove=bt);continue}var Je=void 0;if(ut&&(Je=Gt.match(ut)))if(Je[1]){for(var $e=Ct.length-1;$e>0&&Ct[$e].indent!==-2;)$e--;if($e>0){Ct.length=$e+1,Et=Ct[$e],tt.insertFirst(bt,Et.line,Nt),Et.line=bt,Et.indent=Nt,Et.endAbove=bt;continue}}else{Ct.push({indent:-2,endAbove:bt,line:bt});continue}if(Et.indent>Nt){do Ct.pop(),Et=Ct[Ct.length-1];while(Et.indent>Nt);var ze=Et.endAbove-1;ze-bt>=1&&tt.insertFirst(bt,ze,Nt)}Et.indent===Nt?Et.endAbove=bt:Ct.push({indent:Nt,endAbove:bt,line:bt})}return tt.toIndentRanges(Pt)}var Pe=e("twdY"),ne=e("/cxE"),ee=5e3,ae={},q="syntax",ue=function(){function Pt(ft,vt,At){At===void 0&&(At=ee),this.editorModel=ft,this.providers=vt,this.limit=At,this.id=q}return Pt.prototype.compute=function(ft){var vt=this;return X(this.providers,this.editorModel,ft).then(function(At){if(At){var at=je(At,vt.limit);return at}return null})},Pt.prototype.dispose=function(){},Pt}();function X(Pt,ft,vt){var At=null,at=Pt.map(function(tt,ut){return Promise.resolve(tt.provideFoldingRanges(ft,ae,vt)).then(function(Ct){if(vt.isCancellationRequested)return;if(Array.isArray(Ct)){Array.isArray(At)||(At=[]);for(var gt=ft.getLineCount(),bt=0,Gt=Ct;bt0&&Nt.end>Nt.start&&Nt.end<=gt&&At.push({start:Nt.start,end:Nt.end,rank:ut,kind:Nt.kind})}}},ne.f)});return Promise.all(at).then(function(tt){return At})}var he=function(){function Pt(ft){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=ft}return Pt.prototype.add=function(ft,vt,At,at){if(ft>y||vt>y)return;var tt=this._length;this._startIndexes[tt]=ft,this._endIndexes[tt]=vt,this._nestingLevels[tt]=at,this._types[tt]=At,this._length++,at<30&&(this._nestingLevelCounts[at]=(this._nestingLevelCounts[at]||0)+1)},Pt.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){for(var ft=new Uint32Array(this._length),vt=new Uint32Array(this._length),At=0;Atthis._foldingRangesLimit){tt=At;break}at+=ut}}for(var ft=new Uint32Array(this._foldingRangesLimit),vt=new Uint32Array(this._foldingRangesLimit),Ct=[],At=0,gt=0;Atat.start)if(gt.end<=at.end)tt.push(at),at=gt,At.add(gt.start,gt.end,gt.kind&>.kind.value,tt.length);else{if(gt.start>at.end){do at=tt.pop();while(at&>.start>at.end);at&&tt.push(at),at=gt}At.add(gt.start,gt.end,gt.kind&>.kind.value,tt.length)}}return At.toIndentRanges()}var Xe="init",me=function(){function Pt(ft,vt,At,at){if(this.editorModel=ft,this.id=Xe,vt.length){var tt=function(Ct){return{range:{startLineNumber:Ct.startLineNumber,startColumn:0,endLineNumber:Ct.endLineNumber,endColumn:ft.getLineLength(Ct.endLineNumber)},options:{stickiness:1}}};this.decorationIds=ft.deltaDecorations([],vt.map(tt)),this.timeout=setTimeout(At,at)}}return Pt.prototype.dispose=function(){this.decorationIds&&(this.editorModel.deltaDecorations(this.decorationIds,[]),this.decorationIds=void 0),typeof this.timeout=="number"&&(clearTimeout(this.timeout),this.timeout=void 0)},Pt.prototype.compute=function(ft){var vt=[];if(this.decorationIds)for(var At=0,at=this.decorationIds;At=0;Ct--)(ut=Pt[Ct])&&(tt=(at<3?ut(tt):at>3?ut(ft,vt,tt):ut(ft,vt))||tt);return at>3&&tt&&Object.defineProperty(ft,vt,tt),tt},Q=function(Pt,ft){return function(vt,At){ft(vt,At,Pt)}},C=new ge.d("foldingEnabled",!1),F=function(Pt){Ee(ft,Pt);function ft(vt,At){var at=Pt.call(this)||this;at.contextKeyService=At,at.localToDispose=at._register(new O.b),at.editor=vt;var tt=at.editor.getOptions();return at._isEnabled=tt.get(30),at._useFoldingProviders=tt.get(31)!=="indentation",at.foldingModel=null,at.hiddenRangeModel=null,at.rangeProvider=null,at.foldingRegionPromise=null,at.foldingStateMemento=null,at.foldingModelPromise=null,at.updateScheduler=null,at.cursorChangedScheduler=null,at.mouseDownInfo=null,at.foldingDecorationProvider=new A(vt),at.foldingDecorationProvider.autoHideFoldingControls=tt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=tt.get(32),at.foldingEnabled=C.bindTo(at.contextKeyService),at.foldingEnabled.set(at._isEnabled),at._register(at.editor.onDidChangeModel(function(){return at.onModelChanged()})),at._register(at.editor.onDidChangeConfiguration(function(ut){if(ut.hasChanged(30)){var Ct=at.editor.getOptions();at._isEnabled=Ct.get(30),at.foldingEnabled.set(at._isEnabled),at.onModelChanged()}if(ut.hasChanged(84)||ut.hasChanged(32)){var gt=at.editor.getOptions();at.foldingDecorationProvider.autoHideFoldingControls=gt.get(84)==="mouseover",at.foldingDecorationProvider.showFoldingHighlights=gt.get(32),at.onModelContentChanged()}if(ut.hasChanged(31)){var bt=at.editor.getOptions();at._useFoldingProviders=bt.get(31)!=="indentation",at.onFoldingStrategyChanged()}})),at.onModelChanged(),at}return ft.get=function(vt){return vt.getContribution(ft.ID)},ft.prototype.saveViewState=function(){var vt=this.editor.getModel();if(!vt||!this._isEnabled||vt.isTooLargeForTokenization())return{};if(this.foldingModel){var At=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento(),at=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:At,lineCount:vt.getLineCount(),provider:at}}return},ft.prototype.restoreViewState=function(vt){var At=this.editor.getModel();if(!At||!this._isEnabled||At.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!vt||!vt.collapsedRegions||vt.lineCount!==At.getLineCount())return;(vt.provider===q||vt.provider===Xe)&&(this.foldingStateMemento=vt);var at=vt.collapsedRegions;if(this.hiddenRangeModel.applyMemento(at)){var tt=this.getFoldingModel();tt&&tt.then(function(ut){ut&&ut.applyMemento(at)}).then(void 0,ne.e)}},ft.prototype.onModelChanged=function(){var vt=this;this.localToDispose.clear();var At=this.editor.getModel();if(!this._isEnabled||!At||At.isTooLargeForTokenization())return;this.foldingModel=new w(At,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new ie(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(function(at){return vt.onHiddenRangesChanges(at)})),this.updateScheduler=new U.a(200),this.cursorChangedScheduler=new U.d(function(){return vt.revealCursor()},200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(Pe.o.onDidChange(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(function(){return vt.onFoldingStrategyChanged()})),this.localToDispose.add(this.editor.onDidChangeModelContent(function(){return vt.onModelContentChanged()})),this.localToDispose.add(this.editor.onDidChangeCursorPosition(function(){return vt.onCursorPositionChanged()})),this.localToDispose.add(this.editor.onMouseDown(function(at){return vt.onEditorMouseDown(at)})),this.localToDispose.add(this.editor.onMouseUp(function(at){return vt.onEditorMouseUp(at)})),this.localToDispose.add({dispose:function(){vt.foldingRegionPromise&&(vt.foldingRegionPromise.cancel(),vt.foldingRegionPromise=null),vt.updateScheduler&&vt.updateScheduler.cancel(),vt.updateScheduler=null,vt.foldingModel=null,vt.foldingModelPromise=null,vt.hiddenRangeModel=null,vt.cursorChangedScheduler=null,vt.foldingStateMemento=null,vt.rangeProvider&&vt.rangeProvider.dispose(),vt.rangeProvider=null}}),this.onModelContentChanged()},ft.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose(),this.rangeProvider=null,this.onModelContentChanged()},ft.prototype.getRangeProvider=function(vt){var At=this;if(this.rangeProvider)return this.rangeProvider;if(this.rangeProvider=new Te(vt),this._useFoldingProviders&&this.foldingModel){var at=Pe.o.ordered(this.foldingModel.textModel);if(at.length===0&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var tt=this.rangeProvider=new me(vt,this.foldingStateMemento.collapsedRegions,function(){At.foldingStateMemento=null,At.onFoldingStrategyChanged()},3e4);return tt}else at.length>0&&(this.rangeProvider=new ue(vt,at))}return this.foldingStateMemento=null,this.rangeProvider},ft.prototype.getFoldingModel=function(){return this.foldingModelPromise},ft.prototype.onModelContentChanged=function(){var vt=this;this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(function(){var At=vt.foldingModel;if(!At)return null;var at=vt.foldingRegionPromise=Object(U.f)(function(tt){return vt.getRangeProvider(At.textModel).compute(tt)});return at.then(function(tt){if(tt&&at===vt.foldingRegionPromise){var ut=vt.editor.getSelections(),Ct=ut?ut.map(function(gt){return gt.startLineNumber}):[];At.update(tt,Ct)}return At})}).then(void 0,function(At){return Object(ne.e)(At),null}))},ft.prototype.onHiddenRangesChanges=function(vt){if(this.hiddenRangeModel&&vt.length){var At=this.editor.getSelections();At&&(this.hiddenRangeModel.adjustSelections(At)&&this.editor.setSelections(At))}this.editor.setHiddenAreas(vt)},ft.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()},ft.prototype.revealCursor=function(){var vt=this,At=this.getFoldingModel();if(!At)return;At.then(function(at){if(at){var tt=vt.editor.getSelections();if(tt&&tt.length>0){for(var ut=[],Ct=function(Et){var Je=Et.selectionStartLineNumber;vt.hiddenRangeModel&&vt.hiddenRangeModel.isHidden(Je)&&ut.push.apply(ut,at.getAllRegionsAtLine(Je,function($e){return $e.isCollapsed&&Je>$e.startLineNumber}))},gt=0,bt=tt;gt=0;Z--)(P=St[Z])&&(M=(we<3?P(M):we>3?P(ot,nt,M):P(ot,nt))||M);return we>3&&M&&Object.defineProperty(ot,nt,M),M},m=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},E=function(){function St(){}return St.prototype.select=function(ot,nt,Dt){if(Dt.length===0)return 0;for(var we=Dt[0].score[0],M=1;Mxe&&ht.type===we[Ne].completion.kind&&ht.insertText===we[Ne].completion.insertText&&(xe=ht.touch,Ae=Ne),we[Ne].completion.preselect&&Z===-1)return Z=Ne}return Ae!==-1?Ae:Z!==-1?Z:0},ot.prototype.toJSON=function(){var nt=[];return this._cache.forEach(function(Dt,we){nt.push([we,Dt])}),nt},ot.prototype.fromJSON=function(nt){this._cache.clear();for(var Dt=0,we=0,M=nt;we0){this._seq=nt[0][1].touch+1;for(var Dt=0,we=nt;Dt=0;Z--)(P=St[Z])&&(M=(we<3?P(M):we>3?P(ot,nt,M):P(ot,nt))||M);return we>3&&M&&Object.defineProperty(ot,nt,M),M},Te=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},Fe=function(){function St(ot,nt){this._editor=ot,this._index=0,this._ckOtherSuggestions=St.OtherSuggestions.bindTo(nt)}return St.prototype.dispose=function(){this.reset()},St.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(H.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},St.prototype.set=function(ot,nt){var Dt=this,we=ot.model,M=ot.index;if(we.items.length===0){this.reset();return}var P=St._moveIndex(!0,we,M);if(P===M){this.reset();return}this._acceptNext=nt,this._model=we,this._index=M,this._listener=this._editor.onDidChangeCursorPosition(function(){Dt._ignore||Dt.reset()}),this._ckOtherSuggestions.set(!0)},St._moveIndex=function(ot,nt,Dt){for(var we=Dt;!(we=(we+nt.items.length+(ot?1:-1))%nt.items.length,we===Dt);)if(!nt.items[we].completion.additionalTextEdits)break;return we},St.prototype.next=function(){this._move(!0)},St.prototype.prev=function(){this._move(!1)},St.prototype._move=function(ot){if(!this._model)return;try{this._ignore=!0,this._index=St._moveIndex(ot,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},St.OtherSuggestions=new B.d("hasOtherSuggestions",!1),St=Me([Te(1,B.c)],St),St}(),He=e("MI8n"),Pe=e("gCVg"),ne=e("fpMC"),ee=e("N0LK"),ae=function(){function St(ot,nt){this.leadingLineContent=ot,this.characterCountDelta=nt}return St}(),q=function(){function St(ot,nt,Dt,we,M,P){this._snippetCompareFn=St._compareCompletionItems,this._items=ot,this._column=nt,this._wordDistance=we,this._options=M,this._refilterKind=1,this._lineContext=Dt,P==="top"?this._snippetCompareFn=St._compareCompletionItemsSnippetsUp:P==="bottom"&&(this._snippetCompareFn=St._compareCompletionItemsSnippetsDown)}return Object.defineProperty(St.prototype,"lineContext",{get:function(){return this._lineContext},set:function(nt){(this._lineContext.leadingLineContent!==nt.leadingLineContent||this._lineContext.characterCountDelta!==nt.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta2e3?ne.d:ne.e,xe=0;xe=ht)Ne.score=ne.a.Default;else if(typeof Ne.completion.filterText=="string"){var Ht=Ae(we,M,xt,Ne.completion.filterText,Ne.filterTextLow,0,!1);if(!Ht)continue;Object(ee.f)(Ne.completion.filterText,Ut)===0?Ne.score=Ht:(Ne.score=Object(ne.b)(we,M,xt,Ut,Ne.labelLow,0),Ne.score[0]=Ht[0])}else{var Ht=Ae(we,M,xt,Ut,Ne.labelLow,0,!1);if(!Ht)continue;Ne.score=Ht}}Ne.idx=xe,Ne.distance=this._wordDistance.distance(Ne.position,Ne.completion),Z.push(Ne),this._stats.suggestionCount++;switch(Ne.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Z.sort(this._snippetCompareFn),this._refilterKind=0},St._compareCompletionItems=function(ot,nt){return ot.score[0]>nt.score[0]?-1:ot.score[0]nt.distance?1:ot.idxnt.idx?1:0},St._compareCompletionItemsSnippetsDown=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return 1;if(nt.completion.kind===25)return-1}return St._compareCompletionItems(ot,nt)},St._compareCompletionItemsSnippetsUp=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return-1;if(nt.completion.kind===25)return 1}return St._compareCompletionItems(ot,nt)},St}(),ue=e("JQT/"),X=e("Z7SF"),he=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,M){we.__proto__=M}||function(we,M){for(var P in M)M.hasOwnProperty(P)&&(we[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),je=function(St,ot,nt,Dt){function we(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):we(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Xe=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,we,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,we&&(M=xe[0]&2?we.return:xe[0]?we.throw||((M=we.return)&&M.call(we),0):we.next)&&!(M=M.call(we,xe[1])).done)return M;(we=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,we=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]=0?xt[Bt]:xt[Math.max(0,~Bt-1)],Ht=M.length,oo=0,Zt=M[0];oo0?xe={triggerKind:2}:xe={triggerKind:0},this._requestToken=new ue.b;var Ne=this._editor.getOption(86),dt=1;switch(Ne){case"top":dt=0;break;case"bottom":dt=2;break}var ht=St._createItemKindFilter(this._editor),xt=me.create(this._editorWorker,this._editor),Bt=Object(Ce.e)(P,this._editor.getPosition(),new Ce.a(dt,ht,Dt),xe,this._requestToken.token);Promise.all([Bt,xt]).then(function(Ut){var Ht=Ut[0],oo=Ut[1];if(Object(H.f)(M._requestToken),M._state===0)return;if(!M._editor.hasModel())return;var Zt=M._editor.getModel();if(Object(re.q)(we)){var fo=Object(Ce.d)(dt);Ht=Ht.concat(we).sort(fo)}var yt=new ge(Zt,M._editor.getPosition(),Z,ot.shy);M._completionModel=new q(Ht,M._context.column,{leadingLineContent:yt.leadingLineContent,characterCountDelta:yt.column-M._context.column},oo,M._editor.getOption(89),M._editor.getOption(86));for(var Ue=0,Oe=Ht;Uethis._context.column&&this._completionModel.incomplete.size>0&&ot.leadingWord.word.length!==0){var nt=this._completionModel.incomplete,Dt=this._completionModel.adopt(nt);this.trigger({auto:this._state===2,shy:!1},!0,nt,Dt)}else{var we=this._completionModel.lineContext,M=!1;if(this._completionModel.lineContext={leadingLineContent:ot.leadingLineContent,characterCountDelta:ot.column-this._context.column},this._completionModel.items.length===0){if(ge.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,M&&ot.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:M})}},St}(),Re=e("CClx"),Ee=e("nn6Y"),ve=e("k76M"),Q=e("jqj9"),C=e("EffR"),F=e("cqdO"),se=e("GJhM"),oe=e("bexQ"),be=e("XXUj"),De=e("ptcw"),Se=e("t9D7"),Ve=e("MD5Z"),Qe=e("3qCu"),it=e("WBhO"),pt=e("W9cx"),Rt=e("xONI"),Mt=e("tYmi"),zt=e("gslv"),uo=e("MqQJ"),ao;(function(St){St[St.FILE=0]="FILE",St[St.FOLDER=1]="FOLDER",St[St.ROOT_FOLDER=2]="ROOT_FOLDER"})(ao||(ao={}));function so(St,ot,nt,Dt){var we=Dt===ao.ROOT_FOLDER?["rootfolder-icon"]:Dt===ao.FOLDER?["folder-icon"]:["file-icon"];if(nt){var M;if(nt.scheme===Mt.b.data){var P=zt.a.parseMetaData(nt);M=P.get(zt.a.META_DATA_LABEL)}else M=ft(Object(zt.c)(nt).toLowerCase());if(Dt===ao.FOLDER)we.push(M+"-name-folder-icon");else{if(M){we.push(M+"-name-file-icon");for(var Z=M.split("."),Ae=1;Ae=0;Z--)(P=St[Z])&&(M=(we<3?P(M):we>3?P(ot,nt,M):P(ot,nt))||M);return we>3&&M&&Object.defineProperty(ot,nt,M),M},gt=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},bt=function(St,ot,nt,Dt){function we(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):we(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Gt=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,we,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,we&&(M=xe[0]&2?we.return:xe[0]?we.throw||((M=we.return)&&M.call(we),0):we.next)&&!(M=M.call(we,xe[1])).done)return M;(we=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,we=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]dt.length?Ne:dt}else P.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(M.icon.className="icon hide",M.iconContainer.className="icon hide",Ae.extraClasses=Object(re.m)([so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:Z}),ao.FOLDER),so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:P.detail}),ao.FOLDER)])):(M.icon.className="icon hide",M.iconContainer.className="",Object(C.g)(M.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(P.kind)));P.tags&&P.tags.indexOf(1)>=0&&(Ae.extraClasses=(Ae.extraClasses||[]).concat(["deprecated"]),Ae.matches=[]),M.iconLabel.setLabel(Z,void 0,Ae),typeof P.label=="string"?(M.signatureLabel.textContent="",M.qualifierLabel.textContent="",M.detailsLabel.textContent=(P.detail||"").replace(/\n.*$/m,""),Object(C.P)(M.right,"always-show-details")):(M.signatureLabel.textContent=(P.label.signature||"").replace(/\n.*$/m,""),M.qualifierLabel.textContent=(P.label.qualifier||"").replace(/\n.*$/m,""),M.detailsLabel.textContent=(P.label.type||"").replace(/\n.*$/m,""),Object(C.f)(M.right,"always-show-details")),te(ot)?(Object(C.f)(M.right,"can-expand-details"),Object(C.X)(M.readMore),M.readMore.onmousedown=function(ht){ht.stopPropagation(),ht.preventDefault()},M.readMore.onclick=function(ht){ht.stopPropagation(),ht.preventDefault(),we.widget.toggleDetails()}):(Object(C.P)(M.right,"can-expand-details"),Object(C.J)(M.readMore),M.readMore.onmousedown=null,M.readMore.onclick=null)},St.prototype.disposeTemplate=function(ot){ot.disposables.dispose()},St=Ct([gt(3,vt.a),gt(4,it.a),gt(5,Se.c)],St),St}(),ke=function(){function St(ot,nt,Dt,we,M){var P=this;this.widget=nt,this.editor=Dt,this.markdownRenderer=we,this.kbToggleDetails=M,this.borderWidth=1,this.disposables=new H.b,this.el=Object(C.q)(ot,Object(C.a)(".details")),this.disposables.add(Object(H.h)(function(){return ot.removeChild(P.el)})),this.body=Object(C.a)(".body"),this.scrollbar=new se.a(this.body,{}),Object(C.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(C.q)(this.body,Object(C.a)(".header")),this.close=Object(C.q)(this.header,Object(C.a)("span.codicon.codicon-close")),this.close.title=ie.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(C.q)(this.header,Object(C.a)("p.type")),this.docs=Object(C.q)(this.body,Object(C.a)("p.docs")),this.configureFont(),He.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)}).on(this.configureFont,this,this.disposables),we.onDidRenderCodeBlock(function(){return P.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(St.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),St.prototype.renderLoading=function(){this.type.textContent=ie.a("loading","Loading..."),this.docs.textContent=""},St.prototype.renderItem=function(ot,nt){var Dt=this;this.renderDisposeable=Object(H.f)(this.renderDisposeable);var we=ot.completion,M=we.documentation,P=we.detail;if(nt){var Z="";Z+="score: "+ot.score[0]+(ot.word?", compared '"+(ot.completion.filterText&&ot.completion.filterText+" (filterText)"||ot.completion.label)+"' with '"+ot.word+"'":" (no prefix)")+` +`),this},u.prototype.appendMarkdown=function(y){return this._value+=y,this},u.prototype.appendCodeblock=function(y,_){return this._value+="\n```",this._value+=y,this._value+=` +`,this._value+=_,this._value+="\n```\n",this},u}();function I(u){return U(u)?!u.value:Array.isArray(u)?u.every(I):!0}function U(u){return u instanceof J?!0:u&&typeof u=="object"?typeof u.value=="string"&&(typeof u.isTrusted=="boolean"||u.isTrusted===void 0)&&(typeof u.supportThemeIcons=="boolean"||u.supportThemeIcons===void 0):!1}function z(u,y){return!u&&!y?!0:!u||!y?!1:Array.isArray(u)&&Array.isArray(y)?Object(T.g)(u,y,O):U(u)&&U(y)?O(u,y):!1}function O(u,y){return u===y?!0:!u||!y?!1:u.value===y.value&&u.isTrusted===y.isTrusted&&u.supportThemeIcons===y.supportThemeIcons}function H(u){return u&&u.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}function x(u){var y=[],_=u.split("|").map(function(d){return d.trim()});u=_[0];var f=_[1];if(f){var v=/height=(\d+)/.exec(f),w=/width=(\d+)/.exec(f),p=v?v[1]:"",c=w?w[1]:"",s=isFinite(parseInt(c)),l=isFinite(parseInt(p));s&&y.push('width="'+c+'"'),l&&y.push('height="'+p+'"')}return{href:u,dimensions:y}}},eizg:function(Lt,j,e){},ep4t:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SuggestController",function(){return rn}),e.d(j,"TriggerSuggestAction",function(){return pn});var T=e("OBOq"),re=e("6OMU"),J=e("/cxE"),I=e("/kV6"),U=e("pmY6"),z=e("sswD"),O=e("0/Sa"),H=e("aokT"),x=e("wQH0"),u=e("tXSY"),y=e("uACm"),_=e("QDVR"),f=e("A+jI"),v=e("twdY"),w=e("X+cX"),p=e("Cg/j"),c=e("+7oY"),s=e("9fML"),l=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),d=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},m=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},E=function(){function St(){}return St.prototype.select=function(ot,nt,Dt){if(Dt.length===0)return 0;for(var _e=Dt[0].score[0],M=1;Mxe&&ht.type===_e[Ne].completion.kind&&ht.insertText===_e[Ne].completion.insertText&&(xe=ht.touch,Ae=Ne),_e[Ne].completion.preselect&&Z===-1)return Z=Ne}return Ae!==-1?Ae:Z!==-1?Z:0},ot.prototype.toJSON=function(){var nt=[];return this._cache.forEach(function(Dt,_e){nt.push([_e,Dt])}),nt},ot.prototype.fromJSON=function(nt){this._cache.clear();for(var Dt=0,_e=0,M=nt;_e0){this._seq=nt[0][1].touch+1;for(var Dt=0,_e=nt;Dt<_e.length;Dt++){var M=_e[Dt],P=M[0],Z=M[1];Z.type=typeof Z.type=="number"?Z.type:Object(v.E)(Z.type),this._trie.set(P,Z)}}},ot}(E),R=function(St){l(ot,St);function ot(nt,Dt){var _e=St.call(this)||this;_e._storageService=nt,_e._configService=Dt,_e._storagePrefix="suggest/memories";var M=function(){var Z=_e._configService.getValue("editor.suggestSelection"),Ae=_e._configService.getValue("editor.suggest.shareSuggestSelections");_e._update(Z,Ae,!1)};return _e._persistSoon=_e._register(new w.d(function(){return _e._saveState()},500)),_e._register(nt.onWillSaveState(function(P){P.reason===f.c.SHUTDOWN&&_e._saveState()})),_e._register(_e._configService.onDidChangeConfiguration(function(P){(P.affectsConfiguration("editor.suggestSelection")||P.affectsConfiguration("editor.suggest.shareSuggestSelections"))&&M()})),_e._register(_e._storageService.onDidChangeStorage(function(P){P.scope===0&&P.key.indexOf(_e._storagePrefix)===0&&(document.hasFocus()||_e._update(_e._mode,_e._shareMem,!0))})),M(),_e}return ot.prototype._update=function(nt,Dt,_e){if(!_e&&this._mode===nt&&this._shareMem===Dt)return;this._shareMem=Dt,this._mode=nt,this._strategy=nt==="recentlyUsedByPrefix"?new k:nt==="recentlyUsed"?new A:new L;try{var M=Dt?0:1,P=this._storageService.get(this._storagePrefix+"/"+this._mode,M);P&&this._strategy.fromJSON(JSON.parse(P))}catch(Z){}},ot.prototype.memorize=function(nt,Dt,_e){this._strategy.memorize(nt,Dt,_e),this._persistSoon.schedule()},ot.prototype.select=function(nt,Dt,_e){return this._strategy.select(nt,Dt,_e)},ot.prototype._saveState=function(){var nt=JSON.stringify(this._strategy),Dt=this._shareMem?0:1;this._storageService.store(this._storagePrefix+"/"+this._mode,nt,Dt)},ot=d([m(0,f.a),m(1,c.a)],ot),ot}(U.a),$=Object(p.c)("ISuggestMemories");Object(s.b)($,R,!0);var ie=e("3/fG"),W=e("nnTU"),B=e("T8No"),le=e("nrhi"),Ce=e("QVNv"),Me=function(St,ot,nt,Dt){var _e=arguments.length,M=_e<3?ot:Dt===null?Dt=Object.getOwnPropertyDescriptor(ot,nt):Dt,P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(St,ot,nt,Dt);else for(var Z=St.length-1;Z>=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},Te=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},Fe=function(){function St(ot,nt){this._editor=ot,this._index=0,this._ckOtherSuggestions=St.OtherSuggestions.bindTo(nt)}return St.prototype.dispose=function(){this.reset()},St.prototype.reset=function(){this._ckOtherSuggestions.reset(),Object(U.f)(this._listener),this._model=void 0,this._acceptNext=void 0,this._ignore=!1},St.prototype.set=function(ot,nt){var Dt=this,_e=ot.model,M=ot.index;if(_e.items.length===0){this.reset();return}var P=St._moveIndex(!0,_e,M);if(P===M){this.reset();return}this._acceptNext=nt,this._model=_e,this._index=M,this._listener=this._editor.onDidChangeCursorPosition(function(){Dt._ignore||Dt.reset()}),this._ckOtherSuggestions.set(!0)},St._moveIndex=function(ot,nt,Dt){for(var _e=Dt;!(_e=(_e+nt.items.length+(ot?1:-1))%nt.items.length,_e===Dt);)if(!nt.items[_e].completion.additionalTextEdits)break;return _e},St.prototype.next=function(){this._move(!0)},St.prototype.prev=function(){this._move(!1)},St.prototype._move=function(ot){if(!this._model)return;try{this._ignore=!0,this._index=St._moveIndex(ot,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}},St.OtherSuggestions=new B.d("hasOtherSuggestions",!1),St=Me([Te(1,B.c)],St),St}(),Ue=e("MI8n"),Pe=e("gCVg"),ne=e("fpMC"),ee=e("N0LK"),ae=function(){function St(ot,nt){this.leadingLineContent=ot,this.characterCountDelta=nt}return St}(),q=function(){function St(ot,nt,Dt,_e,M,P){this._snippetCompareFn=St._compareCompletionItems,this._items=ot,this._column=nt,this._wordDistance=_e,this._options=M,this._refilterKind=1,this._lineContext=Dt,P==="top"?this._snippetCompareFn=St._compareCompletionItemsSnippetsUp:P==="bottom"&&(this._snippetCompareFn=St._compareCompletionItemsSnippetsDown)}return Object.defineProperty(St.prototype,"lineContext",{get:function(){return this._lineContext},set:function(nt){(this._lineContext.leadingLineContent!==nt.leadingLineContent||this._lineContext.characterCountDelta!==nt.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta2e3?ne.d:ne.e,xe=0;xe=ht)Ne.score=ne.a.Default;else if(typeof Ne.completion.filterText=="string"){var Ut=Ae(_e,M,xt,Ne.completion.filterText,Ne.filterTextLow,0,!1);if(!Ut)continue;Object(ee.f)(Ne.completion.filterText,Ht)===0?Ne.score=Ut:(Ne.score=Object(ne.b)(_e,M,xt,Ht,Ne.labelLow,0),Ne.score[0]=Ut[0])}else{var Ut=Ae(_e,M,xt,Ht,Ne.labelLow,0,!1);if(!Ut)continue;Ne.score=Ut}}Ne.idx=xe,Ne.distance=this._wordDistance.distance(Ne.position,Ne.completion),Z.push(Ne),this._stats.suggestionCount++;switch(Ne.completion.kind){case 25:this._stats.snippetCount++;break;case 18:this._stats.textCount++;break}}this._filteredItems=Z.sort(this._snippetCompareFn),this._refilterKind=0},St._compareCompletionItems=function(ot,nt){return ot.score[0]>nt.score[0]?-1:ot.score[0]nt.distance?1:ot.idxnt.idx?1:0},St._compareCompletionItemsSnippetsDown=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return 1;if(nt.completion.kind===25)return-1}return St._compareCompletionItems(ot,nt)},St._compareCompletionItemsSnippetsUp=function(ot,nt){if(ot.completion.kind!==nt.completion.kind){if(ot.completion.kind===25)return-1;if(nt.completion.kind===25)return 1}return St._compareCompletionItems(ot,nt)},St}(),ue=e("JQT/"),X=e("Z7SF"),he=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),je=function(St,ot,nt,Dt){function _e(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):_e(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Xe=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,_e,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,_e&&(M=xe[0]&2?_e.return:xe[0]?_e.throw||((M=_e.return)&&M.call(_e),0):_e.next)&&!(M=M.call(_e,xe[1])).done)return M;(_e=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,_e=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]=0?xt[Bt]:xt[Math.max(0,~Bt-1)],Ut=M.length,oo=0,Zt=M[0];oo0?xe={triggerKind:2}:xe={triggerKind:0},this._requestToken=new ue.b;var Ne=this._editor.getOption(86),dt=1;switch(Ne){case"top":dt=0;break;case"bottom":dt=2;break}var ht=St._createItemKindFilter(this._editor),xt=me.create(this._editorWorker,this._editor),Bt=Object(Ce.e)(P,this._editor.getPosition(),new Ce.a(dt,ht,Dt),xe,this._requestToken.token);Promise.all([Bt,xt]).then(function(Ht){var Ut=Ht[0],oo=Ht[1];if(Object(U.f)(M._requestToken),M._state===0)return;if(!M._editor.hasModel())return;var Zt=M._editor.getModel();if(Object(re.q)(_e)){var fo=Object(Ce.d)(dt);Ut=Ut.concat(_e).sort(fo)}var yt=new ge(Zt,M._editor.getPosition(),Z,ot.shy);M._completionModel=new q(Ut,M._context.column,{leadingLineContent:yt.leadingLineContent,characterCountDelta:yt.column-M._context.column},oo,M._editor.getOption(89),M._editor.getOption(86));for(var He=0,Oe=Ut;Hethis._context.column&&this._completionModel.incomplete.size>0&&ot.leadingWord.word.length!==0){var nt=this._completionModel.incomplete,Dt=this._completionModel.adopt(nt);this.trigger({auto:this._state===2,shy:!1},!0,nt,Dt)}else{var _e=this._completionModel.lineContext,M=!1;if(this._completionModel.lineContext={leadingLineContent:ot.leadingLineContent,characterCountDelta:ot.column-this._context.column},this._completionModel.items.length===0){if(ge.shouldAutoTrigger(this._editor)&&this._context.leadingWord.endColumn0,M&&ot.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,auto:this._context.auto,shy:this._context.shy,isFrozen:M})}},St}(),Re=e("CClx"),Ee=e("nn6Y"),ve=e("k76M"),Q=e("jqj9"),C=e("EffR"),F=e("cqdO"),se=e("GJhM"),oe=e("bexQ"),be=e("XXUj"),De=e("ptcw"),Se=e("t9D7"),Ve=e("MD5Z"),Qe=e("3qCu"),it=e("WBhO"),pt=e("W9cx"),Rt=e("xONI"),Mt=e("tYmi"),zt=e("gslv"),uo=e("MqQJ"),ao;(function(St){St[St.FILE=0]="FILE",St[St.FOLDER=1]="FOLDER",St[St.ROOT_FOLDER=2]="ROOT_FOLDER"})(ao||(ao={}));function so(St,ot,nt,Dt){var _e=Dt===ao.ROOT_FOLDER?["rootfolder-icon"]:Dt===ao.FOLDER?["folder-icon"]:["file-icon"];if(nt){var M;if(nt.scheme===Mt.b.data){var P=zt.a.parseMetaData(nt);M=P.get(zt.a.META_DATA_LABEL)}else M=ft(Object(zt.c)(nt).toLowerCase());if(Dt===ao.FOLDER)_e.push(M+"-name-folder-icon");else{if(M){_e.push(M+"-name-file-icon");for(var Z=M.split("."),Ae=1;Ae=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},gt=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},bt=function(St,ot,nt,Dt){function _e(M){return M instanceof nt?M:new nt(function(P){P(M)})}return new(nt||(nt=Promise))(function(M,P){function Z(Ne){try{xe(Dt.next(Ne))}catch(dt){P(dt)}}function Ae(Ne){try{xe(Dt.throw(Ne))}catch(dt){P(dt)}}function xe(Ne){Ne.done?M(Ne.value):_e(Ne.value).then(Z,Ae)}xe((Dt=Dt.apply(St,ot||[])).next())})},Gt=function(St,ot){var nt={label:0,sent:function(){if(M[0]&1)throw M[1];return M[1]},trys:[],ops:[]},Dt,_e,M,P;return P={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(P[Symbol.iterator]=function(){return this}),P;function Z(xe){return function(Ne){return Ae([xe,Ne])}}function Ae(xe){if(Dt)throw new TypeError("Generator is already executing.");for(;nt;)try{if(Dt=1,_e&&(M=xe[0]&2?_e.return:xe[0]?_e.throw||((M=_e.return)&&M.call(_e),0):_e.next)&&!(M=M.call(_e,xe[1])).done)return M;(_e=0,M)&&(xe=[xe[0]&2,M.value]);switch(xe[0]){case 0:case 1:M=xe;break;case 4:return nt.label++,{value:xe[1],done:!1};case 5:nt.label++,_e=xe[1],xe=[0];continue;case 7:xe=nt.ops.pop(),nt.trys.pop();continue;default:if(!(M=nt.trys,M=M.length>0&&M[M.length-1])&&(xe[0]===6||xe[0]===2)){nt=0;continue}if(xe[0]===3&&(!M||xe[1]>M[0]&&xe[1]dt.length?Ne:dt}else P.kind===23&&this._themeService.getIconTheme().hasFolderIcons?(M.icon.className="icon hide",M.iconContainer.className="icon hide",Ae.extraClasses=Object(re.m)([so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:Z}),ao.FOLDER),so(this._modelService,this._modeService,At.a.from({scheme:"fake",path:P.detail}),ao.FOLDER)])):(M.icon.className="icon hide",M.iconContainer.className="",Object(C.g)(M.iconContainer,"suggest-icon codicon codicon-symbol-"+Object(v.F)(P.kind)));P.tags&&P.tags.indexOf(1)>=0&&(Ae.extraClasses=(Ae.extraClasses||[]).concat(["deprecated"]),Ae.matches=[]),M.iconLabel.setLabel(Z,void 0,Ae),typeof P.label=="string"?(M.signatureLabel.textContent="",M.qualifierLabel.textContent="",M.detailsLabel.textContent=(P.detail||"").replace(/\n.*$/m,""),Object(C.P)(M.right,"always-show-details")):(M.signatureLabel.textContent=(P.label.signature||"").replace(/\n.*$/m,""),M.qualifierLabel.textContent=(P.label.qualifier||"").replace(/\n.*$/m,""),M.detailsLabel.textContent=(P.label.type||"").replace(/\n.*$/m,""),Object(C.f)(M.right,"always-show-details")),te(ot)?(Object(C.f)(M.right,"can-expand-details"),Object(C.X)(M.readMore),M.readMore.onmousedown=function(ht){ht.stopPropagation(),ht.preventDefault()},M.readMore.onclick=function(ht){ht.stopPropagation(),ht.preventDefault(),_e.widget.toggleDetails()}):(Object(C.P)(M.right,"can-expand-details"),Object(C.J)(M.readMore),M.readMore.onmousedown=null,M.readMore.onclick=null)},St.prototype.disposeTemplate=function(ot){ot.disposables.dispose()},St=Ct([gt(3,vt.a),gt(4,it.a),gt(5,Se.c)],St),St}(),ke=function(){function St(ot,nt,Dt,_e,M){var P=this;this.widget=nt,this.editor=Dt,this.markdownRenderer=_e,this.kbToggleDetails=M,this.borderWidth=1,this.disposables=new U.b,this.el=Object(C.q)(ot,Object(C.a)(".details")),this.disposables.add(Object(U.h)(function(){return ot.removeChild(P.el)})),this.body=Object(C.a)(".body"),this.scrollbar=new se.a(this.body,{}),Object(C.q)(this.el,this.scrollbar.getDomNode()),this.disposables.add(this.scrollbar),this.header=Object(C.q)(this.body,Object(C.a)(".header")),this.close=Object(C.q)(this.header,Object(C.a)("span.codicon.codicon-close")),this.close.title=ie.a("readLess","Read less...{0}",this.kbToggleDetails),this.type=Object(C.q)(this.header,Object(C.a)("p.type")),this.docs=Object(C.q)(this.body,Object(C.a)("p.docs")),this.configureFont(),Ue.b.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(function(Z){return Z.hasChanged(34)}).on(this.configureFont,this,this.disposables),_e.onDidRenderCodeBlock(function(){return P.scrollbar.scanDomNode()},this,this.disposables)}return Object.defineProperty(St.prototype,"element",{get:function(){return this.el},enumerable:!0,configurable:!0}),St.prototype.renderLoading=function(){this.type.textContent=ie.a("loading","Loading..."),this.docs.textContent=""},St.prototype.renderItem=function(ot,nt){var Dt=this;this.renderDisposeable=Object(U.f)(this.renderDisposeable);var _e=ot.completion,M=_e.documentation,P=_e.detail;if(nt){var Z="";Z+="score: "+ot.score[0]+(ot.word?", compared '"+(ot.completion.filterText&&ot.completion.filterText+" (filterText)"||ot.completion.label)+"' with '"+ot.word+"'":" (no prefix)")+` `,Z+="distance: "+ot.distance+`, see localityBonus-setting `,Z+="index: "+ot.idx+", based on "+(ot.completion.sortText&&'sortText: "'+ot.completion.sortText+'"'||"label")+` -`,M=new at.a().appendCodeblock("empty",Z),P="Provider: "+ot.provider._debugDisplayName}if(!nt&&!te(ot)){this.type.textContent="",this.docs.textContent="",Object(C.f)(this.el,"no-docs");return}if(Object(C.P)(this.el,"no-docs"),typeof M=="string")Object(C.P)(this.docs,"markdown-docs"),this.docs.textContent=M;else{Object(C.f)(this.docs,"markdown-docs"),this.docs.innerHTML="";var Ae=this.markdownRenderer.render(M);this.renderDisposeable=Ae,this.docs.appendChild(Ae.element)}P?(this.type.innerText=P,Object(C.X)(this.type)):(this.type.innerText="",Object(C.J)(this.type)),this.el.style.height=this.header.offsetHeight+this.docs.offsetHeight+this.borderWidth*2+"px",this.el.style.userSelect="text",this.el.tabIndex=-1,this.close.onmousedown=function(xe){xe.preventDefault(),xe.stopPropagation()},this.close.onclick=function(xe){xe.preventDefault(),xe.stopPropagation(),Dt.widget.toggleDetails()},this.body.scrollTop=0,this.scrollbar.scanDomNode()},St.prototype.scrollDown=function(ot){ot===void 0&&(ot=8),this.body.scrollTop+=ot},St.prototype.scrollUp=function(ot){ot===void 0&&(ot=8),this.body.scrollTop-=ot},St.prototype.scrollTop=function(){this.body.scrollTop=0},St.prototype.scrollBottom=function(){this.body.scrollTop=this.body.scrollHeight},St.prototype.pageDown=function(){this.scrollDown(80)},St.prototype.pageUp=function(){this.scrollUp(80)},St.prototype.setBorderWidth=function(ot){this.borderWidth=ot},St.prototype.configureFont=function(){var ot=this.editor.getOptions(),nt=ot.get(34),Dt=nt.fontFamily,we=ot.get(90)||nt.fontSize,M=ot.get(91)||nt.lineHeight,P=nt.fontWeight,Z=we+"px",Ae=M+"px";this.el.style.fontSize=Z,this.el.style.fontWeight=P,this.el.style.fontFeatureSettings=nt.fontFeatureSettings,this.type.style.fontFamily=Dt,this.close.style.height=Ae,this.close.style.width=Ae},St.prototype.dispose=function(){this.disposables.dispose(),this.renderDisposeable=Object(H.f)(this.renderDisposeable)},St}(),lt=function(){function St(ot,nt,Dt,we,M,P,Z,Ae,xe){var Ne=this,dt,ht;this.editor=ot,this.telemetryService=nt,this.keybindingService=Dt,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.state=null,this.isAuto=!1,this.loadingTimeout=H.a.None,this.currentSuggestionDetails=null,this.ignoreFocusEvents=!1,this.completionModel=null,this.showTimeout=new _.e,this.toDispose=new H.b,this.onDidSelectEmitter=new He.a,this.onDidFocusEmitter=new He.a,this.onDidHideEmitter=new He.a,this.onDidShowEmitter=new He.a,this.onDidSelect=this.onDidSelectEmitter.event,this.onDidFocus=this.onDidFocusEmitter.event,this.onDidHide=this.onDidHideEmitter.event,this.onDidShow=this.onDidShowEmitter.event,this.maxWidgetWidth=660,this.listWidth=330,this.firstFocusInCurrentList=!1,this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.explainMode=!1,this._onDetailsKeydown=new He.a,this.onDetailsKeyDown=this._onDetailsKeydown.event;var xt=this.toDispose.add(new Qe.a(ot,Z,Ae)),Bt=(ht=(dt=Dt.lookupKeybinding("toggleSuggestionDetails"))===null||dt===void 0?void 0:dt.getLabel())!==null&&ht!==void 0?ht:"";this.msgDetailsLess=ie.a("detail.less","{0} for less...",Bt),this.msgDetailMore=ie.a("detail.more","{0} for more...",Bt),this.isAuto=!1,this.focusedItem=null,this.storageService=P,this.element=Object(C.a)(".editor-widget.suggest-widget"),this.toDispose.add(Object(C.j)(this.element,"click",function(Zt){Zt.target===Ne.element&&Ne.hideWidget()})),this.messageElement=Object(C.q)(this.element,Object(C.a)(".message")),this.listElement=Object(C.q)(this.element,Object(C.a)(".tree"));var Ut=function(){return Object(C.Y)(Ne.element,"with-status-bar",!Ne.editor.getOption(89).hideStatusBar)};Ut(),this.statusBarElement=Object(C.q)(this.element,Object(C.a)(".suggest-status-bar")),this.statusBarLeftSpan=Object(C.q)(this.statusBarElement,Object(C.a)("span")),this.statusBarRightSpan=Object(C.q)(this.statusBarElement,Object(C.a)("span")),this.setStatusBarLeftText(""),this.setStatusBarRightText(""),this.details=xe.createInstance(ke,this.element,this,this.editor,xt,Bt);var Ht=function(){return Object(C.Y)(Ne.element,"no-icons",!Ne.editor.getOption(89).showIcons)};Ht();var oo=xe.createInstance(de,this,this.editor,Bt);this.list=new F.c("SuggestWidget",this.listElement,this,[oo],{useShadows:!1,openController:{shouldOpen:function(){return!1}},mouseSupport:!1,accessibilityProvider:{getAriaLabel:function(fo){var yt=typeof fo.completion.label=="string"?fo.completion.label:fo.completion.label.name;if(fo.isResolved&&Ne.expandDocsSettingFromStorage()){var Ue=fo.completion,Oe=Ue.documentation,rt=Ue.detail,It=ee.r("{0}{1}",rt||"",Oe?typeof Oe=="string"?Oe:Oe.value:"");return ie.a("ariaCurrenttSuggestionReadDetails","Item {0}, docs: {1}",yt,It)}else return yt}}}),this.toDispose.add(Object(De.b)(this.list,M,{listInactiveFocusBackground:ze,listInactiveFocusOutline:Ve.b})),this.toDispose.add(M.onThemeChange(function(Zt){return Ne.onThemeChange(Zt)})),this.toDispose.add(ot.onDidLayoutChange(function(){return Ne.onEditorLayoutChange()})),this.toDispose.add(this.list.onMouseDown(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onTap(function(Zt){return Ne.onListMouseDownOrTap(Zt)})),this.toDispose.add(this.list.onSelectionChange(function(Zt){return Ne.onListSelection(Zt)})),this.toDispose.add(this.list.onFocusChange(function(Zt){return Ne.onListFocus(Zt)})),this.toDispose.add(this.editor.onDidChangeCursorSelection(function(){return Ne.onCursorSelectionChanged()})),this.toDispose.add(this.editor.onDidChangeConfiguration(function(Zt){Zt.hasChanged(89)&&(Ut(),Ht())})),this.suggestWidgetVisible=Ce.b.Visible.bindTo(we),this.suggestWidgetMultipleSuggestions=Ce.b.MultipleSuggestions.bindTo(we),this.editor.addContentWidget(this),this.setState(0),this.onThemeChange(M.getTheme()),this.toDispose.add(Object(C.o)(this.details.element,"keydown",function(Zt){Ne._onDetailsKeydown.fire(Zt)})),this.toDispose.add(this.editor.onMouseDown(function(Zt){return Ne.onEditorMouseDown(Zt)}))}return St.prototype.onEditorMouseDown=function(ot){this.details.element.contains(ot.target.element)?this.details.element.focus():this.element.contains(ot.target.element)&&this.editor.focus()},St.prototype.onCursorSelectionChanged=function(){if(this.state===0)return;this.editor.layoutContentWidget(this)},St.prototype.onEditorLayoutChange=function(){(this.state===3||this.state===5)&&this.expandDocsSettingFromStorage()&&this.expandSideOrBelow()},St.prototype.onListMouseDownOrTap=function(ot){if(typeof ot.element=="undefined"||typeof ot.index=="undefined")return;ot.browserEvent.preventDefault(),ot.browserEvent.stopPropagation(),this.select(ot.element,ot.index)},St.prototype.onListSelection=function(ot){if(!ot.elements.length)return;this.select(ot.elements[0],ot.indexes[0])},St.prototype.select=function(ot,nt){var Dt=this.completionModel;if(!Dt)return;this.onDidSelectEmitter.fire({item:ot,index:nt,model:Dt}),this.editor.focus()},St.prototype.onThemeChange=function(ot){var nt=ot.getColor(Et);nt&&(this.listElement.style.backgroundColor=nt.toString(),this.statusBarElement.style.backgroundColor=nt.toString(),this.details.element.style.backgroundColor=nt.toString(),this.messageElement.style.backgroundColor=nt.toString());var Dt=ot.getColor(Je);Dt&&(this.listElement.style.borderColor=Dt.toString(),this.statusBarElement.style.borderColor=Dt.toString(),this.details.element.style.borderColor=Dt.toString(),this.messageElement.style.borderColor=Dt.toString(),this.detailsBorderColor=Dt.toString());var we=ot.getColor(Ve.V);we&&(this.detailsFocusBorderColor=we.toString()),this.details.setBorderWidth(ot.type==="hc"?2:1)},St.prototype.onListFocus=function(ot){var nt=this,Dt,we;if(this.ignoreFocusEvents)return;if(!ot.elements.length){this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null,this.focusedItem=null),this.editor.setAriaOptions({activeDescendant:void 0});return}if(!this.completionModel)return;var M=ot.elements[0],P=ot.indexes[0];if(this.firstFocusInCurrentList=!this.focusedItem,M!==this.focusedItem){var Z=this.editor.getOption(89).insertMode==="insert",Ae=(Dt=this.keybindingService.lookupKeybinding("acceptSelectedSuggestion"))===null||Dt===void 0?void 0:Dt.getLabel(),xe=(we=this.keybindingService.lookupKeybinding("acceptAlternativeSelectedSuggestion"))===null||we===void 0?void 0:we.getLabel();tt.a.equals(M.editInsertEnd,M.editReplaceEnd)?this.setStatusBarLeftText(ie.a("accept","{0} to accept",Ae)):Z?this.setStatusBarLeftText(ie.a("insert","{0} to insert, {1} to replace",Ae,xe)):this.setStatusBarLeftText(ie.a("replace","{0} to replace, {1} to insert",Ae,xe)),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.focusedItem=M,this.list.reveal(P),this.currentSuggestionDetails=Object(_.f)(function(Ne){return bt(nt,void 0,void 0,function(){var dt,ht,xt=this;return Gt(this,function(Bt){switch(Bt.label){case 0:return dt=Object(_.g)(function(){return xt.showDetails(!0)},250),Ne.onCancellationRequested(function(){return dt.dispose()}),[4,M.resolve(Ne)];case 1:return ht=Bt.sent(),dt.dispose(),[2,ht]}})})}),this.currentSuggestionDetails.then(function(){if(P>=nt.list.length||M!==nt.list.element(P))return;nt.ignoreFocusEvents=!0,nt.list.splice(P,1,[M]),nt.list.setFocus([P]),nt.ignoreFocusEvents=!1,nt.expandDocsSettingFromStorage()?nt.showDetails(!1):Object(C.P)(nt.element,"docs-side"),te(nt.focusedItem)?nt.expandDocsSettingFromStorage()?nt.setStatusBarRightText(nt.msgDetailsLess):nt.setStatusBarRightText(nt.msgDetailMore):nt.statusBarRightSpan.innerText="",nt.editor.setAriaOptions({activeDescendant:Y(P)})}).catch(J.e)}this.onDidFocusEmitter.fire({item:M,index:P,model:this.completionModel})},St.prototype.setState=function(ot){if(!this.element)return;var nt=this.state!==ot;this.state=ot,Object(C.Y)(this.element,"frozen",ot===4);switch(ot){case 0:Object(C.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,nt&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=St.LOADING_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=St.NO_SUGGESTIONS_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(C.J)(this.messageElement),Object(C.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(C.J)(this.messageElement),Object(C.X)(this.listElement),this.show();break;case 5:Object(C.J)(this.messageElement),Object(C.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},St.prototype.showTriggered=function(ot,nt){var Dt=this;if(this.state!==0)return;this.isAuto=!!ot,this.isAuto||(this.loadingTimeout=Object(_.g)(function(){return Dt.setState(1)},nt))},St.prototype.showSuggestions=function(ot,nt,Dt,we){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==ot&&(this.completionModel=ot),Dt&&this.state!==2&&this.state!==0){this.setState(4);return}var M=this.completionModel.items.length,P=M===0;if(this.suggestWidgetMultipleSuggestions.set(M>1),P)we?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Z=this.completionModel.stats;Z.wasAutomaticallyTriggered=!!we,this.telemetryService.publicLog("suggestWidget",ut({},Z))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Dt?this.setState(4):this.setState(3),this.list.reveal(nt,0),this.list.setFocus([nt]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},St.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},St.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},St.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},St.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},St.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},St.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},St.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},St.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},St.prototype.toggleDetails=function(){if(!te(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(C.J)(this.details.element),Object(C.P)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},St.prototype.showDetails=function(ot){ot||this.expandSideOrBelow(),Object(C.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",ot?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},St.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},St.prototype.show=function(){var ot=this,nt=this.updateListHeight();nt!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=nt),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(C.f)(ot.element,"visible"),ot.onDidShowEmitter.fire(ot)},100)},St.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(C.P)(this.element,"visible")},St.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},St.prototype.getPosition=function(){if(this.state===0)return null;var ot=[2,1];return this.preferDocPositionTop&&(ot=[1]),{position:this.editor.getPosition(),preference:ot}},St.prototype.getDomNode=function(){return this.element},St.prototype.getId=function(){return St.ID},St.prototype.isFrozen=function(){return this.state===4},St.prototype.updateListHeight=function(){var ot=0;if(this.state===2||this.state===1)ot=this.unfocusedHeight;else{var nt=this.list.contentHeight/this.unfocusedHeight,Dt=this.editor.getOption(89).maxVisibleSuggestions;ot=Math.min(nt,Dt)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=ot+"px",this.statusBarElement.style.top=ot+"px",this.list.layout(ot),ot},St.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var ot=this.editor.getOption(49),nt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Dt=Object(C.C)(this.editor.getDomNode()),we=Dt.left+nt.left,M=Dt.top+nt.top+nt.height,P=Object(C.C)(this.element),Z=P.left,Ae=P.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetYAe&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},St.prototype.expandSideOrBelow=function(){if(!te(this.focusedItem)&&this.firstFocusInCurrentList){Object(C.P)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below");return}var ot=this.element.style.maxWidth.match(/(\d+)px/);!ot||Number(ot[1])=0;Z--)(P=St[Z])&&(M=(we<3?P(M):we>3?P(ot,nt,M):P(ot,nt))||M);return we>3&&M&&Object.defineProperty(ot,nt,M),M},eo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},po=function(St){Tt(ot,St);function ot(nt,Dt){var we=St.call(this)||this;return we._editor=nt,we._enabled=!1,we._ckAtEnd=ot.AtEnd.bindTo(Dt),we._register(we._editor.onDidChangeConfiguration(function(M){return M.hasChanged(94)&&we._update()})),we._update(),we}return ot.prototype.dispose=function(){St.prototype.dispose.call(this),Object(H.f)(this._selectionListener),this._ckAtEnd.reset()},ot.prototype._update=function(){var nt=this,Dt=this._editor.getOption(94)==="on";if(this._enabled===Dt)return;if(this._enabled=Dt,this._enabled){var we=function(){if(!nt._editor.hasModel()){nt._ckAtEnd.set(!1);return}var P=nt._editor.getModel(),Z=nt._editor.getSelection(),Ae=P.getWordAtPosition(Z.getStartPosition());if(!Ae){nt._ckAtEnd.set(!1);return}nt._ckAtEnd.set(Ae.endColumn===Z.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(we),we()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},ot.AtEnd=new B.d("atEndOfWord",!1),ot=Jt([eo(1,B.c)],ot),ot}(H.a),co=e("pAvP"),Eo=e("746U"),Oo=e("MXAL"),Ao=function(){function St(ot,nt,Dt){var we=this;this._disposables=new H.b,this._disposables.add(nt.onDidShow(function(){return we._onItem(nt.getFocusedItem())})),this._disposables.add(nt.onDidFocus(this._onItem,this)),this._disposables.add(nt.onDidHide(this.reset,this)),this._disposables.add(ot.onWillType(function(M){if(we._active&&!nt.isFrozen()){var P=M.charCodeAt(M.length-1);we._active.acceptCharacters.has(P)&&ot.getOption(0)&&Dt(we._active.item)}}))}return St.prototype._onItem=function(ot){if(!ot||!Object(re.q)(ot.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===ot.item)return;for(var nt=new Oo.b,Dt=0,we=ot.item.completion.commitCharacters;Dt0&&nt.add(M.charCodeAt(0))}this._active={acceptCharacters:nt,item:ot}},St.prototype.reset=function(){this._active=void 0},St.prototype.dispose=function(){this._disposables.dispose()},St}(),Zo=e("MNsG"),Co=e("4y0V"),Wo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,M){we.__proto__=M}||function(we,M){for(var P in M)M.hasOwnProperty(P)&&(we[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Go=function(){function St(ot){var nt=this;this._controller=ot,this._disposables=new H.b,this._decorations=[],this._disposables.add(ot.model.onDidSuggest(function(Dt){if(!Dt.shy){var we=nt._controller.widget.getValue(),M=we.getFocusedItem();M&&nt._highlight(M.item),nt._widgetListener||(nt._widgetListener=we.onDidFocus(function(P){return nt._highlight(P.item)}))}})),this._disposables.add(ot.model.onDidCancel(function(){nt._reset()}))}return St.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(H.f)(this._widgetListener),Object(H.f)(this._shiftKeyListener)},St.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},St.prototype._highlight=function(ot){var nt=this,Dt;this._currentItem=ot;var we=this._controller.editor.getOption(89),M=[];if(we.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Bo.event(function(){return nt._highlight(nt._currentItem)}));var P=this._controller.getOverwriteInfo(ot,Bo.isPressed),Z=this._controller.editor.getPosition();if(we.insertMode==="insert"&&P.overwriteAfter>0)M=[{range:new U.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column+P.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(we.insertMode==="replace"&&P.overwriteAfter===0){var Ae=(Dt=this._controller.editor.getModel())===null||Dt===void 0?void 0:Dt.getWordAtPosition(Z);Ae&&Ae.endColumn>Z.column&&(M=[{range:new U.a(Z.lineNumber,Z.column,Z.lineNumber,Ae.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,M)},St}(),Bo=new(function(St){Wo(ot,St);function ot(){var nt=St.call(this)||this;return nt._subscriptions=new H.b,nt._isPressed=!1,nt._subscriptions.add(Object(Co.a)(document.body,"keydown")(function(Dt){return nt.isPressed=Dt.shiftKey})),nt._subscriptions.add(Object(Co.a)(document.body,"keyup")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"mouseleave")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"blur")(function(){return nt.isPressed=!1})),nt}return Object.defineProperty(ot.prototype,"isPressed",{get:function(){return this._isPressed},set:function(Dt){this._isPressed!==Dt&&(this._isPressed=Dt,this.fire(Dt))},enumerable:!0,configurable:!0}),ot.prototype.dispose=function(){this._subscriptions.dispose(),St.prototype.dispose.call(this)},ot}(He.a)),Mo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,M){we.__proto__=M}||function(we,M){for(var P in M)M.hasOwnProperty(P)&&(we[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Qo=function(){return Qo=Object.assign||function(St){for(var ot,nt=1,Dt=arguments.length;nt=0;Z--)(P=St[Z])&&(M=(we<3?P(M):we>3?P(ot,nt,M):P(ot,nt))||M);return we>3&&M&&Object.defineProperty(ot,nt,M),M},Vo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},mn=function(){for(var St=0,ot=0,nt=arguments.length;ot=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=z;return}for(var U=0;U=0;R--)(k=l[R])&&(A=(L<3?k(A):L>3?k(d,m,A):k(d,m))||A);return L>3&&A&&Object.defineProperty(d,m,A),A},p=function(l,d){return function(m,E){d(m,E,l)}},c=function(){function l(d,m,E,L,A,k){var R=this;this._contextMenuService=m,this._contextViewService=E,this._contextKeyService=L,this._keybindingService=A,this._menuService=k,this._toDispose=new I.b,this._contextMenuIsBeingShownCount=0,this._editor=d,this._toDispose.add(this._editor.onContextMenu(function($){return R._onContextMenu($)})),this._toDispose.add(this._editor.onMouseWheel(function($){R._contextMenuIsBeingShownCount>0&&R._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function($){$.keyCode===58&&($.preventDefault(),$.stopPropagation(),R.showContextMenu())}))}return l.get=function(d){return d.getContribution(l.ID)},l.prototype._onContextMenu=function(d){if(!this._editor.hasModel())return;if(!this._editor.getOption(14)){this._editor.focus(),d.target.position&&!this._editor.getSelection().containsPosition(d.target.position)&&this._editor.setPosition(d.target.position);return}if(d.target.type===12)return;if(d.event.preventDefault(),d.target.type!==6&&d.target.type!==7&&d.target.type!==1)return;if(this._editor.focus(),d.target.position){for(var m=!1,E=0,L=this._editor.getSelections();E0&&this._doShowContextMenu(m,d)},l.prototype._getMenuActions=function(d,m){var E=[],L=this._menuService.createMenu(m,this._contextKeyService),A=L.getActions({arg:d.uri});L.dispose();for(var k=0,R=A;k0&&(E.push(new f(Ce.label,Me)),W++)}else E.push(Ce),W++}W&&E.push(new J.d)}return E.length&&E.pop(),E},l.prototype._doShowContextMenu=function(d,m){var E=this;if(m===void 0&&(m=null),!this._editor.hasModel())return;var L=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!m){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var A=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),k=re.C(this._editor.getDomNode()),R=k.left+A.left,$=k.top+A.top+A.height;m={x:R,y:$}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return m},getActions:function(){return d},getActionViewItem:function(W){var B=E._keybindingFor(W);if(B)return new J.b(W,W,{label:!0,keybinding:B.getLabel(),isMenu:!0});var le=W;return typeof le.getActionViewItem=="function"?le.getActionViewItem():new J.b(W,W,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(W){return E._keybindingFor(W)},onHide:function(W){E._contextMenuIsBeingShownCount--,E._editor.focus(),E._editor.updateOptions({hover:L})}})},l.prototype._keybindingFor=function(d){return this._keybindingService.lookupKeybinding(d.id)},l.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},l.ID="editor.contrib.contextmenu",l=_([p(1,x.a),p(2,x.b),p(3,U.c),p(4,u.a),p(5,O.a)],l),l}(),s=function(l){v(d,l);function d(){return l.call(this,{id:"editor.action.showContextMenu",label:T.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1024|68,weight:100}})||this}return d.prototype.run=function(m,E){var L=c.get(E);L.showContextMenu()},d}(H.b);Object(H.h)(c.ID,c),Object(H.f)(s)},feEw:function(Lt,j,e){"use strict";e.d(j,"a",function(){return A}),e.d(j,"b",function(){return ie});var T=e("qj0h"),re=e("pmY6"),J=e("pg8w"),I=e("EffR"),H=e("MI8n"),z=e("4y0V"),O=e("GJhM"),U=e("nuFA");function x(W,B){for(var le=[],Ce=0,Me=B;Ce=Te.range.end)continue;if(W.end=0;He--)(Fe=W[He])&&(Te=(Me<3?Fe(Te):Me>3?Fe(B,le,Te):Fe(B,le))||Te);return Me>3&&Te&&Object.defineProperty(B,le,Te),Te},E=function(){for(var W=0,B=0,le=arguments.length;B=this.items.length?(this.rangeMap=new f,this.rangeMap.splice(0,0,ue),this.items=ue,X=[]):(this.rangeMap.splice(B,le,ue),X=(Me=this.items).splice.apply(Me,E([B,le],ue)));for(var he=Ce.length-le,je=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xe=u(ae,he),me=U.a.intersect(je,Xe),ne=me.start;ne=-1&&neCe&&(this.scrollTop+=Math.min(14,Math.floor(.3*(le-Ce))))},W.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},W.prototype.getItemIndexFromEventTarget=function(B){for(var le=B;le instanceof HTMLElement&&le!==this.rowsContainer;){var Ce=le.getAttribute("data-index");if(Ce){var Me=Number(Ce);if(!isNaN(Me))return Me}le=le.parentElement}return},W.prototype.getRenderRange=function(B,le){return{start:this.rangeMap.indexAt(B),end:this.rangeMap.indexAfter(B+le-1)}},W.prototype._rerender=function(B,le){var Ce=this.getRenderRange(B,le),Me,Te;B===this.elementTop(Ce.start)?(Me=Ce.start,Te=0):Ce.end-Ce.start>1&&(Me=Ce.start+1,Te=this.elementTop(Me)-B);for(var Fe=0;;){for(var He=this.getRenderRange(B,le),Pe=!1,ne=He.start;ne=0;L--)(E=p[L])&&(m=(d<3?E(m):d>3?E(c,s,m):E(c,s))||m);return d>3&&m&&Object.defineProperty(c,s,m),m},U=function(p,c){return function(s,l){c(s,l,p)}},x=function(){for(var p=0,c=0,s=arguments.length;c=0&&(d.splice(E,1),l._onDidChangeMenu.fire(c))}}},p.prototype.getMenuItems=function(c){var s=(this._menuItems.get(c)||[]).slice(0);return c===0&&this._appendImplicitItems(s),s},p.prototype._appendImplicitItems=function(c){for(var s=new Set,l=c.filter(function(k){return u(k)}),d=0,m=l;d0?[{start:0,end:C.length}]:[]:null}function z(Q,C){var F=C.toLowerCase().indexOf(Q.toLowerCase());return F===-1?null:[{start:F,end:F+Q.length}]}function O(Q,C){return U(Q.toLowerCase(),C.toLowerCase(),0,0)}function U(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]===C[se]){var oe=null;return(oe=U(Q,C,F+1,se+1))?_({start:se,end:se+1},oe):null}return U(Q,C,F,se+1)}function x(Q){return 97<=Q&&Q<=122}function u(Q){return 65<=Q&&Q<=90}function y(Q){return 48<=Q&&Q<=57}function w(Q){return Q===32||Q===9||Q===10||Q===13}var f=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(Q){return f.add(Q.charCodeAt(0))});function v(Q){return x(Q)||u(Q)||y(Q)}function _(Q,C){return C.length===0?C=[Q]:Q.end===C[0].start?C[0].start=Q.start:C.unshift(Q),C}function p(Q,C){for(var F=C;F0&&!v(Q.charCodeAt(F-1)))return F}return Q.length}function c(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]!==C[se].toLowerCase())return null;var oe=null,be=se+1;for(oe=c(Q,C,F+1,se+1);!oe&&(be=p(C,be)).6}function d(Q){var C=Q.upperPercent,F=Q.lowerPercent,se=Q.alphaPercent,oe=Q.numericPercent;return F>.2&&C<.8&&se>.6&&oe<.2}function m(Q){for(var C=0,F=0,se=0,oe=0,be=0;be60)return null;var F=s(C);if(!d(F)){if(!l(F))return null;C=C.toLowerCase()}var se=null,oe=0;for(Q=Q.toLowerCase();oe=0)Ve+=1,Se+=Math.pow(2,pt),Qe=pt+1;else if(Se!==0)break}return[Ve,Se,be]}function ie(Q){if(typeof Q=="undefined")return[];for(var C=Q[1].toString(2),F=Q[2],se=[],oe=F;oe=nt.list.length||M!==nt.list.element(P))return;nt.ignoreFocusEvents=!0,nt.list.splice(P,1,[M]),nt.list.setFocus([P]),nt.ignoreFocusEvents=!1,nt.expandDocsSettingFromStorage()?nt.showDetails(!1):Object(C.P)(nt.element,"docs-side"),te(nt.focusedItem)?nt.expandDocsSettingFromStorage()?nt.setStatusBarRightText(nt.msgDetailsLess):nt.setStatusBarRightText(nt.msgDetailMore):nt.statusBarRightSpan.innerText="",nt.editor.setAriaOptions({activeDescendant:Y(P)})}).catch(J.e)}this.onDidFocusEmitter.fire({item:M,index:P,model:this.completionModel})},St.prototype.setState=function(ot){if(!this.element)return;var nt=this.state!==ot;this.state=ot,Object(C.Y)(this.element,"frozen",ot===4);switch(ot){case 0:Object(C.J)(this.messageElement,this.details.element,this.listElement,this.statusBarElement),this.hide(),this.listHeight=0,nt&&this.list.splice(0,this.list.length),this.focusedItem=null;break;case 1:this.messageElement.textContent=St.LOADING_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 2:this.messageElement.textContent=St.NO_SUGGESTIONS_MESSAGE,Object(C.J)(this.listElement,this.details.element,this.statusBarElement),Object(C.X)(this.messageElement),Object(C.P)(this.element,"docs-side"),this.show(),this.focusedItem=null;break;case 3:Object(C.J)(this.messageElement),Object(C.X)(this.listElement,this.statusBarElement),this.show();break;case 4:Object(C.J)(this.messageElement),Object(C.X)(this.listElement),this.show();break;case 5:Object(C.J)(this.messageElement),Object(C.X)(this.details.element,this.listElement,this.statusBarElement),this.show();break}},St.prototype.showTriggered=function(ot,nt){var Dt=this;if(this.state!==0)return;this.isAuto=!!ot,this.isAuto||(this.loadingTimeout=Object(w.g)(function(){return Dt.setState(1)},nt))},St.prototype.showSuggestions=function(ot,nt,Dt,_e){if(this.preferDocPositionTop=!1,this.docsPositionPreviousWidgetY=null,this.loadingTimeout.dispose(),this.currentSuggestionDetails&&(this.currentSuggestionDetails.cancel(),this.currentSuggestionDetails=null),this.completionModel!==ot&&(this.completionModel=ot),Dt&&this.state!==2&&this.state!==0){this.setState(4);return}var M=this.completionModel.items.length,P=M===0;if(this.suggestWidgetMultipleSuggestions.set(M>1),P)_e?this.setState(0):this.setState(2),this.completionModel=null;else{if(this.state!==3){var Z=this.completionModel.stats;Z.wasAutomaticallyTriggered=!!_e,this.telemetryService.publicLog("suggestWidget",ut({},Z))}this.focusedItem=null,this.list.splice(0,this.list.length,this.completionModel.items),Dt?this.setState(4):this.setState(3),this.list.reveal(nt,0),this.list.setFocus([nt]),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)}},St.prototype.selectNextPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageDown(),!0;case 1:return!this.isAuto;default:return this.list.focusNextPage(),!0}},St.prototype.selectNext=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusNext(1,!0),!0}},St.prototype.selectLast=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollBottom(),!0;case 1:return!this.isAuto;default:return this.list.focusLast(),!0}},St.prototype.selectPreviousPage=function(){switch(this.state){case 0:return!1;case 5:return this.details.pageUp(),!0;case 1:return!this.isAuto;default:return this.list.focusPreviousPage(),!0}},St.prototype.selectPrevious=function(){switch(this.state){case 0:return!1;case 1:return!this.isAuto;default:return this.list.focusPrevious(1,!0),!1}},St.prototype.selectFirst=function(){switch(this.state){case 0:return!1;case 5:return this.details.scrollTop(),!0;case 1:return!this.isAuto;default:return this.list.focusFirst(),!0}},St.prototype.getFocusedItem=function(){return this.state!==0&&this.state!==2&&this.state!==1&&this.completionModel?{item:this.list.getFocusedElements()[0],index:this.list.getFocus()[0],model:this.completionModel}:void 0},St.prototype.toggleDetailsFocus=function(){this.state===5?(this.setState(3),this.detailsBorderColor&&(this.details.element.style.borderColor=this.detailsBorderColor)):this.state===3&&this.expandDocsSettingFromStorage()&&(this.setState(5),this.detailsFocusBorderColor&&(this.details.element.style.borderColor=this.detailsFocusBorderColor)),this.telemetryService.publicLog2("suggestWidget:toggleDetailsFocus")},St.prototype.toggleDetails=function(){if(!te(this.list.getFocusedElements()[0]))return;if(this.expandDocsSettingFromStorage())this.updateExpandDocsSetting(!1),Object(C.J)(this.details.element),Object(C.P)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below"),this.editor.layoutContentWidget(this),this.setStatusBarRightText(this.msgDetailMore),this.telemetryService.publicLog2("suggestWidget:collapseDetails");else{if(this.state!==3&&this.state!==5&&this.state!==4)return;this.updateExpandDocsSetting(!0),this.showDetails(!1),this.setStatusBarRightText(this.msgDetailsLess),this.telemetryService.publicLog2("suggestWidget:expandDetails")}},St.prototype.showDetails=function(ot){ot||this.expandSideOrBelow(),Object(C.X)(this.details.element),this.details.element.style.maxHeight=this.maxWidgetHeight+"px",ot?this.details.renderLoading():this.details.renderItem(this.list.getFocusedElements()[0],this.explainMode),this.listElement.style.marginTop="0px",this.editor.layoutContentWidget(this),this.adjustDocsPosition(),this.editor.focus()},St.prototype.toggleExplainMode=function(){this.list.getFocusedElements()[0]&&this.expandDocsSettingFromStorage()&&(this.explainMode=!this.explainMode,this.showDetails(!1))},St.prototype.show=function(){var ot=this,nt=this.updateListHeight();nt!==this.listHeight&&(this.editor.layoutContentWidget(this),this.listHeight=nt),this.suggestWidgetVisible.set(!0),this.showTimeout.cancelAndSet(function(){Object(C.f)(ot.element,"visible"),ot.onDidShowEmitter.fire(ot)},100)},St.prototype.hide=function(){this.suggestWidgetVisible.reset(),this.suggestWidgetMultipleSuggestions.reset(),Object(C.P)(this.element,"visible")},St.prototype.hideWidget=function(){this.loadingTimeout.dispose(),this.setState(0),this.onDidHideEmitter.fire(this)},St.prototype.getPosition=function(){if(this.state===0)return null;var ot=[2,1];return this.preferDocPositionTop&&(ot=[1]),{position:this.editor.getPosition(),preference:ot}},St.prototype.getDomNode=function(){return this.element},St.prototype.getId=function(){return St.ID},St.prototype.isFrozen=function(){return this.state===4},St.prototype.updateListHeight=function(){var ot=0;if(this.state===2||this.state===1)ot=this.unfocusedHeight;else{var nt=this.list.contentHeight/this.unfocusedHeight,Dt=this.editor.getOption(89).maxVisibleSuggestions;ot=Math.min(nt,Dt)*this.unfocusedHeight}return this.element.style.lineHeight=this.unfocusedHeight+"px",this.listElement.style.height=ot+"px",this.statusBarElement.style.top=ot+"px",this.list.layout(ot),ot},St.prototype.adjustDocsPosition=function(){if(!this.editor.hasModel())return;var ot=this.editor.getOption(49),nt=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),Dt=Object(C.C)(this.editor.getDomNode()),_e=Dt.left+nt.left,M=Dt.top+nt.top+nt.height,P=Object(C.C)(this.element),Z=P.left,Ae=P.top;if(this.docsPositionPreviousWidgetY&&this.docsPositionPreviousWidgetYAe&&this.details.element.offsetHeight>this.listElement.offsetHeight&&(this.listElement.style.marginTop=this.details.element.offsetHeight-this.listElement.offsetHeight+"px")},St.prototype.expandSideOrBelow=function(){if(!te(this.focusedItem)&&this.firstFocusInCurrentList){Object(C.P)(this.element,"docs-side"),Object(C.P)(this.element,"docs-below");return}var ot=this.element.style.maxWidth.match(/(\d+)px/);!ot||Number(ot[1])=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},eo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},po=function(St){Tt(ot,St);function ot(nt,Dt){var _e=St.call(this)||this;return _e._editor=nt,_e._enabled=!1,_e._ckAtEnd=ot.AtEnd.bindTo(Dt),_e._register(_e._editor.onDidChangeConfiguration(function(M){return M.hasChanged(94)&&_e._update()})),_e._update(),_e}return ot.prototype.dispose=function(){St.prototype.dispose.call(this),Object(U.f)(this._selectionListener),this._ckAtEnd.reset()},ot.prototype._update=function(){var nt=this,Dt=this._editor.getOption(94)==="on";if(this._enabled===Dt)return;if(this._enabled=Dt,this._enabled){var _e=function(){if(!nt._editor.hasModel()){nt._ckAtEnd.set(!1);return}var P=nt._editor.getModel(),Z=nt._editor.getSelection(),Ae=P.getWordAtPosition(Z.getStartPosition());if(!Ae){nt._ckAtEnd.set(!1);return}nt._ckAtEnd.set(Ae.endColumn===Z.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(_e),_e()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)},ot.AtEnd=new B.d("atEndOfWord",!1),ot=Jt([eo(1,B.c)],ot),ot}(U.a),co=e("pAvP"),Eo=e("746U"),Oo=e("MXAL"),Ao=function(){function St(ot,nt,Dt){var _e=this;this._disposables=new U.b,this._disposables.add(nt.onDidShow(function(){return _e._onItem(nt.getFocusedItem())})),this._disposables.add(nt.onDidFocus(this._onItem,this)),this._disposables.add(nt.onDidHide(this.reset,this)),this._disposables.add(ot.onWillType(function(M){if(_e._active&&!nt.isFrozen()){var P=M.charCodeAt(M.length-1);_e._active.acceptCharacters.has(P)&&ot.getOption(0)&&Dt(_e._active.item)}}))}return St.prototype._onItem=function(ot){if(!ot||!Object(re.q)(ot.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===ot.item)return;for(var nt=new Oo.b,Dt=0,_e=ot.item.completion.commitCharacters;Dt<_e.length;Dt++){var M=_e[Dt];M.length>0&&nt.add(M.charCodeAt(0))}this._active={acceptCharacters:nt,item:ot}},St.prototype.reset=function(){this._active=void 0},St.prototype.dispose=function(){this._disposables.dispose()},St}(),Zo=e("MNsG"),Co=e("4y0V"),Wo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Go=function(){function St(ot){var nt=this;this._controller=ot,this._disposables=new U.b,this._decorations=[],this._disposables.add(ot.model.onDidSuggest(function(Dt){if(!Dt.shy){var _e=nt._controller.widget.getValue(),M=_e.getFocusedItem();M&&nt._highlight(M.item),nt._widgetListener||(nt._widgetListener=_e.onDidFocus(function(P){return nt._highlight(P.item)}))}})),this._disposables.add(ot.model.onDidCancel(function(){nt._reset()}))}return St.prototype.dispose=function(){this._reset(),this._disposables.dispose(),Object(U.f)(this._widgetListener),Object(U.f)(this._shiftKeyListener)},St.prototype._reset=function(){this._decorations=this._controller.editor.deltaDecorations(this._decorations,[]),this._shiftKeyListener&&(this._shiftKeyListener.dispose(),this._shiftKeyListener=void 0)},St.prototype._highlight=function(ot){var nt=this,Dt;this._currentItem=ot;var _e=this._controller.editor.getOption(89),M=[];if(_e.insertHighlight){this._shiftKeyListener||(this._shiftKeyListener=Bo.event(function(){return nt._highlight(nt._currentItem)}));var P=this._controller.getOverwriteInfo(ot,Bo.isPressed),Z=this._controller.editor.getPosition();if(_e.insertMode==="insert"&&P.overwriteAfter>0)M=[{range:new H.a(Z.lineNumber,Z.column,Z.lineNumber,Z.column+P.overwriteAfter),options:{inlineClassName:"suggest-insert-unexpected"}}];else if(_e.insertMode==="replace"&&P.overwriteAfter===0){var Ae=(Dt=this._controller.editor.getModel())===null||Dt===void 0?void 0:Dt.getWordAtPosition(Z);Ae&&Ae.endColumn>Z.column&&(M=[{range:new H.a(Z.lineNumber,Z.column,Z.lineNumber,Ae.endColumn),options:{inlineClassName:"suggest-insert-unexpected"}}])}}this._decorations=this._controller.editor.deltaDecorations(this._decorations,M)},St}(),Bo=new(function(St){Wo(ot,St);function ot(){var nt=St.call(this)||this;return nt._subscriptions=new U.b,nt._isPressed=!1,nt._subscriptions.add(Object(Co.a)(document.body,"keydown")(function(Dt){return nt.isPressed=Dt.shiftKey})),nt._subscriptions.add(Object(Co.a)(document.body,"keyup")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"mouseleave")(function(){return nt.isPressed=!1})),nt._subscriptions.add(Object(Co.a)(document.body,"blur")(function(){return nt.isPressed=!1})),nt}return Object.defineProperty(ot.prototype,"isPressed",{get:function(){return this._isPressed},set:function(Dt){this._isPressed!==Dt&&(this._isPressed=Dt,this.fire(Dt))},enumerable:!0,configurable:!0}),ot.prototype.dispose=function(){this._subscriptions.dispose(),St.prototype.dispose.call(this)},ot}(Ue.a)),Mo=function(){var St=function(nt,Dt){return St=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,M){_e.__proto__=M}||function(_e,M){for(var P in M)M.hasOwnProperty(P)&&(_e[P]=M[P])},St(nt,Dt)};return function(ot,nt){St(ot,nt);function Dt(){this.constructor=ot}ot.prototype=nt===null?Object.create(nt):(Dt.prototype=nt.prototype,new Dt)}}(),Qo=function(){return Qo=Object.assign||function(St){for(var ot,nt=1,Dt=arguments.length;nt=0;Z--)(P=St[Z])&&(M=(_e<3?P(M):_e>3?P(ot,nt,M):P(ot,nt))||M);return _e>3&&M&&Object.defineProperty(ot,nt,M),M},Vo=function(St,ot){return function(nt,Dt){ot(nt,Dt,St)}},mn=function(){for(var St=0,ot=0,nt=arguments.length;ot=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=z;return}for(var H=0;H=0;R--)(k=l[R])&&(A=(L<3?k(A):L>3?k(d,m,A):k(d,m))||A);return L>3&&A&&Object.defineProperty(d,m,A),A},p=function(l,d){return function(m,E){d(m,E,l)}},c=function(){function l(d,m,E,L,A,k){var R=this;this._contextMenuService=m,this._contextViewService=E,this._contextKeyService=L,this._keybindingService=A,this._menuService=k,this._toDispose=new I.b,this._contextMenuIsBeingShownCount=0,this._editor=d,this._toDispose.add(this._editor.onContextMenu(function($){return R._onContextMenu($)})),this._toDispose.add(this._editor.onMouseWheel(function($){R._contextMenuIsBeingShownCount>0&&R._contextViewService.hideContextView()})),this._toDispose.add(this._editor.onKeyDown(function($){$.keyCode===58&&($.preventDefault(),$.stopPropagation(),R.showContextMenu())}))}return l.get=function(d){return d.getContribution(l.ID)},l.prototype._onContextMenu=function(d){if(!this._editor.hasModel())return;if(!this._editor.getOption(14)){this._editor.focus(),d.target.position&&!this._editor.getSelection().containsPosition(d.target.position)&&this._editor.setPosition(d.target.position);return}if(d.target.type===12)return;if(d.event.preventDefault(),d.target.type!==6&&d.target.type!==7&&d.target.type!==1)return;if(this._editor.focus(),d.target.position){for(var m=!1,E=0,L=this._editor.getSelections();E0&&this._doShowContextMenu(m,d)},l.prototype._getMenuActions=function(d,m){var E=[],L=this._menuService.createMenu(m,this._contextKeyService),A=L.getActions({arg:d.uri});L.dispose();for(var k=0,R=A;k0&&(E.push(new f(Ce.label,Me)),W++)}else E.push(Ce),W++}W&&E.push(new J.d)}return E.length&&E.pop(),E},l.prototype._doShowContextMenu=function(d,m){var E=this;if(m===void 0&&(m=null),!this._editor.hasModel())return;var L=this._editor.getOption(44);if(this._editor.updateOptions({hover:{enabled:!1}}),!m){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();var A=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),k=re.C(this._editor.getDomNode()),R=k.left+A.left,$=k.top+A.top+A.height;m={x:R,y:$}}this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({getAnchor:function(){return m},getActions:function(){return d},getActionViewItem:function(W){var B=E._keybindingFor(W);if(B)return new J.b(W,W,{label:!0,keybinding:B.getLabel(),isMenu:!0});var le=W;return typeof le.getActionViewItem=="function"?le.getActionViewItem():new J.b(W,W,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(W){return E._keybindingFor(W)},onHide:function(W){E._contextMenuIsBeingShownCount--,E._editor.focus(),E._editor.updateOptions({hover:L})}})},l.prototype._keybindingFor=function(d){return this._keybindingService.lookupKeybinding(d.id)},l.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()},l.ID="editor.contrib.contextmenu",l=w([p(1,x.a),p(2,x.b),p(3,H.c),p(4,u.a),p(5,O.a)],l),l}(),s=function(l){v(d,l);function d(){return l.call(this,{id:"editor.action.showContextMenu",label:T.a("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:z.a.textInputFocus,primary:1024|68,weight:100}})||this}return d.prototype.run=function(m,E){var L=c.get(E);L.showContextMenu()},d}(U.b);Object(U.h)(c.ID,c),Object(U.f)(s)},feEw:function(Lt,j,e){"use strict";e.d(j,"a",function(){return A}),e.d(j,"b",function(){return ie});var T=e("qj0h"),re=e("pmY6"),J=e("pg8w"),I=e("EffR"),U=e("MI8n"),z=e("4y0V"),O=e("GJhM"),H=e("nuFA");function x(W,B){for(var le=[],Ce=0,Me=B;Ce=Te.range.end)continue;if(W.end=0;Ue--)(Fe=W[Ue])&&(Te=(Me<3?Fe(Te):Me>3?Fe(B,le,Te):Fe(B,le))||Te);return Me>3&&Te&&Object.defineProperty(B,le,Te),Te},E=function(){for(var W=0,B=0,le=arguments.length;B=this.items.length?(this.rangeMap=new f,this.rangeMap.splice(0,0,ue),this.items=ue,X=[]):(this.rangeMap.splice(B,le,ue),X=(Me=this.items).splice.apply(Me,E([B,le],ue)));for(var he=Ce.length-le,je=this.getRenderRange(this.lastRenderTop,this.lastRenderHeight),Xe=u(ae,he),me=H.a.intersect(je,Xe),ne=me.start;ne=-1&&neCe&&(this.scrollTop+=Math.min(14,Math.floor(.3*(le-Ce))))},W.prototype.teardownDragAndDropScrollTopAnimation=function(){this.dragOverAnimationStopDisposable.dispose(),this.dragOverAnimationDisposable&&(this.dragOverAnimationDisposable.dispose(),this.dragOverAnimationDisposable=void 0)},W.prototype.getItemIndexFromEventTarget=function(B){for(var le=B;le instanceof HTMLElement&&le!==this.rowsContainer;){var Ce=le.getAttribute("data-index");if(Ce){var Me=Number(Ce);if(!isNaN(Me))return Me}le=le.parentElement}return},W.prototype.getRenderRange=function(B,le){return{start:this.rangeMap.indexAt(B),end:this.rangeMap.indexAfter(B+le-1)}},W.prototype._rerender=function(B,le){var Ce=this.getRenderRange(B,le),Me,Te;B===this.elementTop(Ce.start)?(Me=Ce.start,Te=0):Ce.end-Ce.start>1&&(Me=Ce.start+1,Te=this.elementTop(Me)-B);for(var Fe=0;;){for(var Ue=this.getRenderRange(B,le),Pe=!1,ne=Ue.start;ne=0;L--)(E=p[L])&&(m=(d<3?E(m):d>3?E(c,s,m):E(c,s))||m);return d>3&&m&&Object.defineProperty(c,s,m),m},H=function(p,c){return function(s,l){c(s,l,p)}},x=function(){for(var p=0,c=0,s=arguments.length;c=0&&(d.splice(E,1),l._onDidChangeMenu.fire(c))}}},p.prototype.getMenuItems=function(c){var s=(this._menuItems.get(c)||[]).slice(0);return c===0&&this._appendImplicitItems(s),s},p.prototype._appendImplicitItems=function(c){for(var s=new Set,l=c.filter(function(k){return u(k)}),d=0,m=l;d0?[{start:0,end:C.length}]:[]:null}function z(Q,C){var F=C.toLowerCase().indexOf(Q.toLowerCase());return F===-1?null:[{start:F,end:F+Q.length}]}function O(Q,C){return H(Q.toLowerCase(),C.toLowerCase(),0,0)}function H(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]===C[se]){var oe=null;return(oe=H(Q,C,F+1,se+1))?w({start:se,end:se+1},oe):null}return H(Q,C,F,se+1)}function x(Q){return 97<=Q&&Q<=122}function u(Q){return 65<=Q&&Q<=90}function y(Q){return 48<=Q&&Q<=57}function _(Q){return Q===32||Q===9||Q===10||Q===13}var f=new Set;"`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?".split("").forEach(function(Q){return f.add(Q.charCodeAt(0))});function v(Q){return x(Q)||u(Q)||y(Q)}function w(Q,C){return C.length===0?C=[Q]:Q.end===C[0].start?C[0].start=Q.start:C.unshift(Q),C}function p(Q,C){for(var F=C;F0&&!v(Q.charCodeAt(F-1)))return F}return Q.length}function c(Q,C,F,se){if(F===Q.length)return[];if(se===C.length)return null;if(Q[F]!==C[se].toLowerCase())return null;var oe=null,be=se+1;for(oe=c(Q,C,F+1,se+1);!oe&&(be=p(C,be)).6}function d(Q){var C=Q.upperPercent,F=Q.lowerPercent,se=Q.alphaPercent,oe=Q.numericPercent;return F>.2&&C<.8&&se>.6&&oe<.2}function m(Q){for(var C=0,F=0,se=0,oe=0,be=0;be60)return null;var F=s(C);if(!d(F)){if(!l(F))return null;C=C.toLowerCase()}var se=null,oe=0;for(Q=Q.toLowerCase();oe=0)Ve+=1,Se+=Math.pow(2,pt),Qe=pt+1;else if(Se!==0)break}return[Ve,Se,be]}function ie(Q){if(typeof Q=="undefined")return[];for(var C=Q[1].toString(2),F=Q[2],se=[],oe=F;oe=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ne(Q,C){if(C<0||C>=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){case 32:case 9:return!0;default:return!1}}function ee(Q,C,F){return C[Q]!==F[Q]}function ae(Q,C,F,se,oe,be){for(;CW?W:Q.length,Ve=se.length>W?W:se.length;if(F>=Se||be>=Ve||Se-F>Ve-be)return;if(!ae(C,F,Se,oe,be,Ve))return;var Qe=1,it=1,pt=F,Rt=be;for(Qe=1,pt=F;pt1?1:Mt),uo=le[Qe-1][it]+-1,ao=le[Qe][it-1]+-1;ao>=uo?ao>zt?(le[Qe][it]=ao,Me[Qe][it]=4):ao===zt?(le[Qe][it]=ao,Me[Qe][it]=4|2):(le[Qe][it]=zt,Me[Qe][it]=2):uo>zt?(le[Qe][it]=uo,Me[Qe][it]=1):uo===zt?(le[Qe][it]=uo,Me[Qe][it]=1|2):(le[Qe][it]=zt,Me[Qe][it]=2)}return Te&&He(Q,F,se,be),he=0,Xe=-100,me=be,ge=De,_e(Qe-1,it-1,Se===Ve?1:0,0,!1),he===0?void 0:[Xe,je,be]}function X(Q,C,F,se,oe,be,De){return C[F]!==be[De]?-1:De===F-se||ee(De,oe,be)&&(De===0||!ee(De-1,oe,be))?Q[F]===oe[De]?7:5:Pe(be,De)&&(De===0||!Pe(be,De-1))||(Pe(be,De-1)||ne(be,De-1))?5:1}var he=0,je=0,Xe=0,me=0,ge=!1;function _e(Q,C,F,se,oe){if(he>=10||F<-25)return;for(var be=0;Q>0&&C>0;){var De=Ce[Q][C],Se=Me[Q][C];if(Se===4)C-=1,oe?F-=5:se!==0&&(F-=1),oe=!1,be=0;else if(Se&2)if(Se&4&&_e(Q,C-1,se!==0?F-1:F,se,oe),F+=De,Q-=1,C-=1,oe=!0,se+=Math.pow(2,C+me),De===1){if(be+=1,Q===0&&!ge)return}else F+=1+be*(De-1),be=0;else return}F-=C>=3?9:C*3,he+=1,F>Xe&&(Xe=F,je=se)}function Re(Q,C,F,se,oe,be,De){return Ee(Q,C,F,se,oe,be,!0,De)}function Ee(Q,C,F,se,oe,be,De,Se){var Ve=ue(Q,C,F,se,oe,be,Se);if(Ve&&!De)return Ve;if(Q.length>=3)for(var Qe=Math.min(7,Q.length-1),it=F+1;itVe[0])&&(Ve=Rt))}}return Ve}function ve(Q,C){if(C+1>=Q.length)return;var F=Q[C],se=Q[C+1];return F===se?void 0:Q.slice(0,C)+se+F+Q.slice(C+2)}},gCVg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("cGHE"),re=e("aokT"),J=function(){var H=function(O,U){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},H(O,U)};return function(z,O){H(z,O);function U(){this.constructor=z}z.prototype=O===null?Object.create(O):(U.prototype=O.prototype,new U)}}(),I=function(H){J(z,H);function z(O,U,x,u){var y=H.call(this,O,U,x,u)||this;return y.selectionStartLineNumber=O,y.selectionStartColumn=U,y.positionLineNumber=x,y.positionColumn=u,y}return z.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},z.prototype.equalsSelection=function(O){return z.selectionsEqual(this,O)},z.selectionsEqual=function(O,U){return O.selectionStartLineNumber===U.selectionStartLineNumber&&O.selectionStartColumn===U.selectionStartColumn&&O.positionLineNumber===U.positionLineNumber&&O.positionColumn===U.positionColumn},z.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},z.prototype.setEndPosition=function(O,U){return this.getDirection()===0?new z(this.startLineNumber,this.startColumn,O,U):new z(O,U,this.startLineNumber,this.startColumn)},z.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},z.prototype.setStartPosition=function(O,U){return this.getDirection()===0?new z(O,U,this.endLineNumber,this.endColumn):new z(this.endLineNumber,this.endColumn,O,U)},z.fromPositions=function(O,U){return U===void 0&&(U=O),new z(O.lineNumber,O.column,U.lineNumber,U.column)},z.liftSelection=function(O){return new z(O.selectionStartLineNumber,O.selectionStartColumn,O.positionLineNumber,O.positionColumn)},z.selectionsArrEqual=function(O,U){if(O&&!U||!O&&U)return!1;if(!O&&!U)return!0;if(O.length!==U.length)return!1;for(var x=0,u=O.length;x=0;W--)(ie=E[W])&&($=(R<3?ie($):R>3?ie(L,A,$):ie(L,A))||$);return R>3&&$&&Object.defineProperty(L,A,$),$},p=function(E,L){return function(A,k){L(A,k,E)}},c=function(E){v(L,E);function L(A,k,R){var $=E.call(this)||this;return $._editor=A,$._modeService=R,$._widget=null,$._register($._editor.onDidChangeModel(function(ie){return $.stop()})),$._register($._editor.onDidChangeModelLanguage(function(ie){return $.stop()})),$._register(O.B.onDidChange(function(ie){return $.stop()})),$}return L.get=function(A){return A.getContribution(L.ID)},L.prototype.dispose=function(){this.stop(),E.prototype.dispose.call(this)},L.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new m(this._editor,this._modeService)},L.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},L.ID="editor.contrib.inspectTokens",L=_([p(1,u.a),p(2,x.a)],L),L}(I.a),s=function(E){v(L,E);function L(){return E.call(this,{id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return L.prototype.run=function(A,k){var R=c.get(k);R&&R.launch()},L}(z.b);function l(E){for(var L="",A=0,k=E.length;A=0;$--){var ie=k.tokens1[$];if(A.column-1>=ie.offset){R=$;break}}for(var W=0,$=k.tokens2.length>>>1;$>=0;$--)if(A.column-1>=k.tokens2[$<<1]){W=$;break}var B="",le=this._model.getLineContent(A.lineNumber),Ce="";if(R'+l(Ce)+'('+Ce.length+" "+(Ce.length===1?"char":"chars")+")",B+='
';var Fe=this._decodeMetadata(k.tokens2[(W<<1)+1]);B+='',B+='",B+='",B+='",B+='",B+='",B+="",B+='
',R'+Object(H.o)(k.tokens1[R].type)+""),this._domNode.innerHTML=B,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(A){var k=O.B.getColorMap(),R=O.A.getLanguageId(A),$=O.A.getTokenType(A),ie=O.A.getFontStyle(A),W=O.A.getForeground(A),B=O.A.getBackground(A);return{languageIdentifier:this._modeService.getLanguageIdentifier(R),tokenType:$,fontStyle:ie,foreground:k[W],background:k[B]}},L.prototype._tokenTypeToString=function(A){switch(A){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(A){var k="";return A&1&&(k+="italic "),A&2&&(k+="bold "),A&4&&(k+="underline "),k.length===0&&(k="---"),k},L.prototype._getTokensAtLine=function(A){var k=this._getStateBeforeLine(A),R=this._tokenizationSupport.tokenize(this._model.getLineContent(A),k,0),$=this._tokenizationSupport.tokenize2(this._model.getLineContent(A),k,0);return{startState:k,tokens1:R.tokens,tokens2:$.tokens,endState:R.endState}},L.prototype._getStateBeforeLine=function(A){for(var k=this._tokenizationSupport.getInitialState(),R=1;R1&&l.scheme===H.b.file?d="//"+l.authority+m:z.h&&m.charCodeAt(0)===47&&T.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?d=m.substr(1):d=m,z.h&&(d=d.replace(/\//g,"\\")),d}function c(l,d,m){if(m===void 0&&(m=U(l)),l.scheme!==d.scheme||!u(l.authority,d.authority))return;if(l.scheme===H.b.file){var E=re.relative(l.path,d.path);return z.h?T.c(E):E}var L=l.path||"/",A=d.path||"/";if(m){for(var k=0,R=Math.min(L.length,A.length);k0&&B[B.length-1])&&(Te[0]===6||Te[0]===2)){$=0;continue}if(Te[0]===3&&(!B||Te[1]>B[0]&&Te[1]>>0,new T.c(f,y===null?I:y)}},"i/Rh":function(Lt,j,e){},i04g:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("3/fG"),re=function(){function z(O,U,x){x===void 0&&(x=U),this.modifierLabels=[null],this.modifierLabels[2]=O,this.modifierLabels[1]=U,this.modifierLabels[3]=x}return z.prototype.toLabel=function(O,U,x){if(U.length===0)return null;for(var u=[],y=0,w=U.length;y0&&C.minimapLeft===0?C.minimapWidth:0},Q.prototype._onViewZoneTop=function(C){this.domNode.style.top=C+"px"},Q.prototype._onViewZoneHeight=function(C){if(this.domNode.style.height=C+"px",this.container){var F=C-this._decoratingElementsHeight();this.container.style.height=F+"px";var se=this.editor.getLayoutInfo();this._doLayout(F,this._getWidth(se))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(Q.prototype,"position",{get:function(){var F=this._positionMarkerId[0];if(!F)return;var se=this.editor.getModel();if(!se)return;var oe=se.getDecorationRange(F);return oe?oe.getStartPosition():void 0},enumerable:!0,configurable:!0}),Q.prototype.show=function(C,F){var se=_.a.isIRange(C)?_.a.lift(C):_.a.fromPositions(C);this._isShowing=!0,this._showImpl(se,F),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:se,options:p.a.EMPTY}])},Q.prototype.hide=function(){var C=this;this._viewZone&&(this.editor.changeViewZones(function(F){C._viewZone&&F.removeZone(C._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},Q.prototype._decoratingElementsHeight=function(){var C=this.editor.getOption(49),F=0;if(this.options.showArrow){var se=Math.round(C/3);F+=2*se}if(this.options.showFrame){var oe=Math.round(C/9);F+=2*oe}return F},Q.prototype._showImpl=function(C,F){var se=this,oe=C.getStartPosition(),be=this.editor.getLayoutInfo(),De=this._getWidth(be);this.domNode.style.width=De+"px",this.domNode.style.left=this._getLeft(be)+"px";var Se=document.createElement("div");Se.style.overflow="hidden";var Ve=this.editor.getOption(49),Qe=this.editor.getLayoutInfo().height/Ve*.8;F>=Qe&&(F=Qe);var it=0,pt=0;if(this._arrow&&this.options.showArrow&&(it=Math.round(Ve/3),this._arrow.height=it,this._arrow.show(oe)),this.options.showFrame&&(pt=Math.round(Ve/9)),this.editor.changeViewZones(function(ao){se._viewZone&&ao.removeZone(se._viewZone.id),se._overlayWidget&&(se.editor.removeOverlayWidget(se._overlayWidget),se._overlayWidget=null),se.domNode.style.top="-1000px",se._viewZone=new d(Se,oe.lineNumber,oe.column,F,function(so){return se._onViewZoneTop(so)},function(so){return se._onViewZoneHeight(so)}),se._viewZone.id=ao.addZone(se._viewZone),se._overlayWidget=new m(l+se._viewZone.id,se.domNode),se.editor.addOverlayWidget(se._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:pt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Mt=F*Ve-this._decoratingElementsHeight();this.container&&(this.container.style.top=it+"px",this.container.style.height=Mt+"px",this.container.style.overflow="hidden"),this._doLayout(Mt,De),this.options.keepEditorSelection||this.editor.setSelection(C);var zt=this.editor.getModel();if(zt){var uo=C.endLineNumber+1;uo<=zt.getLineCount()?this.revealLine(uo,!1):this.revealLine(zt.getLineCount(),!0)}},Q.prototype.revealLine=function(C,F){F?this.editor.revealLineInCenter(C,0):this.editor.revealLine(C,0)},Q.prototype.setCssClass=function(C,F){if(!this.container)return;F&&this.container.classList.remove(F),re.f(this.container,C)},Q.prototype._onWidth=function(C){},Q.prototype._doLayout=function(C,F){},Q.prototype._relayout=function(C){var F=this;this._viewZone&&this._viewZone.heightInLines!==C&&this.editor.changeViewZones(function(se){F._viewZone&&(F._viewZone.heightInLines=C,se.layoutZone(F._viewZone.id))})},Q.prototype._initSash=function(){var C=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new w.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var F;this._disposables.add(this._resizeSash.onDidStart(function(se){C._viewZone&&(F={startY:se.startY,heightInLines:C._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){F=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(se){if(F){var oe=(se.currentY-F.startY)/C.editor.getOption(49),be=oe<0?Math.ceil(oe):Math.floor(oe),De=F.heightInLines+be;De>5&&De<35&&C._relayout(De)}}))},Q.prototype.getHorizontalSashLeft=function(){return 0},Q.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},Q.prototype.getHorizontalSashWidth=function(){var C=this.editor.getLayoutInfo();return C.width-C.minimapWidth},Q}(),A=e("3/fG"),k=e("T8No"),R=e("Cg/j"),$=e("9fML"),ie=e("sswD"),W=e("MD5Z"),B=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),le=function(Q,C,F,se){var oe=arguments.length,be=oe<3?C:se===null?se=Object.getOwnPropertyDescriptor(C,F):se,De;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Q,C,F,se);else for(var Se=Q.length-1;Se>=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},Ce=function(Q,C){return function(F,se){C(F,se,Q)}},Me=Object(R.c)("IPeekViewService");Object($.b)(Me,function(){function Q(){this._widgets=new Map}return Q.prototype.addExclusiveWidget=function(C,F){var se=this,oe=this._widgets.get(C);oe&&(oe.listener.dispose(),oe.widget.dispose());var be=function(){var Se=se._widgets.get(C);Se&&Se.widget===F&&(Se.listener.dispose(),se._widgets.delete(C))};this._widgets.set(C,{widget:F,listener:F.onDidClose(be)})},Q}());var Te;(function(Q){Q.inPeekEditor=new k.d("inReferenceSearchEditor",!0),Q.notInPeekEditor=Q.inPeekEditor.toNegated()})(Te||(Te={}));var Fe=function(){function Q(C,F){C instanceof u.a&&Te.inPeekEditor.bindTo(F)}return Q.prototype.dispose=function(){},Q.ID="editor.contrib.referenceController",Q=le([Ce(1,k.c)],Q),Q}();Object(ie.h)(Fe.ID,Fe);function He(Q){var C=Q.get(x.a).getFocusedCodeEditor();return C instanceof u.a?C.getParentEditor():C}var Pe={headerBackgroundColor:H.a.white,primaryHeadingColor:H.a.fromHex("#333333"),secondaryHeadingColor:H.a.fromHex("#6c6c6cb3")},ne=function(Q){B(C,Q);function C(F,se){se===void 0&&(se={});var oe=Q.call(this,F,se)||this;return oe._onDidClose=new z.a,oe.onDidClose=oe._onDidClose.event,O.g(oe.options,Pe,!1),oe}return C.prototype.dispose=function(){Q.prototype.dispose.call(this),this._onDidClose.fire(this)},C.prototype.style=function(F){var se=this.options;F.headerBackgroundColor&&(se.headerBackgroundColor=F.headerBackgroundColor),F.primaryHeadingColor&&(se.primaryHeadingColor=F.primaryHeadingColor),F.secondaryHeadingColor&&(se.secondaryHeadingColor=F.secondaryHeadingColor),Q.prototype.style.call(this,F)},C.prototype._applyStyles=function(){Q.prototype._applyStyles.call(this);var F=this.options;this._headElement&&F.headerBackgroundColor&&(this._headElement.style.backgroundColor=F.headerBackgroundColor.toString()),this._primaryHeading&&F.primaryHeadingColor&&(this._primaryHeading.style.color=F.primaryHeadingColor.toString()),this._secondaryHeading&&F.secondaryHeadingColor&&(this._secondaryHeading.style.color=F.secondaryHeadingColor.toString()),this._bodyElement&&F.frameColor&&(this._bodyElement.style.borderColor=F.frameColor.toString())},C.prototype._fillContainer=function(F){this.setCssClass("peekview-widget"),this._headElement=re.a(".head"),this._bodyElement=re.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),F.appendChild(this._headElement),F.appendChild(this._bodyElement)},C.prototype._fillHead=function(F){var se=this,oe=re.a(".peekview-title");re.q(this._headElement,oe),re.o(oe,"click",function(Se){return se._onTitleClick(Se)}),this._fillTitleIcon(oe),this._primaryHeading=re.a("span.filename"),this._secondaryHeading=re.a("span.dirname"),this._metaHeading=re.a("span.meta"),re.q(oe,this._primaryHeading,this._secondaryHeading,this._metaHeading);var be=re.a(".peekview-actions");re.q(this._headElement,be);var De=this._getActionBarOptions();this._actionbarWidget=new J.a(be,De),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new I.a("peekview.close",A.a("label.close","Close"),"codicon-close",!0,function(){return se.dispose(),Promise.resolve()}),{label:!1,icon:!0})},C.prototype._fillTitleIcon=function(F){},C.prototype._getActionBarOptions=function(){return{}},C.prototype._onTitleClick=function(F){},C.prototype.setTitle=function(F,se){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=U.o(F),this._primaryHeading.setAttribute("aria-label",F),se?this._secondaryHeading.innerHTML=U.o(se):re.t(this._secondaryHeading))},C.prototype.setMetaTitle=function(F){this._metaHeading&&(F?(this._metaHeading.innerHTML=U.o(F),re.X(this._metaHeading)):re.J(this._metaHeading))},C.prototype._doLayout=function(F,se){if(!this._isShowing&&F<0){this.dispose();return}var oe=Math.ceil(this.editor.getOption(49)*1.2),be=Math.round(F-(oe+2));this._doLayoutHead(oe,se),this._doLayoutBody(be,se)},C.prototype._doLayoutHead=function(F,se){this._headElement&&(this._headElement.style.height=F+"px",this._headElement.style.lineHeight=this._headElement.style.height)},C.prototype._doLayoutBody=function(F,se){this._bodyElement&&(this._bodyElement.style.height=F+"px")},C}(L),ee=Object(W.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},A.a("peekViewTitleBackground","Background color of the peek view title area.")),ae=Object(W.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},A.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(W.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},A.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ue=Object(W.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:W.e},A.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(W.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:H.a.black},A.a("peekViewResultsBackground","Background color of the peek view result list.")),he=Object(W.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:H.a.white},A.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),je=Object(W.Tb)("peekViewResult.fileForeground",{dark:H.a.white,light:"#1E1E1E",hc:H.a.white},A.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Xe=Object(W.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},A.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),me=Object(W.Tb)("peekViewResult.selectionForeground",{dark:H.a.white,light:"#6C6C6C",hc:H.a.white},A.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ge=Object(W.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:H.a.black},A.a("peekViewEditorBackground","Background color of the peek view editor.")),_e=Object(W.Tb)("peekViewEditorGutter.background",{dark:ge,light:ge,hc:ge},A.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Re=Object(W.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},A.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ee=Object(W.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},A.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ve=Object(W.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:W.b},A.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("746U"),re=e("FWmy"),J=function(){function H(){this.data=new Map}return H.prototype.add=function(z,O){re.a(T.j(z)),re.a(T.i(O)),re.a(!this.data.has(z),"There is already an extension with this id"),this.data.set(z,O)},H.prototype.as=function(z){return this.data.get(z)||null},H}(),I=new J},"ij/i":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return e.e(314).then(e.bind(null,"3MdH"))}})},iuje:function(Lt,j,e){"use strict";e.d(j,"c",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});function T(I){return I&&typeof I.id=="string"}var re={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},J={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(306).then(e.bind(null,"ppMK"))}})},"jAJ/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"d",function(){return u}),e.d(j,"c",function(){return w}),e.d(j,"e",function(){return _}),e.d(j,"b",function(){return p});var T=e("N0LK"),re=e("5v8Y"),J=e("cGHE"),I=e("aokT"),H=e("M1Kb"),z=999,O=function(){function c(s,l,d,m){this.searchString=s,this.isRegex=l,this.matchCase=d,this.wordSeparators=m}return c.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var s;this.isRegex?s=U(this.searchString):s=this.searchString.indexOf(` -`)>=0;var l=null;try{l=T.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch(m){return null}if(!l)return null;var d=!this.isRegex&&!s;return d&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(d=this.matchCase),new x(l,this.wordSeparators?Object(re.a)(this.wordSeparators):null,d?this.searchString:null)},c}();function U(c){if(!c||c.length===0)return!1;for(var s=0,l=c.length;s=l)break;var m=c.charCodeAt(s);if(m===110||m===114||m===87||m===119)return!0}}return!1}var x=function(){function c(s,l,d){this.regex=s,this.wordSeparators=l,this.simpleSearch=d}return c}();function u(c,s,l){if(!l)return new H.b(c,null);for(var d=[],m=0,E=s.length;m>0);l[E]>=s?m=E-1:l[E+1]>=s?(d=E,m=E):d=E+1}return d+1},c}(),w=function(){function c(){}return c.findMatches=function(s,l,d,m,E){var L=l.parseSearchRequest();return L?L.regex.multiline?this._doFindMatchesMultiline(s,d,new p(L.wordSeparators,L.regex),m,E):this._doFindMatchesLineByLine(s,d,L,m,E):[]},c._getMultilineMatchRange=function(s,l,d,m,E,L){var A,k=0;m?(k=m.findLineFeedCountBeforeOffset(E),A=l+E+k):A=l+E;var R;if(m){var $=m.findLineFeedCountBeforeOffset(E+L.length),ie=$-k;R=A+L.length+ie}else R=A+L.length;var W=s.getPositionAt(A),B=s.getPositionAt(R);return new I.a(W.lineNumber,W.column,B.lineNumber,B.column)},c._doFindMatchesMultiline=function(s,l,d,m,E){var L=s.getOffsetAt(l.getStartPosition()),A=s.getValueInRange(l,1),k=s.getEOL()===`\r -`?new y(A):null,R=[],$=0,ie;for(d.reset(0);ie=d.next(A);)if(R[$++]=u(this._getMultilineMatchRange(s,L,A,k,ie.index,ie[0]),ie,m),$>=E)return R;return R},c._doFindMatchesLineByLine=function(s,l,d,m,E){var L=[],A=0;if(l.startLineNumber===l.endLineNumber){var k=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return A=this._findMatchesInLine(d,k,l.startLineNumber,l.startColumn-1,A,L,m,E),L}var R=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);A=this._findMatchesInLine(d,R,l.startLineNumber,l.startColumn-1,A,L,m,E);for(var $=l.startLineNumber+1;$=k))return E;return E}var le=new p(s.wordSeparators,s.regex),Ce;le.reset(0);do if(Ce=le.next(l),Ce&&(L[E++]=u(new I.a(d,Ce.index+1+m,d,Ce.index+1+Ce[0].length+m),Ce,A),E>=k))return E;while(Ce);return E},c.findNextMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(s,d,L,m):this._doFindNextMatchLineByLine(s,d,L,m)},c._doFindNextMatchMultiline=function(s,l,d,m){var E=new J.a(l.lineNumber,1),L=s.getOffsetAt(E),A=s.getLineCount(),k=s.getValueInRange(new I.a(E.lineNumber,E.column,A,s.getLineMaxColumn(A)),1),R=s.getEOL()===`\r -`?new y(k):null;d.reset(l.column-1);var $=d.next(k);return $?u(this._getMultilineMatchRange(s,L,k,R,$.index,$[0]),$,m):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(s,new J.a(1,1),d,m):null},c._doFindNextMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L),k=this._findFirstMatchInLine(d,A,L,l.column,m);if(k)return k;for(var R=1;R<=E;R++){var $=(L+R-1)%E,ie=s.getLineContent($+1),W=this._findFirstMatchInLine(d,ie,$+1,1,m);if(W)return W}return null},c._findFirstMatchInLine=function(s,l,d,m,E){s.reset(m-1);var L=s.next(l);return L?u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,E):null},c.findPreviousMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(s,d,L,m):this._doFindPreviousMatchLineByLine(s,d,L,m)},c._doFindPreviousMatchMultiline=function(s,l,d,m){var E=this._doFindMatchesMultiline(s,new I.a(1,1,l.lineNumber,l.column),d,m,10*z);if(E.length>0)return E[E.length-1];var L=s.getLineCount();return l.lineNumber!==L||l.column!==s.getLineMaxColumn(L)?this._doFindPreviousMatchMultiline(s,new J.a(L,s.getLineMaxColumn(L)),d,m):null},c._doFindPreviousMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L).substring(0,l.column-1),k=this._findLastMatchInLine(d,A,L,m);if(k)return k;for(var R=1;R<=E;R++){var $=(E+L-R-1)%E,ie=s.getLineContent($+1),W=this._findLastMatchInLine(d,ie,$+1,m);if(W)return W}return null},c._findLastMatchInLine=function(s,l,d,m){var E=null,L;for(s.reset(0);L=s.next(l);)E=u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,m);return E},c}();function f(c,s,l,d,m){if(d===0)return!0;var E=s.charCodeAt(d-1);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d);if(c.get(L)!==0)return!0}return!1}function v(c,s,l,d,m){if(d+m===l)return!0;var E=s.charCodeAt(d+m);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d+m-1);if(c.get(L)!==0)return!0}return!1}function _(c,s,l,d,m){return f(c,s,l,d,m)&&v(c,s,l,d,m)}var p=function(){function c(s,l){this._wordSeparators=s,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return c.prototype.reset=function(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0},c.prototype.next=function(s){var l=s.length,d;do{if(this._prevMatchStartIndex+this._prevMatchLength===l)return null;if(d=this._searchRegex.exec(s),!d)return null;var m=d.index,E=d[0].length;if(m===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=m,this._prevMatchLength=E,!this._wordSeparators||_(this._wordSeparators,s,l,m,E))return d}while(d);return null},c}()},jVwG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(298).then(e.bind(null,"fYNN"))}})},jqj9:function(Lt,j,e){"use strict";var T=e("yI7H"),re=e.n(T),J=e("ujyM"),I=e.n(J),H=e("3/fG"),z=e("t9D7"),O=e("MD5Z"),U=Object(O.Tb)("symbolIcon.arrayForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(O.Tb)("symbolIcon.booleanForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(O.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(O.Tb)("symbolIcon.colorForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(O.Tb)("symbolIcon.constantForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(O.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(O.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(O.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(O.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(H.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(O.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(O.Tb)("symbolIcon.fileForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(O.Tb)("symbolIcon.folderForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(O.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(O.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(O.Tb)("symbolIcon.keyForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(O.Tb)("symbolIcon.keywordForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(O.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(H.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(O.Tb)("symbolIcon.moduleForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(O.Tb)("symbolIcon.namespaceForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$=Object(O.Tb)("symbolIcon.nullForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(O.Tb)("symbolIcon.numberForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=Object(O.Tb)("symbolIcon.objectForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(O.Tb)("symbolIcon.operatorForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(O.Tb)("symbolIcon.packageForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(O.Tb)("symbolIcon.propertyForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(O.Tb)("symbolIcon.referenceForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Te=Object(O.Tb)("symbolIcon.snippetForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fe=Object(O.Tb)("symbolIcon.stringForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),He=Object(O.Tb)("symbolIcon.structForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pe=Object(O.Tb)("symbolIcon.textForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ne=Object(O.Tb)("symbolIcon.typeParameterForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(O.Tb)("symbolIcon.unitForeground",{dark:O.W,light:O.W,hc:O.W},Object(H.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(O.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(H.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(z.e)(function(q,ue){var X=q.getColor(U);X&&ue.addRule(".codicon-symbol-array { color: "+X+" !important; }");var he=q.getColor(x);he&&ue.addRule(".codicon-symbol-boolean { color: "+he+" !important; }");var je=q.getColor(u);je&&ue.addRule(".codicon-symbol-class { color: "+je+" !important; }");var Xe=q.getColor(A);Xe&&ue.addRule(".codicon-symbol-method { color: "+Xe+" !important; }");var me=q.getColor(y);me&&ue.addRule(".codicon-symbol-color { color: "+me+" !important; }");var ge=q.getColor(w);ge&&ue.addRule(".codicon-symbol-constant { color: "+ge+" !important; }");var _e=q.getColor(f);_e&&ue.addRule(".codicon-symbol-constructor { color: "+_e+" !important; }");var Re=q.getColor(v);Re&&ue.addRule(` - .codicon-symbol-value,.codicon-symbol-enum { color: `+Re+" !important; }");var Ee=q.getColor(_);Ee&&ue.addRule(".codicon-symbol-enum-member { color: "+Ee+" !important; }");var ve=q.getColor(p);ve&&ue.addRule(".codicon-symbol-event { color: "+ve+" !important; }");var Q=q.getColor(c);Q&&ue.addRule(".codicon-symbol-field { color: "+Q+" !important; }");var C=q.getColor(s);C&&ue.addRule(".codicon-symbol-file { color: "+C+" !important; }");var F=q.getColor(l);F&&ue.addRule(".codicon-symbol-folder { color: "+F+" !important; }");var se=q.getColor(d);se&&ue.addRule(".codicon-symbol-function { color: "+se+" !important; }");var oe=q.getColor(m);oe&&ue.addRule(".codicon-symbol-interface { color: "+oe+" !important; }");var be=q.getColor(E);be&&ue.addRule(".codicon-symbol-key { color: "+be+" !important; }");var De=q.getColor(L);De&&ue.addRule(".codicon-symbol-keyword { color: "+De+" !important; }");var Se=q.getColor(k);Se&&ue.addRule(".codicon-symbol-module { color: "+Se+" !important; }");var Ve=q.getColor(R);Ve&&ue.addRule(".codicon-symbol-namespace { color: "+Ve+" !important; }");var Qe=q.getColor($);Qe&&ue.addRule(".codicon-symbol-null { color: "+Qe+" !important; }");var it=q.getColor(ie);it&&ue.addRule(".codicon-symbol-number { color: "+it+" !important; }");var pt=q.getColor(W);pt&&ue.addRule(".codicon-symbol-object { color: "+pt+" !important; }");var Rt=q.getColor(B);Rt&&ue.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Mt=q.getColor(le);Mt&&ue.addRule(".codicon-symbol-package { color: "+Mt+" !important; }");var zt=q.getColor(Ce);zt&&ue.addRule(".codicon-symbol-property { color: "+zt+" !important; }");var uo=q.getColor(Me);uo&&ue.addRule(".codicon-symbol-reference { color: "+uo+" !important; }");var ao=q.getColor(Te);ao&&ue.addRule(".codicon-symbol-snippet { color: "+ao+" !important; }");var so=q.getColor(Fe);so&&ue.addRule(".codicon-symbol-string { color: "+so+" !important; }");var Pt=q.getColor(He);Pt&&ue.addRule(".codicon-symbol-struct { color: "+Pt+" !important; }");var ft=q.getColor(Pe);ft&&ue.addRule(".codicon-symbol-text { color: "+ft+" !important; }");var vt=q.getColor(ne);vt&&ue.addRule(".codicon-symbol-type-parameter { color: "+vt+" !important; }");var At=q.getColor(ee);At&&ue.addRule(".codicon-symbol-unit { color: "+At+" !important; }");var at=q.getColor(ae);at&&ue.addRule(".codicon-symbol-variable { color: "+at+" !important; }")})},jrbv:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return e.e(279).then(e.bind(null,"2ZXa"))}})},k76M:function(Lt,j,e){"use strict";var T=e("XNtB"),re=e.n(T),J=e("epnl"),I=e.n(J)},k7mE:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return e.e(290).then(e.bind(null,"BjZ/"))}})},k7pc:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ToggleTabFocusModeAction",function(){return z});var T=e("3/fG"),re=e("OBOq"),J=e("sswD"),I=e("iDAx"),H=function(){var O=function(x,u){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var f in w)w.hasOwnProperty(f)&&(y[f]=w[f])},O(x,u)};return function(U,x){O(U,x);function u(){this.constructor=U}U.prototype=x===null?Object.create(x):(u.prototype=x.prototype,new u)}}(),z=function(O){H(U,O);function U(){return O.call(this,{id:U.ID,label:T.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|43,mac:{primary:256|1024|43},weight:100}})||this}return U.prototype.run=function(x,u){var y=I.b.getTabFocusMode(),w=!y;I.b.setTabFocusMode(w),w?Object(re.a)(T.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(re.a)(T.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},U.ID="editor.action.toggleTabFocusMode",U}(J.b);Object(J.f)(z)},k9mg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return fn}),e.d(j,"b",function(){return Vo}),e.d(j,"d",function(){return dn}),e.d(j,"c",function(){return yt});var T=e("EffR"),re=e("cqdO"),J=e("pmY6"),I=e("3/fG"),H=e("+7oY"),z=e("CRAX"),O=e("T8No"),U=e("Cg/j"),x=e("bexQ"),u=e("ic2d"),y=e("ptcw"),w=e("t9D7"),f="inputFocus",v=e("2V9f"),_=e("MI8n"),p=e("uDWl"),c=e("ZQ78"),s=e("6OMU"),l=e("feEw"),d=e("4y0V"),m=e("fpMC"),E=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),L=function(pe){E(D,pe);function D(ye,We){return pe.call(this,"TreeError ["+ye+"] "+We)||this}return D}(Error),A=function(){function pe(D){this.fn=D,this._map=new WeakMap}return pe.prototype.map=function(D){var ye=this._map.get(D);return ye||(ye=this.fn(D),this._map.set(D,ye)),ye},pe}(),k=e("JYp7"),R=function(){for(var pe=0,D=0,ye=arguments.length;D=0&&Do0&&st){var bi=function kn(Qn){st(Qn),Qn.children.forEach(kn)};on.forEach(bi)}this._onDidSplice.fire({insertedNodes:tn,deletedNodes:on})},pe.prototype.rerender=function(D){if(D.length===0)throw new L(this.user,"Invalid tree location");var ye=this.getTreeNodeWithListIndex(D),We=ye.node,Ze=ye.listIndex,st=ye.revealed;st&&this.list.splice(Ze,1,[We])},pe.prototype.has=function(D){return this.hasTreeNode(D)},pe.prototype.getListIndex=function(D){var ye=this.getTreeNodeWithListIndex(D),We=ye.listIndex,Ze=ye.visible,st=ye.revealed;return Ze&&st?We:-1},pe.prototype.getListRenderCount=function(D){return this.getTreeNode(D).renderNodeCount},pe.prototype.isCollapsible=function(D){return this.getTreeNode(D).collapsible},pe.prototype.setCollapsible=function(D,ye){var We=this,Ze=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!Ze.collapsible);var st={collapsible:ye};return this.eventBufferer.bufferEvents(function(){return We._setCollapseState(D,st)})},pe.prototype.isCollapsed=function(D){return this.getTreeNode(D).collapsed},pe.prototype.setCollapsed=function(D,ye,We){var Ze=this,st=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!st.collapsed);var mt={collapsed:ye,recursive:We||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(D,mt)})},pe.prototype._setCollapseState=function(D,ye){var We=this.getTreeNodeWithListIndex(D),Ze=We.node,st=We.listIndex,mt=We.revealed,Kt=this._setListNodeCollapseState(Ze,st,mt,ye);if(Ze!==this.root&&this.autoExpandSingleChildren&&Kt&&!W(ye)&&Ze.collapsible&&!Ze.collapsed&&!ye.recursive){for(var Xt=-1,no=0;no-1){Xt=-1;break}else Xt=no}Xt>-1&&this._setCollapseState(R(D,[Xt]),ye)}return Kt},pe.prototype._setListNodeCollapseState=function(D,ye,We,Ze){var st=this._setNodeCollapseState(D,Ze,!1);if(!We||!D.visible||!st)return st;var mt=D.renderNodeCount,Kt=this.updateNodeAfterCollapseChange(D),Xt=mt-(ye===-1?0:1);return this.list.splice(ye+1,Xt,Kt.slice(1)),st},pe.prototype._setNodeCollapseState=function(D,ye,We){var Ze;if(D===this.root?Ze=!1:(W(ye)?(Ze=D.collapsible!==ye.collapsible,D.collapsible=ye.collapsible):D.collapsible?(Ze=D.collapsed!==ye.collapsed,D.collapsed=ye.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:D,deep:We})),!W(ye)&&ye.recursive)for(var st=0,mt=D.children;st0,Xt.visibleChildrenCount=_o,Xt.visible=no===2?_o>0:no===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=wo):(Xt.renderNodeCount=0,Ze&&st.pop()),mt&&mt(Xt),Xt},pe.prototype.updateNodeAfterCollapseChange=function(D){var ye=D.renderNodeCount,We=[];return this._updateNodeAfterCollapseChange(D,We),this._updateAncestorsRenderNodeCount(D.parent,We.length-ye),We},pe.prototype._updateNodeAfterCollapseChange=function(D,ye){if(D.visible===!1)return 0;if(ye.push(D),D.renderNodeCount=1,!D.collapsed)for(var We=0,Ze=D.children;Weye.children.length?!1:this.hasTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNode=function(D,ye){if(ye===void 0&&(ye=this.root),!D||D.length===0)return ye;var We=D[0],Ze=D.slice(1);if(We<0||We>ye.children.length)throw new L(this.user,"Invalid tree location");return this.getTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNodeWithListIndex=function(D){if(D.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ye=this.getParentNodeWithListIndex(D),We=ye.parentNode,Ze=ye.listIndex,st=ye.revealed,mt=ye.visible,Kt=D[D.length-1];if(Kt<0||Kt>We.children.length)throw new L(this.user,"Invalid tree location");var Xt=We.children[Kt];return{node:Xt,listIndex:Ze,revealed:st,visible:mt&&Xt.visible}},pe.prototype.getParentNodeWithListIndex=function(D,ye,We,Ze,st){ye===void 0&&(ye=this.root),We===void 0&&(We=0),Ze===void 0&&(Ze=!0),st===void 0&&(st=!0);var mt=D[0],Kt=D.slice(1);if(mt<0||mt>ye.children.length)throw new L(this.user,"Invalid tree location");for(var Xt=0;Xt0)?(Object(T.g)(ye.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(ye.twistie,"collapsed",D.collapsed)):Object(T.Q)(ye.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),D.collapsible?ye.container.setAttribute("aria-expanded",String(!D.collapsed)):ye.container.removeAttribute("aria-expanded")},pe.prototype.renderIndentGuides=function(D,ye){var We=this;if(Object(T.t)(ye.indent),ye.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var Ze=new J.b,st=this.modelProvider(),mt=D,Kt=function(){var lo=st.getNodeLocation(mt),Ro=st.getParentNodeLocation(lo);if(!Ro)return"break";var _o=st.getNode(Ro),wo=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(_o)&&Object(T.f)(wo,"active"),ye.indent.childElementCount===0?ye.indent.appendChild(wo):ye.indent.insertBefore(wo,ye.indent.firstElementChild),Xt.renderedIndentGuides.add(_o,wo),Ze.add(Object(J.h)(function(){return We.renderedIndentGuides.delete(_o,wo)})),mt=_o},Xt=this;;){var no=Kt();if(no==="break")break}ye.indentGuidesDisposable=Ze},pe.prototype._onDidChangeActiveNodes=function(D){var ye=this;if(!this.shouldRenderIndentGuides)return;var We=new Set,Ze=this.modelProvider();D.forEach(function(st){var mt=Ze.getNodeLocation(st);try{var Kt=Ze.getParentNodeLocation(mt);st.collapsible&&st.children.length>0&&!st.collapsed?We.add(st):Kt&&We.add(Ze.getNode(Kt))}catch(Xt){}}),this.activeIndentNodes.forEach(function(st){We.has(st)||ye.renderedIndentGuides.forEach(st,function(mt){return Object(T.P)(mt,"active")})}),We.forEach(function(st){ye.activeIndentNodes.has(st)||ye.renderedIndentGuides.forEach(st,function(mt){return Object(T.f)(mt,"active")})}),this.activeIndentNodes=We},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(J.f)(this.disposables)},pe.DefaultIndent=8,pe}(),me=function(){function pe(D,ye,We){this.tree=D,this.keyboardNavigationLabelProvider=ye,this._filter=We,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new J.b,D.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(pe.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{set:function(ye){this._pattern=ye,this._lowercasePattern=ye.toLowerCase()},enumerable:!0,configurable:!0}),pe.prototype.filter=function(D,ye){if(this._filter){var We=this._filter.filter(D,ye);if(this.tree.options.simpleKeyboardNavigation)return We;var Ze=void 0;if(typeof We=="boolean"?Ze=We?1:0:$(We)?Ze=ie(We.visibility):Ze=We,Ze===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:m.a.Default,visibility:!0};var st=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(D),mt=st&&st.toString();if(typeof mt=="undefined")return{data:m.a.Default,visibility:!0};var Kt=Object(m.d)(this._pattern,this._lowercasePattern,0,mt,mt.toLowerCase(),0,!0);return Kt?(this._matchCount++,{data:Kt,visibility:!0}):this.tree.options.filterOnType?2:{data:m.a.Default,visibility:!0}},pe.prototype.reset=function(){this._totalCount=0,this._matchCount=0},pe.prototype.dispose=function(){Object(J.f)(this.disposables)},pe}(),ge=function(){function pe(D,ye,We,Ze,st){this.tree=D,this.view=We,this.filter=Ze,this.keyboardNavigationDelegate=st,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new _.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new _.a,this.enabledDisposables=new J.b,this.disposables=new J.b,this.domNode=Object(T.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(d.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(T.q)(We.getHTMLElement(),Object(T.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(T.q)(this.domNode,Object(T.a)("span.label"));var mt=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!D.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(mt,Object(T.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(d.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(T.q)(mt,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(I.a)("clear","Clear"),this.keyboardNavigationEventFilter=D.options.keyboardNavigationEventFilter,ye.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(D.options)}return Object.defineProperty(pe.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(D){D.simpleKeyboardNavigation?this.disable():this.enable(),typeof D.filterOnType!="undefined"&&(this._filterOnType=!!D.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof D.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=D.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},pe.prototype.enable=function(){var D=this;if(this._enabled)return;var ye=_.b.chain(Object(d.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!_e(Ze.target)||Ze.target===D.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new p.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return D.automaticKeyboardNavigation||D.triggered}).filter(function(Ze){return D.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(D.pattern.length>0||D.triggered)&&(Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey&&!Ze.metaKey||Ze.keyCode===1&&(Ce.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,We=Object(d.a)(this.clearDomNode,"click");_.b.chain(_.b.any(ye,We)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},pe.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},pe.prototype.onEventOrInput=function(D){typeof D=="string"?this.onInput(D):D instanceof MouseEvent||D.keyCode===9||D.keyCode===1&&(Ce.e?D.altKey:D.ctrlKey)?this.onInput(""):D.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+D.browserEvent.key)},pe.prototype.onInput=function(D){var ye=this.view.getHTMLElement();D&&!this.domNode.parentElement?ye.append(this.domNode):!D&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=D,this._onDidChangePattern.fire(D),this.filter.pattern=D,this.tree.refilter(),D&&this.tree.focusNext(0,!0,void 0,function(st){return!m.a.isDefault(st.filterData)});var We=this.tree.getFocus();if(We.length>0){var Ze=We[0];this.tree.getRelativeTop(Ze)===null&&this.tree.reveal(Ze,.5)}this.render(),D||(this.triggered=!1)},pe.prototype.onDragStart=function(){var D=this,ye=this.view.getHTMLElement(),We=Object(T.C)(ye).left,Ze=ye.clientWidth,st=Ze/2,mt=this.domNode.clientWidth,Kt=new J.b,Xt=this.positionClassName,no=function(){switch(Xt){case"nw":D.domNode.style.top="4px",D.domNode.style.left="4px";break;case"ne":D.domNode.style.top="4px",D.domNode.style.left=Ze-mt-6+"px";break}},vo=function(_o){_o.preventDefault();var wo=_o.screenX-We;_o.dataTransfer&&(_o.dataTransfer.dropEffect="none"),wo0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&D?(this.messageDomNode.textContent=Object(I.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",D),this.domNode.title=Object(I.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},pe.prototype.shouldAllowFocus=function(D){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!m.a.isDefault(D.filterData)},pe.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(J.f)(this.disposables)},pe}();function _e(pe){return pe.tagName==="INPUT"||pe.tagName==="TEXTAREA"}function Re(pe){return{elements:pe.elements.map(function(D){return D.element}),browserEvent:pe.browserEvent}}function Ee(pe,D){D(pe),pe.children.forEach(function(ye){return Ee(ye,D)})}var ve=function(){function pe(D){this.identityProvider=D,this.nodes=[],this._onDidChange=new _.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(pe.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),pe.prototype.set=function(D,ye){if(Object(s.g)(this.nodes,D))return;this._set(D,!1,ye)},pe.prototype._set=function(D,ye,We){if(this.nodes=ne(D),this.elements=void 0,this._nodeSet=void 0,!ye){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:We})}},pe.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(D){return D.element})),ne(this.elements)},pe.prototype.getNodes=function(){return this.nodes},pe.prototype.has=function(D){return this.nodeSet.has(D)},pe.prototype.onDidModelSplice=function(D){var ye=this,We=D.insertedNodes,Ze=D.deletedNodes;if(!this.identityProvider){var st=this.createNodeSet(),mt=function(tn){return st.delete(tn)};Ze.forEach(function(xo){return Ee(xo,mt)}),this.set(Object(Me.e)(st));return}var Kt=new Set,Xt=function(tn){return Kt.add(ye.identityProvider.getId(tn.element).toString())};Ze.forEach(function(xo){return Ee(xo,Xt)});var no=new Map,vo=function(tn){return no.set(ye.identityProvider.getId(tn.element).toString(),tn)};We.forEach(function(xo){return Ee(xo,vo)});for(var lo=[],Ro=0,_o=this.nodes;Ro<_o.length;Ro++){var wo=_o[Ro],jo=this.identityProvider.getId(wo.element).toString(),Ho=Kt.has(jo);if(!Ho)lo.push(wo);else{var Do=no.get(jo);Do&&lo.push(Do)}}this._set(lo,!0)},pe.prototype.createNodeSet=function(){for(var D=new Set,ye=0,We=this.nodes;ye0&&pe.prototype.setFocus.call(this,Object(s.f)(ne(pe.prototype.getFocus.call(this),mt))),Kt.length>0&&pe.prototype.setSelection.call(this,Object(s.f)(ne(pe.prototype.getSelection.call(this),Kt)))},D.prototype.setFocus=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setFocus.call(this,ye,We),Ze||this.focusTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D.prototype.setSelection=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setSelection.call(this,ye,We),Ze||this.selectionTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D}(re.c),F=function(){function pe(D,ye,We,Ze,st){var mt=this;st===void 0&&(st={}),this._options=st,this.eventBufferer=new _.c,this.disposables=new J.b,this._onWillRefilter=new _.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new _.a;var Kt=new X(We),Xt=new _.f,no=new _.f,vo=new je(no.event);this.renderers=Ze.map(function(xo){return new Xe(xo,function(){return mt.model},Xt.event,vo,st)});for(var lo=0,Ro=this.renderers;lo .indent-guide, .monaco-list"+ye+".always .monaco-tl-indent > .indent-guide { border-color: "+D.treeIndentGuidesStroke.transparent(.4)+"; }"),We.push(".monaco-list"+ye+" .monaco-tl-indent > .indent-guide.active { border-color: "+D.treeIndentGuidesStroke+"; }"));var Ze=We.join(` -`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(D)},pe.prototype.collapse=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!0,ye)},pe.prototype.expand=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!1,ye)},pe.prototype.isCollapsible=function(D){return this.model.isCollapsible(D)},pe.prototype.setCollapsible=function(D,ye){return this.model.setCollapsible(D,ye)},pe.prototype.isCollapsed=function(D){return this.model.isCollapsed(D)},pe.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},pe.prototype.setSelection=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.selection.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setSelection(st,ye,!0)},pe.prototype.getSelection=function(){return this.selection.get()},pe.prototype.setFocus=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.focus.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setFocus(st,ye,!0)},pe.prototype.focusNext=function(D,ye,We,Ze){D===void 0&&(D=1),ye===void 0&&(ye=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(D,ye,We,Ze)},pe.prototype.getFocus=function(){return this.focus.get()},pe.prototype.reveal=function(D,ye){this.model.expandTo(D);var We=this.model.getListIndex(D);if(We===-1)return;this.view.reveal(We,ye)},pe.prototype.getRelativeTop=function(D){var ye=this.model.getListIndex(D);return ye===-1?null:this.view.getRelativeTop(ye)},pe.prototype.onLeftArrow=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!0);if(!st){var mt=this.model.getParentNodeLocation(Ze);if(!mt)return;var Kt=this.model.getListIndex(mt);this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onRightArrow=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!1);if(!st){if(!We.children.some(function(Xt){return Xt.visible}))return;var mt=this.view.getFocus()[0],Kt=mt+1;this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onSpace=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=D.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,st)},pe.prototype.dispose=function(){Object(J.f)(this.disposables),this.view.dispose()},pe}(),se=function(){return se=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},at=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){return mt===void 0&&(mt={}),pe.call(this,ye,We,Ze,st,mt)||this}return Object.defineProperty(D.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.rerender=function(ye){if(ye===void 0){this.view.rerender();return}this.model.rerender(ye)},D.prototype.hasElement=function(ye){return this.model.has(ye)},D.prototype.createModel=function(ye,We,Ze){return new be(ye,We,Ze)},D}(F),tt=function(){function pe(D,ye){this._compressedTreeNodeProvider=D,this.renderer=ye,this.templateId=ye.templateId,ye.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ye.onDidChangeTwistieState)}return Object.defineProperty(pe.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{compressedTreeNode:void 0,data:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){var st=this.compressedTreeNodeProvider.getCompressedTreeNode(D.element);st.element.elements.length===1?(We.compressedTreeNode=void 0,this.renderer.renderElement(D,ye,We.data,Ze)):(We.compressedTreeNode=st,this.renderer.renderCompressedElements(st,ye,We.data,Ze))},pe.prototype.disposeElement=function(D,ye,We,Ze){We.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(We.compressedTreeNode,ye,We.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(D,ye,We.data,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.data)},pe.prototype.renderTwistie=function(D,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(D,ye)},At([Pt.a],pe.prototype,"compressedTreeNodeProvider",null),pe}();function ut(pe,D){return D&&vt(vt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(We){var Ze;try{Ze=pe().getCompressedTreeNode(We)}catch(st){return D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We)}return Ze.element.elements.length===1?D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We):D.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Ze.element.elements)}}})}var Ct=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){mt===void 0&&(mt={});var Kt=this,Xt=function(){return Kt},no=st.map(function(vo){return new tt(Xt,vo)});return Kt=pe.call(this,ye,We,Ze,no,ut(Xt,mt))||this,Kt}return D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.createModel=function(ye,We,Ze){return new so(ye,We,Ze)},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),typeof ye.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ye.compressionEnabled)},D.prototype.getCompressedTreeNode=function(ye){return ye===void 0&&(ye=null),this.model.getCompressedTreeNode(ye)},D}(at),gt=e("/cxE"),bt=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Gt=function(){return Gt=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye0&&st[st.length-1])&&(no[0]===6||no[0]===2)){ye=0;continue}if(no[0]===3&&(!st||no[1]>st[0]&&no[1]-1&&Ze.focus.push(Rn),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(On)>-1&&Ze.selection.push(Rn),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(On)>-1?_o.push(Rn):En&&mt.collapseByDefault&&!mt.collapseByDefault(gn)&&(Rn.collapsedByDefault=!1,_o.push(Rn)),Rn}),jo=0,Ho=Object(Me.e)(Kt);jo-1?Ze=!1:Ze=D.collapsedByDefault,D.collapsedByDefault=void 0,{element:D,children:D.hasChildren?k.d.map(k.d.fromArray(D.children),function(st){return We.asTreeElement(st,ye)}):[],collapsible:D.hasChildren,collapsed:Ze}},pe.prototype.processChildren=function(D){return this.sorter&&D.sort(this.sorter.compare.bind(this.sorter)),D},pe.prototype.dispose=function(){this.disposables.dispose()},pe}(),eo=function(){function pe(D){this.node=D}return Object.defineProperty(pe.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(ye){return ye.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new pe(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),po=function(){function pe(D,ye,We,Ze){this.renderer=D,this.nodeMapper=ye,this.compressibleNodeMapperProvider=We,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=D.templateId}return pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{templateData:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.renderCompressedElements=function(D,ye,We,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.renderTwistie=function(D,ye){return Object(T.Y)(ye,"codicon-loading",D.slow),!1},pe.prototype.disposeElement=function(D,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.disposeCompressedElements=function(D,ye,We,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(J.f)(this.disposables)},pe}();function co(pe){var D=pe&<(pe);return D&&Gt(Gt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&Gt(Gt({},D.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(We){return pe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(We.map(function(Ze){return Ze.element}))}})})}var Eo=function(pe){bt(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt){Xt===void 0&&(Xt={});var no=pe.call(this,ye,We,Ze,mt,Kt,Xt)||this;return no.compressionDelegate=st,no.compressibleNodeMapper=new A(function(vo){return new eo(vo)}),no.filter=Xt.filter,no}return D.prototype.createTree=function(ye,We,Ze,st,mt){var Kt=this,Xt=new X(Ze),no=st.map(function(lo){return new po(lo,Kt.nodeMapper,function(){return Kt.compressibleNodeMapper},Kt._onDidChangeNodeSlowState.event)}),vo=co(mt)||{};return new Ct(ye,We,Xt,no,vo)},D.prototype.asTreeElement=function(ye,We){return Gt({incompressible:this.compressionDelegate.isIncompressible(ye.element)},pe.prototype.asTreeElement.call(this,ye,We))},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),this.tree.updateOptions(ye)},D.prototype.render=function(ye,We){var Ze=this;if(!this.identityProvider)return pe.prototype.render.call(this,ye,We);var st=function(jo){return Ze.identityProvider.getId(jo).toString()},mt=function(jo){for(var Ho=new Set,Do=0,xo=jo;Do=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},Mo=function(pe,D){return function(ye,We){D(ye,We,pe)}},Qo,fn=Object(U.c)("listService"),Vo=function(){function pe(D){this._themeService=D,this.disposables=new J.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(pe.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),pe.prototype.register=function(D,ye){var We=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var Ze=new re.b(Object(T.w)(),"");this.disposables.add(Object(y.b)(Ze,this._themeService))}if(this.lists.some(function(mt){return mt.widget===D}))throw new Error("Cannot register the same widget multiple times");var st={widget:D,extraContextKeys:ye};return this.lists.push(st),D.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=D),Object(J.e)(D.onDidFocus(function(){return We._lastFocusedWidget=D}),Object(J.h)(function(){return We.lists.splice(We.lists.indexOf(st),1)}),D.onDidDispose(function(){We.lists=We.lists.filter(function(mt){return mt!==st}),We._lastFocusedWidget===D&&(We._lastFocusedWidget=void 0)}))},pe.prototype.dispose=function(){this.disposables.dispose()},pe=Bo([Mo(0,w.c)],pe),pe}(),mn=new O.d("listFocus",!0),yn=new O.d("listSupportsMultiselect",!0),dn=O.a.and(mn,O.a.not(f)),rn=new O.d("listHasSelectionOrFocus",!1),pn=new O.d("listDoubleSelection",!1),zo=new O.d("listMultiSelection",!1),Uo=new O.d("listSupportsKeyboardNavigation",!0),St="listAutomaticKeyboardNavigation",ot=new O.d(St,!0),nt=!1;function Dt(pe,D){var ye=pe.createScoped(D.getHTMLElement());return mn.bindTo(ye),ye}var we="workbench.list.multiSelectModifier",M="workbench.list.openMode",P="workbench.list.horizontalScrolling",Z="workbench.list.keyboardNavigation",Ae="workbench.list.automaticKeyboardNavigation",xe="workbench.tree.indent",Ne="workbench.tree.renderIndentGuides";function dt(pe){return Object(H.f)(pe,P,"workbench.tree.horizontalScrolling")}function ht(pe){return pe.getValue(we)==="alt"}function xt(pe){return pe.getValue(M)!=="doubleClick"}var Bt=function(pe){Wo(D,pe);function D(ye){var We=pe.call(this)||this;return We.configurationService=ye,We.useAltAsMultipleSelectionModifier=ht(ye),We.registerListeners(),We}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(we)&&(ye.useAltAsMultipleSelectionModifier=ht(ye.configurationService))}))},D.prototype.isSelectionSingleChangeEvent=function(ye){return this.useAltAsMultipleSelectionModifier?ye.browserEvent.altKey:Object(re.f)(ye)},D.prototype.isSelectionRangeChangeEvent=function(ye){return Object(re.e)(ye)},D}(J.a),Ut=function(pe){Wo(D,pe);function D(ye,We){var Ze=pe.call(this)||this;return Ze.configurationService=ye,Ze.existingOpenController=We,Ze.openOnSingleClick=xt(ye),Ze.registerListeners(),Ze}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(M)&&(ye.openOnSingleClick=xt(ye.configurationService))}))},D.prototype.shouldOpen=function(ye){if(ye instanceof MouseEvent){var We=ye.button===0,Ze=ye.detail===2;return We&&!this.openOnSingleClick&&!Ze?!1:We||ye.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0},D}(J.a);function Ht(pe,D,ye){var We=new J.b,Ze=Go({},pe);if(pe.multipleSelectionSupport!==!1&&!pe.multipleSelectionController){var st=new Bt(D);Ze.multipleSelectionController=st,We.add(st)}var mt=new Ut(D,pe.openController);return Ze.openController=mt,We.add(mt),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(Xt){return ye.mightProducePrintableCharacter(Xt)}},[Ze,We]}function oo(pe,D){var ye=!1;return function(We){if(ye)return ye=!1,!1;var Ze=D.softDispatch(We,pe);return Ze&&Ze.enterChord?(ye=!0,!1):(ye=!1,!0)}}var Zt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro){var _o=this,wo=Oe(We,mt,Kt,vo,lo,Ro),jo=wo.options,Ho=wo.getAutomaticKeyboardNavigation,Do=wo.disposable;return _o=pe.call(this,ye,We,Ze,st,jo)||this,_o.disposables.add(Do),_o.internals=new rt(_o,jo,Ho,mt.overrideStyles,Kt,Xt,no,vo,Ro),_o.disposables.add(_o.internals),_o}return D=Bo([Mo(5,O.c),Mo(6,fn),Mo(7,w.c),Mo(8,H.a),Mo(9,x.a),Mo(10,Co.b)],D),D}(at),fo=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,_o){var wo=this,jo=Oe(We,Kt,Xt,lo,Ro,_o),Ho=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return wo=pe.call(this,ye,We,Ze,st,mt,Ho)||this,wo.disposables.add(xo),wo.internals=new rt(wo,Ho,Do,Kt.overrideStyles,Xt,no,vo,lo,_o),wo.disposables.add(wo.internals),wo}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,w.c),Mo(9,H.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Zo),yt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,_o){var wo=this,jo=Oe(We,Kt,Xt,lo,Ro,_o),Ho=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return wo=pe.call(this,ye,We,Ze,st,mt,Ho)||this,wo.disposables.add(xo),wo.internals=new rt(wo,Ho,Do,Kt.overrideStyles,Xt,no,vo,lo,_o),wo.disposables.add(wo.internals),wo}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,w.c),Mo(9,H.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Jt),Ue=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,_o,wo){var jo=this,Ho=Oe(We,Xt,no,Ro,_o,wo),Do=Ho.options,xo=Ho.getAutomaticKeyboardNavigation,tn=Ho.disposable;return jo=pe.call(this,ye,We,Ze,st,mt,Kt,Do)||this,jo.disposables.add(tn),jo.internals=new rt(jo,Do,xo,Xt.overrideStyles,no,vo,lo,Ro,wo),jo.disposables.add(jo.internals),jo}return D=Bo([Mo(7,O.c),Mo(8,fn),Mo(9,w.c),Mo(10,H.a),Mo(11,x.a),Mo(12,Co.b)],D),D}(Eo);function Oe(pe,D,ye,We,Ze,st){Uo.bindTo(ye),nt||(ot.bindTo(ye),nt=!0);var mt=function(){var Ho=ye.getContextKeyValue(St);return Ho&&(Ho=We.getValue(Ae)),Ho},Kt=st.isScreenReaderOptimized(),Xt=Kt?"simple":We.getValue(Z),no=typeof D.horizontalScrolling!="undefined"?D.horizontalScrolling:dt(We),vo=xt(We),lo=Ht(D,We,Ze),Ro=lo[0],_o=lo[1],wo=D.additionalScrollHeight;return{getAutomaticKeyboardNavigation:mt,disposable:_o,options:Go(Go({keyboardSupport:!1},Ro),{indent:We.getValue(xe),renderIndentGuides:We.getValue(Ne),automaticKeyboardNavigation:mt(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:no,openOnSingleClick:vo,keyboardNavigationEventFilter:oo(pe,Ze),additionalScrollHeight:wo,hideTwistiesOfChildlessElements:D.hideTwistiesOfChildlessElements})}}var rt=function(){function pe(D,ye,We,Ze,st,mt,Kt,Xt,no){var vo=this;this.tree=D,this.themeService=Kt,this.disposables=[],this.contextKeyService=Dt(st,D);var lo=yn.bindTo(this.contextKeyService);lo.set(!(ye.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=rn.bindTo(this.contextKeyService),this.hasDoubleSelection=pn.bindTo(this.contextKeyService),this.hasMultiSelection=zo.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ht(Xt);var Ro=new Set;Ro.add(St);var _o=function(){var jo=no.isScreenReaderOptimized(),Ho=jo?"simple":Xt.getValue(Z);D.updateOptions({simpleKeyboardNavigation:Ho==="simple",filterOnType:Ho==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,mt.register(D),D.onDidChangeSelection(function(){var wo=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(wo.length>0||jo.length>0),vo.hasMultiSelection.set(wo.length>1),vo.hasDoubleSelection.set(wo.length===2)}),D.onDidChangeFocus(function(){var wo=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(wo.length>0||jo.length>0)}),Xt.onDidChangeConfiguration(function(wo){if(wo.affectsConfiguration(M)&&D.updateOptions({openOnSingleClick:xt(Xt)}),wo.affectsConfiguration(we)&&(vo._useAltAsMultipleSelectionModifier=ht(Xt)),wo.affectsConfiguration(xe)){var jo=Xt.getValue(xe);D.updateOptions({indent:jo})}if(wo.affectsConfiguration(Ne)){var Ho=Xt.getValue(Ne);D.updateOptions({renderIndentGuides:Ho})}wo.affectsConfiguration(Z)&&_o(),wo.affectsConfiguration(Ae)&&D.updateOptions({automaticKeyboardNavigation:We()})}),this.contextKeyService.onDidChangeContext(function(wo){wo.affectsSome(Ro)&&D.updateOptions({automaticKeyboardNavigation:We()})}),no.onDidChangeScreenReaderOptimized(function(){return _o()}))}return pe.prototype.updateStyleOverrides=function(D){Object(J.f)(this.styler),this.styler=D?Object(y.b)(this.tree,this.themeService,D):J.a.None},pe.prototype.dispose=function(){this.disposables=Object(J.f)(this.disposables),this.styler=Object(J.f)(this.styler)},pe=Bo([Mo(4,O.c),Mo(5,fn),Mo(6,w.c),Mo(7,H.a),Mo(8,Co.b)],pe),pe}(),It=u.a.as(z.a.Configuration);It.registerConfiguration({id:"workbench",order:7,title:Object(I.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Qo={},Qo[we]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(I.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(I.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(I.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Qo[M]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(I.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Qo[P]={type:"boolean",default:!1,description:Object(I.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Qo["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(I.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(I.a)("deprecated","This setting is deprecated, please use '{0}' instead.",P)},Qo[xe]={type:"number",default:8,minimum:0,maximum:40,description:Object(I.a)("tree indent setting","Controls tree indentation in pixels.")},Qo[Ne]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(I.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Qo[Z]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(I.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(I.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(I.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(I.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Qo[Ae]={type:"boolean",default:!0,markdownDescription:Object(I.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Qo)})},kYye:function(Lt,j,e){"use strict";e.d(j,"i",function(){return H}),e.d(j,"j",function(){return z}),e.d(j,"g",function(){return y}),e.d(j,"f",function(){return w}),e.d(j,"h",function(){return v}),e.d(j,"a",function(){return _}),e.d(j,"k",function(){return p}),e.d(j,"b",function(){return s}),e.d(j,"m",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"c",function(){return m}),e.d(j,"d",function(){return E}),e.d(j,"l",function(){return L}),e.d(j,"n",function(){return k}),e.d(j,"o",function(){return R}),e.d(j,"p",function(){return $}),e.d(j,"r",function(){return ie}),e.d(j,"q",function(){return W});var T=e("3/fG"),re=e("zrhQ"),J=e("MD5Z"),I=e("t9D7"),H=Object(J.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},T.a("lineHighlight","Background color for the highlight of line at the cursor position.")),z=Object(J.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},T.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),O=Object(J.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},T.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),U=Object(J.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:J.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),x=Object(J.Tb)("editor.symbolHighlightBackground",{dark:J.t,light:J.t,hc:null},T.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),u=Object(J.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:J.b},T.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),y=Object(J.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:re.a.black,hc:re.a.white},T.a("caret","Color of the editor cursor.")),w=Object(J.Tb)("editorCursor.background",null,T.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),f=Object(J.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},T.a("editorWhitespaces","Color of whitespace characters in the editor.")),v=Object(J.Tb)("editorIndentGuide.background",{dark:f,light:f,hc:f},T.a("editorIndentGuides","Color of the editor indentation guides.")),_=Object(J.Tb)("editorIndentGuide.activeBackground",{dark:f,light:f,hc:f},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),p=Object(J.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),c=Object(J.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:J.b},T.a("editorActiveLineNumber","Color of editor active line number"),!1,T.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),s=Object(J.Tb)("editorLineNumber.activeForeground",{dark:c,light:c,hc:c},T.a("editorActiveLineNumber","Color of editor active line number")),l=Object(J.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:re.a.lightgrey,hc:re.a.white},T.a("editorRuler","Color of the editor rulers.")),d=Object(J.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},T.a("editorCodeLensForeground","Foreground color of editor code lenses")),m=Object(J.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},T.a("editorBracketMatchBackground","Background color behind matching brackets")),E=Object(J.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:J.e},T.a("editorBracketMatchBorder","Color for matching brackets boxes")),L=Object(J.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),A=Object(J.Tb)("editorGutter.background",{dark:J.o,light:J.o,hc:J.o},T.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),k=Object(J.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:re.a.fromHex("#fff").transparent(.8)},T.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),R=Object(J.Tb)("editorUnnecessaryCode.opacity",{dark:re.a.fromHex("#000a"),light:re.a.fromHex("#0007"),hc:null},T.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),$=Object(J.Tb)("editorOverviewRuler.errorForeground",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},T.a("overviewRuleError","Overview ruler marker color for errors.")),ie=Object(J.Tb)("editorOverviewRuler.warningForeground",{dark:J.P,light:J.P,hc:J.O},T.a("overviewRuleWarning","Overview ruler marker color for warnings.")),W=Object(J.Tb)("editorOverviewRuler.infoForeground",{dark:J.H,light:J.H,hc:J.G},T.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(I.e)(function(B,le){var Ce=B.getColor(J.o);Ce&&le.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Ce+"; }");var Me=B.getColor(J.x);Me&&le.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Me+"; }");var Te=B.getColor(A);Te&&le.addRule(".monaco-editor .margin { background-color: "+Te+"; }");var Fe=B.getColor(O);Fe&&le.addRule(".monaco-editor .rangeHighlight { background-color: "+Fe+"; }");var He=B.getColor(U);He&&le.addRule(".monaco-editor .rangeHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+He+"; }");var Pe=B.getColor(x);Pe&&le.addRule(".monaco-editor .symbolHighlight { background-color: "+Pe+"; }");var ne=B.getColor(u);ne&&le.addRule(".monaco-editor .symbolHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+ne+"; }");var ee=B.getColor(f);ee&&le.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(277).then(e.bind(null,"3VBA"))}})},kqbb:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ColorDetector",function(){return c});var T=e("X+cX"),re=e("zrhQ"),J=e("/cxE"),I=e("7afs"),H=e("pmY6"),z=e("sswD"),O=e("Vxe3"),U=e("aokT"),x=e("tX9W"),u=e("twdY"),y=e("ZIMw"),w=e("+7oY"),f=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),v=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},_=function(s,l){return function(d,m){l(d,m,s)}},p=500,c=function(s){f(l,s);function l(d,m,E){var L=s.call(this)||this;return L._editor=d,L._codeEditorService=m,L._configurationService=E,L._localToDispose=L._register(new H.b),L._decorationsIds=[],L._colorDatas=new Map,L._colorDecoratorIds=[],L._decorationsTypes=new Set,L._register(d.onDidChangeModel(function(A){L._isEnabled=L.isEnabled(),L.onModelChanged()})),L._register(d.onDidChangeModelLanguage(function(A){return L.onModelChanged()})),L._register(u.c.onDidChange(function(A){return L.onModelChanged()})),L._register(d.onDidChangeConfiguration(function(A){var k=L._isEnabled;L._isEnabled=L.isEnabled(),k!==L._isEnabled&&(L._isEnabled?L.onModelChanged():L.removeAllDecorations())})),L._timeoutTimer=null,L._computePromise=null,L._isEnabled=L.isEnabled(),L.onModelChanged(),L}return l.prototype.isEnabled=function(){var d=this._editor.getModel();if(!d)return!1;var m=d.getLanguageIdentifier(),E=this._configurationService.getValue(m.language);if(E){var L=E.colorDecorators;if(L&&L.enable!==void 0&&!L.enable)return L.enable}return this._editor.getOption(12)},l.get=function(d){return d.getContribution(this.ID)},l.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),s.prototype.dispose.call(this)},l.prototype.onModelChanged=function(){var d=this;if(this.stop(),!this._isEnabled)return;var m=this._editor.getModel();if(!m||!u.c.has(m))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(E){d._timeoutTimer||(d._timeoutTimer=new T.e,d._timeoutTimer.cancelAndSet(function(){d._timeoutTimer=null,d.beginCompute()},l.RECOMPUTE_TIME))})),this.beginCompute()},l.prototype.beginCompute=function(){var d=this;this._computePromise=Object(T.f)(function(m){var E=d._editor.getModel();return E?Object(y.b)(E,m):Promise.resolve([])}),this._computePromise.then(function(m){d.updateDecorations(m),d.updateColorDecorators(m),d._computePromise=null},J.e)},l.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},l.prototype.updateDecorations=function(d){var m=this,E=d.map(function(L){return{range:{startLineNumber:L.colorInfo.range.startLineNumber,startColumn:L.colorInfo.range.startColumn,endLineNumber:L.colorInfo.range.endLineNumber,endColumn:L.colorInfo.range.endColumn},options:x.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,E),this._colorDatas=new Map,this._decorationsIds.forEach(function(L,A){return m._colorDatas.set(L,d[A])})},l.prototype.updateColorDecorators=function(d){for(var m=this,E=[],L={},A=0;A0;_e--){var Re=me.charCodeAt(_e-1);if(Re===47||Re===92)break}ge=me.substr(_e)}var Ee=ae.indexOf(ge);return Ee!==-1?q[Ee]:null};he.basenames=ae,he.patterns=q,he.allBasenames=ae;var je=Pe.filter(function(Xe){return!Xe.basenames});return je.push(he),je}},lKfe:function(Lt,j,e){},"lY/7":function(Lt,j,e){"use strict";e.r(j),e.d(j,"MarkerController",function(){return he}),e.d(j,"NextMarkerAction",function(){return Xe});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),I=e("T8No"),H=e("tADe"),z=e("aokT"),O=e("sswD"),U=e("t9D7"),x=e("wQH0"),u=e("/oaI"),y=e("EffR"),w=e("MD5Z"),f=e("zrhQ"),v=e("GJhM"),_=e("3rx1"),p=e("6OMU"),c=e("iNS8"),s=e("gslv"),l=e("S3by"),d;(function(ve){function Q(C){switch(C){case l.a.Ignore:return"severity-ignore codicon-info";case l.a.Info:return"codicon-info";case l.a.Warning:return"codicon-warning";case l.a.Error:return"codicon-error"}return""}ve.className=Q})(d||(d={})),Object(U.e)(function(ve,Q){var C=ve.getColor(w.Pb);C&&Q.addRule(` +`;return De}function Ue(Q,C,F,se){Q=Q.substr(C),F=F.substr(se),console.log(Fe(le,Q,Q.length,F,F.length)),console.log(Fe(Me,Q,Q.length,F,F.length)),console.log(Fe(Ce,Q,Q.length,F,F.length))}function Pe(Q,C){if(C<0||C>=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:case 36:return!0;default:return!1}}function ne(Q,C){if(C<0||C>=Q.length)return!1;var F=Q.charCodeAt(C);switch(F){case 32:case 9:return!0;default:return!1}}function ee(Q,C,F){return C[Q]!==F[Q]}function ae(Q,C,F,se,oe,be){for(;CW?W:Q.length,Ve=se.length>W?W:se.length;if(F>=Se||be>=Ve||Se-F>Ve-be)return;if(!ae(C,F,Se,oe,be,Ve))return;var Qe=1,it=1,pt=F,Rt=be;for(Qe=1,pt=F;pt1?1:Mt),uo=le[Qe-1][it]+-1,ao=le[Qe][it-1]+-1;ao>=uo?ao>zt?(le[Qe][it]=ao,Me[Qe][it]=4):ao===zt?(le[Qe][it]=ao,Me[Qe][it]=4|2):(le[Qe][it]=zt,Me[Qe][it]=2):uo>zt?(le[Qe][it]=uo,Me[Qe][it]=1):uo===zt?(le[Qe][it]=uo,Me[Qe][it]=1|2):(le[Qe][it]=zt,Me[Qe][it]=2)}return Te&&Ue(Q,F,se,be),he=0,Xe=-100,me=be,ge=De,we(Qe-1,it-1,Se===Ve?1:0,0,!1),he===0?void 0:[Xe,je,be]}function X(Q,C,F,se,oe,be,De){return C[F]!==be[De]?-1:De===F-se||ee(De,oe,be)&&(De===0||!ee(De-1,oe,be))?Q[F]===oe[De]?7:5:Pe(be,De)&&(De===0||!Pe(be,De-1))||(Pe(be,De-1)||ne(be,De-1))?5:1}var he=0,je=0,Xe=0,me=0,ge=!1;function we(Q,C,F,se,oe){if(he>=10||F<-25)return;for(var be=0;Q>0&&C>0;){var De=Ce[Q][C],Se=Me[Q][C];if(Se===4)C-=1,oe?F-=5:se!==0&&(F-=1),oe=!1,be=0;else if(Se&2)if(Se&4&&we(Q,C-1,se!==0?F-1:F,se,oe),F+=De,Q-=1,C-=1,oe=!0,se+=Math.pow(2,C+me),De===1){if(be+=1,Q===0&&!ge)return}else F+=1+be*(De-1),be=0;else return}F-=C>=3?9:C*3,he+=1,F>Xe&&(Xe=F,je=se)}function Re(Q,C,F,se,oe,be,De){return Ee(Q,C,F,se,oe,be,!0,De)}function Ee(Q,C,F,se,oe,be,De,Se){var Ve=ue(Q,C,F,se,oe,be,Se);if(Ve&&!De)return Ve;if(Q.length>=3)for(var Qe=Math.min(7,Q.length-1),it=F+1;itVe[0])&&(Ve=Rt))}}return Ve}function ve(Q,C){if(C+1>=Q.length)return;var F=Q[C],se=Q[C+1];return F===se?void 0:Q.slice(0,C)+se+F+Q.slice(C+2)}},gCVg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("cGHE"),re=e("aokT"),J=function(){var U=function(O,H){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},U(O,H)};return function(z,O){U(z,O);function H(){this.constructor=z}z.prototype=O===null?Object.create(O):(H.prototype=O.prototype,new H)}}(),I=function(U){J(z,U);function z(O,H,x,u){var y=U.call(this,O,H,x,u)||this;return y.selectionStartLineNumber=O,y.selectionStartColumn=H,y.positionLineNumber=x,y.positionColumn=u,y}return z.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"},z.prototype.equalsSelection=function(O){return z.selectionsEqual(this,O)},z.selectionsEqual=function(O,H){return O.selectionStartLineNumber===H.selectionStartLineNumber&&O.selectionStartColumn===H.selectionStartColumn&&O.positionLineNumber===H.positionLineNumber&&O.positionColumn===H.positionColumn},z.prototype.getDirection=function(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1},z.prototype.setEndPosition=function(O,H){return this.getDirection()===0?new z(this.startLineNumber,this.startColumn,O,H):new z(O,H,this.startLineNumber,this.startColumn)},z.prototype.getPosition=function(){return new T.a(this.positionLineNumber,this.positionColumn)},z.prototype.setStartPosition=function(O,H){return this.getDirection()===0?new z(O,H,this.endLineNumber,this.endColumn):new z(this.endLineNumber,this.endColumn,O,H)},z.fromPositions=function(O,H){return H===void 0&&(H=O),new z(O.lineNumber,O.column,H.lineNumber,H.column)},z.liftSelection=function(O){return new z(O.selectionStartLineNumber,O.selectionStartColumn,O.positionLineNumber,O.positionColumn)},z.selectionsArrEqual=function(O,H){if(O&&!H||!O&&H)return!1;if(!O&&!H)return!0;if(O.length!==H.length)return!1;for(var x=0,u=O.length;x=0;W--)(ie=E[W])&&($=(R<3?ie($):R>3?ie(L,A,$):ie(L,A))||$);return R>3&&$&&Object.defineProperty(L,A,$),$},p=function(E,L){return function(A,k){L(A,k,E)}},c=function(E){v(L,E);function L(A,k,R){var $=E.call(this)||this;return $._editor=A,$._modeService=R,$._widget=null,$._register($._editor.onDidChangeModel(function(ie){return $.stop()})),$._register($._editor.onDidChangeModelLanguage(function(ie){return $.stop()})),$._register(O.B.onDidChange(function(ie){return $.stop()})),$}return L.get=function(A){return A.getContribution(L.ID)},L.prototype.dispose=function(){this.stop(),E.prototype.dispose.call(this)},L.prototype.launch=function(){if(this._widget)return;if(!this._editor.hasModel())return;this._widget=new m(this._editor,this._modeService)},L.prototype.stop=function(){this._widget&&(this._widget.dispose(),this._widget=null)},L.ID="editor.contrib.inspectTokens",L=w([p(1,u.a),p(2,x.a)],L),L}(I.a),s=function(E){v(L,E);function L(){return E.call(this,{id:"editor.action.inspectTokens",label:f.c.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})||this}return L.prototype.run=function(A,k){var R=c.get(k);R&&R.launch()},L}(z.b);function l(E){for(var L="",A=0,k=E.length;A=0;$--){var ie=k.tokens1[$];if(A.column-1>=ie.offset){R=$;break}}for(var W=0,$=k.tokens2.length>>>1;$>=0;$--)if(A.column-1>=k.tokens2[$<<1]){W=$;break}var B="",le=this._model.getLineContent(A.lineNumber),Ce="";if(R'+l(Ce)+'('+Ce.length+" "+(Ce.length===1?"char":"chars")+")",B+='
';var Fe=this._decodeMetadata(k.tokens2[(W<<1)+1]);B+='',B+='",B+='",B+='",B+='",B+='",B+="",B+='
',R'+Object(U.o)(k.tokens1[R].type)+""),this._domNode.innerHTML=B,this._editor.layoutContentWidget(this)},L.prototype._decodeMetadata=function(A){var k=O.B.getColorMap(),R=O.A.getLanguageId(A),$=O.A.getTokenType(A),ie=O.A.getFontStyle(A),W=O.A.getForeground(A),B=O.A.getBackground(A);return{languageIdentifier:this._modeService.getLanguageIdentifier(R),tokenType:$,fontStyle:ie,foreground:k[W],background:k[B]}},L.prototype._tokenTypeToString=function(A){switch(A){case 0:return"Other";case 1:return"Comment";case 2:return"String";case 4:return"RegEx"}return"??"},L.prototype._fontStyleToString=function(A){var k="";return A&1&&(k+="italic "),A&2&&(k+="bold "),A&4&&(k+="underline "),k.length===0&&(k="---"),k},L.prototype._getTokensAtLine=function(A){var k=this._getStateBeforeLine(A),R=this._tokenizationSupport.tokenize(this._model.getLineContent(A),k,0),$=this._tokenizationSupport.tokenize2(this._model.getLineContent(A),k,0);return{startState:k,tokens1:R.tokens,tokens2:$.tokens,endState:R.endState}},L.prototype._getStateBeforeLine=function(A){for(var k=this._tokenizationSupport.getInitialState(),R=1;R1&&l.scheme===U.b.file?d="//"+l.authority+m:z.h&&m.charCodeAt(0)===47&&T.b(m.charCodeAt(1))&&m.charCodeAt(2)===58?d=m.substr(1):d=m,z.h&&(d=d.replace(/\//g,"\\")),d}function c(l,d,m){if(m===void 0&&(m=H(l)),l.scheme!==d.scheme||!u(l.authority,d.authority))return;if(l.scheme===U.b.file){var E=re.relative(l.path,d.path);return z.h?T.c(E):E}var L=l.path||"/",A=d.path||"/";if(m){for(var k=0,R=Math.min(L.length,A.length);k0&&B[B.length-1])&&(Te[0]===6||Te[0]===2)){$=0;continue}if(Te[0]===3&&(!B||Te[1]>B[0]&&Te[1]>>0,new T.c(f,y===null?I:y)}},"i/Rh":function(Lt,j,e){},i04g:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return I});var T=e("3/fG"),re=function(){function z(O,H,x){x===void 0&&(x=H),this.modifierLabels=[null],this.modifierLabels[2]=O,this.modifierLabels[1]=H,this.modifierLabels[3]=x}return z.prototype.toLabel=function(O,H,x){if(H.length===0)return null;for(var u=[],y=0,_=H.length;y<_;y++){var f=H[y],v=x(f);if(v===null)return null;u[y]=U(f,v,this.modifierLabels[O])}return u.join(" ")},z}(),J=new re({ctrlKey:"\u2303",shiftKey:"\u21E7",altKey:"\u2325",metaKey:"\u2318",separator:""},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:T.a({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"}),I=new re({ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:T.a({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:T.a({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:T.a({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:T.a({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function U(z,O,H){if(O===null)return"";var x=[];return z.ctrlKey&&x.push(H.ctrlKey),z.shiftKey&&x.push(H.shiftKey),z.altKey&&x.push(H.altKey),z.metaKey&&x.push(H.metaKey),x.push(O),x.join(H.separator)}},iDAx:function(Lt,j,e){"use strict";e.d(j,"b",function(){return v}),e.d(j,"a",function(){return m}),e.d(j,"d",function(){return Me}),e.d(j,"c",function(){return Te});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),I=e("qj0h"),U=e("6OMU"),z=e("/UlZ"),O=e("Yr1X"),H=e("+3Gp"),x=e("CRAX"),u=e("ic2d"),y=e("vl9R"),_=function(){var Fe=function(Pe,ne){return Fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,ae){ee.__proto__=ae}||function(ee,ae){for(var q in ae)ae.hasOwnProperty(q)&&(ee[q]=ae[q])},Fe(Pe,ne)};return function(Ue,Pe){Fe(Ue,Pe);function ne(){this.constructor=Ue}Ue.prototype=Pe===null?Object.create(Pe):(ne.prototype=Pe.prototype,new ne)}}(),f=function(){return f=Object.assign||function(Fe){for(var Ue,Pe=1,ne=arguments.length;Pe0&&C.minimapLeft===0?C.minimapWidth:0},Q.prototype._onViewZoneTop=function(C){this.domNode.style.top=C+"px"},Q.prototype._onViewZoneHeight=function(C){if(this.domNode.style.height=C+"px",this.container){var F=C-this._decoratingElementsHeight();this.container.style.height=F+"px";var se=this.editor.getLayoutInfo();this._doLayout(F,this._getWidth(se))}this._resizeSash&&this._resizeSash.layout()},Object.defineProperty(Q.prototype,"position",{get:function(){var F=this._positionMarkerId[0];if(!F)return;var se=this.editor.getModel();if(!se)return;var oe=se.getDecorationRange(F);return oe?oe.getStartPosition():void 0},enumerable:!0,configurable:!0}),Q.prototype.show=function(C,F){var se=w.a.isIRange(C)?w.a.lift(C):w.a.fromPositions(C);this._isShowing=!0,this._showImpl(se,F),this._isShowing=!1,this._positionMarkerId=this.editor.deltaDecorations(this._positionMarkerId,[{range:se,options:p.a.EMPTY}])},Q.prototype.hide=function(){var C=this;this._viewZone&&(this.editor.changeViewZones(function(F){C._viewZone&&F.removeZone(C._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._arrow&&this._arrow.hide()},Q.prototype._decoratingElementsHeight=function(){var C=this.editor.getOption(49),F=0;if(this.options.showArrow){var se=Math.round(C/3);F+=2*se}if(this.options.showFrame){var oe=Math.round(C/9);F+=2*oe}return F},Q.prototype._showImpl=function(C,F){var se=this,oe=C.getStartPosition(),be=this.editor.getLayoutInfo(),De=this._getWidth(be);this.domNode.style.width=De+"px",this.domNode.style.left=this._getLeft(be)+"px";var Se=document.createElement("div");Se.style.overflow="hidden";var Ve=this.editor.getOption(49),Qe=this.editor.getLayoutInfo().height/Ve*.8;F>=Qe&&(F=Qe);var it=0,pt=0;if(this._arrow&&this.options.showArrow&&(it=Math.round(Ve/3),this._arrow.height=it,this._arrow.show(oe)),this.options.showFrame&&(pt=Math.round(Ve/9)),this.editor.changeViewZones(function(ao){se._viewZone&&ao.removeZone(se._viewZone.id),se._overlayWidget&&(se.editor.removeOverlayWidget(se._overlayWidget),se._overlayWidget=null),se.domNode.style.top="-1000px",se._viewZone=new d(Se,oe.lineNumber,oe.column,F,function(so){return se._onViewZoneTop(so)},function(so){return se._onViewZoneHeight(so)}),se._viewZone.id=ao.addZone(se._viewZone),se._overlayWidget=new m(l+se._viewZone.id,se.domNode),se.editor.addOverlayWidget(se._overlayWidget)}),this.container&&this.options.showFrame){var Rt=this.options.frameWidth?this.options.frameWidth:pt;this.container.style.borderTopWidth=Rt+"px",this.container.style.borderBottomWidth=Rt+"px"}var Mt=F*Ve-this._decoratingElementsHeight();this.container&&(this.container.style.top=it+"px",this.container.style.height=Mt+"px",this.container.style.overflow="hidden"),this._doLayout(Mt,De),this.options.keepEditorSelection||this.editor.setSelection(C);var zt=this.editor.getModel();if(zt){var uo=C.endLineNumber+1;uo<=zt.getLineCount()?this.revealLine(uo,!1):this.revealLine(zt.getLineCount(),!0)}},Q.prototype.revealLine=function(C,F){F?this.editor.revealLineInCenter(C,0):this.editor.revealLine(C,0)},Q.prototype.setCssClass=function(C,F){if(!this.container)return;F&&this.container.classList.remove(F),re.f(this.container,C)},Q.prototype._onWidth=function(C){},Q.prototype._doLayout=function(C,F){},Q.prototype._relayout=function(C){var F=this;this._viewZone&&this._viewZone.heightInLines!==C&&this.editor.changeViewZones(function(se){F._viewZone&&(F._viewZone.heightInLines=C,se.layoutZone(F._viewZone.id))})},Q.prototype._initSash=function(){var C=this;if(this._resizeSash)return;this._resizeSash=this._disposables.add(new _.a(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.hide(),this._resizeSash.state=0);var F;this._disposables.add(this._resizeSash.onDidStart(function(se){C._viewZone&&(F={startY:se.startY,heightInLines:C._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(function(){F=void 0})),this._disposables.add(this._resizeSash.onDidChange(function(se){if(F){var oe=(se.currentY-F.startY)/C.editor.getOption(49),be=oe<0?Math.ceil(oe):Math.floor(oe),De=F.heightInLines+be;De>5&&De<35&&C._relayout(De)}}))},Q.prototype.getHorizontalSashLeft=function(){return 0},Q.prototype.getHorizontalSashTop=function(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2},Q.prototype.getHorizontalSashWidth=function(){var C=this.editor.getLayoutInfo();return C.width-C.minimapWidth},Q}(),A=e("3/fG"),k=e("T8No"),R=e("Cg/j"),$=e("9fML"),ie=e("sswD"),W=e("MD5Z"),B=function(){var Q=function(F,se){return Q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(oe,be){oe.__proto__=be}||function(oe,be){for(var De in be)be.hasOwnProperty(De)&&(oe[De]=be[De])},Q(F,se)};return function(C,F){Q(C,F);function se(){this.constructor=C}C.prototype=F===null?Object.create(F):(se.prototype=F.prototype,new se)}}(),le=function(Q,C,F,se){var oe=arguments.length,be=oe<3?C:se===null?se=Object.getOwnPropertyDescriptor(C,F):se,De;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")be=Reflect.decorate(Q,C,F,se);else for(var Se=Q.length-1;Se>=0;Se--)(De=Q[Se])&&(be=(oe<3?De(be):oe>3?De(C,F,be):De(C,F))||be);return oe>3&&be&&Object.defineProperty(C,F,be),be},Ce=function(Q,C){return function(F,se){C(F,se,Q)}},Me=Object(R.c)("IPeekViewService");Object($.b)(Me,function(){function Q(){this._widgets=new Map}return Q.prototype.addExclusiveWidget=function(C,F){var se=this,oe=this._widgets.get(C);oe&&(oe.listener.dispose(),oe.widget.dispose());var be=function(){var Se=se._widgets.get(C);Se&&Se.widget===F&&(Se.listener.dispose(),se._widgets.delete(C))};this._widgets.set(C,{widget:F,listener:F.onDidClose(be)})},Q}());var Te;(function(Q){Q.inPeekEditor=new k.d("inReferenceSearchEditor",!0),Q.notInPeekEditor=Q.inPeekEditor.toNegated()})(Te||(Te={}));var Fe=function(){function Q(C,F){C instanceof u.a&&Te.inPeekEditor.bindTo(F)}return Q.prototype.dispose=function(){},Q.ID="editor.contrib.referenceController",Q=le([Ce(1,k.c)],Q),Q}();Object(ie.h)(Fe.ID,Fe);function Ue(Q){var C=Q.get(x.a).getFocusedCodeEditor();return C instanceof u.a?C.getParentEditor():C}var Pe={headerBackgroundColor:U.a.white,primaryHeadingColor:U.a.fromHex("#333333"),secondaryHeadingColor:U.a.fromHex("#6c6c6cb3")},ne=function(Q){B(C,Q);function C(F,se){se===void 0&&(se={});var oe=Q.call(this,F,se)||this;return oe._onDidClose=new z.a,oe.onDidClose=oe._onDidClose.event,O.g(oe.options,Pe,!1),oe}return C.prototype.dispose=function(){Q.prototype.dispose.call(this),this._onDidClose.fire(this)},C.prototype.style=function(F){var se=this.options;F.headerBackgroundColor&&(se.headerBackgroundColor=F.headerBackgroundColor),F.primaryHeadingColor&&(se.primaryHeadingColor=F.primaryHeadingColor),F.secondaryHeadingColor&&(se.secondaryHeadingColor=F.secondaryHeadingColor),Q.prototype.style.call(this,F)},C.prototype._applyStyles=function(){Q.prototype._applyStyles.call(this);var F=this.options;this._headElement&&F.headerBackgroundColor&&(this._headElement.style.backgroundColor=F.headerBackgroundColor.toString()),this._primaryHeading&&F.primaryHeadingColor&&(this._primaryHeading.style.color=F.primaryHeadingColor.toString()),this._secondaryHeading&&F.secondaryHeadingColor&&(this._secondaryHeading.style.color=F.secondaryHeadingColor.toString()),this._bodyElement&&F.frameColor&&(this._bodyElement.style.borderColor=F.frameColor.toString())},C.prototype._fillContainer=function(F){this.setCssClass("peekview-widget"),this._headElement=re.a(".head"),this._bodyElement=re.a(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),F.appendChild(this._headElement),F.appendChild(this._bodyElement)},C.prototype._fillHead=function(F){var se=this,oe=re.a(".peekview-title");re.q(this._headElement,oe),re.o(oe,"click",function(Se){return se._onTitleClick(Se)}),this._fillTitleIcon(oe),this._primaryHeading=re.a("span.filename"),this._secondaryHeading=re.a("span.dirname"),this._metaHeading=re.a("span.meta"),re.q(oe,this._primaryHeading,this._secondaryHeading,this._metaHeading);var be=re.a(".peekview-actions");re.q(this._headElement,be);var De=this._getActionBarOptions();this._actionbarWidget=new J.a(be,De),this._disposables.add(this._actionbarWidget),this._actionbarWidget.push(new I.a("peekview.close",A.a("label.close","Close"),"codicon-close",!0,function(){return se.dispose(),Promise.resolve()}),{label:!1,icon:!0})},C.prototype._fillTitleIcon=function(F){},C.prototype._getActionBarOptions=function(){return{}},C.prototype._onTitleClick=function(F){},C.prototype.setTitle=function(F,se){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerHTML=H.o(F),this._primaryHeading.setAttribute("aria-label",F),se?this._secondaryHeading.innerHTML=H.o(se):re.t(this._secondaryHeading))},C.prototype.setMetaTitle=function(F){this._metaHeading&&(F?(this._metaHeading.innerHTML=H.o(F),re.X(this._metaHeading)):re.J(this._metaHeading))},C.prototype._doLayout=function(F,se){if(!this._isShowing&&F<0){this.dispose();return}var oe=Math.ceil(this.editor.getOption(49)*1.2),be=Math.round(F-(oe+2));this._doLayoutHead(oe,se),this._doLayoutBody(be,se)},C.prototype._doLayoutHead=function(F,se){this._headElement&&(this._headElement.style.height=F+"px",this._headElement.style.lineHeight=this._headElement.style.height)},C.prototype._doLayoutBody=function(F,se){this._bodyElement&&(this._bodyElement.style.height=F+"px")},C}(L),ee=Object(W.Tb)("peekViewTitle.background",{dark:"#1E1E1E",light:"#FFFFFF",hc:"#0C141F"},A.a("peekViewTitleBackground","Background color of the peek view title area.")),ae=Object(W.Tb)("peekViewTitleLabel.foreground",{dark:"#FFFFFF",light:"#333333",hc:"#FFFFFF"},A.a("peekViewTitleForeground","Color of the peek view title.")),q=Object(W.Tb)("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161e6",hc:"#FFFFFF99"},A.a("peekViewTitleInfoForeground","Color of the peek view title info.")),ue=Object(W.Tb)("peekView.border",{dark:"#007acc",light:"#007acc",hc:W.e},A.a("peekViewBorder","Color of the peek view borders and arrow.")),X=Object(W.Tb)("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hc:U.a.black},A.a("peekViewResultsBackground","Background color of the peek view result list.")),he=Object(W.Tb)("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hc:U.a.white},A.a("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),je=Object(W.Tb)("peekViewResult.fileForeground",{dark:U.a.white,light:"#1E1E1E",hc:U.a.white},A.a("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Xe=Object(W.Tb)("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hc:null},A.a("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),me=Object(W.Tb)("peekViewResult.selectionForeground",{dark:U.a.white,light:"#6C6C6C",hc:U.a.white},A.a("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),ge=Object(W.Tb)("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hc:U.a.black},A.a("peekViewEditorBackground","Background color of the peek view editor.")),we=Object(W.Tb)("peekViewEditorGutter.background",{dark:ge,light:ge,hc:ge},A.a("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Re=Object(W.Tb)("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hc:null},A.a("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ee=Object(W.Tb)("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hc:null},A.a("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),ve=Object(W.Tb)("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hc:W.b},A.a("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))},ic2d:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("746U"),re=e("FWmy"),J=function(){function U(){this.data=new Map}return U.prototype.add=function(z,O){re.a(T.j(z)),re.a(T.i(O)),re.a(!this.data.has(z),"There is already an extension with this id"),this.data.set(z,O)},U.prototype.as=function(z){return this.data.get(z)||null},U}(),I=new J},"ij/i":function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile"],aliases:["Ruby","rb"],loader:function(){return e.e(314).then(e.bind(null,"3MdH"))}})},iuje:function(Lt,j,e){"use strict";e.d(j,"c",function(){return T}),e.d(j,"a",function(){return re}),e.d(j,"b",function(){return J});function T(I){return I&&typeof I.id=="string"}var re={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"},J={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"}},j2o1:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:function(){return e.e(306).then(e.bind(null,"ppMK"))}})},"jAJ/":function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"d",function(){return u}),e.d(j,"c",function(){return _}),e.d(j,"e",function(){return w}),e.d(j,"b",function(){return p});var T=e("N0LK"),re=e("5v8Y"),J=e("cGHE"),I=e("aokT"),U=e("M1Kb"),z=999,O=function(){function c(s,l,d,m){this.searchString=s,this.isRegex=l,this.matchCase=d,this.wordSeparators=m}return c.prototype.parseSearchRequest=function(){if(this.searchString==="")return null;var s;this.isRegex?s=H(this.searchString):s=this.searchString.indexOf(` +`)>=0;var l=null;try{l=T.l(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:s,global:!0,unicode:!0})}catch(m){return null}if(!l)return null;var d=!this.isRegex&&!s;return d&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(d=this.matchCase),new x(l,this.wordSeparators?Object(re.a)(this.wordSeparators):null,d?this.searchString:null)},c}();function H(c){if(!c||c.length===0)return!1;for(var s=0,l=c.length;s=l)break;var m=c.charCodeAt(s);if(m===110||m===114||m===87||m===119)return!0}}return!1}var x=function(){function c(s,l,d){this.regex=s,this.wordSeparators=l,this.simpleSearch=d}return c}();function u(c,s,l){if(!l)return new U.b(c,null);for(var d=[],m=0,E=s.length;m>0);l[E]>=s?m=E-1:l[E+1]>=s?(d=E,m=E):d=E+1}return d+1},c}(),_=function(){function c(){}return c.findMatches=function(s,l,d,m,E){var L=l.parseSearchRequest();return L?L.regex.multiline?this._doFindMatchesMultiline(s,d,new p(L.wordSeparators,L.regex),m,E):this._doFindMatchesLineByLine(s,d,L,m,E):[]},c._getMultilineMatchRange=function(s,l,d,m,E,L){var A,k=0;m?(k=m.findLineFeedCountBeforeOffset(E),A=l+E+k):A=l+E;var R;if(m){var $=m.findLineFeedCountBeforeOffset(E+L.length),ie=$-k;R=A+L.length+ie}else R=A+L.length;var W=s.getPositionAt(A),B=s.getPositionAt(R);return new I.a(W.lineNumber,W.column,B.lineNumber,B.column)},c._doFindMatchesMultiline=function(s,l,d,m,E){var L=s.getOffsetAt(l.getStartPosition()),A=s.getValueInRange(l,1),k=s.getEOL()===`\r +`?new y(A):null,R=[],$=0,ie;for(d.reset(0);ie=d.next(A);)if(R[$++]=u(this._getMultilineMatchRange(s,L,A,k,ie.index,ie[0]),ie,m),$>=E)return R;return R},c._doFindMatchesLineByLine=function(s,l,d,m,E){var L=[],A=0;if(l.startLineNumber===l.endLineNumber){var k=s.getLineContent(l.startLineNumber).substring(l.startColumn-1,l.endColumn-1);return A=this._findMatchesInLine(d,k,l.startLineNumber,l.startColumn-1,A,L,m,E),L}var R=s.getLineContent(l.startLineNumber).substring(l.startColumn-1);A=this._findMatchesInLine(d,R,l.startLineNumber,l.startColumn-1,A,L,m,E);for(var $=l.startLineNumber+1;$=k))return E;return E}var le=new p(s.wordSeparators,s.regex),Ce;le.reset(0);do if(Ce=le.next(l),Ce&&(L[E++]=u(new I.a(d,Ce.index+1+m,d,Ce.index+1+Ce[0].length+m),Ce,A),E>=k))return E;while(Ce);return E},c.findNextMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindNextMatchMultiline(s,d,L,m):this._doFindNextMatchLineByLine(s,d,L,m)},c._doFindNextMatchMultiline=function(s,l,d,m){var E=new J.a(l.lineNumber,1),L=s.getOffsetAt(E),A=s.getLineCount(),k=s.getValueInRange(new I.a(E.lineNumber,E.column,A,s.getLineMaxColumn(A)),1),R=s.getEOL()===`\r +`?new y(k):null;d.reset(l.column-1);var $=d.next(k);return $?u(this._getMultilineMatchRange(s,L,k,R,$.index,$[0]),$,m):l.lineNumber!==1||l.column!==1?this._doFindNextMatchMultiline(s,new J.a(1,1),d,m):null},c._doFindNextMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L),k=this._findFirstMatchInLine(d,A,L,l.column,m);if(k)return k;for(var R=1;R<=E;R++){var $=(L+R-1)%E,ie=s.getLineContent($+1),W=this._findFirstMatchInLine(d,ie,$+1,1,m);if(W)return W}return null},c._findFirstMatchInLine=function(s,l,d,m,E){s.reset(m-1);var L=s.next(l);return L?u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,E):null},c.findPreviousMatch=function(s,l,d,m){var E=l.parseSearchRequest();if(!E)return null;var L=new p(E.wordSeparators,E.regex);return E.regex.multiline?this._doFindPreviousMatchMultiline(s,d,L,m):this._doFindPreviousMatchLineByLine(s,d,L,m)},c._doFindPreviousMatchMultiline=function(s,l,d,m){var E=this._doFindMatchesMultiline(s,new I.a(1,1,l.lineNumber,l.column),d,m,10*z);if(E.length>0)return E[E.length-1];var L=s.getLineCount();return l.lineNumber!==L||l.column!==s.getLineMaxColumn(L)?this._doFindPreviousMatchMultiline(s,new J.a(L,s.getLineMaxColumn(L)),d,m):null},c._doFindPreviousMatchLineByLine=function(s,l,d,m){var E=s.getLineCount(),L=l.lineNumber,A=s.getLineContent(L).substring(0,l.column-1),k=this._findLastMatchInLine(d,A,L,m);if(k)return k;for(var R=1;R<=E;R++){var $=(E+L-R-1)%E,ie=s.getLineContent($+1),W=this._findLastMatchInLine(d,ie,$+1,m);if(W)return W}return null},c._findLastMatchInLine=function(s,l,d,m){var E=null,L;for(s.reset(0);L=s.next(l);)E=u(new I.a(d,L.index+1,d,L.index+1+L[0].length),L,m);return E},c}();function f(c,s,l,d,m){if(d===0)return!0;var E=s.charCodeAt(d-1);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d);if(c.get(L)!==0)return!0}return!1}function v(c,s,l,d,m){if(d+m===l)return!0;var E=s.charCodeAt(d+m);if(c.get(E)!==0)return!0;if(E===13||E===10)return!0;if(m>0){var L=s.charCodeAt(d+m-1);if(c.get(L)!==0)return!0}return!1}function w(c,s,l,d,m){return f(c,s,l,d,m)&&v(c,s,l,d,m)}var p=function(){function c(s,l){this._wordSeparators=s,this._searchRegex=l,this._prevMatchStartIndex=-1,this._prevMatchLength=0}return c.prototype.reset=function(s){this._searchRegex.lastIndex=s,this._prevMatchStartIndex=-1,this._prevMatchLength=0},c.prototype.next=function(s){var l=s.length,d;do{if(this._prevMatchStartIndex+this._prevMatchLength===l)return null;if(d=this._searchRegex.exec(s),!d)return null;var m=d.index,E=d[0].length;if(m===this._prevMatchStartIndex&&E===this._prevMatchLength){if(E===0){this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=m,this._prevMatchLength=E,!this._wordSeparators||w(this._wordSeparators,s,l,m,E))return d}while(d);return null},c}()},jVwG:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:function(){return e.e(298).then(e.bind(null,"fYNN"))}})},jqj9:function(Lt,j,e){"use strict";var T=e("yI7H"),re=e.n(T),J=e("ujyM"),I=e.n(J),U=e("3/fG"),z=e("t9D7"),O=e("MD5Z"),H=Object(O.Tb)("symbolIcon.arrayForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),x=Object(O.Tb)("symbolIcon.booleanForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),u=Object(O.Tb)("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),y=Object(O.Tb)("symbolIcon.colorForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_=Object(O.Tb)("symbolIcon.constantForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),f=Object(O.Tb)("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),v=Object(O.Tb)("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),w=Object(O.Tb)("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),p=Object(O.Tb)("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hc:"#EE9D28"},Object(U.a)("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),c=Object(O.Tb)("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),s=Object(O.Tb)("symbolIcon.fileForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),l=Object(O.Tb)("symbolIcon.folderForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),d=Object(O.Tb)("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),m=Object(O.Tb)("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),E=Object(O.Tb)("symbolIcon.keyForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),L=Object(O.Tb)("symbolIcon.keywordForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),A=Object(O.Tb)("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hc:"#B180D7"},Object(U.a)("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),k=Object(O.Tb)("symbolIcon.moduleForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),R=Object(O.Tb)("symbolIcon.namespaceForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),$=Object(O.Tb)("symbolIcon.nullForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ie=Object(O.Tb)("symbolIcon.numberForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),W=Object(O.Tb)("symbolIcon.objectForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),B=Object(O.Tb)("symbolIcon.operatorForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),le=Object(O.Tb)("symbolIcon.packageForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ce=Object(O.Tb)("symbolIcon.propertyForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Me=Object(O.Tb)("symbolIcon.referenceForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Te=Object(O.Tb)("symbolIcon.snippetForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Fe=Object(O.Tb)("symbolIcon.stringForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Ue=Object(O.Tb)("symbolIcon.structForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),Pe=Object(O.Tb)("symbolIcon.textForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ne=Object(O.Tb)("symbolIcon.typeParameterForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ee=Object(O.Tb)("symbolIcon.unitForeground",{dark:O.W,light:O.W,hc:O.W},Object(U.a)("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ae=Object(O.Tb)("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hc:"#75BEFF"},Object(U.a)("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."));Object(z.e)(function(q,ue){var X=q.getColor(H);X&&ue.addRule(".codicon-symbol-array { color: "+X+" !important; }");var he=q.getColor(x);he&&ue.addRule(".codicon-symbol-boolean { color: "+he+" !important; }");var je=q.getColor(u);je&&ue.addRule(".codicon-symbol-class { color: "+je+" !important; }");var Xe=q.getColor(A);Xe&&ue.addRule(".codicon-symbol-method { color: "+Xe+" !important; }");var me=q.getColor(y);me&&ue.addRule(".codicon-symbol-color { color: "+me+" !important; }");var ge=q.getColor(_);ge&&ue.addRule(".codicon-symbol-constant { color: "+ge+" !important; }");var we=q.getColor(f);we&&ue.addRule(".codicon-symbol-constructor { color: "+we+" !important; }");var Re=q.getColor(v);Re&&ue.addRule(` + .codicon-symbol-value,.codicon-symbol-enum { color: `+Re+" !important; }");var Ee=q.getColor(w);Ee&&ue.addRule(".codicon-symbol-enum-member { color: "+Ee+" !important; }");var ve=q.getColor(p);ve&&ue.addRule(".codicon-symbol-event { color: "+ve+" !important; }");var Q=q.getColor(c);Q&&ue.addRule(".codicon-symbol-field { color: "+Q+" !important; }");var C=q.getColor(s);C&&ue.addRule(".codicon-symbol-file { color: "+C+" !important; }");var F=q.getColor(l);F&&ue.addRule(".codicon-symbol-folder { color: "+F+" !important; }");var se=q.getColor(d);se&&ue.addRule(".codicon-symbol-function { color: "+se+" !important; }");var oe=q.getColor(m);oe&&ue.addRule(".codicon-symbol-interface { color: "+oe+" !important; }");var be=q.getColor(E);be&&ue.addRule(".codicon-symbol-key { color: "+be+" !important; }");var De=q.getColor(L);De&&ue.addRule(".codicon-symbol-keyword { color: "+De+" !important; }");var Se=q.getColor(k);Se&&ue.addRule(".codicon-symbol-module { color: "+Se+" !important; }");var Ve=q.getColor(R);Ve&&ue.addRule(".codicon-symbol-namespace { color: "+Ve+" !important; }");var Qe=q.getColor($);Qe&&ue.addRule(".codicon-symbol-null { color: "+Qe+" !important; }");var it=q.getColor(ie);it&&ue.addRule(".codicon-symbol-number { color: "+it+" !important; }");var pt=q.getColor(W);pt&&ue.addRule(".codicon-symbol-object { color: "+pt+" !important; }");var Rt=q.getColor(B);Rt&&ue.addRule(".codicon-symbol-operator { color: "+Rt+" !important; }");var Mt=q.getColor(le);Mt&&ue.addRule(".codicon-symbol-package { color: "+Mt+" !important; }");var zt=q.getColor(Ce);zt&&ue.addRule(".codicon-symbol-property { color: "+zt+" !important; }");var uo=q.getColor(Me);uo&&ue.addRule(".codicon-symbol-reference { color: "+uo+" !important; }");var ao=q.getColor(Te);ao&&ue.addRule(".codicon-symbol-snippet { color: "+ao+" !important; }");var so=q.getColor(Fe);so&&ue.addRule(".codicon-symbol-string { color: "+so+" !important; }");var Pt=q.getColor(Ue);Pt&&ue.addRule(".codicon-symbol-struct { color: "+Pt+" !important; }");var ft=q.getColor(Pe);ft&&ue.addRule(".codicon-symbol-text { color: "+ft+" !important; }");var vt=q.getColor(ne);vt&&ue.addRule(".codicon-symbol-type-parameter { color: "+vt+" !important; }");var At=q.getColor(ee);At&&ue.addRule(".codicon-symbol-unit { color: "+At+" !important; }");var at=q.getColor(ae);at&&ue.addRule(".codicon-symbol-variable { color: "+at+" !important; }")})},jrbv:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:function(){return e.e(279).then(e.bind(null,"2ZXa"))}})},k76M:function(Lt,j,e){"use strict";var T=e("XNtB"),re=e.n(T),J=e("epnl"),I=e.n(J)},k7mE:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:function(){return e.e(290).then(e.bind(null,"BjZ/"))}})},k7pc:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ToggleTabFocusModeAction",function(){return z});var T=e("3/fG"),re=e("OBOq"),J=e("sswD"),I=e("iDAx"),U=function(){var O=function(x,u){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,_){y.__proto__=_}||function(y,_){for(var f in _)_.hasOwnProperty(f)&&(y[f]=_[f])},O(x,u)};return function(H,x){O(H,x);function u(){this.constructor=H}H.prototype=x===null?Object.create(x):(u.prototype=x.prototype,new u)}}(),z=function(O){U(H,O);function H(){return O.call(this,{id:H.ID,label:T.a({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),alias:"Toggle Tab Key Moves Focus",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|43,mac:{primary:256|1024|43},weight:100}})||this}return H.prototype.run=function(x,u){var y=I.b.getTabFocusMode(),_=!y;I.b.setTabFocusMode(_),_?Object(re.a)(T.a("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Object(re.a)(T.a("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))},H.ID="editor.action.toggleTabFocusMode",H}(J.b);Object(J.f)(z)},k9mg:function(Lt,j,e){"use strict";e.d(j,"a",function(){return fn}),e.d(j,"b",function(){return Vo}),e.d(j,"d",function(){return dn}),e.d(j,"c",function(){return yt});var T=e("EffR"),re=e("cqdO"),J=e("pmY6"),I=e("3/fG"),U=e("+7oY"),z=e("CRAX"),O=e("T8No"),H=e("Cg/j"),x=e("bexQ"),u=e("ic2d"),y=e("ptcw"),_=e("t9D7"),f="inputFocus",v=e("2V9f"),w=e("MI8n"),p=e("uDWl"),c=e("ZQ78"),s=e("6OMU"),l=e("feEw"),d=e("4y0V"),m=e("fpMC"),E=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),L=function(pe){E(D,pe);function D(ye,We){return pe.call(this,"TreeError ["+ye+"] "+We)||this}return D}(Error),A=function(){function pe(D){this.fn=D,this._map=new WeakMap}return pe.prototype.map=function(D){var ye=this._map.get(D);return ye||(ye=this.fn(D),this._map.set(D,ye)),ye},pe}(),k=e("JYp7"),R=function(){for(var pe=0,D=0,ye=arguments.length;D=0&&Do0&&st){var bi=function kn(Qn){st(Qn),Qn.children.forEach(kn)};on.forEach(bi)}this._onDidSplice.fire({insertedNodes:tn,deletedNodes:on})},pe.prototype.rerender=function(D){if(D.length===0)throw new L(this.user,"Invalid tree location");var ye=this.getTreeNodeWithListIndex(D),We=ye.node,Ze=ye.listIndex,st=ye.revealed;st&&this.list.splice(Ze,1,[We])},pe.prototype.has=function(D){return this.hasTreeNode(D)},pe.prototype.getListIndex=function(D){var ye=this.getTreeNodeWithListIndex(D),We=ye.listIndex,Ze=ye.visible,st=ye.revealed;return Ze&&st?We:-1},pe.prototype.getListRenderCount=function(D){return this.getTreeNode(D).renderNodeCount},pe.prototype.isCollapsible=function(D){return this.getTreeNode(D).collapsible},pe.prototype.setCollapsible=function(D,ye){var We=this,Ze=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!Ze.collapsible);var st={collapsible:ye};return this.eventBufferer.bufferEvents(function(){return We._setCollapseState(D,st)})},pe.prototype.isCollapsed=function(D){return this.getTreeNode(D).collapsed},pe.prototype.setCollapsed=function(D,ye,We){var Ze=this,st=this.getTreeNode(D);typeof ye=="undefined"&&(ye=!st.collapsed);var mt={collapsed:ye,recursive:We||!1};return this.eventBufferer.bufferEvents(function(){return Ze._setCollapseState(D,mt)})},pe.prototype._setCollapseState=function(D,ye){var We=this.getTreeNodeWithListIndex(D),Ze=We.node,st=We.listIndex,mt=We.revealed,Kt=this._setListNodeCollapseState(Ze,st,mt,ye);if(Ze!==this.root&&this.autoExpandSingleChildren&&Kt&&!W(ye)&&Ze.collapsible&&!Ze.collapsed&&!ye.recursive){for(var Xt=-1,no=0;no-1){Xt=-1;break}else Xt=no}Xt>-1&&this._setCollapseState(R(D,[Xt]),ye)}return Kt},pe.prototype._setListNodeCollapseState=function(D,ye,We,Ze){var st=this._setNodeCollapseState(D,Ze,!1);if(!We||!D.visible||!st)return st;var mt=D.renderNodeCount,Kt=this.updateNodeAfterCollapseChange(D),Xt=mt-(ye===-1?0:1);return this.list.splice(ye+1,Xt,Kt.slice(1)),st},pe.prototype._setNodeCollapseState=function(D,ye,We){var Ze;if(D===this.root?Ze=!1:(W(ye)?(Ze=D.collapsible!==ye.collapsible,D.collapsible=ye.collapsible):D.collapsible?(Ze=D.collapsed!==ye.collapsed,D.collapsed=ye.collapsed):Ze=!1,Ze&&this._onDidChangeCollapseState.fire({node:D,deep:We})),!W(ye)&&ye.recursive)for(var st=0,mt=D.children;st0,Xt.visibleChildrenCount=wo,Xt.visible=no===2?wo>0:no===1,Xt.visible?Xt.collapsed||(Xt.renderNodeCount=_o):(Xt.renderNodeCount=0,Ze&&st.pop()),mt&&mt(Xt),Xt},pe.prototype.updateNodeAfterCollapseChange=function(D){var ye=D.renderNodeCount,We=[];return this._updateNodeAfterCollapseChange(D,We),this._updateAncestorsRenderNodeCount(D.parent,We.length-ye),We},pe.prototype._updateNodeAfterCollapseChange=function(D,ye){if(D.visible===!1)return 0;if(ye.push(D),D.renderNodeCount=1,!D.collapsed)for(var We=0,Ze=D.children;Weye.children.length?!1:this.hasTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNode=function(D,ye){if(ye===void 0&&(ye=this.root),!D||D.length===0)return ye;var We=D[0],Ze=D.slice(1);if(We<0||We>ye.children.length)throw new L(this.user,"Invalid tree location");return this.getTreeNode(Ze,ye.children[We])},pe.prototype.getTreeNodeWithListIndex=function(D){if(D.length===0)return{node:this.root,listIndex:-1,revealed:!0,visible:!1};var ye=this.getParentNodeWithListIndex(D),We=ye.parentNode,Ze=ye.listIndex,st=ye.revealed,mt=ye.visible,Kt=D[D.length-1];if(Kt<0||Kt>We.children.length)throw new L(this.user,"Invalid tree location");var Xt=We.children[Kt];return{node:Xt,listIndex:Ze,revealed:st,visible:mt&&Xt.visible}},pe.prototype.getParentNodeWithListIndex=function(D,ye,We,Ze,st){ye===void 0&&(ye=this.root),We===void 0&&(We=0),Ze===void 0&&(Ze=!0),st===void 0&&(st=!0);var mt=D[0],Kt=D.slice(1);if(mt<0||mt>ye.children.length)throw new L(this.user,"Invalid tree location");for(var Xt=0;Xt0)?(Object(T.g)(ye.twistie,"codicon","codicon-chevron-down","collapsible"),Object(T.Y)(ye.twistie,"collapsed",D.collapsed)):Object(T.Q)(ye.twistie,"codicon","codicon-chevron-down","collapsible","collapsed"),D.collapsible?ye.container.setAttribute("aria-expanded",String(!D.collapsed)):ye.container.removeAttribute("aria-expanded")},pe.prototype.renderIndentGuides=function(D,ye){var We=this;if(Object(T.t)(ye.indent),ye.indentGuidesDisposable.dispose(),!this.shouldRenderIndentGuides)return;for(var Ze=new J.b,st=this.modelProvider(),mt=D,Kt=function(){var lo=st.getNodeLocation(mt),Ro=st.getParentNodeLocation(lo);if(!Ro)return"break";var wo=st.getNode(Ro),_o=Object(T.a)(".indent-guide",{style:"width: "+Xt.indent+"px"});Xt.activeIndentNodes.has(wo)&&Object(T.f)(_o,"active"),ye.indent.childElementCount===0?ye.indent.appendChild(_o):ye.indent.insertBefore(_o,ye.indent.firstElementChild),Xt.renderedIndentGuides.add(wo,_o),Ze.add(Object(J.h)(function(){return We.renderedIndentGuides.delete(wo,_o)})),mt=wo},Xt=this;;){var no=Kt();if(no==="break")break}ye.indentGuidesDisposable=Ze},pe.prototype._onDidChangeActiveNodes=function(D){var ye=this;if(!this.shouldRenderIndentGuides)return;var We=new Set,Ze=this.modelProvider();D.forEach(function(st){var mt=Ze.getNodeLocation(st);try{var Kt=Ze.getParentNodeLocation(mt);st.collapsible&&st.children.length>0&&!st.collapsed?We.add(st):Kt&&We.add(Ze.getNode(Kt))}catch(Xt){}}),this.activeIndentNodes.forEach(function(st){We.has(st)||ye.renderedIndentGuides.forEach(st,function(mt){return Object(T.P)(mt,"active")})}),We.forEach(function(st){ye.activeIndentNodes.has(st)||ye.renderedIndentGuides.forEach(st,function(mt){return Object(T.f)(mt,"active")})}),this.activeIndentNodes=We},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.renderedElements.clear(),this.indentGuidesDisposable.dispose(),Object(J.f)(this.disposables)},pe.DefaultIndent=8,pe}(),me=function(){function pe(D,ye,We){this.tree=D,this.keyboardNavigationLabelProvider=ye,this._filter=We,this._totalCount=0,this._matchCount=0,this._pattern="",this._lowercasePattern="",this.disposables=new J.b,D.onWillRefilter(this.reset,this,this.disposables)}return Object.defineProperty(pe.prototype,"totalCount",{get:function(){return this._totalCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"matchCount",{get:function(){return this._matchCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{set:function(ye){this._pattern=ye,this._lowercasePattern=ye.toLowerCase()},enumerable:!0,configurable:!0}),pe.prototype.filter=function(D,ye){if(this._filter){var We=this._filter.filter(D,ye);if(this.tree.options.simpleKeyboardNavigation)return We;var Ze=void 0;if(typeof We=="boolean"?Ze=We?1:0:$(We)?Ze=ie(We.visibility):Ze=We,Ze===0)return!1}if(this._totalCount++,this.tree.options.simpleKeyboardNavigation||!this._pattern)return this._matchCount++,{data:m.a.Default,visibility:!0};var st=this.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(D),mt=st&&st.toString();if(typeof mt=="undefined")return{data:m.a.Default,visibility:!0};var Kt=Object(m.d)(this._pattern,this._lowercasePattern,0,mt,mt.toLowerCase(),0,!0);return Kt?(this._matchCount++,{data:Kt,visibility:!0}):this.tree.options.filterOnType?2:{data:m.a.Default,visibility:!0}},pe.prototype.reset=function(){this._totalCount=0,this._matchCount=0},pe.prototype.dispose=function(){Object(J.f)(this.disposables)},pe}(),ge=function(){function pe(D,ye,We,Ze,st){this.tree=D,this.view=We,this.filter=Ze,this.keyboardNavigationDelegate=st,this._enabled=!1,this._pattern="",this._empty=!1,this._onDidChangeEmptyState=new w.a,this.positionClassName="ne",this.automaticKeyboardNavigation=!0,this.triggered=!1,this._onDidChangePattern=new w.a,this.enabledDisposables=new J.b,this.disposables=new J.b,this.domNode=Object(T.a)(".monaco-list-type-filter."+this.positionClassName),this.domNode.draggable=!0,Object(d.a)(this.domNode,"dragstart")(this.onDragStart,this,this.disposables),this.messageDomNode=Object(T.q)(We.getHTMLElement(),Object(T.a)(".monaco-list-type-filter-message")),this.labelDomNode=Object(T.q)(this.domNode,Object(T.a)("span.label"));var mt=Object(T.q)(this.domNode,Object(T.a)(".controls"));this._filterOnType=!!D.options.filterOnType,this.filterOnTypeDomNode=Object(T.q)(mt,Object(T.a)("input.filter.codicon.codicon-list-selection")),this.filterOnTypeDomNode.type="checkbox",this.filterOnTypeDomNode.checked=this._filterOnType,this.filterOnTypeDomNode.tabIndex=-1,this.updateFilterOnTypeTitle(),Object(d.a)(this.filterOnTypeDomNode,"input")(this.onDidChangeFilterOnType,this,this.disposables),this.clearDomNode=Object(T.q)(mt,Object(T.a)("button.clear.codicon.codicon-close")),this.clearDomNode.tabIndex=-1,this.clearDomNode.title=Object(I.a)("clear","Clear"),this.keyboardNavigationEventFilter=D.options.keyboardNavigationEventFilter,ye.onDidSplice(this.onDidSpliceModel,this,this.disposables),this.updateOptions(D.options)}return Object.defineProperty(pe.prototype,"enabled",{get:function(){return this._enabled},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"pattern",{get:function(){return this._pattern},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterOnType",{get:function(){return this._filterOnType},enumerable:!0,configurable:!0}),pe.prototype.updateOptions=function(D){D.simpleKeyboardNavigation?this.disable():this.enable(),typeof D.filterOnType!="undefined"&&(this._filterOnType=!!D.filterOnType,this.filterOnTypeDomNode.checked=this._filterOnType),typeof D.automaticKeyboardNavigation!="undefined"&&(this.automaticKeyboardNavigation=D.automaticKeyboardNavigation),this.tree.refilter(),this.render(),this.automaticKeyboardNavigation||this.onEventOrInput("")},pe.prototype.enable=function(){var D=this;if(this._enabled)return;var ye=w.b.chain(Object(d.a)(this.view.getHTMLElement(),"keydown")).filter(function(Ze){return!we(Ze.target)||Ze.target===D.filterOnTypeDomNode}).filter(function(Ze){return Ze.key!=="Dead"&&!/^Media/.test(Ze.key)}).map(function(Ze){return new p.a(Ze)}).filter(this.keyboardNavigationEventFilter||function(){return!0}).filter(function(){return D.automaticKeyboardNavigation||D.triggered}).filter(function(Ze){return D.keyboardNavigationDelegate.mightProducePrintableCharacter(Ze)||(D.pattern.length>0||D.triggered)&&(Ze.keyCode===9||Ze.keyCode===1)&&!Ze.altKey&&!Ze.ctrlKey&&!Ze.metaKey||Ze.keyCode===1&&(Ce.e?Ze.altKey&&!Ze.metaKey:Ze.ctrlKey)&&!Ze.shiftKey}).forEach(function(Ze){Ze.stopPropagation(),Ze.preventDefault()}).event,We=Object(d.a)(this.clearDomNode,"click");w.b.chain(w.b.any(ye,We)).event(this.onEventOrInput,this,this.enabledDisposables),this.filter.pattern="",this.tree.refilter(),this.render(),this._enabled=!0,this.triggered=!1},pe.prototype.disable=function(){if(!this._enabled)return;this.domNode.remove(),this.enabledDisposables.clear(),this.tree.refilter(),this.render(),this._enabled=!1,this.triggered=!1},pe.prototype.onEventOrInput=function(D){typeof D=="string"?this.onInput(D):D instanceof MouseEvent||D.keyCode===9||D.keyCode===1&&(Ce.e?D.altKey:D.ctrlKey)?this.onInput(""):D.keyCode===1?this.onInput(this.pattern.length===0?"":this.pattern.substr(0,this.pattern.length-1)):this.onInput(this.pattern+D.browserEvent.key)},pe.prototype.onInput=function(D){var ye=this.view.getHTMLElement();D&&!this.domNode.parentElement?ye.append(this.domNode):!D&&this.domNode.parentElement&&(this.domNode.remove(),this.tree.domFocus()),this._pattern=D,this._onDidChangePattern.fire(D),this.filter.pattern=D,this.tree.refilter(),D&&this.tree.focusNext(0,!0,void 0,function(st){return!m.a.isDefault(st.filterData)});var We=this.tree.getFocus();if(We.length>0){var Ze=We[0];this.tree.getRelativeTop(Ze)===null&&this.tree.reveal(Ze,.5)}this.render(),D||(this.triggered=!1)},pe.prototype.onDragStart=function(){var D=this,ye=this.view.getHTMLElement(),We=Object(T.C)(ye).left,Ze=ye.clientWidth,st=Ze/2,mt=this.domNode.clientWidth,Kt=new J.b,Xt=this.positionClassName,no=function(){switch(Xt){case"nw":D.domNode.style.top="4px",D.domNode.style.left="4px";break;case"ne":D.domNode.style.top="4px",D.domNode.style.left=Ze-mt-6+"px";break}},vo=function(wo){wo.preventDefault();var _o=wo.screenX-We;wo.dataTransfer&&(wo.dataTransfer.dropEffect="none"),_o0&&this.filter.matchCount===0;this.pattern&&this.tree.options.filterOnType&&D?(this.messageDomNode.textContent=Object(I.a)("empty","No elements found"),this._empty=!0):(this.messageDomNode.innerHTML="",this._empty=!1),Object(T.Y)(this.domNode,"no-matches",D),this.domNode.title=Object(I.a)("found","Matched {0} out of {1} elements",this.filter.matchCount,this.filter.totalCount),this.labelDomNode.textContent=this.pattern.length>16?"\u2026"+this.pattern.substr(this.pattern.length-16):this.pattern,this._onDidChangeEmptyState.fire(this._empty)},pe.prototype.shouldAllowFocus=function(D){return!this.enabled||!this.pattern||this.filterOnType||this.filter.totalCount>0&&this.filter.matchCount<=1?!0:!m.a.isDefault(D.filterData)},pe.prototype.dispose=function(){this._enabled&&(this.domNode.remove(),this.enabledDisposables.dispose(),this._enabled=!1,this.triggered=!1),this._onDidChangePattern.dispose(),Object(J.f)(this.disposables)},pe}();function we(pe){return pe.tagName==="INPUT"||pe.tagName==="TEXTAREA"}function Re(pe){return{elements:pe.elements.map(function(D){return D.element}),browserEvent:pe.browserEvent}}function Ee(pe,D){D(pe),pe.children.forEach(function(ye){return Ee(ye,D)})}var ve=function(){function pe(D){this.identityProvider=D,this.nodes=[],this._onDidChange=new w.a,this.onDidChange=this._onDidChange.event}return Object.defineProperty(pe.prototype,"nodeSet",{get:function(){return this._nodeSet||(this._nodeSet=this.createNodeSet()),this._nodeSet},enumerable:!0,configurable:!0}),pe.prototype.set=function(D,ye){if(Object(s.g)(this.nodes,D))return;this._set(D,!1,ye)},pe.prototype._set=function(D,ye,We){if(this.nodes=ne(D),this.elements=void 0,this._nodeSet=void 0,!ye){var Ze=this;this._onDidChange.fire({get elements(){return Ze.get()},browserEvent:We})}},pe.prototype.get=function(){return this.elements||(this.elements=this.nodes.map(function(D){return D.element})),ne(this.elements)},pe.prototype.getNodes=function(){return this.nodes},pe.prototype.has=function(D){return this.nodeSet.has(D)},pe.prototype.onDidModelSplice=function(D){var ye=this,We=D.insertedNodes,Ze=D.deletedNodes;if(!this.identityProvider){var st=this.createNodeSet(),mt=function(tn){return st.delete(tn)};Ze.forEach(function(xo){return Ee(xo,mt)}),this.set(Object(Me.e)(st));return}var Kt=new Set,Xt=function(tn){return Kt.add(ye.identityProvider.getId(tn.element).toString())};Ze.forEach(function(xo){return Ee(xo,Xt)});var no=new Map,vo=function(tn){return no.set(ye.identityProvider.getId(tn.element).toString(),tn)};We.forEach(function(xo){return Ee(xo,vo)});for(var lo=[],Ro=0,wo=this.nodes;Ro0&&pe.prototype.setFocus.call(this,Object(s.f)(ne(pe.prototype.getFocus.call(this),mt))),Kt.length>0&&pe.prototype.setSelection.call(this,Object(s.f)(ne(pe.prototype.getSelection.call(this),Kt)))},D.prototype.setFocus=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setFocus.call(this,ye,We),Ze||this.focusTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D.prototype.setSelection=function(ye,We,Ze){var st=this;Ze===void 0&&(Ze=!1),pe.prototype.setSelection.call(this,ye,We),Ze||this.selectionTrait.set(ye.map(function(mt){return st.element(mt)}),We)},D}(re.c),F=function(){function pe(D,ye,We,Ze,st){var mt=this;st===void 0&&(st={}),this._options=st,this.eventBufferer=new w.c,this.disposables=new J.b,this._onWillRefilter=new w.a,this.onWillRefilter=this._onWillRefilter.event,this._onDidUpdateOptions=new w.a;var Kt=new X(We),Xt=new w.f,no=new w.f,vo=new je(no.event);this.renderers=Ze.map(function(xo){return new Xe(xo,function(){return mt.model},Xt.event,vo,st)});for(var lo=0,Ro=this.renderers;lo .indent-guide, .monaco-list"+ye+".always .monaco-tl-indent > .indent-guide { border-color: "+D.treeIndentGuidesStroke.transparent(.4)+"; }"),We.push(".monaco-list"+ye+" .monaco-tl-indent > .indent-guide.active { border-color: "+D.treeIndentGuidesStroke+"; }"));var Ze=We.join(` +`);Ze!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=Ze),this.view.style(D)},pe.prototype.collapse=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!0,ye)},pe.prototype.expand=function(D,ye){return ye===void 0&&(ye=!1),this.model.setCollapsed(D,!1,ye)},pe.prototype.isCollapsible=function(D){return this.model.isCollapsible(D)},pe.prototype.setCollapsible=function(D,ye){return this.model.setCollapsible(D,ye)},pe.prototype.isCollapsed=function(D){return this.model.isCollapsed(D)},pe.prototype.refilter=function(){this._onWillRefilter.fire(void 0),this.model.refilter()},pe.prototype.setSelection=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.selection.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setSelection(st,ye,!0)},pe.prototype.getSelection=function(){return this.selection.get()},pe.prototype.setFocus=function(D,ye){var We=this,Ze=D.map(function(mt){return We.model.getNode(mt)});this.focus.set(Ze,ye);var st=D.map(function(mt){return We.model.getListIndex(mt)}).filter(function(mt){return mt>-1});this.view.setFocus(st,ye,!0)},pe.prototype.focusNext=function(D,ye,We,Ze){D===void 0&&(D=1),ye===void 0&&(ye=!1),Ze===void 0&&(Ze=this.focusNavigationFilter),this.view.focusNext(D,ye,We,Ze)},pe.prototype.getFocus=function(){return this.focus.get()},pe.prototype.reveal=function(D,ye){this.model.expandTo(D);var We=this.model.getListIndex(D);if(We===-1)return;this.view.reveal(We,ye)},pe.prototype.getRelativeTop=function(D){var ye=this.model.getListIndex(D);return ye===-1?null:this.view.getRelativeTop(ye)},pe.prototype.onLeftArrow=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!0);if(!st){var mt=this.model.getParentNodeLocation(Ze);if(!mt)return;var Kt=this.model.getListIndex(mt);this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onRightArrow=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=this.model.setCollapsed(Ze,!1);if(!st){if(!We.children.some(function(Xt){return Xt.visible}))return;var mt=this.view.getFocus()[0],Kt=mt+1;this.view.reveal(Kt),this.view.setFocus([Kt])}},pe.prototype.onSpace=function(D){D.preventDefault(),D.stopPropagation();var ye=this.view.getFocusedElements();if(ye.length===0)return;var We=ye[0],Ze=this.model.getNodeLocation(We),st=D.browserEvent.altKey;this.model.setCollapsed(Ze,void 0,st)},pe.prototype.dispose=function(){Object(J.f)(this.disposables),this.view.dispose()},pe}(),se=function(){return se=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},at=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){return mt===void 0&&(mt={}),pe.call(this,ye,We,Ze,st,mt)||this}return Object.defineProperty(D.prototype,"onDidChangeCollapseState",{get:function(){return this.model.onDidChangeCollapseState},enumerable:!0,configurable:!0}),D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.rerender=function(ye){if(ye===void 0){this.view.rerender();return}this.model.rerender(ye)},D.prototype.hasElement=function(ye){return this.model.has(ye)},D.prototype.createModel=function(ye,We,Ze){return new be(ye,We,Ze)},D}(F),tt=function(){function pe(D,ye){this._compressedTreeNodeProvider=D,this.renderer=ye,this.templateId=ye.templateId,ye.onDidChangeTwistieState&&(this.onDidChangeTwistieState=ye.onDidChangeTwistieState)}return Object.defineProperty(pe.prototype,"compressedTreeNodeProvider",{get:function(){return this._compressedTreeNodeProvider()},enumerable:!0,configurable:!0}),pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{compressedTreeNode:void 0,data:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){var st=this.compressedTreeNodeProvider.getCompressedTreeNode(D.element);st.element.elements.length===1?(We.compressedTreeNode=void 0,this.renderer.renderElement(D,ye,We.data,Ze)):(We.compressedTreeNode=st,this.renderer.renderCompressedElements(st,ye,We.data,Ze))},pe.prototype.disposeElement=function(D,ye,We,Ze){We.compressedTreeNode?this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(We.compressedTreeNode,ye,We.data,Ze):this.renderer.disposeElement&&this.renderer.disposeElement(D,ye,We.data,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.data)},pe.prototype.renderTwistie=function(D,ye){this.renderer.renderTwistie&&this.renderer.renderTwistie(D,ye)},At([Pt.a],pe.prototype,"compressedTreeNodeProvider",null),pe}();function ut(pe,D){return D&&vt(vt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&{getKeyboardNavigationLabel:function(We){var Ze;try{Ze=pe().getCompressedTreeNode(We)}catch(st){return D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We)}return Ze.element.elements.length===1?D.keyboardNavigationLabelProvider.getKeyboardNavigationLabel(We):D.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(Ze.element.elements)}}})}var Ct=function(pe){ft(D,pe);function D(ye,We,Ze,st,mt){mt===void 0&&(mt={});var Kt=this,Xt=function(){return Kt},no=st.map(function(vo){return new tt(Xt,vo)});return Kt=pe.call(this,ye,We,Ze,no,ut(Xt,mt))||this,Kt}return D.prototype.setChildren=function(ye,We){this.model.setChildren(ye,We)},D.prototype.createModel=function(ye,We,Ze){return new so(ye,We,Ze)},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),typeof ye.compressionEnabled!="undefined"&&this.model.setCompressionEnabled(ye.compressionEnabled)},D.prototype.getCompressedTreeNode=function(ye){return ye===void 0&&(ye=null),this.model.getCompressedTreeNode(ye)},D}(at),gt=e("/cxE"),bt=function(){var pe=function(ye,We){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ze,st){Ze.__proto__=st}||function(Ze,st){for(var mt in st)st.hasOwnProperty(mt)&&(Ze[mt]=st[mt])},pe(ye,We)};return function(D,ye){pe(D,ye);function We(){this.constructor=D}D.prototype=ye===null?Object.create(ye):(We.prototype=ye.prototype,new We)}}(),Gt=function(){return Gt=Object.assign||function(pe){for(var D,ye=1,We=arguments.length;ye0&&st[st.length-1])&&(no[0]===6||no[0]===2)){ye=0;continue}if(no[0]===3&&(!st||no[1]>st[0]&&no[1]-1&&Ze.focus.push(Rn),Ze&&Ze.viewState.selection&&Ze.viewState.selection.indexOf(On)>-1&&Ze.selection.push(Rn),Ze&&Ze.viewState.expanded&&Ze.viewState.expanded.indexOf(On)>-1?wo.push(Rn):En&&mt.collapseByDefault&&!mt.collapseByDefault(gn)&&(Rn.collapsedByDefault=!1,wo.push(Rn)),Rn}),jo=0,Uo=Object(Me.e)(Kt);jo-1?Ze=!1:Ze=D.collapsedByDefault,D.collapsedByDefault=void 0,{element:D,children:D.hasChildren?k.d.map(k.d.fromArray(D.children),function(st){return We.asTreeElement(st,ye)}):[],collapsible:D.hasChildren,collapsed:Ze}},pe.prototype.processChildren=function(D){return this.sorter&&D.sort(this.sorter.compare.bind(this.sorter)),D},pe.prototype.dispose=function(){this.disposables.dispose()},pe}(),eo=function(){function pe(D){this.node=D}return Object.defineProperty(pe.prototype,"element",{get:function(){return{elements:this.node.element.elements.map(function(ye){return ye.element}),incompressible:this.node.element.incompressible}},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"children",{get:function(){return this.node.children.map(function(ye){return new pe(ye)})},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"depth",{get:function(){return this.node.depth},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildrenCount",{get:function(){return this.node.visibleChildrenCount},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visibleChildIndex",{get:function(){return this.node.visibleChildIndex},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsible",{get:function(){return this.node.collapsible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"collapsed",{get:function(){return this.node.collapsed},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"visible",{get:function(){return this.node.visible},enumerable:!0,configurable:!0}),Object.defineProperty(pe.prototype,"filterData",{get:function(){return this.node.filterData},enumerable:!0,configurable:!0}),pe}(),po=function(){function pe(D,ye,We,Ze){this.renderer=D,this.nodeMapper=ye,this.compressibleNodeMapperProvider=We,this.onDidChangeTwistieState=Ze,this.renderedNodes=new Map,this.disposables=[],this.templateId=D.templateId}return pe.prototype.renderTemplate=function(D){var ye=this.renderer.renderTemplate(D);return{templateData:ye}},pe.prototype.renderElement=function(D,ye,We,Ze){this.renderer.renderElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.renderCompressedElements=function(D,ye,We,Ze){this.renderer.renderCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.renderTwistie=function(D,ye){return Object(T.Y)(ye,"codicon-loading",D.slow),!1},pe.prototype.disposeElement=function(D,ye,We,Ze){this.renderer.disposeElement&&this.renderer.disposeElement(this.nodeMapper.map(D),ye,We.templateData,Ze)},pe.prototype.disposeCompressedElements=function(D,ye,We,Ze){this.renderer.disposeCompressedElements&&this.renderer.disposeCompressedElements(this.compressibleNodeMapperProvider().map(D),ye,We.templateData,Ze)},pe.prototype.disposeTemplate=function(D){this.renderer.disposeTemplate(D.templateData)},pe.prototype.dispose=function(){this.renderedNodes.clear(),this.disposables=Object(J.f)(this.disposables)},pe}();function co(pe){var D=pe&<(pe);return D&&Gt(Gt({},D),{keyboardNavigationLabelProvider:D.keyboardNavigationLabelProvider&&Gt(Gt({},D.keyboardNavigationLabelProvider),{getCompressedNodeKeyboardNavigationLabel:function(We){return pe.keyboardNavigationLabelProvider.getCompressedNodeKeyboardNavigationLabel(We.map(function(Ze){return Ze.element}))}})})}var Eo=function(pe){bt(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt){Xt===void 0&&(Xt={});var no=pe.call(this,ye,We,Ze,mt,Kt,Xt)||this;return no.compressionDelegate=st,no.compressibleNodeMapper=new A(function(vo){return new eo(vo)}),no.filter=Xt.filter,no}return D.prototype.createTree=function(ye,We,Ze,st,mt){var Kt=this,Xt=new X(Ze),no=st.map(function(lo){return new po(lo,Kt.nodeMapper,function(){return Kt.compressibleNodeMapper},Kt._onDidChangeNodeSlowState.event)}),vo=co(mt)||{};return new Ct(ye,We,Xt,no,vo)},D.prototype.asTreeElement=function(ye,We){return Gt({incompressible:this.compressionDelegate.isIncompressible(ye.element)},pe.prototype.asTreeElement.call(this,ye,We))},D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),this.tree.updateOptions(ye)},D.prototype.render=function(ye,We){var Ze=this;if(!this.identityProvider)return pe.prototype.render.call(this,ye,We);var st=function(jo){return Ze.identityProvider.getId(jo).toString()},mt=function(jo){for(var Uo=new Set,Do=0,xo=jo;Do=0;Kt--)(mt=pe[Kt])&&(st=(Ze<3?mt(st):Ze>3?mt(D,ye,st):mt(D,ye))||st);return Ze>3&&st&&Object.defineProperty(D,ye,st),st},Mo=function(pe,D){return function(ye,We){D(ye,We,pe)}},Qo,fn=Object(H.c)("listService"),Vo=function(){function pe(D){this._themeService=D,this.disposables=new J.b,this.lists=[],this._lastFocusedWidget=void 0,this._hasCreatedStyleController=!1}return Object.defineProperty(pe.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0}),pe.prototype.register=function(D,ye){var We=this;if(!this._hasCreatedStyleController){this._hasCreatedStyleController=!0;var Ze=new re.b(Object(T.w)(),"");this.disposables.add(Object(y.b)(Ze,this._themeService))}if(this.lists.some(function(mt){return mt.widget===D}))throw new Error("Cannot register the same widget multiple times");var st={widget:D,extraContextKeys:ye};return this.lists.push(st),D.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=D),Object(J.e)(D.onDidFocus(function(){return We._lastFocusedWidget=D}),Object(J.h)(function(){return We.lists.splice(We.lists.indexOf(st),1)}),D.onDidDispose(function(){We.lists=We.lists.filter(function(mt){return mt!==st}),We._lastFocusedWidget===D&&(We._lastFocusedWidget=void 0)}))},pe.prototype.dispose=function(){this.disposables.dispose()},pe=Bo([Mo(0,_.c)],pe),pe}(),mn=new O.d("listFocus",!0),yn=new O.d("listSupportsMultiselect",!0),dn=O.a.and(mn,O.a.not(f)),rn=new O.d("listHasSelectionOrFocus",!1),pn=new O.d("listDoubleSelection",!1),zo=new O.d("listMultiSelection",!1),Ho=new O.d("listSupportsKeyboardNavigation",!0),St="listAutomaticKeyboardNavigation",ot=new O.d(St,!0),nt=!1;function Dt(pe,D){var ye=pe.createScoped(D.getHTMLElement());return mn.bindTo(ye),ye}var _e="workbench.list.multiSelectModifier",M="workbench.list.openMode",P="workbench.list.horizontalScrolling",Z="workbench.list.keyboardNavigation",Ae="workbench.list.automaticKeyboardNavigation",xe="workbench.tree.indent",Ne="workbench.tree.renderIndentGuides";function dt(pe){return Object(U.f)(pe,P,"workbench.tree.horizontalScrolling")}function ht(pe){return pe.getValue(_e)==="alt"}function xt(pe){return pe.getValue(M)!=="doubleClick"}var Bt=function(pe){Wo(D,pe);function D(ye){var We=pe.call(this)||this;return We.configurationService=ye,We.useAltAsMultipleSelectionModifier=ht(ye),We.registerListeners(),We}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(_e)&&(ye.useAltAsMultipleSelectionModifier=ht(ye.configurationService))}))},D.prototype.isSelectionSingleChangeEvent=function(ye){return this.useAltAsMultipleSelectionModifier?ye.browserEvent.altKey:Object(re.f)(ye)},D.prototype.isSelectionRangeChangeEvent=function(ye){return Object(re.e)(ye)},D}(J.a),Ht=function(pe){Wo(D,pe);function D(ye,We){var Ze=pe.call(this)||this;return Ze.configurationService=ye,Ze.existingOpenController=We,Ze.openOnSingleClick=xt(ye),Ze.registerListeners(),Ze}return D.prototype.registerListeners=function(){var ye=this;this._register(this.configurationService.onDidChangeConfiguration(function(We){We.affectsConfiguration(M)&&(ye.openOnSingleClick=xt(ye.configurationService))}))},D.prototype.shouldOpen=function(ye){if(ye instanceof MouseEvent){var We=ye.button===0,Ze=ye.detail===2;return We&&!this.openOnSingleClick&&!Ze?!1:We||ye.button===1?this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0:!1}return this.existingOpenController?this.existingOpenController.shouldOpen(ye):!0},D}(J.a);function Ut(pe,D,ye){var We=new J.b,Ze=Go({},pe);if(pe.multipleSelectionSupport!==!1&&!pe.multipleSelectionController){var st=new Bt(D);Ze.multipleSelectionController=st,We.add(st)}var mt=new Ht(D,pe.openController);return Ze.openController=mt,We.add(mt),Ze.keyboardNavigationDelegate={mightProducePrintableCharacter:function(Xt){return ye.mightProducePrintableCharacter(Xt)}},[Ze,We]}function oo(pe,D){var ye=!1;return function(We){if(ye)return ye=!1,!1;var Ze=D.softDispatch(We,pe);return Ze&&Ze.enterChord?(ye=!0,!1):(ye=!1,!0)}}var Zt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro){var wo=this,_o=Oe(We,mt,Kt,vo,lo,Ro),jo=_o.options,Uo=_o.getAutomaticKeyboardNavigation,Do=_o.disposable;return wo=pe.call(this,ye,We,Ze,st,jo)||this,wo.disposables.add(Do),wo.internals=new rt(wo,jo,Uo,mt.overrideStyles,Kt,Xt,no,vo,Ro),wo.disposables.add(wo.internals),wo}return D=Bo([Mo(5,O.c),Mo(6,fn),Mo(7,_.c),Mo(8,U.a),Mo(9,x.a),Mo(10,Co.b)],D),D}(at),fo=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo){var _o=this,jo=Oe(We,Kt,Xt,lo,Ro,wo),Uo=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return _o=pe.call(this,ye,We,Ze,st,mt,Uo)||this,_o.disposables.add(xo),_o.internals=new rt(_o,Uo,Do,Kt.overrideStyles,Xt,no,vo,lo,wo),_o.disposables.add(_o.internals),_o}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,_.c),Mo(9,U.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Zo),yt=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo){var _o=this,jo=Oe(We,Kt,Xt,lo,Ro,wo),Uo=jo.options,Do=jo.getAutomaticKeyboardNavigation,xo=jo.disposable;return _o=pe.call(this,ye,We,Ze,st,mt,Uo)||this,_o.disposables.add(xo),_o.internals=new rt(_o,Uo,Do,Kt.overrideStyles,Xt,no,vo,lo,wo),_o.disposables.add(_o.internals),_o}return D.prototype.updateOptions=function(ye){ye===void 0&&(ye={}),pe.prototype.updateOptions.call(this,ye),ye.overrideStyles&&this.internals.updateStyleOverrides(ye.overrideStyles)},D=Bo([Mo(6,O.c),Mo(7,fn),Mo(8,_.c),Mo(9,U.a),Mo(10,x.a),Mo(11,Co.b)],D),D}(Jt),He=function(pe){Wo(D,pe);function D(ye,We,Ze,st,mt,Kt,Xt,no,vo,lo,Ro,wo,_o){var jo=this,Uo=Oe(We,Xt,no,Ro,wo,_o),Do=Uo.options,xo=Uo.getAutomaticKeyboardNavigation,tn=Uo.disposable;return jo=pe.call(this,ye,We,Ze,st,mt,Kt,Do)||this,jo.disposables.add(tn),jo.internals=new rt(jo,Do,xo,Xt.overrideStyles,no,vo,lo,Ro,_o),jo.disposables.add(jo.internals),jo}return D=Bo([Mo(7,O.c),Mo(8,fn),Mo(9,_.c),Mo(10,U.a),Mo(11,x.a),Mo(12,Co.b)],D),D}(Eo);function Oe(pe,D,ye,We,Ze,st){Ho.bindTo(ye),nt||(ot.bindTo(ye),nt=!0);var mt=function(){var Uo=ye.getContextKeyValue(St);return Uo&&(Uo=We.getValue(Ae)),Uo},Kt=st.isScreenReaderOptimized(),Xt=Kt?"simple":We.getValue(Z),no=typeof D.horizontalScrolling!="undefined"?D.horizontalScrolling:dt(We),vo=xt(We),lo=Ut(D,We,Ze),Ro=lo[0],wo=lo[1],_o=D.additionalScrollHeight;return{getAutomaticKeyboardNavigation:mt,disposable:wo,options:Go(Go({keyboardSupport:!1},Ro),{indent:We.getValue(xe),renderIndentGuides:We.getValue(Ne),automaticKeyboardNavigation:mt(),simpleKeyboardNavigation:Xt==="simple",filterOnType:Xt==="filter",horizontalScrolling:no,openOnSingleClick:vo,keyboardNavigationEventFilter:oo(pe,Ze),additionalScrollHeight:_o,hideTwistiesOfChildlessElements:D.hideTwistiesOfChildlessElements})}}var rt=function(){function pe(D,ye,We,Ze,st,mt,Kt,Xt,no){var vo=this;this.tree=D,this.themeService=Kt,this.disposables=[],this.contextKeyService=Dt(st,D);var lo=yn.bindTo(this.contextKeyService);lo.set(!(ye.multipleSelectionSupport===!1)),this.hasSelectionOrFocus=rn.bindTo(this.contextKeyService),this.hasDoubleSelection=pn.bindTo(this.contextKeyService),this.hasMultiSelection=zo.bindTo(this.contextKeyService),this._useAltAsMultipleSelectionModifier=ht(Xt);var Ro=new Set;Ro.add(St);var wo=function(){var jo=no.isScreenReaderOptimized(),Uo=jo?"simple":Xt.getValue(Z);D.updateOptions({simpleKeyboardNavigation:Uo==="simple",filterOnType:Uo==="filter"})};this.updateStyleOverrides(Ze),this.disposables.push(this.contextKeyService,mt.register(D),D.onDidChangeSelection(function(){var _o=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(_o.length>0||jo.length>0),vo.hasMultiSelection.set(_o.length>1),vo.hasDoubleSelection.set(_o.length===2)}),D.onDidChangeFocus(function(){var _o=D.getSelection(),jo=D.getFocus();vo.hasSelectionOrFocus.set(_o.length>0||jo.length>0)}),Xt.onDidChangeConfiguration(function(_o){if(_o.affectsConfiguration(M)&&D.updateOptions({openOnSingleClick:xt(Xt)}),_o.affectsConfiguration(_e)&&(vo._useAltAsMultipleSelectionModifier=ht(Xt)),_o.affectsConfiguration(xe)){var jo=Xt.getValue(xe);D.updateOptions({indent:jo})}if(_o.affectsConfiguration(Ne)){var Uo=Xt.getValue(Ne);D.updateOptions({renderIndentGuides:Uo})}_o.affectsConfiguration(Z)&&wo(),_o.affectsConfiguration(Ae)&&D.updateOptions({automaticKeyboardNavigation:We()})}),this.contextKeyService.onDidChangeContext(function(_o){_o.affectsSome(Ro)&&D.updateOptions({automaticKeyboardNavigation:We()})}),no.onDidChangeScreenReaderOptimized(function(){return wo()}))}return pe.prototype.updateStyleOverrides=function(D){Object(J.f)(this.styler),this.styler=D?Object(y.b)(this.tree,this.themeService,D):J.a.None},pe.prototype.dispose=function(){this.disposables=Object(J.f)(this.disposables),this.styler=Object(J.f)(this.styler)},pe=Bo([Mo(4,O.c),Mo(5,fn),Mo(6,_.c),Mo(7,U.a),Mo(8,Co.b)],pe),pe}(),It=u.a.as(z.a.Configuration);It.registerConfiguration({id:"workbench",order:7,title:Object(I.a)("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Qo={},Qo[_e]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(I.a)("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(I.a)("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(I.a)({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Qo[M]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(I.a)({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Qo[P]={type:"boolean",default:!1,description:Object(I.a)("horizontalScrolling setting","Controls whether lists and trees support horizontal scrolling in the workbench.")},Qo["workbench.tree.horizontalScrolling"]={type:"boolean",default:!1,description:Object(I.a)("tree horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench."),deprecationMessage:Object(I.a)("deprecated","This setting is deprecated, please use '{0}' instead.",P)},Qo[xe]={type:"number",default:8,minimum:0,maximum:40,description:Object(I.a)("tree indent setting","Controls tree indentation in pixels.")},Qo[Ne]={type:"string",enum:["none","onHover","always"],default:"onHover",description:Object(I.a)("render tree indent guides","Controls whether the tree should render indent guides.")},Qo[Z]={type:"string",enum:["simple","highlight","filter"],enumDescriptions:[Object(I.a)("keyboardNavigationSettingKey.simple","Simple keyboard navigation focuses elements which match the keyboard input. Matching is done only on prefixes."),Object(I.a)("keyboardNavigationSettingKey.highlight","Highlight keyboard navigation highlights elements which match the keyboard input. Further up and down navigation will traverse only the highlighted elements."),Object(I.a)("keyboardNavigationSettingKey.filter","Filter keyboard navigation will filter out and hide all the elements which do not match the keyboard input.")],default:"highlight",description:Object(I.a)("keyboardNavigationSettingKey","Controls the keyboard navigation style for lists and trees in the workbench. Can be simple, highlight and filter.")},Qo[Ae]={type:"boolean",default:!0,markdownDescription:Object(I.a)("automatic keyboard navigation setting","Controls whether keyboard navigation in lists and trees is automatically triggered simply by typing. If set to `false`, keyboard navigation is only triggered when executing the `list.toggleKeyboardNavigation` command, for which you can assign a keyboard shortcut.")},Qo)})},kYye:function(Lt,j,e){"use strict";e.d(j,"i",function(){return U}),e.d(j,"j",function(){return z}),e.d(j,"g",function(){return y}),e.d(j,"f",function(){return _}),e.d(j,"h",function(){return v}),e.d(j,"a",function(){return w}),e.d(j,"k",function(){return p}),e.d(j,"b",function(){return s}),e.d(j,"m",function(){return l}),e.d(j,"e",function(){return d}),e.d(j,"c",function(){return m}),e.d(j,"d",function(){return E}),e.d(j,"l",function(){return L}),e.d(j,"n",function(){return k}),e.d(j,"o",function(){return R}),e.d(j,"p",function(){return $}),e.d(j,"r",function(){return ie}),e.d(j,"q",function(){return W});var T=e("3/fG"),re=e("zrhQ"),J=e("MD5Z"),I=e("t9D7"),U=Object(J.Tb)("editor.lineHighlightBackground",{dark:null,light:null,hc:null},T.a("lineHighlight","Background color for the highlight of line at the cursor position.")),z=Object(J.Tb)("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},T.a("lineHighlightBorderBox","Background color for the border around the line at the cursor position.")),O=Object(J.Tb)("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},T.a("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque so as not to hide underlying decorations."),!0),H=Object(J.Tb)("editor.rangeHighlightBorder",{dark:null,light:null,hc:J.b},T.a("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0),x=Object(J.Tb)("editor.symbolHighlightBackground",{dark:J.t,light:J.t,hc:null},T.a("symbolHighlight","Background color of highlighted symbol, like for go to definition or go next/previous symbol. The color must not be opaque so as not to hide underlying decorations."),!0),u=Object(J.Tb)("editor.symbolHighlightBorder",{dark:null,light:null,hc:J.b},T.a("symbolHighlightBorder","Background color of the border around highlighted symbols."),!0),y=Object(J.Tb)("editorCursor.foreground",{dark:"#AEAFAD",light:re.a.black,hc:re.a.white},T.a("caret","Color of the editor cursor.")),_=Object(J.Tb)("editorCursor.background",null,T.a("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor.")),f=Object(J.Tb)("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},T.a("editorWhitespaces","Color of whitespace characters in the editor.")),v=Object(J.Tb)("editorIndentGuide.background",{dark:f,light:f,hc:f},T.a("editorIndentGuides","Color of the editor indentation guides.")),w=Object(J.Tb)("editorIndentGuide.activeBackground",{dark:f,light:f,hc:f},T.a("editorActiveIndentGuide","Color of the active editor indentation guides.")),p=Object(J.Tb)("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:re.a.white},T.a("editorLineNumbers","Color of editor line numbers.")),c=Object(J.Tb)("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:J.b},T.a("editorActiveLineNumber","Color of editor active line number"),!1,T.a("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead.")),s=Object(J.Tb)("editorLineNumber.activeForeground",{dark:c,light:c,hc:c},T.a("editorActiveLineNumber","Color of editor active line number")),l=Object(J.Tb)("editorRuler.foreground",{dark:"#5A5A5A",light:re.a.lightgrey,hc:re.a.white},T.a("editorRuler","Color of the editor rulers.")),d=Object(J.Tb)("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},T.a("editorCodeLensForeground","Foreground color of editor code lenses")),m=Object(J.Tb)("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},T.a("editorBracketMatchBackground","Background color behind matching brackets")),E=Object(J.Tb)("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:J.e},T.a("editorBracketMatchBorder","Color for matching brackets boxes")),L=Object(J.Tb)("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},T.a("editorOverviewRulerBorder","Color of the overview ruler border.")),A=Object(J.Tb)("editorGutter.background",{dark:J.o,light:J.o,hc:J.o},T.a("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers.")),k=Object(J.Tb)("editorUnnecessaryCode.border",{dark:null,light:null,hc:re.a.fromHex("#fff").transparent(.8)},T.a("unnecessaryCodeBorder","Border color of unnecessary (unused) source code in the editor.")),R=Object(J.Tb)("editorUnnecessaryCode.opacity",{dark:re.a.fromHex("#000a"),light:re.a.fromHex("#0007"),hc:null},T.a("unnecessaryCodeOpacity",`Opacity of unnecessary (unused) source code in the editor. For example, "#000000c0" will render the code with 75% opacity. For high contrast themes, use the 'editorUnnecessaryCode.border' theme color to underline unnecessary code instead of fading it out.`)),$=Object(J.Tb)("editorOverviewRuler.errorForeground",{dark:new re.a(new re.c(255,18,18,.7)),light:new re.a(new re.c(255,18,18,.7)),hc:new re.a(new re.c(255,50,50,1))},T.a("overviewRuleError","Overview ruler marker color for errors.")),ie=Object(J.Tb)("editorOverviewRuler.warningForeground",{dark:J.P,light:J.P,hc:J.O},T.a("overviewRuleWarning","Overview ruler marker color for warnings.")),W=Object(J.Tb)("editorOverviewRuler.infoForeground",{dark:J.H,light:J.H,hc:J.G},T.a("overviewRuleInfo","Overview ruler marker color for infos."));Object(I.e)(function(B,le){var Ce=B.getColor(J.o);Ce&&le.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+Ce+"; }");var Me=B.getColor(J.x);Me&&le.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+Me+"; }");var Te=B.getColor(A);Te&&le.addRule(".monaco-editor .margin { background-color: "+Te+"; }");var Fe=B.getColor(O);Fe&&le.addRule(".monaco-editor .rangeHighlight { background-color: "+Fe+"; }");var Ue=B.getColor(H);Ue&&le.addRule(".monaco-editor .rangeHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+Ue+"; }");var Pe=B.getColor(x);Pe&&le.addRule(".monaco-editor .symbolHighlight { background-color: "+Pe+"; }");var ne=B.getColor(u);ne&&le.addRule(".monaco-editor .symbolHighlight { border: 1px "+(B.type==="hc"?"dotted":"solid")+" "+ne+"; }");var ee=B.getColor(f);ee&&le.addRule(".vs-whitespace { color: "+ee+" !important; }")})},kdPm:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:function(){return e.e(277).then(e.bind(null,"3VBA"))}})},kqbb:function(Lt,j,e){"use strict";e.r(j),e.d(j,"ColorDetector",function(){return c});var T=e("X+cX"),re=e("zrhQ"),J=e("/cxE"),I=e("7afs"),U=e("pmY6"),z=e("sswD"),O=e("Vxe3"),H=e("aokT"),x=e("tX9W"),u=e("twdY"),y=e("ZIMw"),_=e("+7oY"),f=function(){var s=function(d,m){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,L){E.__proto__=L}||function(E,L){for(var A in L)L.hasOwnProperty(A)&&(E[A]=L[A])},s(d,m)};return function(l,d){s(l,d);function m(){this.constructor=l}l.prototype=d===null?Object.create(d):(m.prototype=d.prototype,new m)}}(),v=function(s,l,d,m){var E=arguments.length,L=E<3?l:m===null?m=Object.getOwnPropertyDescriptor(l,d):m,A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")L=Reflect.decorate(s,l,d,m);else for(var k=s.length-1;k>=0;k--)(A=s[k])&&(L=(E<3?A(L):E>3?A(l,d,L):A(l,d))||L);return E>3&&L&&Object.defineProperty(l,d,L),L},w=function(s,l){return function(d,m){l(d,m,s)}},p=500,c=function(s){f(l,s);function l(d,m,E){var L=s.call(this)||this;return L._editor=d,L._codeEditorService=m,L._configurationService=E,L._localToDispose=L._register(new U.b),L._decorationsIds=[],L._colorDatas=new Map,L._colorDecoratorIds=[],L._decorationsTypes=new Set,L._register(d.onDidChangeModel(function(A){L._isEnabled=L.isEnabled(),L.onModelChanged()})),L._register(d.onDidChangeModelLanguage(function(A){return L.onModelChanged()})),L._register(u.c.onDidChange(function(A){return L.onModelChanged()})),L._register(d.onDidChangeConfiguration(function(A){var k=L._isEnabled;L._isEnabled=L.isEnabled(),k!==L._isEnabled&&(L._isEnabled?L.onModelChanged():L.removeAllDecorations())})),L._timeoutTimer=null,L._computePromise=null,L._isEnabled=L.isEnabled(),L.onModelChanged(),L}return l.prototype.isEnabled=function(){var d=this._editor.getModel();if(!d)return!1;var m=d.getLanguageIdentifier(),E=this._configurationService.getValue(m.language);if(E){var L=E.colorDecorators;if(L&&L.enable!==void 0&&!L.enable)return L.enable}return this._editor.getOption(12)},l.get=function(d){return d.getContribution(this.ID)},l.prototype.dispose=function(){this.stop(),this.removeAllDecorations(),s.prototype.dispose.call(this)},l.prototype.onModelChanged=function(){var d=this;if(this.stop(),!this._isEnabled)return;var m=this._editor.getModel();if(!m||!u.c.has(m))return;this._localToDispose.add(this._editor.onDidChangeModelContent(function(E){d._timeoutTimer||(d._timeoutTimer=new T.e,d._timeoutTimer.cancelAndSet(function(){d._timeoutTimer=null,d.beginCompute()},l.RECOMPUTE_TIME))})),this.beginCompute()},l.prototype.beginCompute=function(){var d=this;this._computePromise=Object(T.f)(function(m){var E=d._editor.getModel();return E?Object(y.b)(E,m):Promise.resolve([])}),this._computePromise.then(function(m){d.updateDecorations(m),d.updateColorDecorators(m),d._computePromise=null},J.e)},l.prototype.stop=function(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()},l.prototype.updateDecorations=function(d){var m=this,E=d.map(function(L){return{range:{startLineNumber:L.colorInfo.range.startLineNumber,startColumn:L.colorInfo.range.startColumn,endLineNumber:L.colorInfo.range.endLineNumber,endColumn:L.colorInfo.range.endColumn},options:x.a.EMPTY}});this._decorationsIds=this._editor.deltaDecorations(this._decorationsIds,E),this._colorDatas=new Map,this._decorationsIds.forEach(function(L,A){return m._colorDatas.set(L,d[A])})},l.prototype.updateColorDecorators=function(d){for(var m=this,E=[],L={},A=0;A0;we--){var Re=me.charCodeAt(we-1);if(Re===47||Re===92)break}ge=me.substr(we)}var Ee=ae.indexOf(ge);return Ee!==-1?q[Ee]:null};he.basenames=ae,he.patterns=q,he.allBasenames=ae;var je=Pe.filter(function(Xe){return!Xe.basenames});return je.push(he),je}},lKfe:function(Lt,j,e){},"lY/7":function(Lt,j,e){"use strict";e.r(j),e.d(j,"MarkerController",function(){return he}),e.d(j,"NextMarkerAction",function(){return Xe});var T=e("3/fG"),re=e("MI8n"),J=e("pmY6"),I=e("T8No"),U=e("tADe"),z=e("aokT"),O=e("sswD"),H=e("t9D7"),x=e("wQH0"),u=e("/oaI"),y=e("EffR"),_=e("MD5Z"),f=e("zrhQ"),v=e("GJhM"),w=e("3rx1"),p=e("6OMU"),c=e("iNS8"),s=e("gslv"),l=e("S3by"),d;(function(ve){function Q(C){switch(C){case l.a.Ignore:return"severity-ignore codicon-info";case l.a.Info:return"codicon-info";case l.a.Warning:return"codicon-warning";case l.a.Error:return"codicon-error"}return""}ve.className=Q})(d||(d={})),Object(H.e)(function(ve,Q){var C=ve.getColor(_.Pb);C&&Q.addRule(` .monaco-editor .zone-widget .codicon-error, .markers-panel .marker-icon.codicon-error, .extensions-viewlet > .extensions .codicon-error, .monaco-dialog-box .dialog-message-row .codicon-error { color: `+C+`; } - `);var F=ve.getColor(w.Rb);C&&Q.addRule(` + `);var F=ve.getColor(_.Rb);C&&Q.addRule(` .monaco-editor .zone-widget .codicon-warning, .markers-panel .marker-icon.codicon-warning, .extensions-viewlet > .extensions .codicon-warning, @@ -150,7 +150,7 @@ Copyright (c) 2014 Forbes Lindesay .monaco-dialog-box .dialog-message-row .codicon-warning { color: `+F+`; } - `);var se=ve.getColor(w.Qb);C&&Q.addRule(` + `);var se=ve.getColor(_.Qb);C&&Q.addRule(` .monaco-editor .zone-widget .codicon-info, .markers-panel .marker-icon.codicon-info, .extensions-viewlet > .extensions .codicon-info, @@ -158,12 +158,12 @@ Copyright (c) 2014 Forbes Lindesay .monaco-dialog-box .dialog-message-row .codicon-info { color: `+se+`; } - `)});var m=function(){var ve=function(C,F){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var be in oe)oe.hasOwnProperty(be)&&(se[be]=oe[be])},ve(C,F)};return function(Q,C){ve(Q,C);function F(){this.constructor=Q}Q.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}}(),E=function(){function ve(Q,C,F,se){var oe=this;this._openerService=se,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new J.b,this._editor=C;var be=document.createElement("div");be.className="descriptioncontainer",be.setAttribute("aria-live","assertive"),be.setAttribute("role","alert"),this._messageBlock=document.createElement("div"),y.f(this._messageBlock,"message"),be.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),be.appendChild(this._relatedBlock),this._disposables.add(y.o(this._relatedBlock,"click",function(De){De.preventDefault();var Se=oe._relatedDiagnostics.get(De.target);Se&&F(Se)})),this._scrollable=new v.b(be,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:3,verticalScrollbarSize:3}),Q.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(function(De){be.style.left="-"+De.scrollLeft+"px",be.style.top="-"+De.scrollTop+"px"})),this._disposables.add(this._scrollable)}return ve.prototype.dispose=function(){Object(J.f)(this._disposables)},ve.prototype.update=function(Q){var C=this,F=Q.source,se=Q.message,oe=Q.relatedInformation,be=Q.code,De=((F==null?void 0:F.length)||0)+"()".length;be&&(typeof be=="string"?De+=be.length:De+=be.value.length);var Se=se.split(/\r\n|\r|\n/g);this._lines=Se.length,this._longestLineLength=0;for(var Ve=0,Qe=Se;Ve1?T.a("problems","{0} of {1} problems",F,se):T.a("change","{0} of {1} problem",F,se);this.setTitle(Object(s.b)(Se.uri),Ve)}this._icon.className="codicon "+d.className(H.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(De,0),this.editor.focus()},Q.prototype.updateMarker=function(C){this._container.classList.remove("stale"),this._message.update(C)},Q.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},Q.prototype._doLayoutBody=function(C,F){ve.prototype._doLayoutBody.call(this,C,F),this._heightInPixel=C,this._message.layout(C,F),this._container.style.height=C+"px"},Q.prototype._onWidth=function(C){this._message.layout(this._heightInPixel,C)},Q.prototype._relayout=function(){ve.prototype._relayout.call(this,this.computeRequiredHeight())},Q.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},Q}(c.c),A=Object(w.Kb)(w.q,w.p),k=Object(w.Kb)(w.P,w.O),R=Object(w.Kb)(w.H,w.G),$=Object(w.Tb)("editorMarkerNavigationError.background",{dark:A,light:A,hc:A},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),ie=Object(w.Tb)("editorMarkerNavigationWarning.background",{dark:k,light:k,hc:k},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),W=Object(w.Tb)("editorMarkerNavigationInfo.background",{dark:R,light:R,hc:R},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(w.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:f.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(U.e)(function(ve,Q){var C=ve.getColor(w.ec);C&&(Q.addRule(".monaco-editor .marker-widget a { color: "+C+"; }"),Q.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+C+"; }"))});var le=e("N0LK"),Ce=e("Vxe3"),Me=e("/cxE"),Te=e("fjLI"),Fe=e("8HAY"),He=e("bexQ"),Pe=e("W9cx"),ne=function(){var ve=function(C,F){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var be in oe)oe.hasOwnProperty(be)&&(se[be]=oe[be])},ve(C,F)};return function(Q,C){ve(Q,C);function F(){this.constructor=Q}Q.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}}(),ee=function(ve,Q,C,F){var se=arguments.length,oe=se<3?Q:F===null?F=Object.getOwnPropertyDescriptor(Q,C):F,be;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ve,Q,C,F);else for(var De=ve.length-1;De>=0;De--)(be=ve[De])&&(oe=(se<3?be(oe):se>3?be(Q,C,oe):be(Q,C))||oe);return se>3&&oe&&Object.defineProperty(Q,C,oe),oe},ae=function(ve,Q){return function(C,F){Q(C,F,ve)}},q=function(ve,Q,C,F){function se(oe){return oe instanceof C?oe:new C(function(be){be(oe)})}return new(C||(C=Promise))(function(oe,be){function De(Qe){try{Ve(F.next(Qe))}catch(it){be(it)}}function Se(Qe){try{Ve(F.throw(Qe))}catch(it){be(it)}}function Ve(Qe){Qe.done?oe(Qe.value):se(Qe.value).then(De,Se)}Ve((F=F.apply(ve,Q||[])).next())})},ue=function(ve,Q){var C={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},F,se,oe,be;return be={next:De(0),throw:De(1),return:De(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function De(Ve){return function(Qe){return Se([Ve,Qe])}}function Se(Ve){if(F)throw new TypeError("Generator is already executing.");for(;C;)try{if(F=1,se&&(oe=Ve[0]&2?se.return:Ve[0]?se.throw||((oe=se.return)&&oe.call(se),0):se.next)&&!(oe=oe.call(se,Ve[1])).done)return oe;(se=0,oe)&&(Ve=[Ve[0]&2,oe.value]);switch(Ve[0]){case 0:case 1:oe=Ve;break;case 4:return C.label++,{value:Ve[1],done:!1};case 5:C.label++,se=Ve[1],Ve=[0];continue;case 7:Ve=C.ops.pop(),C.trys.pop();continue;default:if(!(oe=C.trys,oe=oe.length>0&&oe[oe.length-1])&&(Ve[0]===6||Ve[0]===2)){C=0;continue}if(Ve[0]===3&&(!oe||Ve[1]>oe[0]&&Ve[1]=0?this._markers[this._nextIdx]:void 0;this._markers=Q||[],this._markers.sort(je.compareMarker),C?this._nextIdx=Math.max(-1,Object(p.c)(this._markers,C,je.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},ve.prototype.withoutWatchingEditorPosition=function(Q){this._ignoreSelectionChange=!0;try{Q()}finally{this._ignoreSelectionChange=!1}},ve.prototype._initIdx=function(Q){for(var C=!1,F=this._editor.getPosition(),se=0;se0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:se=!0),F!==this._nextIdx){var oe=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(oe)}return se},ve.prototype.canNavigate=function(){return this._markers.length>0},ve.prototype.findMarkerAtPosition=function(Q){return Object(p.h)(this._markers,function(C){return z.a.containsPosition(C,Q)})},Object.defineProperty(ve.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),ve.prototype.indexOf=function(Q){return 1+this._markers.indexOf(Q)},ve.prototype.dispose=function(){this._toUnbind.dispose()},ve}(),he=function(){function ve(Q,C,F,se,oe,be,De){this._markerService=C,this._contextKeyService=F,this._themeService=se,this._editorService=oe,this._keybindingService=be,this._openerService=De,this._model=null,this._widget=null,this._disposeOnClose=new J.b,this._editor=Q,this._widgetVisible=Re.bindTo(this._contextKeyService)}return ve.get=function(Q){return Q.getContribution(ve.ID)},ve.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},ve.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},ve.prototype.getOrCreateModel=function(){var Q=this;if(this._model)return this._model;var C=this._getMarkers();this._model=new X(this._editor,C),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var F=this._keybindingService.lookupKeybinding(me.ID),se=this._keybindingService.lookupKeybinding(Xe.ID),oe=[new Fe.a(Xe.ID,Xe.LABEL+(se?" ("+se.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ue(this,function(Ve){return this._model&&this._model.move(!0,!0),[2]})})}),new Fe.a(me.ID,me.LABEL+(F?" ("+F.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ue(this,function(Ve){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new L(this._editor,oe,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return Q.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var be=0,De=oe;beA)return!1;for(var k=0;k=65&&R<=90&&R+32===$)continue;if($>=65&&$<=90&&$+32===R)continue;return!1}return!0},l.prototype._createOperationsForBlockComment=function(d,m,E,L,A,k){var R=d.startLineNumber,$=d.startColumn,ie=d.endLineNumber,W=d.endColumn,B=A.getLineContent(R),le=A.getLineContent(ie),Ce=B.lastIndexOf(m,$-1+m.length),Me=le.indexOf(E,W-1-E.length);if(Ce!==-1&&Me!==-1)if(R===ie){var Te=B.substring(Ce+m.length,Me);Te.indexOf(E)>=0&&(Ce=-1,Me=-1)}else{var Fe=B.substring(Ce+m.length),He=le.substring(0,Me);(Fe.indexOf(E)>=0||He.indexOf(E)>=0)&&(Ce=-1,Me=-1)}var Pe;Ce!==-1&&Me!==-1?(L&&Ce+m.length0&&le.charCodeAt(Me-1)===32&&(E=" "+E,Me-=1),Pe=l._createRemoveBlockCommentOperations(new O.a(R,Ce+m.length+1,ie,Me+1),m,E)):(Pe=l._createAddBlockCommentOperations(d,m,E,this._insertSpace),this._usedEndToken=Pe.length===1?E:null);for(var ne=0,ee=Pe;neA?m[$].commentStrOffset=k-1:m[$].commentStrOffset=k}},l}(),f=function(){var l=function(m,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,A){L.__proto__=A}||function(L,A){for(var k in A)A.hasOwnProperty(k)&&(L[k]=A[k])},l(m,E)};return function(d,m){l(d,m);function E(){this.constructor=d}d.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),v=function(l){f(d,l);function d(m,E){var L=l.call(this,E)||this;return L._type=m,L}return d.prototype.run=function(m,E){if(!E.hasModel())return;for(var L=E.getModel(),A=[],k=E.getSelections(),R=L.getOptions(),$=E.getOption(13),ie=0,W=k;ie=qe?b=Math.max(b,qe+ct-g):(t[i++]=new He(g,b),g=qe,b=ct)}return t[i++]=new He(g,b),t},V._createHorizontalRangesFromClientRects=function(o,t){if(!o||o.length===0)return null;for(var i=[],g=0,b=o.length;gqe)return null;t=Math.min(qe,Math.max(Le,t)),g=Math.min(qe,Math.max(Le,g)),t!==g&&(g>0&&b===0&&(g--,b=1073741824));var ct=o.children[t].firstChild,_t=o.children[g].firstChild;if((!ct||!_t)&&(!ct&&i===0&&t>0&&(ct=o.children[t-1].firstChild,i=1073741824),!_t&&b===0&&g>0&&(_t=o.children[g-1].firstChild,b=1073741824)),!ct||!_t)return null;i=Math.min(ct.textContent.length,Math.max(0,i)),b=Math.min(_t.textContent.length,Math.max(0,b));var et=this._readClientRects(ct,i,_t,b,Ie);return this._createHorizontalRangesFromClientRects(et,K)},V}(),q=e("dBaI"),ue=e("baJR"),X=e("t9D7"),he=e("/UlZ"),je=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Xe=function(){return w.f?!0:!(w.d||v.h||v.k)}(),me=v.f,ge=function(){function V(o,t){this._domNode=o,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(V.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),V}(),_e=function(){function V(o,t){this.themeType=t;var i=o.options,g=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=g.spaceWidth,this.middotWidth=g.middotWidth,this.useMonospaceOptimizations=g.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=g.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return V.prototype.equals=function(o){return this.themeType===o.themeType&&this.renderWhitespace===o.renderWhitespace&&this.renderControlCharacters===o.renderControlCharacters&&this.spaceWidth===o.spaceWidth&&this.middotWidth===o.middotWidth&&this.useMonospaceOptimizations===o.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===o.canUseHalfwidthRightwardsArrow&&this.lineHeight===o.lineHeight&&this.stopRenderingLineAfter===o.stopRenderingLineAfter&&this.fontLigatures===o.fontLigatures},V}(),Re=function(){function V(o){this._options=o,this._isMaybeInvalid=!0,this._renderedViewLine=null}return V.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},V.prototype.setDomNode=function(o){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(y.b)(o);else throw new Error("I have no rendered view line to set the dom node to...")},V.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},V.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},V.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},V.prototype.onOptionsChanged=function(o){this._isMaybeInvalid=!0,this._options=o},V.prototype.onSelectionChanged=function(){return me||this._options.themeType===X.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},V.prototype.renderLine=function(o,t,i,g){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var b=i.getViewLineRenderingData(o),K=this._options,Ie=q.a.filter(b.inlineDecorations,o,b.minColumn,b.maxColumn),Le=null;if(me||K.themeType===X.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ct=0,_t=qe;ct<_t.length;ct++){var et=_t[ct];if(et.endLineNumbero)continue;var Wt=et.startLineNumber===o?et.startColumn:b.minColumn,kt=et.endLineNumber===o?et.endColumn:b.maxColumn;Wt');var qt=Object(ue.d)(Vt,g);g.appendASCIIString("");var $t=null;return Xe&&b.isBasicASCII&&K.useMonospaceOptimizations&&qt.containsForeignElements===0&&(b.content.length<300&&Vt.lineTokens.getCount()<100&&($t=new Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping))),$t||($t=C(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},V.prototype.layoutLine=function(o,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},V.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},V.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},V.prototype.getVisibleRangesForRange=function(o,t,i){if(!this._renderedViewLine)return null;o=o|0,t=t|0,o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var g=this._renderedViewLine.input.stopRenderingLineAfter|0,b=!1;g!==-1&&o>g+1&&t>g+1&&(b=!0),g!==-1&&o>g+1&&(o=g+1),g!==-1&&t>g+1&&(t=g+1);var K=this._renderedViewLine.getVisibleRangesForRange(o,t,i);return K&&K.length>0?new ne(b,K):null},V.prototype.getColumnOfNodeOffset=function(o,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(o,t,i):1},V.CLASS_NAME="view-line",V}(),Ee=function(){function V(o,t,i){this.domNode=o,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}return V.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},V.prototype.getWidthIsFast=function(){return!0},V.prototype.getVisibleRangesForRange=function(o,t,i){var g=this._getCharPosition(o),b=this._getCharPosition(t);return[new He(g,b-g)]},V.prototype._getCharPosition=function(o){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[o-1])},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),ve=function(){function V(o,t,i,g,b){if(this.domNode=o,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=b,this._cachedWidth=-1,this._pixelOffsetCache=null,!g||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var K=0,Ie=this._characterMapping.length;K<=Ie;K++)this._pixelOffsetCache[K]=-1}}return V.prototype._getReadingTarget=function(o){return o.domNode.firstChild},V.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},V.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},V.prototype.getVisibleRangesForRange=function(o,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var g=this._readPixelOffset(this.domNode,o,i);if(g===-1)return null;var b=this._readPixelOffset(this.domNode,t,i);return b===-1?null:[new He(g,b-g)]}return this._readVisibleRangesForRange(this.domNode,o,t,i)},V.prototype._readVisibleRangesForRange=function(o,t,i,g){if(t===i){var b=this._readPixelOffset(o,t,g);return b===-1?null:[new He(b,0)]}else return this._readRawVisibleRangesForRange(o,t,i,g)},V.prototype._readPixelOffset=function(o,t,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var g=this._getReadingTarget(o);return g.firstChild?g.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var b=this._pixelOffsetCache[t];if(b!==-1)return b;var K=this._actualReadPixelOffset(o,t,i);return this._pixelOffsetCache[t]=K,K}return this._actualReadPixelOffset(o,t,i)},V.prototype._actualReadPixelOffset=function(o,t,i){if(this._characterMapping.length===0){var g=ae.readHorizontalRanges(this._getReadingTarget(o),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!g||g.length===0?-1:g[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,K,Ie,i.clientRectDeltaLeft,i.endNode);return!Le||Le.length===0?-1:Le[0].left},V.prototype._readRawVisibleRangesForRange=function(o,t,i,g){if(t===1&&i===this._characterMapping.length)return[new He(0,this.getWidth())];var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=this._characterMapping.charOffsetToPartData(i-1),qe=ue.a.getPartIndex(Le),ct=ue.a.getCharIndex(Le);return ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,qe,ct,g.clientRectDeltaLeft,g.endNode)},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),Q=function(V){je(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._readVisibleRangesForRange=function(t,i,g,b){var K=V.prototype._readVisibleRangesForRange.call(this,t,i,g,b);if(!K||K.length===0||i===g||i===1&&g===this._characterMapping.length)return K;if(!this.input.containsRTL){var Ie=this._readPixelOffset(t,g,b);if(Ie!==-1){var Le=K[K.length-1];Le.left=4&&o[0]===3&&o[3]===7},V.isStrictChildOfViewLines=function(o){return o.length>4&&o[0]===3&&o[3]===7},V.isChildOfScrollableElement=function(o){return o.length>=2&&o[0]===3&&o[1]===5},V.isChildOfMinimap=function(o){return o.length>=2&&o[0]===3&&o[1]===8},V.isChildOfContentWidgets=function(o){return o.length>=4&&o[0]===3&&o[3]===1},V.isChildOfOverflowingContentWidgets=function(o){return o.length>=1&&o[0]===2},V.isChildOfOverlayWidgets=function(o){return o.length>=2&&o[0]===3&&o[1]===4},V}(),pt=function(){function V(o,t,i){this.model=o.model;var g=o.configuration.options;this.layoutInfo=g.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=g.get(49),this.typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=o,this._viewHelper=t}return V.prototype.getZoneAtCoord=function(o){return V.getZoneAtCoord(this._context,o)},V.getZoneAtCoord=function(o,t){var i=o.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var g=i.verticalOffset+i.height/2,b=o.model.getLineCount(),K=null,Ie=void 0,Le=null;return i.afterLineNumber!==b&&(Le=new oe.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(K=new oe.a(i.afterLineNumber,o.model.getLineMaxColumn(i.afterLineNumber))),Le===null?Ie=K:K===null?Ie=Le:t=o.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ao._getMouseColumn(this.mouseContentHorizontalOffset,o.typicalHalfwidthCharacterWidth))}return V}(),Mt=function(V){Se(o,V);function o(t,i,g,b){var K=V.call(this,t,i,g)||this;return K._ctx=t,b?(K.target=b,K.targetPath=le.collect(b,t.viewDomNode)):(K.target=null,K.targetPath=new Uint8Array(0)),K}return o.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+` - target: `+(this.target?this.target.outerHTML:null)},o.prototype.fulfill=function(t,i,g,b){i===void 0&&(i=null),g===void 0&&(g=null),b===void 0&&(b=null);var K=this.mouseColumn;return i&&i.columnK.contentLeft+K.width)continue;var _t=o.getVerticalOffsetForLineNumber(K.position.lineNumber);if(_t<=Le&&Le<=_t+K.height)return t.fulfill(6,K.position)}return null},V._hitTestViewZone=function(o,t){var i=o.getZoneAtCoord(t.mouseVerticalOffset);if(i){var g=t.isInContentArea?8:5;return t.fulfill(g,i.position,null,i)}return null},V._hitTestTextArea=function(o,t){return it.isTextArea(t.targetPath)?o.lastRenderData.lastTextareaPosition?t.fulfill(6,o.lastRenderData.lastTextareaPosition):t.fulfill(1,o.lastRenderData.lastTextareaPosition):null},V._hitTestMargin=function(o,t){if(t.isInMarginArea){var i=o.getFullLineRangeAtCoord(t.mouseVerticalOffset),g=i.range.getStartPosition(),b=Math.abs(t.pos.x-t.editorPos.x),K={isAfterLines:i.isAfterLines,glyphMarginLeft:o.layoutInfo.glyphMarginLeft,glyphMarginWidth:o.layoutInfo.glyphMarginWidth,lineNumbersWidth:o.layoutInfo.lineNumbersWidth,offsetX:b};return b-=o.layoutInfo.glyphMarginLeft,b<=o.layoutInfo.glyphMarginWidth?t.fulfill(2,g,i.range,K):(b-=o.layoutInfo.glyphMarginWidth,b<=o.layoutInfo.lineNumbersWidth?t.fulfill(3,g,i.range,K):(b-=o.layoutInfo.lineNumbersWidth,t.fulfill(4,g,i.range,K)))}return null},V._hitTestViewLines=function(o,t,i){if(!it.isChildOfViewLines(t.targetPath))return null;if(o.isAfterLines(t.mouseVerticalOffset)){var g=o.model.getLineCount(),b=o.model.getLineMaxColumn(g);return t.fulfill(7,new oe.a(g,b),void 0,zt)}if(i){if(it.isStrictChildOfViewLines(t.targetPath)){var K=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(o.model.getLineLength(K)===0){var Ie=o.getLineWidth(K),Le=uo(t.mouseContentHorizontalOffset-Ie);return t.fulfill(7,new oe.a(K,1),void 0,Le)}var qe=o.getLineWidth(K);if(t.mouseContentHorizontalOffset>=qe){var Le=uo(t.mouseContentHorizontalOffset-qe),ct=new oe.a(K,o.model.getLineMaxColumn(K));return t.fulfill(7,ct,void 0,Le)}}return t.fulfill(0)}var _t=V._doHitTest(o,t);return _t.position?V.createMouseTargetFromHitTestPosition(o,t,_t.position.lineNumber,_t.position.column):this._createMouseTarget(o,t.withTarget(_t.hitTarget),!0)},V._hitTestMinimap=function(o,t){if(it.isChildOfMinimap(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V._hitTestScrollbarSlider=function(o,t){if(it.isChildOfScrollableElement(t.targetPath)&&(t.target&&t.target.nodeType===1)){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var g=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),b=o.model.getLineMaxColumn(g);return t.fulfill(11,new oe.a(g,b))}}return null},V._hitTestScrollbar=function(o,t){if(it.isChildOfScrollableElement(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V.prototype.getMouseColumn=function(o,t){var i=this._context.configuration.options,g=i.get(107),b=this._context.viewLayout.getCurrentScrollLeft()+t.x-o.x-g.contentLeft;return V._getMouseColumn(b,i.get(34).typicalHalfwidthCharacterWidth)},V._getMouseColumn=function(o,t){if(o<0)return 1;var i=Math.round(o/t);return i+1},V.createMouseTargetFromHitTestPosition=function(o,t,i,g){var b=new oe.a(i,g),K=o.getLineWidth(i);if(t.mouseContentHorizontalOffset>K){if(v.e&&b.column===1){var Ie=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,new oe.a(i,o.model.getLineMaxColumn(i)),void 0,Ie)}var Le=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,b,void 0,Le)}var qe=o.visibleRangeForPosition(i,g);if(!qe)return t.fulfill(0,b);var ct=qe.left;if(t.mouseContentHorizontalOffset===ct)return t.fulfill(6,b);var _t=[];if(_t.push({offset:qe.left,column:g}),g>1){var et=o.visibleRangeForPosition(i,g-1);et&&_t.push({offset:et.left,column:g-1})}var Wt=o.model.getLineMaxColumn(i);if(g=t.editorPos.y+o.layoutInfo.height&&(K=t.editorPos.y+o.layoutInfo.height-1);var Ie=new l(t.pos.x,K),Le=this._actualDoHitTestWithCaretRangeFromPoint(o,Ie.toClientCoordinates());return Le.position?Le:this._actualDoHitTestWithCaretRangeFromPoint(o,t.pos.toClientCoordinates())},V._actualDoHitTestWithCaretRangeFromPoint=function(o,t){var i=J.E(o.viewDomNode),g;if(i?typeof i.caretRangeFromPoint=="undefined"?g=so(i,t.clientX,t.clientY):g=i.caretRangeFromPoint(t.clientX,t.clientY):g=document.caretRangeFromPoint(t.clientX,t.clientY),!g||!g.startContainer)return{position:null,hitTarget:null};var b=g.startContainer,K=null;if(b.nodeType===b.TEXT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,qe=Le?Le.parentNode:null,ct=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ct===Re.CLASS_NAME){var _t=o.getPositionFromDOMInfo(Ie,g.startOffset);return{position:_t,hitTarget:null}}else K=b.parentNode}else if(b.nodeType===b.ELEMENT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,et=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:null;if(et===Re.CLASS_NAME){var _t=o.getPositionFromDOMInfo(b,b.textContent.length);return{position:_t,hitTarget:null}}else K=b}return{position:null,hitTarget:K}},V._doHitTestWithCaretPositionFromPoint=function(o,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var g=i.offsetNode.parentNode,b=g?g.parentNode:null,K=b?b.parentNode:null,Ie=K&&K.nodeType===K.ELEMENT_NODE?K.className:null;if(Ie===Re.CLASS_NAME){var Le=o.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:Le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},V._doHitTestWithMoveToPoint=function(o,t){var i=null,g=null,b=document.body.createTextRange();try{b.moveToPoint(t.clientX,t.clientY)}catch(_t){return{position:null,hitTarget:null}}b.collapse(!0);var K=b?b.parentElement():null,Ie=K?K.parentNode:null,Le=Ie?Ie.parentNode:null,qe=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:"";if(qe===Re.CLASS_NAME){var ct=b.duplicate();ct.moveToElementText(K),ct.setEndPoint("EndToStart",b),i=o.getPositionFromDOMInfo(K,ct.text.length),ct.moveToElementText(o.viewDomNode)}else g=K;return b.moveToElementText(o.viewDomNode),{position:i,hitTarget:g}},V._doHitTest=function(o,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(o,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(o,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(o,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},V}();function so(V,o,t){var i=document.createRange(),g=V.elementFromPoint(o,t);if(g!==null){for(;g&&g.firstChild&&g.firstChild.nodeType!==g.firstChild.TEXT_NODE;)g=g.lastChild;var b=g.getBoundingClientRect(),K=window.getComputedStyle(g,null).getPropertyValue("font"),Ie=g.innerText,Le=b.left,qe=0,ct=void 0;if(o>b.left+b.width)qe=Ie.length;else for(var _t=Pt.getInstance(),et=0;et0?1:-1;ft.a.setZoomLevel(_t+et),ct.preventDefault(),ct.stopPropagation()}};return b._register(J.j(b.viewHelper.viewDomNode,v.f?"mousewheel":"wheel",Ie,{capture:!0,passive:!1})),b._context.addEventHandler(b),b}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},o.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},o.prototype.getTargetAtClientPoint=function(t,i){var g=new d(t,i),b=g.toPageCoordinates(),K=E(this.viewHelper.viewDomNode);return b.yK.y+K.height||b.xK.x+K.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),K,b,null)},o.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},o.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},o.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},o.prototype._onMouseMove=function(t){if(this._mouseDownOperation.isActive())return;var i=t.timestamp;if(ii.y+i.height){var Ie=b.getCurrentScrollTop()+(t.posy-i.y),Le=pt.getZoneAtCoord(this._context,Ie);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Qe(null,13,K,qe)}var _t=b.getLineNumberAtVerticalOffset(Ie);return new Qe(null,13,K,new oe.a(_t,g.getLineMaxColumn(_t)))}var et=b.getLineNumberAtVerticalOffset(b.getCurrentScrollTop()+(t.posy-i.y));return t.posxi.x+i.width?new Qe(null,13,K,new oe.a(et,g.getLineMaxColumn(et))):null},o.prototype._findMousePosition=function(t,i){var g=this._getPositionOutsideEditor(t);if(g)return g;var b=this._createMouseTarget(t,i),K=b.position;if(!K)return null;if(b.type===8||b.type===5){var Ie=this._helpPositionJumpOverViewZone(b.detail);if(Ie)return new Qe(b.element,b.type,b.mouseColumn,Ie,null,b.detail)}return b},o.prototype._helpPositionJumpOverViewZone=function(t){var i=new oe.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),g=t.positionBefore,b=t.positionAfter;return g&&b?g.isBefore(i)?g:b:null},o.prototype._dispatchMouse=function(t,i){if(!t.position)return;this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},o}(z.a),Ct=function(){function V(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(V.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),V.prototype.setModifiers=function(o){this._altKey=o.altKey,this._ctrlKey=o.ctrlKey,this._metaKey=o.metaKey,this._shiftKey=o.shiftKey},V.prototype.setStartButtons=function(o){this._leftButton=o.leftButton,this._middleButton=o.middleButton},V.prototype.setStartedOnLineNumbers=function(o){this._startedOnLineNumbers=o},V.prototype.trySetCount=function(o,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>V.CLEAR_MOUSE_DOWN_COUNT_TIME&&(o=1),this._lastSetMouseDownCountTime=i,o>this._lastMouseDownCount+1&&(o=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(o,this._lastMouseDownPositionEqualCount)},V.CLEAR_MOUSE_DOWN_COUNT_TIME=400,V}(),gt=e("CjF5"),bt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Gt(V,o){var t={translationY:o.translationY,translationX:o.translationX};return V&&(t.translationY+=V.translationY,t.translationX+=V.translationX),t}var Nt=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.msTouchAction="none",b.viewHelper.linesContentDomNode.style.msContentZooming="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(Le){var qe=Le.pointerType;if(qe===(Le.MSPOINTER_TYPE_MOUSE||"mouse")){b._lastPointerType="mouse";return}else qe===(Le.MSPOINTER_TYPE_TOUCH||"touch")?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Et=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.touchAction="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(Le){var qe=Le.pointerType;if(qe==="mouse"){b._lastPointerType="mouse";return}else qe==="touch"?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Je=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(Ie){return b.onTap(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(Ie){return b.onChange(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(Ie){return b._onContextMenu(new L(Ie,b.viewHelper.viewDomNode),!1)})),b._lastPointerType="mouse",b._register(J.j(b.viewHelper.linesContentDomNode,"pointerdown",function(Ie){var Le=Ie.pointerType;if(Le==="mouse"){b._lastPointerType="mouse";return}else Le==="touch"?b._lastPointerType="touch":b._lastPointerType="pen"}));var K=new k(b.viewHelper.viewDomNode);return b._register(K.onPointerMoveThrottled(b.viewHelper.viewDomNode,function(Ie){return b._onMouseMove(Ie)},at(b.mouseTargetFactory),tt.MOUSE_MOVE_MINIMUM_TIME)),b._register(K.onPointerUp(b.viewHelper.viewDomNode,function(Ie){return b._onMouseUp(Ie)})),b._register(K.onPointerLeave(b.viewHelper.viewDomNode,function(Ie){return b._onMouseLeave(Ie)})),b._register(K.onPointerDown(b.viewHelper.viewDomNode,function(Ie){return b._onMouseDown(Ie)})),b}return o.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:t.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},o.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;V.prototype._onMouseDown.call(this,t)},o}(tt),$e=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(K){return b.onTap(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(K){return b.onChange(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(K){return b._onContextMenu(new L(K,b.viewHelper.viewDomNode),!1)})),b}return o.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},o.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o}(tt),ze=function(V){bt(o,V);function o(t,i,g){var b=V.call(this)||this;return window.navigator.msPointerEnabled?b.handler=b._register(new Nt(t,i,g)):w.c&>.a.pointerEvents?b.handler=b._register(new Je(t,i,g)):window.TouchEvent?b.handler=b._register(new $e(t,i,g)):window.navigator.pointerEnabled||window.PointerEvent?b.handler=b._register(new Et(t,i,g)):b.handler=b._register(new tt(t,i,g)),b}return o.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},o}(z.a),Ke=e("VvMK"),fe=e("N0LK"),G=e("5TxY"),te=e("Comh"),Y=e("Krc3"),de=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ke=function(V){de(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o}(ie),lt=e("kYye"),Tt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Jt=function(V){Tt(o,V);function o(t){var i=V.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new oe.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype._readConfig=function(){var t=this._context.configuration.options;this._lineHeight=t.get(49);var i=t.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=t.get(71);var g=t.get(107);this._lineNumbersLeft=g.lineNumbersLeft,this._lineNumbersWidth=g.lineNumbersWidth},o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t,1));if(i.column!==1)return"";var g=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(g);if(this._renderLineNumbers===2){var b=Math.abs(this._lastCursorModelPosition.lineNumber-g);return b===0?''+g+"":String(b)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===g||g%10===0?String(g):"":String(g)},o.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=w.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K='
',Ie=this._context.model.getLineCount(),Le=[],qe=g;qe<=b;qe++){var ct=qe-g;if(!this._renderFinalNewline&&(qe===Ie&&this._context.model.getLineLength(qe)===0)){Le[ct]="";continue}var _t=this._getLineRenderLineNumber(qe);_t?Le[ct]=K+_t+"
":Le[ct]=""}this._renderResult=Le},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.CLASS_NAME="line-numbers",o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.k);t&&o.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=V.getColor(lt.b);i&&o.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),po=function(V){eo(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._canUseLayerHinting=!g.get(22),i._contentLeft=b.contentLeft,i._glyphMarginLeft=b.glyphMarginLeft,i._glyphMarginWidth=b.glyphMarginWidth,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setClassName(o.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(y.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(o.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=g.contentLeft,this._glyphMarginLeft=g.glyphMarginLeft,this._glyphMarginWidth=g.glyphMarginWidth,!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var g=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(g),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(g)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(B),co=e("5v8Y"),Eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oo=function(){function V(o){this.type=1,this._source=o}return V.prototype.hasChanged=function(o){return this._source.hasChanged(o)},V}(),Ao=function(){function V(o){this.type=2,this.contentWidth=o.contentWidth,this.contentHeight=o.contentHeight,this.contentWidthChanged=o.contentWidthChanged,this.contentHeightChanged=o.contentHeightChanged}return V}(),Zo=function(){function V(o,t){this.type=3,this.selections=o,this.modelSelections=t}return V}(),Co=function(){function V(){this.type=4}return V}(),Wo=function(){function V(){this.type=5}return V}(),Go=function(){function V(o){this.type=6,this.isFocused=o}return V}(),Bo=function(){function V(){this.type=7}return V}(),Mo=function(){function V(){this.type=8}return V}(),Qo=function(){function V(o,t){this.type=9,this.fromLineNumber=o,this.toLineNumber=t}return V}(),fn=function(){function V(o,t){this.type=10,this.fromLineNumber=o,this.toLineNumber=t}return V}(),Vo=function(){function V(o,t){this.type=11,this.fromLineNumber=o,this.toLineNumber=t}return V}(),mn=function(){function V(o,t,i,g,b){this.type=12,this.source=o,this.range=t,this.verticalType=i,this.revealHorizontal=g,this.scrollType=b}return V}(),yn=function(){function V(o){this.type=13,this.scrollWidth=o.scrollWidth,this.scrollLeft=o.scrollLeft,this.scrollHeight=o.scrollHeight,this.scrollTop=o.scrollTop,this.scrollWidthChanged=o.scrollWidthChanged,this.scrollLeftChanged=o.scrollLeftChanged,this.scrollHeightChanged=o.scrollHeightChanged,this.scrollTopChanged=o.scrollTopChanged}return V}(),dn=function(){function V(){this.type=14}return V}(),rn=function(){function V(o){this.type=15,this.ranges=o}return V}(),pn=function(){function V(){this.type=16}return V}(),zo=function(){function V(){this.type=17}return V}(),Uo=function(V){Eo(o,V);function o(){var t=V.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return o.prototype.dispose=function(){this._listeners=[],V.prototype.dispose.call(this)},o.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new St),this._collector},o.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},o.prototype._emit=function(t){for(var i=this._listeners.slice(0),g=0,b=i.length;g0)return new te.b(kt,kt.length,kt.length,Wt,Wt)}}return te.b.EMPTY}return te.a.fromEditorSelection(_t,Le,b._selections[0],b._accessibilityPageSize,b._accessibilitySupport===0)},deduceModelPosition:function(_t,et,Wt){return b._context.model.deduceModelPositionRelativeToViewPosition(_t,et,Wt)}};return b._textAreaInput=b._register(new G.b(qe,b.textArea)),b._register(b._textAreaInput.onKeyDown(function(ct){b._viewController.emitKeyDown(ct)})),b._register(b._textAreaInput.onKeyUp(function(ct){b._viewController.emitKeyUp(ct)})),b._register(b._textAreaInput.onPaste(function(ct){var _t=!1,et=null,Wt=null;ct.metadata&&(_t=b._emptySelectionClipboard&&!!ct.metadata.isFromEmptySelection,et=typeof ct.metadata.multicursorText!="undefined"?ct.metadata.multicursorText:null,Wt=ct.metadata.mode),b._viewController.paste("keyboard",ct.text,_t,et,Wt)})),b._register(b._textAreaInput.onCut(function(){b._viewController.cut("keyboard")})),b._register(b._textAreaInput.onType(function(ct){ct.replaceCharCnt?b._viewController.replacePreviousChar("keyboard",ct.text,ct.replaceCharCnt):b._viewController.type("keyboard",ct.text)})),b._register(b._textAreaInput.onSelectionChangeRequest(function(ct){b._viewController.setSelection("keyboard",ct)})),b._register(b._textAreaInput.onCompositionStart(function(){var ct=b._selections[0].startLineNumber,_t=b._selections[0].startColumn;b._context.privateViewEventBus.emit(new mn("keyboard",new be.a(ct,_t,ct,_t),0,!0,1));var et=b._viewHelper.visibleRangeForPositionRelativeToEditor(ct,_t);et&&(b._visibleTextArea=new Dt(b._context.viewLayout.getVerticalOffsetForLineNumber(ct),et.left,we?0:1),b._render()),b.textArea.setClassName("inputarea ime-input"),b._viewController.compositionStart("keyboard")})),b._register(b._textAreaInput.onCompositionUpdate(function(ct){v.f?b._visibleTextArea=b._visibleTextArea.setWidth(0):b._visibleTextArea=b._visibleTextArea.setWidth(P(ct.data,b._fontInfo)),b._render()})),b._register(b._textAreaInput.onCompositionEnd(function(){b._visibleTextArea=null,b._render(),b.textArea.setClassName("inputarea"),b._viewController.compositionEnd("keyboard")})),b._register(b._textAreaInput.onFocus(function(){b._context.privateViewEventBus.emit(new Go(!0))})),b._register(b._textAreaInput.onBlur(function(){b._context.privateViewEventBus.emit(new Go(!1))})),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),g=Object(co.a)(this._context.configuration.options.get(96)),b=t.column,K=0;b>1;){var Ie=i.charCodeAt(b-2),Le=g.get(Ie);if(Le!==0||K>50)return i.substring(b-1,t.column-1);K++,b--}return i.substring(0,t.column-1)},o.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),g=i.charAt(t.column-2);if(!fe.z(g.charCodeAt(0)))return g}return""},o.prototype._getAriaLabel=function(t){var i=t.get(2);return i===1?re.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):t.get(4)},o.prototype._setAccessibilityOptions=function(t){this._accessibilitySupport=t.get(2);var i=t.get(3);this._accessibilitySupport===2&&i===he.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,this._contentHeight=g.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),w.g&&t.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),t.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.isFocused=function(){return this._textAreaInput.isFocused()},o.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},o.prototype.getLastRenderData=function(){return this._lastRenderPosition},o.prototype.setAriaOptions=function(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},o.prototype.prepareRender=function(t){this._primaryCursorPosition=new oe.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},o.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},o.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(w.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,we?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,we?0:1,we?0:1)},o.prototype._renderInsideEditor=function(t,i,g,b,K){this._lastRenderPosition=t;var Ie=this.textArea,Le=this.textAreaCover;U.a.applyFontInfo(Ie,this._fontInfo),Ie.setTop(i),Ie.setLeft(g),Ie.setWidth(b),Ie.setHeight(K),Le.setTop(0),Le.setLeft(0),Le.setWidth(0),Le.setHeight(0)},o.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(U.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),we){t.setWidth(0),t.setHeight(0),i.setWidth(0),i.setHeight(0);return}t.setWidth(1),t.setHeight(1),i.setWidth(1),i.setHeight(1);var g=this._context.configuration.options;g.get(40)?i.setClassName("monaco-editor-background textAreaCover "+po.OUTER_CLASS_NAME):g.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Jt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},o}(B);function P(V,o){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=Z(o);var g=i.measureText(V);return v.h?g.width+2:g.width}function Z(V){return Ae("normal",V.fontWeight,V.fontSize,V.lineHeight,V.fontFamily)}function Ae(V,o,t,i,g){return V+" normal "+o+" "+t+"px / "+i+"px "+g}var xe=e("1YUG"),Ne=function(){function V(o,t,i,g){this.configuration=o,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=g}return V.prototype._execMouseCommand=function(o,t){t.source="mouse",this.commandDelegate.executeEditorCommand(o,t)},V.prototype.paste=function(o,t,i,g,b){this.commandDelegate.paste(o,t,i,g,b)},V.prototype.type=function(o,t){this.commandDelegate.type(o,t)},V.prototype.replacePreviousChar=function(o,t,i){this.commandDelegate.replacePreviousChar(o,t,i)},V.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},V.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},V.prototype.cut=function(o){this.commandDelegate.cut(o)},V.prototype.setSelection=function(o,t){this.commandDelegate.executeEditorCommand(xe.CoreNavigationCommands.SetSelection,{source:o,selection:t})},V.prototype._validateViewColumn=function(o){var t=this.viewModel.getLineMinColumn(o.lineNumber);return o.column=4?this._selectAll():o.mouseDownCount===3?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount===2?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn,!0):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn,!0):this._moveToSelect(o.position):this.moveTo(o.position)},V.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},V.prototype.moveTo=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveTo,this._usualArgs(o))},V.prototype._moveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},V.prototype._columnSelect=function(o,t,i){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:t,doColumnSelect:i})},V.prototype._createCursor=function(o,t){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:t})},V.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},V.prototype._wordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelect,this._usualArgs(o))},V.prototype._wordSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},V.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},V.prototype._lineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelect,this._usualArgs(o))},V.prototype._lineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},V.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},V.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},V.prototype._selectAll=function(){this._execMouseCommand(xe.CoreNavigationCommands.SelectAll,{})},V.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},V.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},V.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},V.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},V.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},V.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},V.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},V.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},V.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},V.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},V.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},V}(),dt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ht=function(V){dt(o,V);function o(t){var i=V.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=t,i}return o.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},o.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},o.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},o.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},o.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},o.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},o.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},o.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},o.prototype._convertViewToModelMouseTarget=function(t){return o.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},o.convertViewToModelMouseTarget=function(t,i){return new xt(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},o}(z.a),xt=function(){function V(o,t,i,g,b,K){this.element=o,this.type=t,this.mouseColumn=i,this.position=g,this.range=b,this.detail=K}return V.prototype.toString=function(){return Qe.toString(this)},V}(),Bt=e("erNZ"),Ut=function(){function V(o){this._createLine=o,this._set(1,[])}return V.prototype.flush=function(){this._set(1,[])},V.prototype._set=function(o,t){this._lines=t,this._rendLineNumberStart=o},V.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},V.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},V.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},V.prototype.getCount=function(){return this._lines.length},V.prototype.getLine=function(o){var t=o-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},V.prototype.onLinesDeleted=function(o,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),g=this.getEndLineNumber();if(tg)return null;for(var K=0,Ie=0,Le=i;Le<=g;Le++){var qe=Le-this._rendLineNumberStart;o<=Le&&Le<=t&&(Ie===0?(K=qe,Ie=1):Ie++)}if(o=i&&K<=g&&(this._lines[K-this._rendLineNumberStart].onContentChanged(),b=!0);return b},V.prototype.onLinesInserted=function(o,t){if(this.getCount()===0)return null;var i=t-o+1,g=this.getStartLineNumber(),b=this.getEndLineNumber();if(o<=g)return this._rendLineNumberStart+=i,null;if(o>b)return null;if(i+o>b){var K=this._lines.splice(o-this._rendLineNumberStart,b-o+1);return K}for(var Ie=[],Le=0;Lei)continue;for(var Le=Math.max(t,Ie.fromLineNumber),qe=Math.min(i,Ie.toLineNumber),ct=Le;ct<=qe;ct++){var _t=ct-this._rendLineNumberStart;this._lines[_t].onTokensChanged(),g=!0}}return g},V}(),Ht=function(){function V(o){var t=this;this._host=o,this.domNode=this._createDomNode(),this._linesCollection=new Ut(function(){return t._host.createVisibleLine()})}return V.prototype._createDomNode=function(){var o=Object(y.b)(document.createElement("div"));return o.setClassName("view-layer"),o.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o},V.prototype.onConfigurationChanged=function(o){return!!o.hasChanged(107)},V.prototype.onFlushed=function(o){return this._linesCollection.flush(),!0},V.prototype.onLinesChanged=function(o){return this._linesCollection.onLinesChanged(o.fromLineNumber,o.toLineNumber)},V.prototype.onLinesDeleted=function(o){var t=this._linesCollection.onLinesDeleted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,g=t.length;it){var Ie=t,Le=Math.min(i,b.rendLineNumberStart-1);Ie<=Le&&(this._insertLinesBefore(b,Ie,Le,g,t),b.linesLength+=Le-Ie+1)}else if(b.rendLineNumberStart0&&(this._removeLinesBefore(b,qe),b.linesLength-=qe)}if(b.rendLineNumberStart=t,b.rendLineNumberStart+b.linesLength-1i){var Ie=Math.max(0,i-b.rendLineNumberStart+1),Le=b.linesLength-1,qe=Le-Ie+1;qe>0&&(this._removeLinesAfter(b,qe),b.linesLength-=qe)}return this._finishRendering(b,!1,g),b},V.prototype._renderUntouchedLines=function(o,t,i,g,b){for(var K=o.rendLineNumberStart,Ie=o.lines,Le=t;Le<=i;Le++){var qe=K+Le;Ie[Le].layoutLine(qe,g[qe-b])}},V.prototype._insertLinesBefore=function(o,t,i,g,b){for(var K=[],Ie=0,Le=t;Le<=i;Le++)K[Ie++]=this.host.createVisibleLine();o.lines=K.concat(o.lines)},V.prototype._removeLinesBefore=function(o,t){for(var i=0;i=0;Ie--){var Le=o.lines[Ie];g[Ie]&&(Le.setDomNode(K),K=K.previousSibling)}},V.prototype._finishRenderingInvalidLines=function(o,t,i){var g=document.createElement("div");g.innerHTML=t;for(var b=0;b'),g.appendASCIIString(b),g.appendASCIIString(""),!0)},V.prototype.layoutLine=function(o,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},V}(),Ue=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentWidth=b.contentWidth,i.domNode.setHeight(0),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._contentWidth=g.contentWidth,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},o.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},o}(fo),Oe=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentLeft=b.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),U.a.applyFontInfo(i.domNode,g.get(34)),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;U.a.applyFontInfo(this.domNode,i.get(34));var g=i.get(107);return this._contentLeft=g.contentLeft,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},o.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t);var i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},o}(fo),rt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),It=function(){function V(o,t){this.top=o,this.left=t}return V}(),pe=function(V){rt(o,V);function o(t,i){var g=V.call(this,t)||this;return g._viewDomNode=i,g._widgets={},g.domNode=Object(y.b)(document.createElement("div")),le.write(g.domNode,1),g.domNode.setClassName("contentWidgets"),g.domNode.setPosition("absolute"),g.domNode.setTop(0),g.overflowingContentWidgetsDomNode=Object(y.b)(document.createElement("div")),le.write(g.overflowingContentWidgetsDomNode,2),g.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g=g,et=Le,Wt=qe>=g,kt=o.left,Vt=t.left;return kt+i>b.scrollLeft+b.viewportWidth&&(kt=b.scrollLeft+b.viewportWidth-i),Vt+i>b.scrollLeft+b.viewportWidth&&(Vt=b.scrollLeft+b.viewportWidth-i),ktK){var Le=Ie-(K-g);Ie-=Le,i-=Le}if(Ie=io,bo=ct+g<=_t.height-yo;return this._fixedOverflowWidgets?{fitsAbove:mo,aboveTop:Math.max(qe,io),aboveLeft:kt,fitsBelow:bo,belowTop:ct,belowLeft:$t}:{fitsAbove:mo,aboveTop:Math.max(K,io),aboveLeft:Wt,fitsBelow:bo,belowTop:Ie,belowLeft:qt}},V.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(o){return new It(o.top,o.left+this._contentLeft)},V.prototype._getTopAndBottomLeft=function(o){if(!this._viewRange)return[null,null];var t=o.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],g=t[0],b=0,K=t;bg.lineNumber&&(g=Ie)}for(var Le=1073741824,qe=0,ct=i.ranges;qeo.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRenderWidget(o)},V.prototype.render=function(o){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+o.scrollTop-o.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},V}(),ye=e("kw+w"),We=e("6OMU"),Ze=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),st=!0,mt=function(V){Ze(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._lineHeight=g.get(49),i._renderLineHighlight=g.get(72),i._contentLeft=b.contentLeft,i._contentWidth=b.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype._readFromSelections=function(){var t=!1,i=st?this._selections.slice(0,1):this._selections,g=i.map(function(K){return K.positionLineNumber});g.sort(function(K,Ie){return K-Ie}),We.g(this._cursorLineNumbers,g)||(this._cursorLineNumbers=g,t=!0);var b=i.every(function(K){return K.isEmpty()});return this._selectionIsEmpty!==b&&(this._selectionIsEmpty=b,t=!0),t},o.prototype.onThemeChanged=function(t){return this._readFromSelections()},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,Ie=0,Le=[],qe=g;qe<=b;qe++){for(var ct=qe-g;Ie=this._renderData.length?"":this._renderData[g]},o}(ke),Kt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'
'},o.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o}(mt),Xt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'
'},o.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o}(mt);Object(X.e)(function(V,o){st=!1;var t=V.getColor(lt.i);if(t&&(o.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }")),!t||t.isTransparent()||V.defines(lt.j)){var i=V.getColor(lt.j);i&&(st=!0,o.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),V.type==="hc"&&(o.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var no=e("Vtyv"),vo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),lo=function(V){vo(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;KVt.options.zIndex)return 1;var qt=kt.options.className,$t=Vt.options.className;return qt<$t?-1:qt>$t?1:be.a.compareRangesUsingStarts(kt.range,Vt.range)});for(var qe=t.visibleRange.startLineNumber,ct=t.visibleRange.endLineNumber,_t=[],et=qe;et<=ct;et++){var Wt=et-qe;_t[Wt]=""}this._renderWholeLineDecorations(t,g,_t),this._renderNormalDecorations(t,g,_t),this._renderResult=_t},o.prototype._renderWholeLineDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=t.visibleRange.endLineNumber,Le=0,qe=i.length;Le',et=Math.max(ct.range.startLineNumber,K),Wt=Math.min(ct.range.endLineNumber,Ie),kt=et;kt<=Wt;kt++){var Vt=kt-K;g[Vt]+=_t}}},o.prototype._renderNormalDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=null,Le=!1,qe=null,ct=0,_t=i.length;ct<_t;ct++){var et=i[ct];if(et.options.isWholeLine)continue;var Wt=et.options.className,kt=Boolean(et.options.showIfCollapsed),Vt=et.range;if(kt&&Vt.endColumn===1&&Vt.endLineNumber!==Vt.startLineNumber&&(Vt=new be.a(Vt.startLineNumber,Vt.startColumn,Vt.endLineNumber-1,this._context.model.getLineMaxColumn(Vt.endLineNumber-1))),Ie===Wt&&Le===kt&&be.a.areIntersectingOrTouching(qe,Vt)){qe=be.a.plusRange(qe,Vt);continue}Ie!==null&&this._renderNormalDecoration(t,qe,Ie,Le,b,K,g),Ie=Wt,Le=kt,qe=Vt}Ie!==null&&this._renderNormalDecoration(t,qe,Ie,Le,b,K,g)},o.prototype._renderNormalDecoration=function(t,i,g,b,K,Ie,Le){var qe=t.linesVisibleRangesForRange(i,g==="findMatch");if(!qe)return;for(var ct=0,_t=qe.length;ct<_t;ct++){var et=qe[ct];if(et.outsideRenderedLine)continue;var Wt=et.lineNumber-Ie;if(b&&et.ranges.length===1){var kt=et.ranges[0];kt.width===0&&(et.ranges[0]=new He(kt.left,this._typicalHalfwidthCharacterWidth))}for(var Vt=0,qt=et.ranges.length;Vt';Le[Wt]+=io}}},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke),Ro=e("GJhM"),_o=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),wo=function(V){_o(o,V);function o(t,i,g,b){var K=V.call(this,t)||this,Ie=K._context.configuration.options,Le=Ie.get(78),qe=Ie.get(56),ct=Ie.get(27),_t={listenOnDomNode:g.domNode,className:"editor-scrollable "+Object(X.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:Le.vertical,horizontal:Le.horizontal,verticalHasArrows:Le.verticalHasArrows,horizontalHasArrows:Le.horizontalHasArrows,verticalScrollbarSize:Le.verticalScrollbarSize,verticalSliderSize:Le.verticalSliderSize,horizontalScrollbarSize:Le.horizontalScrollbarSize,horizontalSliderSize:Le.horizontalSliderSize,handleMouseWheel:Le.handleMouseWheel,alwaysConsumeMouseWheel:Le.alwaysConsumeMouseWheel,arrowSize:Le.arrowSize,mouseWheelScrollSensitivity:qe,fastScrollSensitivity:ct};K.scrollbar=K._register(new Ro.c(i.domNode,_t,K._context.viewLayout.getScrollable())),le.write(K.scrollbar.getDomNode(),5),K.scrollbarDomNode=Object(y.b)(K.scrollbar.getDomNode()),K.scrollbarDomNode.setPosition("absolute"),K._setLayout();var et=function(kt,Vt,qt){var $t={};if(Vt){var io=kt.scrollTop;io&&($t.scrollTop=K._context.viewLayout.getCurrentScrollTop()+io,kt.scrollTop=0)}if(qt){var yo=kt.scrollLeft;yo&&($t.scrollLeft=K._context.viewLayout.getCurrentScrollLeft()+yo,kt.scrollLeft=0)}K._context.viewLayout.setScrollPositionNow($t)};return K._register(J.j(g.domNode,"scroll",function(Wt){return et(g.domNode,!0,!0)})),K._register(J.j(i.domNode,"scroll",function(Wt){return et(i.domNode,!0,!1)})),K._register(J.j(b.domNode,"scroll",function(Wt){return et(b.domNode,!0,!1)})),K._register(J.j(K.scrollbarDomNode.domNode,"scroll",function(Wt){return et(K.scrollbarDomNode.domNode,!0,!1)})),K}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var g=t.get(54),b=g.side;b==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,g=i.get(78),b=i.get(56),K=i.get(27),Ie={handleMouseWheel:g.handleMouseWheel,mouseWheelScrollSensitivity:b,fastScrollSensitivity:K};this.scrollbar.updateOptions(Ie)}return t.hasChanged(107)&&this._setLayout(),!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(X.d)(this._context.theme.type)),!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this.scrollbar.renderNow()},o}(B),jo=e("hHjc"),Ho=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Do=function(){function V(o,t,i){this.startLineNumber=+o,this.endLineNumber=+t,this.className=String(i)}return V}(),xo=function(V){Ho(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._render=function(t,i,g){for(var b=[],K=t;K<=i;K++){var Ie=K-t;b[Ie]=[]}if(g.length===0)return b;g.sort(function($t,io){return $t.className===io.className?$t.startLineNumber===io.startLineNumber?$t.endLineNumber-io.endLineNumber:$t.startLineNumber-io.startLineNumber:$t.className',ct=[],_t=i;_t<=g;_t++){var et=_t-i,Wt=b[et];Wt.length===0?ct[et]="":ct[et]='
=this._renderResult.length?"":this._renderResult[g]},o}(xo),gn=e("C6rC"),En=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),on=function(V){En(o,V);function o(t){var i=V.call(this)||this;i._context=t,i._primaryLineNumber=0;var g=i._context.configuration.options,b=g.get(108),K=g.get(34);return i._lineHeight=g.get(49),i._spaceWidth=K.spaceWidth,i._enabled=g.get(70),i._activeIndentEnabled=g.get(43),i._maxIndentLeft=b.wrappingColumn===-1?-1:b.wrappingColumn*K.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(108),b=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=b.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=g.wrappingColumn===-1?-1:g.wrappingColumn*b.typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0],g=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==g?(this._primaryLineNumber=g,!0):!1},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLanguageConfigurationChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._context.model.getOptions().indentSize,K=b*this._spaceWidth,Ie=t.scrollWidth,Le=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,g),ct=0,_t=0,et=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var Wt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,g);ct=Wt.startLineNumber,_t=Wt.endLineNumber,et=Wt.indent}for(var kt=[],Vt=i;Vt<=g;Vt++){var qt=ct<=Vt&&Vt<=_t,$t=Vt-i,io=qe[$t],yo="";if(io>=1)for(var mo=t.visibleRangeForPosition(new oe.a(Vt,1)),bo=mo?mo.left:0,go=1;go<=io;go++){var Lo=qt&&go===et?"cigra":"cigr";if(yo+='
',bo+=K,bo>Ie||this._maxIndentLeft>0&&bo>this._maxIndentLeft)break}kt[$t]=yo}this._renderResult=kt},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.h);t&&o.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=V.getColor(lt.a)||t;i&&o.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var On=e("OKK6"),Un=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Rn=function(){function V(){this._currentVisibleRange=new be.a(1,1,1,1)}return V.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},V.prototype.setCurrentVisibleRange=function(o){this._currentVisibleRange=o},V}(),ai=function(){function V(o,t,i,g,b,K){this.lineNumber=o,this.startColumn=t,this.endColumn=i,this.startScrollTop=g,this.stopScrollTop=b,this.scrollType=K}return V}(),bi=function(V){Un(o,V);function o(t,i){var g=V.call(this,t)||this;g._linesContent=i,g._textRangeRestingSpot=document.createElement("div"),g._visibleLines=new Ht(g),g.domNode=g._visibleLines.domNode;var b=g._context.configuration,K=g._context.configuration.options,Ie=K.get(34),Le=K.get(108);return g._lineHeight=K.get(49),g._typicalHalfwidthCharacterWidth=Ie.typicalHalfwidthCharacterWidth,g._isViewportWrapping=Le.isViewportWrapping,g._revealHorizontalRightPadding=K.get(75),g._cursorSurroundingLines=K.get(19),g._cursorSurroundingLinesStyle=K.get(20),g._canUseLayerHinting=!K.get(22),g._viewLineOptions=new _e(b,g._context.theme.type),le.write(g.domNode,7),g.domNode.setClassName("view-lines"),U.a.applyFontInfo(g.domNode,Ie),g._maxLineWidth=0,g._asyncUpdateLineWidths=new p.d(function(){g._updateLineWidthsSlow()},200),g._lastRenderedData=new Rn,g._horizontalRevealRequest=null,g}return o.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new Re(this._viewLineOptions)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,g=i.get(34),b=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._isViewportWrapping=b.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),U.a.applyFontInfo(this.domNode,g),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},o.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new _e(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var g=this._visibleLines.getStartLineNumber(),b=this._visibleLines.getEndLineNumber(),K=g;K<=b;K++){var Ie=this._visibleLines.getVisibleLine(K);Ie.onOptionsChanged(this._viewLineOptions)}return!0}return!1},o.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=!1,K=i;K<=g;K++)b=this._visibleLines.getVisibleLine(K).onSelectionChanged()||b;return b},o.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=i;b<=g;b++)this._visibleLines.getVisibleLine(b).onDecorationsChanged();return!0},o.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),g=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?g={scrollTop:g.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new ai(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),g.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var b=Math.abs(this._context.viewLayout.getCurrentScrollTop()-g.scrollTop);return t.scrollType===0&&b>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(g):this._context.viewLayout.setScrollPositionNow(g),!0},o.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),g=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTopg)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},o.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.getPositionFromDOMInfo=function(t,i){var g=this._getViewLineDomNode(t);if(g===null)return null;var b=this._getLineNumberFor(g);if(b===-1)return null;if(b<1||b>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(b)===1)return new oe.a(b,1);var K=this._visibleLines.getStartLineNumber(),Ie=this._visibleLines.getEndLineNumber();if(bIe)return null;var Le=this._visibleLines.getVisibleLine(b).getColumnOfNodeOffset(b,t,i),qe=this._context.model.getLineMinColumn(b);return Leg?-1:this._visibleLines.getVisibleLine(t).getWidth()},o.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var g=t.endLineNumber,b=be.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!b)return null;var K=[],Ie=0,Le=new ge(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(b.startLineNumber,1)).lineNumber);for(var ct=this._visibleLines.getStartLineNumber(),_t=this._visibleLines.getEndLineNumber(),et=b.startLineNumber;et<=b.endLineNumber;et++){if(et_t)continue;var Wt=et===b.startLineNumber?b.startColumn:1,kt=et===b.endLineNumber?b.endColumn:this._context.model.getLineMaxColumn(et),Vt=this._visibleLines.getVisibleLine(et).getVisibleRangesForRange(Wt,kt,Le);if(!Vt)continue;if(i&&etthis._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,g,new ge(this.domNode.domNode,this._textRangeRestingSpot))},o.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new Pe(i.outsideRenderedLine,i.ranges[0].left):null},o.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},o.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=1,K=!0,Ie=i;Ie<=g;Ie++){var Le=this._visibleLines.getVisibleLine(Ie);if(t&&!Le.getWidthIsFast()){K=!1;continue}b=Math.max(b,Le.getWidth())}return K&&i===1&&g===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(b),K},o.prototype.prepareRender=function(){throw new Error("Not supported")},o.prototype.render=function(){throw new Error("Not supported")},o.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,g=this._horizontalRevealRequest.startColumn,b=this._horizontalRevealRequest.endColumn,K=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Ie=this._computeScrollLeftToRevealRange(i,g,b),Le=this._isViewportWrapping;Le||this._ensureMaxLineWidth(Ie.maxHorizontalOffset),K===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Ie.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Ie.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var qe=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-qe),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},o.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidthIe)Wt=qe;else if(b===1||b===2)if(b===2&&K<=qe&&ct<=Le)Wt=K;else{var kt=(qe+ct)/2;Wt=Math.max(0,kt-Ie/2)}else Wt=this._computeMinimumScrolling(K,Le,qe,ct,b===3,b===4);return Wt},o.prototype._computeScrollLeftToRevealRange=function(t,i,g){var b=0,K=this._context.viewLayout.getCurrentViewport(),Ie=K.left,Le=Ie+K.width,qe=this._visibleRangesForLineRange(t,i,g),ct=1073741824,_t=0;if(!qe)return{scrollLeft:Ie,maxHorizontalOffset:b};for(var et=0,Wt=qe.ranges;et_t&&(_t=kt.left+kt.width)}b=_t,ct=Math.max(0,ct-o.HORIZONTAL_EXTRA_PX),_t+=this._revealHorizontalRightPadding;var Vt=this._computeMinimumScrolling(Ie,Le,ct,_t);return{scrollLeft:Vt,maxHorizontalOffset:b}},o.prototype._computeMinimumScrolling=function(t,i,g,b,K,Ie){t=t|0,i=i|0,g=g|0,b=b|0,K=!!K,Ie=!!Ie;var Le=i-t,qe=b-g;if(qei)return Math.max(0,b-Le)}else return g;return t},o.HORIZONTAL_EXTRA_PX=30,o}(B),kn=e("J+ZK"),Qn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(V){Qn(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._decorationsLeft=b.decorationsLeft,i._decorationsWidth=b.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._decorationsLeft=g.decorationsLeft,this._decorationsWidth=g.decorationsWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K
',qe=[],ct=i;ct<=g;ct++){for(var _t=ct-i,et=b[_t],Wt="",kt=0,Vt=et.length;kt';K[Le]=ct}this._renderResult=K},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(xo),Zr=e("8gvo"),Gi=function(){function V(o,t,i,g){this.r=V._clamp(o),this.g=V._clamp(t),this.b=V._clamp(i),this.a=V._clamp(g)}return V._clamp=function(o){return o<0?0:o>255?255:o|0},V.Empty=new V(0,0,0,0),V}(),$o=e("twdY"),li=function(){function V(){var o=this;this._onDidChange=new H.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$o.B.onDidChange(function(t){t.changedColorMap&&o._updateColorMap()})}return V.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new V),this._INSTANCE},V.prototype._updateColorMap=function(){var o=$o.B.getColorMap();if(!o){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)},V.prototype.getColor=function(o){return(o<1||o>=this._colors.length)&&(o=2),this._colors[o]},V.prototype.backgroundIsLight=function(){return this._backgroundIsLight},V._INSTANCE=null,V}(),Tn=e("MD5Z"),yr=function(){for(var V=[],o=32;o<=126;o++)V.push(o);return V.push(65533),V}(),Qr=function(o,t){return o-=32,o<0||o>96?t<=2?(o+96)%96:96-1:o},xn=function(){function V(o,t){this.scale=t,this.charDataNormal=V.soften(o,12/15),this.charDataLight=V.soften(o,50/60)}return V.soften=function(o,t){for(var i=new Uint8ClampedArray(o.length),g=0,b=o.length;go.width||i+ct>o.height){console.warn("bad render request outside image data");return}for(var _t=Le?this.charDataLight:this.charDataNormal,et=Qr(g,Ie),Wt=o.width*4,kt=K.r,Vt=K.g,qt=K.b,$t=b.r-kt,io=b.g-Vt,yo=b.b-qt,mo=o.data,bo=et*qe*ct,go=i*Wt+t*4,Lo=0;Loo.width||i+Le>o.height){console.warn("bad render request outside image data");return}for(var qe=o.width*4,ct=.5,_t=b.r,et=b.g,Wt=b.b,kt=g.r-_t,Vt=g.g-et,qt=g.b-Wt,$t=_t+kt*ct,io=et+Vt*ct,yo=Wt+qt*ct,mo=o.data,bo=i*qe+t*4,go=0;go>1]=Xi[o[i]]<<4|Xi[o[i+1]]&15;return t},Yi={1:Object($n.a)(function(){return br("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object($n.a)(function(){return br("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function V(){}return V.create=function(o,t){if(this.lastCreated&&o===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[o]?i=new xn(Yi[o](),o):i=V.createFromSampleData(V.createSampleData(t).data,o),this.lastFontFamily=t,this.lastCreated=i,i},V.createSampleData=function(o){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=16+"px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+o,i.textBaseline="middle";for(var g=0,b=0,K=yr;b0)for(var ct=255/Le,_t=0;_t=K+mo){var bo=1,go=K;return new V(Ie,Le,io,yo,kt,bo,go)}else{var bo=Math.max(1,Math.floor(t-yo*ct/_t));qe&&qe.scrollHeight===Le&&(qe.scrollTop>Ie&&(bo=Math.min(bo,qe.startLineNumber)),qe.scrollTopJr){i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.scrollTop});return}var ct=Le.posy-b;i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.getDesiredScrollTopFromDelta(ct)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=f.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=J.j(i._domNode.domNode,f.a.Start,function(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(g))}),i._sliderTouchMoveListener=J.o(i._domNode.domNode,f.a.Change,function(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(g)}),i._sliderTouchEndListener=J.o(i._domNode.domNode,f.a.End,function(g){g.preventDefault(),g.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return o.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,g=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:g})},o.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),V.prototype.dispose.call(this)},o.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},o.prototype.getDomNode=function(){return this._domNode},o.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},o.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new _r(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},o.prototype._onOptionsMaybeChanged=function(){var t=new Qi(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},o.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},o.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},o.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},o.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},o.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},o.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},o.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},o.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},o.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Tn.Ib),this._renderDecorations=!0,!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var g=qr.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(g.sliderTop),this._slider.setHeight(g.sliderHeight);var b=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,K=Math.min(this._options.minimapWidth,Math.round(b*Zi(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(K),this._sliderHorizontal.setWidth(this._options.minimapWidth-K),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(g.sliderHeight),this.renderDecorations(g),this._lastRenderData=this.renderLines(g)},o.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new be.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),g=this._options,b=g.renderMinimap,K=g.canvasInnerWidth,Ie=g.canvasInnerHeight,Le=wn(b,this._options.fontScale),qe=Zi(b,this._options.fontScale),ct=this._context.model.getOptions().tabSize,_t=this._decorationsCanvas.domNode.getContext("2d");_t.clearRect(0,0,K,Ie);for(var et=new Map,Wt=0;Wtthis._options.canvasInnerHeight)return;var Wt=i.get(Ie),kt=!Wt;if(!Wt){var Vt=this._context.model.getLineContent(Ie);Wt=[he.f];for(var qt=1;qtIe?Wt.length-1:mo-1;if(No>0){var Fo=Wt[No]-Lo||2;this.renderDecoration(t,b,Lo,et,Fo,Le)}kt&&this.renderLineHighlight(t,b,et,Le)},o.prototype.renderLineHighlight=function(t,i,g,b){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(he.f,g,t.canvas.width,b)},o.prototype.renderDecoration=function(t,i,g,b,K,Ie){t.fillStyle=i&&i.toString()||"",t.fillRect(g,b,K,Ie)},o.prototype.renderLines=function(t){var i=this._options.renderMinimap,g=this._options.charRenderer(),b=t.startLineNumber,K=t.endLineNumber,Ie=wn(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var Le=this._lastRenderData._get();return new Er(t,Le.imageData,Le.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ct=o._renderUntouchedLines(qe,b,K,Ie,this._lastRenderData),_t=ct[0],et=ct[1],Wt=ct[2],kt=this._context.model.getMinimapLinesRenderingData(b,K,Wt),Vt=kt.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),io=0,yo=[],mo=0,bo=K-b+1;mo=0&&PoVt)return;var No=et.charCodeAt($t);if(No===9){var Fo=qe-($t+io)%qe;io+=Fo-1,qt+=Fo*kt}else if(No===32)qt+=kt;else for(var Xo=fe.y(No)?2:1,Po=0;PoVt)return}},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Xb);if(t){var i=t.transparent(.5);o.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var g=V.getColor(Tn.Yb);if(g){var b=g.transparent(.5);o.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+b+"; }")}var K=V.getColor(Tn.Wb);if(K){var Ie=K.transparent(.5);o.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Ie+"; }")}var Le=V.getColor(Tn.Vb);Le&&o.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+Le+" -6px 0 6px -6px inset; }")});var na=e("cl4r"),ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),wr=function(V){ts(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._widgets={},i._verticalScrollbarWidth=b.verticalScrollbarWidth,i._minimapWidth=b.minimapWidth,i._horizontalScrollbarHeight=b.horizontalScrollbarHeight,i._editorHeight=b.height,i._editorWidth=b.width,i._domNode=Object(y.b)(document.createElement("div")),le.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._verticalScrollbarWidth=g.verticalScrollbarWidth,this._minimapWidth=g.minimapWidth,this._horizontalScrollbarHeight=g.horizontalScrollbarHeight,this._editorHeight=g.height,this._editorWidth=g.width,!0},o.prototype.addWidget=function(t){var i=Object(y.b)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",t.getId()),this._domNode.appendChild(i),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i){var g=this._widgets[t.getId()];return g.preference===i?!1:(g.preference=i,this.setShouldRender(),!0)},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var g=this._widgets[i],b=g.domNode.domNode;delete this._widgets[i],b.parentNode.removeChild(b),this.setShouldRender()}},o.prototype._renderWidget=function(t){var i=t.domNode;if(t.preference===null){i.unsetTop();return}if(t.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var g=i.domNode.clientHeight;i.setTop(this._editorHeight-g-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),g=0,b=i.length;g=3){var b=Math.floor(g/3),K=Math.floor(g/3),Ie=g-b-K,Le=o,qe=Le+b,ct=Le+b+Ie;return[[0,Le,qe,Le,ct,Le,qe,Le],[0,b,Ie,b+Ie,K,b+Ie+K,Ie+K,b+Ie+K]]}else if(i===2){var b=Math.floor(g/2),K=g-b,Le=o,ct=Le+b;return[[0,Le,Le,Le,ct,Le,Le,Le],[0,b,b,b,K,b+K,b+K,b+K]]}else{var _t=o,et=g;return[[0,_t,_t,_t,_t,_t,_t,_t],[0,et,et,et,et,et,et,et]]}},V.prototype.equals=function(o){return this.lineHeight===o.lineHeight&&this.pixelRatio===o.pixelRatio&&this.overviewRulerLanes===o.overviewRulerLanes&&this.renderBorder===o.renderBorder&&this.borderColor===o.borderColor&&this.hideCursor===o.hideCursor&&this.cursorColor===o.cursorColor&&this.themeType===o.themeType&&this.backgroundColor===o.backgroundColor&&this.top===o.top&&this.right===o.right&&this.domWidth===o.domWidth&&this.domHeight===o.domHeight&&this.canvasWidth===o.canvasWidth&&this.canvasHeight===o.canvasHeight},V}(),os=function(V){Sr(o,V);function o(t){var i=V.call(this,t)||this;return i._domNode=Object(y.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=$o.B.onDidChange(function(g){g.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},o.prototype._updateSettings=function(t){var i=new Oi(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)},o.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},o.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,g=t.selections.length;ii&&(cn=i-ct),Po=cn-ct,nn=cn+ct}Po>bo+1||No!==yo?(go!==0&&_t.fillRect(et[yo],mo,Wt[yo],bo-mo),yo=No,mo=Po,bo=nn):nn>bo&&(bo=nn)}_t.fillRect(et[yo],mo,Wt[yo],bo-mo)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Nn=2*this._settings.pixelRatio|0,hn=Nn/2|0,Wn=this._settings.x[7],Fn=this._settings.w[7];_t.fillStyle=this._settings.cursorColor;for(var mo=-100,bo=-100,go=0,Lo=this._cursorPositions.length;goi&&(cn=i-hn);var Po=cn-hn,nn=Po+Nn;Po>bo+1?(go!==0&&_t.fillRect(Wn,mo,Fn,bo-mo),mo=Po,bo=nn):nn>bo&&(bo=nn)}_t.fillRect(Wn,mo,Fn,bo-mo)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(_t.beginPath(),_t.lineWidth=1,_t.strokeStyle=this._settings.borderColor,_t.moveTo(0,0),_t.lineTo(0,i),_t.stroke(),_t.moveTo(0,0),_t.lineTo(t,0),_t.stroke())},o}(B),ns=e("MvK1"),is=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(V){is(o,V);function o(t,i){var g=V.call(this)||this;g._context=t;var b=g._context.configuration.options;return g._domNode=Object(y.b)(document.createElement("canvas")),g._domNode.setClassName(i),g._domNode.setPosition("absolute"),g._domNode.setLayerHinting(!0),g._domNode.setContain("strict"),g._zoneManager=new ns.b(function(K){return g._context.viewLayout.getVerticalOffsetForLineNumber(K)}),g._zoneManager.setDOMWidth(0),g._zoneManager.setDOMHeight(0),g._zoneManager.setOuterHeight(g._context.viewLayout.getScrollHeight()),g._zoneManager.setLineHeight(b.get(49)),g._zoneManager.setPixelRatio(b.get(105)),g._context.addEventHandler(g),g}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return t.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),t.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},o.prototype.onFlushed=function(t){return this._render(),!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},o.prototype.onZonesChanged=function(t){return this._render(),!0},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var i=!1;i=this._zoneManager.setDOMWidth(t.width)||i,i=this._zoneManager.setDOMHeight(t.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},o.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},o.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),g=this._zoneManager.resolveColorZones(),b=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,t,i),g.length>0&&this._renderOneLane(K,g,b,t),!0},o.prototype._renderOneLane=function(t,i,g,b){for(var K=0,Ie=0,Le=0,qe=0,ct=i;qe=Wt?Le=Math.max(Le,kt):(t.fillRect(0,Ie,b,Le-Ie),Ie=Wt,Le=kt)}t.fillRect(0,Ie,b,Le-Ie)},o}(ie),ia=e("7zd4"),ss=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(V){ss(o,V);function o(t){var i=V.call(this,t)||this;i.domNode=Object(y.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var g=i._context.configuration.options;return i._rulers=g.get(77),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.prepareRender=function(t){},o.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t0;){var Ie=Object(y.b)(document.createElement("div"));Ie.setClassName("view-ruler"),Ie.setWidth(b),this.domNode.appendChild(Ie),this._renderedRulers.push(Ie),K--}return}for(var Le=t-i;Le>0;){var Ie=this._renderedRulers.pop();this.domNode.removeChild(Ie),Le--}},o.prototype.render=function(t){this._ensureRulersCount();for(var i=0,g=this._rulers.length;i0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},o.prototype.getDomNode=function(){return this._domNode},o.prototype._updateWidth=function(){var t=this._context.configuration.options,i=t.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(78);return this._useShadows=g.useShadows,this._updateWidth(),this._updateShouldShow(),!0},o.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Vb);t&&o.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var cs=e("eC1c"),Lr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mr=function(){function V(o){this.left=o.left,this.width=o.width,this.startStyle=null,this.endStyle=null}return V}(),Dr=function(){function V(o,t){this.lineNumber=o,this.ranges=t}return V}();function us(V){return new Mr(V)}function hs(V){return new Dr(V.lineNumber,V.ranges.map(us))}var fs=v.f,ms=function(V){Lr(o,V);function o(t){var i=V.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._roundedSelection=g.get(76),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._visibleRangesHaveGaps=function(t){for(var i=0,g=t.length;i1)return!0}return!1},o.prototype._enrichVisibleRangesWithStyle=function(t,i,g){var b=this._typicalHalfwidthCharacterWidth/4,K=null,Ie=null;if(g&&g.length>0&&i.length>0){var Le=i[0].lineNumber;if(Le===t.startLineNumber)for(var qe=0;!K&&qe=0;qe--)g[qe].lineNumber===ct&&(Ie=g[qe].ranges[0]);K&&!K.startStyle&&(K=null),Ie&&!Ie.startStyle&&(Ie=null)}for(var qe=0,_t=i.length;qe<_t;qe++){var et=i[qe].ranges[0],Wt=et.left,kt=et.left+et.width,Vt={top:0,bottom:0},qt={top:0,bottom:0};if(qe>0){var $t=i[qe-1].ranges[0].left,io=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;oi(Wt-$t)$t&&(Vt.top=1),oi(kt-io)'},o.prototype._actualRenderOneSelection=function(t,i,g,b){if(b.length===0)return;for(var K=!!b[0].ranges[0].startStyle,Ie=this._lineHeight.toString(),Le=(this._lineHeight-1).toString(),qe=b[0].lineNumber,ct=b[b.length-1].lineNumber,_t=0,et=b.length;_t1,et)}this._previousFrameVisibleRangesWithStyle=Le,this._renderResult=i.map(function(Wt){var kt=Wt[0],Vt=Wt[1];return kt+Vt})},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.SELECTION_CLASS_NAME="selected-text",o.SELECTION_TOP_LEFT="top-left-radius",o.SELECTION_BOTTOM_LEFT="bottom-left-radius",o.SELECTION_TOP_RIGHT="top-right-radius",o.SELECTION_BOTTOM_RIGHT="bottom-right-radius",o.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",o.ROUNDED_PIECE_WIDTH=10,o}(ke);Object(X.e)(function(V,o){var t=V.getColor(Tn.K);t&&o.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=V.getColor(Tn.F);i&&o.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var g=V.getColor(Tn.L);g&&o.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+g+"; }")});function oi(V){return V<0?-V:V}var sa=e("2Tsy"),Or=function(){function V(o,t,i,g,b,K){this.top=o,this.left=t,this.width=i,this.height=g,this.textContent=b,this.textContentClassName=K}return V}(),Tr=function(){function V(o){this._context=o;var t=this._context.configuration.options,i=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(y.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),U.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new oe.a(1,1),this._lastRenderedContent="",this._renderData=null}return V.prototype.getDomNode=function(){return this._domNode},V.prototype.getPosition=function(){return this._position},V.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},V.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},V.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options,i=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),U.a.applyFontInfo(this._domNode,i),!0},V.prototype.onCursorPositionChanged=function(o){return this._position=o,!0},V.prototype._prepareRender=function(o){var t="";if(this._cursorStyle===he.g.Line||this._cursorStyle===he.g.LineThin){var i=o.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var g;if(this._cursorStyle===he.g.Line){if(g=J.u(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2){var b=this._context.model.getLineContent(this._position.lineNumber),K=fe.E(b,this._position.column-1);t=b.substr(this._position.column-1,K)}}else g=J.u(1);var Ie=i.left;g>=2&&Ie>=1&&(Ie-=1);var Le=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta;return new Or(Le,Ie,g,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ct=fe.E(qe,this._position.column-1),_t=o.linesVisibleRangesForRange(new be.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ct),!1);if(!_t||_t.length===0)return null;var et=_t[0];if(et.outsideRenderedLine||et.ranges.length===0)return null;var Wt=et.ranges[0],kt=Wt.width<1?this._typicalHalfwidthCharacterWidth:Wt.width,Vt="";if(this._cursorStyle===he.g.Block){var qt=this._context.model.getViewLineData(this._position.lineNumber);t=qe.substr(this._position.column-1,ct);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Vt=qt.tokens.getClassName($t)}var io=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta,yo=this._lineHeight;return(this._cursorStyle===he.g.Underline||this._cursorStyle===he.g.UnderlineThin)&&(io+=this._lineHeight-2,yo=2),new Or(io,Wt.left,kt,yo,t,Vt)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRender(o)},V.prototype.render=function(o){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},V}(),ps=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gs=function(V){ps(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options;return i._readOnly=g.get(68),i._cursorBlinking=g.get(16),i._cursorStyle=g.get(18),i._cursorSmoothCaretAnimation=g.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new Tr(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new p.e,i._cursorFlatBlinkInterval=new p.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(t);for(var g=0,b=this._secondaryCursors.length;gi.length)for(var Ie=this._secondaryCursors.length-i.length,b=0;bi)for(var K=t-i,b=0;b=o+1&&this.lastAddedCursorIndex--,this.secondaryCursors[o].dispose(this.context),this.secondaryCursors.splice(o,1)},V.prototype._getAll=function(){var o=[];o[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;tWt&&Fo.index--}o.splice(Wt,1),t.splice(et,1),this._removeSecondaryCursor(Wt-1),b--}}},V}(),bn=e("snIX"),Mn=e("GR/f"),Ln=e("iuje"),xi=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(V){for(var o=0,t=V.length;o=t.length)return!1;if(!t[i].strictContainsRange(o[i]))return!1}return!0},V}(),Rr=function(V){xi(o,V);function o(t,i,g){var b=V.call(this)||this;b._onDidReachMaxCursorCount=b._register(new H.a),b.onDidReachMaxCursorCount=b._onDidReachMaxCursorCount.event,b._onDidAttemptReadOnlyEdit=b._register(new H.a),b.onDidAttemptReadOnlyEdit=b._onDidAttemptReadOnlyEdit.event,b._onDidChange=b._register(new H.a),b.onDidChange=b._onDidChange.event,b._configuration=t,b._model=i,b._knownModelVersionId=b._model.getVersionId(),b._viewModel=g,b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors=new Vn(b.context),b._isHandling=!1,b._isDoingComposition=!1,b._selectionsWhenCompositionStarted=null,b._columnSelectData=null,b._autoClosedActions=[],b._prevEditOperationType=0,b._register(b._model.onDidChangeRawContent(function(Ie){if(b._knownModelVersionId=Ie.versionId,b._isHandling)return;var Le=Ie.containsEvent(1);b._onModelContentChanged(Le)})),b._register(g.addEventListener(function(Ie){if(!Ei(Ie))return;if(b._knownModelVersionId!==b._model.getVersionId())return;b.setStates("viewModel",0,b.getAll())}));var K=function(){b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors.updateContext(b.context)};return b._register(b._model.onDidChangeLanguage(function(Ie){K()})),b._register(b._model.onDidChangeLanguageConfiguration(function(){K()})),b._register(b._model.onDidChangeOptions(function(){K()})),b._register(b._configuration.onDidChange(function(Ie){De.b.shouldRecreate(Ie)&&K()})),b}return o.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(z.f)(this._autoClosedActions),V.prototype.dispose.call(this)},o.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;io.MAX_CURSOR_COUNT&&(g=g.slice(0,o.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var b=new qi(this._model,this);this._cursors.setStates(g),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,b)},o.prototype.setColumnSelectData=function(t){this._columnSelectData=t},o.prototype.reveal=function(t,i,g,b){this._revealRange(t,g,0,i,b)},o.prototype.revealRange=function(t,i,g,b,K){this.emitCursorRevealRange(t,g,b,i,K)},o.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},o.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),g=0,b=i.length;g0&&this._pushAutoClosedAction(g,b),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},o.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},o.prototype._emitStateChangedIfNecessary=function(t,i,g){var b=new qi(this._model,this);if(b.equals(g))return!1;var K=this._cursors.getSelections(),Ie=this._cursors.getViewSelections();try{var Le=this._beginEmit();Le.emit(new Zo(Ie,K))}finally{this._endEmit()}if(!g||g.cursorState.length!==b.cursorState.length||b.cursorState.some(function(_t,et){return!_t.modelState.equals(g.cursorState[et].modelState)})){var qe=g?g.cursorState.map(function(_t){return _t.modelState.selection}):null,ct=g?g.modelVersionId:0;this._onDidChange.fire(new Ji(K,b.modelVersionId,qe,ct,t||"keyboard",i))}return!0},o.prototype._revealRange=function(t,i,g,b,K){var Ie=this._cursors.getViewPositions(),Le=Ie[0];if(i===1)for(var qe=1;qe1)return;var ct=new be.a(Le.lineNumber,Le.column,Le.lineNumber,Le.column);this.emitCursorRevealRange(t,ct,g,b,K)},o.prototype.emitCursorRevealRange=function(t,i,g,b,K){try{var Ie=this._beginEmit();Ie.emit(new mn(t,i,g,b,K))}finally{this._endEmit()}},o.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],g=0,b=t.length;g=0)return null;var Ie=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Ie)return null;var Le=Ie[1],qe=this.context.config.autoClosingPairsClose2.get(Le);if(!qe||qe.length!==1)return null;var ct=qe[0].open,_t=K.text.length-Ie[2].length-1,et=K.text.lastIndexOf(ct,_t-1);if(et===-1)return null;i.push([et,_t])}return i},o.prototype.executeEdits=function(t,i,g){var b=this,K=null;t==="snippet"&&(K=this._findAutoClosingPairs(i)),K&&(i[0]._isTracked=!0);var Ie=[],Le=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ct){if(K)for(var _t=0,et=K.length;_t0&&this._pushAutoClosedAction(Ie,Le)},o.prototype.trigger=function(t,i,g){var b=Ln.b;if(i===b.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===b.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var K=new qi(this._model,this),Ie=0;i!==b.Undo&&i!==b.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case b.Type:this._type(t,g.text);break;case b.ReplacePreviousChar:this._replacePreviousChar(g.text,g.replaceCharCnt);break;case b.Paste:Ie=4,this._paste(g.text,g.pasteOnNewLine,g.multicursorText||[]);break;case b.Cut:this._cut();break;case b.Undo:Ie=5,this._interpretCommandResult(this._model.undo());break;case b.Redo:Ie=6,this._interpretCommandResult(this._model.redo());break;case b.ExecuteCommand:this._externalExecuteCommand(g);break;case b.ExecuteCommands:this._externalExecuteCommands(g);break;case b.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(Le){Object(I.e)(Le)}this._isHandling=!1,i!==b.Undo&&i!==b.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Ie,K)&&this._revealRange(t,0,0,!0,0)},o.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Mn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},o.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var g=i.length,b=0;b0&&(K[0]._isTracked=!0);var qe=o.model.pushEditOperations(o.selectionsBefore,K,function(Vt){for(var qt=[],$t=0;$t0?(qt[Fo].sort(bo),go[Fo]=t[Fo].computeCursorState(o.model,{getInverseEditOperations:function(){return qt[Fo]},getTrackedSelection:function(Po){var nn=parseInt(Po,10),vn=o.model._getTrackedRange(o.trackedRanges[nn]);return o.trackedRangesDirection[nn]===0?new vt.a(vn.startLineNumber,vn.startColumn,vn.endLineNumber,vn.endColumn):new vt.a(vn.endLineNumber,vn.endColumn,vn.startLineNumber,vn.startColumn)}})):go[Fo]=o.selectionsBefore[Fo]},$t=0;$tb.identifier.major?K=g.identifier.major:K=b.identifier.major,t[K.toString()]=!0;for(var Ie=0;Ie0&&i--}}return t},V}(),Es=e("9Y+e"),Jo=e("wQH0"),Ai=e("TQUy"),_s=e("QuOb"),In=function(){function V(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return V.prototype.insert=function(o){this._hasPending=!0,this._inserts.push(o)},V.prototype.change=function(o){this._hasPending=!0,this._changes.push(o)},V.prototype.remove=function(o){this._hasPending=!0,this._removes.push(o)},V.prototype.mustCommit=function(){return this._hasPending},V.prototype.commit=function(o){if(!this._hasPending)return;var t=this._inserts,i=this._changes,g=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],o._commitPendingChanges(t,i,g)},V}(),_i=function(){function V(o,t,i,g,b){this.id=o,this.afterLineNumber=t,this.ordinal=i,this.height=g,this.minWidth=b,this.prefixSum=0}return V}(),Xn=function(){function V(o,t){this._instanceId=fe.M(++V.INSTANCE_COUNT),this._pendingChanges=new In,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=o,this._lineHeight=t}return V.findInsertionIndex=function(o,t,i){for(var g=0,b=o.length;g>>1;t===o[K].afterLineNumber?i0||i.length>0)&&(this._minWidth=-1),o.length+t.length+i.length<=1){for(var g=0,b=o;gt&&(this._arr[i].afterLineNumber-=t-o+1)}},V.prototype.onLinesInserted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount+=t-o+1;for(var i=0,g=this._arr.length;i=t.length||t[Ie+1].afterLineNumber>=o)return Ie;i=Ie+1|0}else g=Ie-1|0}return-1},V.prototype._findFirstWhitespaceAfterLineNumber=function(o){o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o),i=t+1;return i1?t=this._lineHeight*(o-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return t+i},V.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var o=0,t=0,i=this._arr.length;tt},V.prototype.getLineNumberAtOrAfterVerticalOffset=function(o){if(this._checkPendingChanges(),o=o|0,o<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,g=1,b=t;g=Ie+i)g=K+1;else{if(o>=Ie)return K;b=K}}return g>t?t:g},V.prototype.getLinesViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this._lineHeight,g=this.getLineNumberAtOrAfterVerticalOffset(o)|0,b=this.getVerticalOffsetForLineNumber(g)|0,K=this._lineCount|0,Ie=this.getFirstWhitespaceIndexAfterLineNumber(g)|0,Le=this.getWhitespacesCount()|0,qe,ct;Ie===-1?(Ie=Le,ct=K+1,qe=0):(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);var _t=b,et=_t,Wt=5e5,kt=0;b>=Wt&&(kt=Math.floor(b/Wt)*Wt,kt=Math.floor(kt/i)*i,et-=kt);for(var Vt=[],qt=o+(t-o)/2,$t=-1,io=g;io<=K;io++){if($t===-1){var yo=_t,mo=_t+i;(yo<=qt&&qtqt)&&($t=io)}for(_t+=i,Vt[io-g]=et,et+=i;ct===io;)et+=qe,_t+=qe,Ie++,Ie>=Le?ct=K+1:(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);if(_t>=t){K=io;break}}$t===-1&&($t=K);var bo=this.getVerticalOffsetForLineNumber(K)|0,go=g,Lo=K;return got&&Lo--),{bigNumbersDelta:kt,startLineNumber:g,endLineNumber:K,relativeVerticalOffset:Vt,centeredLineNumber:$t,completelyVisibleStartLineNumber:go,completelyVisibleEndLineNumber:Lo}},V.prototype.getVerticalOffsetForWhitespaceIndex=function(o){this._checkPendingChanges(),o=o|0;var t=this.getAfterLineNumberForWhitespaceIndex(o),i;t>=1?i=this._lineHeight*t:i=0;var g;return o>0?g=this.getWhitespacesAccumulatedHeight(o-1):g=0,i+g},V.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(o){this._checkPendingChanges(),o=o|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var g=this.getVerticalOffsetForWhitespaceIndex(i),b=this.getHeightForWhitespaceIndex(i);if(o>=g+b)return-1;for(;t=Ie+Le)t=K+1;else{if(o>=Ie)return K;i=K}}return t},V.prototype.getWhitespaceAtVerticalOffset=function(o){this._checkPendingChanges(),o=o|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(o);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>o)return null;var g=this.getHeightForWhitespaceIndex(t),b=this.getIdForWhitespaceIndex(t),K=this.getAfterLineNumberForWhitespaceIndex(t);return{id:b,afterLineNumber:K,verticalOffset:i,height:g}},V.prototype.getWhitespaceViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(o),g=this.getWhitespacesCount()-1;if(i<0)return[];for(var b=[],K=i;K<=g;K++){var Ie=this.getVerticalOffsetForWhitespaceIndex(K),Le=this.getHeightForWhitespaceIndex(K);if(Ie>=t)break;b.push({id:this.getIdForWhitespaceIndex(K),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(K),verticalOffset:Ie,height:Le})}return b},V.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},V.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},V.prototype.getIdForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].id},V.prototype.getAfterLineNumberForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].afterLineNumber},V.prototype.getHeightForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].height},V.INSTANCE_COUNT=0,V}(),zn=e("qNAo"),Ri=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,wi=function(){function V(o,t,i,g){o=o|0,t=t|0,i=i|0,g=g|0,o<0&&(o=0),t<0&&(t=0),i<0&&(i=0),g<0&&(g=0),this.width=o,this.contentWidth=t,this.scrollWidth=Math.max(o,t),this.height=i,this.contentHeight=g,this.scrollHeight=Math.max(i,g)}return V.prototype.equals=function(o){return this.width===o.width&&this.contentWidth===o.contentWidth&&this.height===o.height&&this.contentHeight===o.contentHeight},V}(),Ii=function(V){Ri(o,V);function o(t,i){var g=V.call(this)||this;return g._onDidContentSizeChange=g._register(new H.a),g.onDidContentSizeChange=g._onDidContentSizeChange.event,g._dimensions=new wi(0,0,0,0),g._scrollable=g._register(new _s.a(t,i)),g.onDidScroll=g._scrollable.onScroll,g}return o.prototype.getScrollable=function(){return this._scrollable},o.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._dimensions},o.prototype.setScrollDimensions=function(t){if(this._dimensions.equals(t))return;var i=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight});var g=i.contentWidth!==t.contentWidth,b=i.contentHeight!==t.contentHeight;(g||b)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:g,contentHeightChanged:b})},o.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},o.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o}(z.a),ws=function(V){Ri(o,V);function o(t,i,g){var b=V.call(this)||this;b._configuration=t;var K=b._configuration.options,Ie=K.get(107);return b._linesLayout=new Xn(i,K.get(49)),b._scrollable=b._register(new Ii(0,g)),b._configureSmoothScrollDuration(),b._scrollable.setScrollDimensions(new wi(Ie.contentWidth,0,Ie.height,0)),b.onDidScroll=b._scrollable.onDidScroll,b.onDidContentSizeChange=b._scrollable.onDidContentSizeChange,b._updateHeight(),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getScrollable=function(){return this._scrollable.getScrollable()},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},o.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var g=i.get(107),b=g.contentWidth,K=g.height,Ie=this._scrollable.getScrollDimensions(),Le=Ie.scrollWidth;this._scrollable.setScrollDimensions(new wi(b,Ie.contentWidth,K,this._getContentHeight(b,K,Le)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},o.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},o.prototype._getHorizontalScrollbarHeight=function(t,i){var g=this._configuration.options,b=g.get(78);return b.horizontal===2||t>=i?0:b.horizontalScrollbarSize},o.prototype._getContentHeight=function(t,i,g){var b=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return b.get(80)?K+=i-b.get(49):K+=this._getHorizontalScrollbarHeight(t,g),K},o.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,g=t.height,b=t.scrollWidth;this._scrollable.setScrollDimensions(new wi(i,t.contentWidth,g,this._getContentHeight(i,g,b)))},o.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype._computeContentWidth=function(t){var i=this._configuration.options,g=i.get(108),b=i.get(34);if(g.isViewportWrapping){var K=i.get(107),Ie=i.get(54);return t>K.contentWidth+b.typicalHalfwidthCharacterWidth&&(Ie.enabled&&Ie.side==="right")?t+K.verticalScrollbarWidth:t}else{var Le=i.get(79)*b.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+Le,qe)}},o.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new wi(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},o.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,g=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),b=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(g);return{scrollTop:i,scrollTopWithoutViewZones:i-b,scrollLeft:t.scrollLeft}},o.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.prototype.getLinesViewportDataAtScrollTop=function(t){var i=this._scrollable.getScrollDimensions();return t+i.height>i.scrollHeight&&(t=i.scrollHeight-i.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+i.height)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},o.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},o.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,i){var g=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:g.scrollLeft+t,scrollTop:g.scrollTop+i})},o}(z.a),hi=e("tX9W"),Ss=e("LeU+"),Jn=function(){function V(o,t){this.outputLineIndex=o,this.outputOffset=t}return V}(),qn=function(){function V(o,t,i){this.breakOffsets=o,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return V.getInputOffsetOfOutputPosition=function(o,t,i){return t===0?i:o[t-1]+i},V.getOutputPositionOfInputOffset=function(o,t){for(var i=0,g=o.length-1,b=0,K=0;i<=g;){b=i+(g-i)/2|0;var Ie=o[b];if(K=b>0?o[b-1]:0,t=Ie)i=b+1;else break}return new Jn(b,t-K)},V}(),Ls=function(){function V(o){this._lines=o}return V.prototype.convertViewPositionToModelPosition=function(o){return this._lines.convertViewPositionToModelPosition(o.lineNumber,o.column)},V.prototype.convertViewRangeToModelRange=function(o){return this._lines.convertViewRangeToModelRange(o)},V.prototype.validateViewPosition=function(o,t){return this._lines.validateViewPosition(o.lineNumber,o.column,t)},V.prototype.validateViewRange=function(o,t){return this._lines.validateViewRange(o,t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._lines.convertModelPositionToViewPosition(o.lineNumber,o.column)},V.prototype.convertModelRangeToViewRange=function(o){return this._lines.convertModelRangeToViewRange(o)},V.prototype.modelPositionIsVisible=function(o){return this._lines.modelPositionIsVisible(o.lineNumber,o.column)},V}(),or=function(){function V(o){this._counts=o,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return V.prototype._invalidate=function(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)},V.prototype._ensureValid=function(){if(this._isValid)return;for(var o=this._validEndIndex+1,t=this._counts.length;o0?this._modelToView[o-1]:0;this._modelToView[o]=g+i;for(var b=0;b0?this._modelToView[t-1]:0;return new Ss.b(t,o-i)},V}(),Nr=function(){function V(o,t,i,g,b,K,Ie,Le){this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=g,this.tabSize=b,this.wrappingStrategy=K,this.wrappingColumn=Ie,this.wrappingIndent=Le,this._constructLines(!0,null)}return V.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},V.prototype.createCoordinatesConverter=function(){return new Ls(this)},V.prototype._constructLines=function(o,t){var i=this;this.lines=[],o&&(this.hiddenAreasIds=[]);for(var g=this.model.getLinesContent(),b=g.length,K=this.createLineBreaksComputer(),Ie=0;Ie=_t&&Vt<=et,$t=Ni(Le[Ie],!qt);qe[Ie]=$t.getViewLineCount(),this.lines[Ie]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new or(qe)},V.prototype.getHiddenAreas=function(){var o=this;return this.hiddenAreasIds.map(function(t){return o.model.getDecorationRange(t)})},V.prototype._reduceRanges=function(o){var t=this;if(o.length===0)return[];for(var i=o.map(function(ct){return t.model.validateRange(ct)}).sort(be.a.compareRangesUsingStarts),g=[],b=i[0].startLineNumber,K=i[0].endLineNumber,Ie=1,Le=i.length;IeK+1?(g.push(new be.a(b,1,K,1)),b=qe.startLineNumber,K=qe.endLineNumber):qe.endLineNumber>K&&(K=qe.endLineNumber)}return g.push(new be.a(b,1,K,1)),g},V.prototype.setHiddenAreas=function(o){var t=this,i=this._reduceRanges(o),g=this.hiddenAreasIds.map(function(mo){return t.model.getDecorationRange(mo)}).sort(be.a.compareRangesUsingStarts);if(i.length===g.length){for(var b=!1,K=0;K=et&&$t<=Wt?this.lines[K].isVisible()&&(this.lines[K]=this.lines[K].setVisible(!1),io=!0):(qt=!0,this.lines[K].isVisible()||(this.lines[K]=this.lines[K].setVisible(!0),io=!0)),io){var yo=this.lines[K].getViewLineCount();this.prefixSumComputer.changeValue(K,yo)}}return qt||this.setHiddenAreas([]),!0},V.prototype.modelPositionIsVisible=function(o,t){return o<1||o>this.lines.length?!1:this.lines[o-1].isVisible()},V.prototype.setTabSize=function(o){return this.tabSize===o?!1:(this.tabSize=o,this._constructLines(!1,null),!0)},V.prototype.setWrappingSettings=function(o,t,i,g){var b=this.fontInfo.equals(o),K=this.wrappingStrategy===t,Ie=this.wrappingColumn===i,Le=this.wrappingIndent===g;if(b&&K&&Ie&&Le)return!1;var qe=b&&K&&!Ie&&Le;this.fontInfo=o,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=g;var ct=null;if(qe){ct=[];for(var _t=0,et=this.lines.length;_tLe?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,_t=ct+Le-1,kt=_t+1,Vt=kt+(b-Le)-1,qe=!0):bt?t:o|0},V.prototype.getActiveIndentGuide=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var g=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),b=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),K=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Ie=this.model.getActiveIndentGuide(g.lineNumber,b.lineNumber,K.lineNumber),Le=this.convertModelPositionToViewPosition(Ie.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Ie.endLineNumber,this.model.getLineMaxColumn(Ie.endLineNumber));return{startLineNumber:Le.lineNumber,endLineNumber:qe.lineNumber,indent:Ie.indent}},V.prototype.getViewLinesIndentGuides=function(o,t){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),g=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),b=[],K=[],Ie=[],Le=i.lineNumber-1,qe=g.lineNumber-1,ct=null,_t=Le;_t<=qe;_t++){var et=this.lines[_t];if(et.isVisible()){var Wt=et.getViewLineNumberOfModelPosition(0,_t===Le?i.column:1),kt=et.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(_t+1)),Vt=kt-Wt+1,qt=0;Vt>1&&et.getViewLineMinColumn(this.model,_t+1,kt)===1&&(qt=Wt===0?1:2),K.push(Vt),Ie.push(qt),ct===null&&(ct=new oe.a(_t+1,0))}else ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,_t)),ct=null)}ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,g.lineNumber)),ct=null);for(var $t=t-o+1,io=new Array($t),yo=0,mo=0,bo=b.length;mot&&(kt=!0,Wt=t-b+1);var Vt=et+Wt;if(_t.getViewLinesData(this.model,qe+1,et,Vt,b-o,i,Le),b+=Wt,kt)break}return Le},V.prototype.validateViewPosition=function(o,t,i){o=this._toValidViewLineNumber(o);var g=this.prefixSumComputer.getIndexOf(o-1),b=g.index,K=g.remainder,Ie=this.lines[b],Le=Ie.getViewLineMinColumn(this.model,b+1,K),qe=Ie.getViewLineMaxColumn(this.model,b+1,K);tqe&&(t=qe);var ct=Ie.getModelColumnOfViewPosition(K,t),_t=this.model.validatePosition(new oe.a(b+1,ct));return _t.equals(i)?new oe.a(o,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},V.prototype.validateViewRange=function(o,t){var i=this.validateViewPosition(o.startLineNumber,o.startColumn,t.getStartPosition()),g=this.validateViewPosition(o.endLineNumber,o.endColumn,t.getEndPosition());return new be.a(i.lineNumber,i.column,g.lineNumber,g.column)},V.prototype.convertViewPositionToModelPosition=function(o,t){o=this._toValidViewLineNumber(o);var i=this.prefixSumComputer.getIndexOf(o-1),g=i.index,b=i.remainder,K=this.lines[g].getModelColumnOfViewPosition(b,t);return this.model.validatePosition(new oe.a(g+1,K))},V.prototype.convertViewRangeToModelRange=function(o){var t=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),i=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype.convertModelPositionToViewPosition=function(o,t){for(var i=this.model.validatePosition(new oe.a(o,t)),g=i.lineNumber,b=i.column,K=g-1,Ie=!1;K>0&&!this.lines[K].isVisible();)K--,Ie=!0;if(K===0&&!this.lines[K].isVisible())return new oe.a(1,1);var Le=1+(K===0?0:this.prefixSumComputer.getAccumulatedValue(K-1)),qe;return Ie?qe=this.lines[K].getViewPositionOfModelPosition(Le,this.model.getLineMaxColumn(K+1)):qe=this.lines[g-1].getViewPositionOfModelPosition(Le,b),qe},V.prototype.convertModelRangeToViewRange=function(o){var t=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn),i=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn);return o.startLineNumber===o.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new be.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype._getViewLineNumberForModelPosition=function(o,t){var i=o-1;if(this.lines[i].isVisible()){var g=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(g,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var b=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(b,this.model.getLineMaxColumn(i+1))},V.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var g=this.model.getOverviewRulerDecorations(o,t),b=new ni,K=0,Ie=g;Kbo.id?1:0:go});for(var Wt=[],kt=0,Vt=null,qt=0,$t=K;qt<$t.length;qt++){var io=$t[qt],yo=io.id;if(Vt===yo)continue;Vt=yo,Wt[kt++]=io}return Wt},V}(),nr=function(){function V(){}return V.prototype.isVisible=function(){return!0},V.prototype.setVisible=function(o){return o?this:ir.INSTANCE},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 1},V.prototype.getViewLineContent=function(o,t,i){return o.getLineContent(t)},V.prototype.getViewLineLength=function(o,t,i){return o.getLineLength(t)},V.prototype.getViewLineMinColumn=function(o,t,i){return o.getLineMinColumn(t)},V.prototype.getViewLineMaxColumn=function(o,t,i){return o.getLineMaxColumn(t)},V.prototype.getViewLineData=function(o,t,i){var g=o.getLineTokens(t),b=g.getLineContent();return new zn.c(b,!1,1,b.length+1,0,g.inflate())},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!K[b]){Ie[b]=null;return}Ie[b]=this.getViewLineData(o,t,0)},V.prototype.getModelColumnOfViewPosition=function(o,t){return t},V.prototype.getViewPositionOfModelPosition=function(o,t){return new oe.a(o,t)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){return o},V.INSTANCE=new V,V}(),ir=function(){function V(){}return V.prototype.isVisible=function(){return!1},V.prototype.setVisible=function(o){return o?nr.INSTANCE:this},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 0},V.prototype.getViewLineContent=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineLength=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMinColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMaxColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineData=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){throw new Error("Not supported")},V.prototype.getModelColumnOfViewPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewPositionOfModelPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewLineNumberOfModelPosition=function(o,t){throw new Error("Not supported")},V.INSTANCE=new V,V}(),Yn=function(){function V(o,t){this._lineBreakData=o,this._isVisible=t}return V.prototype.isVisible=function(){return this._isVisible},V.prototype.setVisible=function(o){return this._isVisible=o,this},V.prototype.getLineBreakData=function(){return this._lineBreakData},V.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},V.prototype.getInputStartOffsetOfOutputLineIndex=function(o){return qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,0)},V.prototype.getInputEndOffsetOfOutputLineIndex=function(o,t,i){return i+1===this._lineBreakData.breakOffsets.length?o.getLineMaxColumn(t)-1:qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},V.prototype.getViewLineContent=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});return i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K),K},V.prototype.getViewLineLength=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=b-g;return i>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K},V.prototype.getViewLineMinColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},V.prototype.getViewLineMaxColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(o,t,i).length+1},V.prototype.getViewLineData=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K);var Ie=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,Le=K.length+1,qe=i+10&&(ct=this._lineBreakData.wrappedTextIndentLength);var _t=o.getLineTokens(t),et=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zn.c(K,qe,Ie,Le,et,_t.sliceAndInflate(g,b,ct))},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!this._isVisible)throw new Error("Not supported");for(var Le=i;Le0&&(i0&&(b+=this._lineBreakData.wrappedTextIndentLength),new oe.a(o+g,b)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return o+i.outputLineIndex},V}(),An=[""];function rr(V){if(V>=An.length)for(var o=1;o<=V;o++)An[o]=Ms(o);return An[V]}function Ms(V){return new Array(V+1).join(" ")}function Ni(V,o){return V===null?o?nr.INSTANCE:ir.INSTANCE:new Yn(V,o)}var Ds=function(){function V(o){this._lines=o}return V.prototype._validPosition=function(o){return this._lines.model.validatePosition(o)},V.prototype._validRange=function(o){return this._lines.model.validateRange(o)},V.prototype.convertViewPositionToModelPosition=function(o){return this._validPosition(o)},V.prototype.convertViewRangeToModelRange=function(o){return this._validRange(o)},V.prototype.validateViewPosition=function(o,t){return this._validPosition(t)},V.prototype.validateViewRange=function(o,t){return this._validRange(t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._validPosition(o)},V.prototype.convertModelRangeToViewRange=function(o){return this._validRange(o)},V.prototype.modelPositionIsVisible=function(o){var t=this._lines.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>t)},V}(),fi=function(){function V(o){this.model=o}return V.prototype.dispose=function(){},V.prototype.createCoordinatesConverter=function(){return new Ds(this)},V.prototype.getHiddenAreas=function(){return[]},V.prototype.setHiddenAreas=function(o){return!1},V.prototype.setTabSize=function(o){return!1},V.prototype.setWrappingSettings=function(o,t,i,g){return!1},V.prototype.createLineBreaksComputer=function(){var o=[];return{addRequest:function(i,g){o.push(null)},finalize:function(){return o}}},V.prototype.onModelFlushed=function(){},V.prototype.onModelLinesDeleted=function(o,t,i){return new fn(t,i)},V.prototype.onModelLinesInserted=function(o,t,i,g){return new Vo(t,i)},V.prototype.onModelLineChanged=function(o,t,i){return[!1,new Qo(t,t),null,null]},V.prototype.acceptVersionId=function(o){},V.prototype.getViewLineCount=function(){return this.model.getLineCount()},V.prototype.getActiveIndentGuide=function(o,t,i){return{startLineNumber:o,endLineNumber:o,indent:0}},V.prototype.getViewLinesIndentGuides=function(o,t){for(var i=t-o+1,g=new Array(i),b=0;b=t){i>Ie&&(b[b.length-1]=i);return}b.push(g,t,i)}else this.result[o]=[g,t,i]},V}(),Os=function(){function V(o,t,i,g,b){this.editorId=o,this.model=t,this.configuration=i,this._linesCollection=g,this._coordinatesConverter=b,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return V.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},V.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype._getOrCreateViewModelDecoration=function(o){var t=o.id,i=this._decorationsCache[t];if(!i){var g=o.range,b=o.options,K=void 0;if(b.isWholeLine){var Ie=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.startLineNumber,1)),Le=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.endLineNumber,this.model.getLineMaxColumn(g.endLineNumber)));K=new be.a(Ie.lineNumber,Ie.column,Le.lineNumber,Le.column)}else K=this._coordinatesConverter.convertModelRangeToViewRange(g);i=new zn.e(K,b),this._decorationsCache[t]=i}return i},V.prototype.getDecorationsViewportData=function(o){var t=this._cachedModelDecorationsResolver!==null;return t=t&&o.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(o),this._cachedModelDecorationsResolverViewRange=o),this._cachedModelDecorationsResolver},V.prototype._getDecorationsViewportData=function(o){for(var t=this._linesCollection.getDecorationsInRange(o,this.editorId,Object(he.j)(this.configuration.options)),i=o.startLineNumber,g=o.endLineNumber,b=[],K=0,Ie=[],Le=i;Le<=g;Le++)Ie[Le-i]=[];for(var qe=0,ct=t.length;qe=2&&t.viewportStartLineTrackedRange){var Po=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(Po){var nn=t.coordinatesConverter.convertModelPositionToViewPosition(Po.getStartPosition()),vn=t.viewLayout.getVerticalOffsetForLineNumber(nn.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:vn+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var g=[],b=0,K=i.ranges.length;bqe)continue;Ie0&&_t[Wt-1]===_t[Wt])continue;et+=this.model.getLineContent(_t[Wt])+b}return et}if(K&&i){for(var kt=[],Vt=0,qt=0,$t=t;qt<$t.length;qt++){var io=$t[qt],yo=io.startLineNumber;io.isEmpty()?yo!==Vt&&kt.push(this.model.getLineContent(yo)):kt.push(this.model.getValueInRange(io,g?2:0)),Vt=yo}return kt.length===1?kt[0]:kt}for(var mo=[],bo=0,go=t;bo'+this._getHTMLToCopy(b,Le)+""}},o.prototype._getHTMLToCopy=function(t,i){for(var g=t.startLineNumber,b=t.startColumn,K=t.endLineNumber,Ie=t.endColumn,Le=this.getTabSize(),qe="",ct=g;ct<=K;ct++){var _t=this.model.getLineTokens(ct),et=_t.getLineContent(),Wt=ct===g?b-1:0,kt=ct===K?Ie-1:et.length;et===""?qe+="
":qe+=Object(Ai.a)(et,_t.inflate(),i,Wt,kt,Le,w.h)}return qe},o.prototype._getColorMap=function(){var t=$o.B.getColorMap(),i=["#000000"];if(t)for(var g=1,b=t.length;g=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue},o}(Rs.a),ji=[],lr=[],Ns=function(){function V(o,t){this.classifier=new Is(o,t)}return V.create=function(o){return new V(o.get(99),o.get(98))},V.prototype.createLineBreaksComputer=function(o,t,i,g){var b=this;t=t|0,i=+i;var K=[],Ie=[];return{addRequest:function(qe,ct){K.push(qe),Ie.push(ct)},finalize:function(){for(var qe=o.typicalFullwidthCharacterWidth/o.typicalHalfwidthCharacterWidth,ct=[],_t=0,et=K.length;_t=0)for(var io=Math.abs(qe[$t]-Vt);$t+1=io)break;io=yo,$t++}for(;$tVt){No=Nn,Fo=Xo-Fn,Xo-Lo>_t&&(go=0),vn=!1;break}Po=hn,nn=Wn}if(vn){kt>0&&(et[kt]=Le[Le.length-1],Wt[kt]=qe[Le.length-1],kt++);break}}if(go===0){for(var Xo=bo,hn=t.charCodeAt(mo),Wn=V.get(hn),Ui=!1,cn=mo-1;cn>=0;cn--){var Nn=cn+1,Po=t.charCodeAt(cn);if(Po===9){Ui=!0;break}var nn=void 0,fr=void 0;if(fe.A(Po)?(cn--,nn=0,fr=2):(nn=V.get(Po),fr=fe.y(Po)?b:1),Xo<=Vt){if(No===0&&(No=Nn,Fo=Xo),Xo<=Vt-_t)break;if(cr(Po,nn,hn,Wn)){go=Nn,Lo=Xo;break}}Xo-=fr,hn=Po,Wn=nn}if(go!==0){var Hr=_t-(Fo-Lo);if(Hr<=i){var Zn=t.charCodeAt(No),Fn=void 0;fe.z(Zn)?Fn=2:Fn=Pi(Zn,Fo,i,b),Hr-Fn<0&&(go=0)}}if(Ui){$t--;continue}}for(go===0&&(go=No,Lo=Fo),et[kt]=go,Wt[kt]=Lo,kt++,Vt=Lo+_t;$t<0||$t=io)break;io=yo,$t++}}return kt===0?null:(et.length=kt,Wt.length=kt,ji=o.breakOffsets,lr=o.breakOffsetsVisibleColumn,o.breakOffsets=et,o.breakOffsetsVisibleColumn=Wt,o.wrappedTextIndentLength=ct,o)}function Ps(V,o,t,i,g,b){if(i===-1)return null;var K=o.length;if(K<=1)return null;var Ie=ki(o,t,i,g,b),Le=i-Ie,qe=[],ct=[],_t=0,et=0,Wt=0,kt=i,Vt=o.charCodeAt(0),qt=V.get(Vt),$t=Pi(Vt,0,t,g),io=1;fe.z(Vt)&&($t+=1,Vt=o.charCodeAt(1),qt=V.get(Vt),io++);for(var yo=io;yokt&&((et===0||$t-Wt>Le)&&(et=mo,Wt=$t-Lo),qe[_t]=et,ct[_t]=Wt,_t++,kt=Wt+Le,et=0),Vt=bo,qt=go}return _t===0?null:(qe[_t]=K,ct[_t]=$t,new qn(qe,ct,Ie))}function Pi(V,o,t,i){return V===9?t-o%t:fe.y(V)?i:1}function dr(V,o){return o-V%o}function cr(V,o,t,i){return t!==32&&(o===2||o===3&&i!==2||i===1||i===3&&o!==1)}function ki(V,o,t,i,g){var b=0;if(g!==0){var K=fe.q(V);if(K!==-1){for(var Ie=0;Iet&&(b=0)}}return b}var Pr=function(){function V(){}return V.create=function(){return new V},V.prototype.createLineBreaksComputer=function(o,t,i,g){t=t|0,i=+i;var b=[];return{addRequest:function(Ie,Le){b.push(Ie)},finalize:function(){return Fi(b,o,t,i,g)}}},V}();function Fi(V,o,t,i,g){if(i===-1){for(var b=[],K=0,Ie=V.length;KLe?($t=0,io=0):yo=Le-go}var Lo=qt.substr($t),No=kr(Lo,io,t,yo,ct);_t[K]=$t,et[K]=io,Wt[K]=Lo,kt[K]=No[0],Vt[K]=No[1]}qe.innerHTML=ct.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var Fo=document.createRange(),Xo=Array.prototype.slice.call(qe.children,0),Po=[],K=0;K');for(var b=V.length,K=o,Ie=0,Le=[],qe=[],ct=0"),[Le,qe]}function Fr(V,o,t,i){if(t.length<=1)return null;var g=o.firstChild,b=[];return pi(V,g,i,0,null,t.length-1,null,b),b.length===0?null:(b.push(t.length),b)}function pi(V,o,t,i,g,b,K,Ie){if(i===b)return;if(g=g||ur(V,o,t[i],t[i+1]),K=K||ur(V,o,t[b],t[b+1]),Math.abs(g[0].top-K[0].top)<=.1)return;if(i+1===b){Ie.push(b);return}var Le=i+(b-i)/2|0,qe=ur(V,o,t[Le],t[Le+1]);pi(V,o,t,i,g,Le,qe,Ie),pi(V,o,t,Le,qe,b,K,Ie)}function ur(V,o,t,i){return V.setStart(o,t),V.setEnd(o,i),V.getClientRects()}var Li=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(V,o,t,i){var g=arguments.length,b=g<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,t):i,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(V,o,t,i);else for(var Ie=V.length-1;Ie>=0;Ie--)(K=V[Ie])&&(b=(g<3?K(b):g>3?K(o,t,b):K(o,t))||b);return g>3&&b&&Object.defineProperty(o,t,b),b},ri=function(V,o){return function(t,i){o(t,i,V)}},gi=0,hr=function(){function V(o,t,i,g,b,K){this.model=o,this.viewModel=t,this.cursor=i,this.view=g,this.hasRealView=b,this.listenersToRemove=K}return V.prototype.dispose=function(){Object(z.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},V}(),ks=function(V){Li(o,V);function o(t,i,g,b,K,Ie,Le,qe,ct,_t){var et=V.call(this)||this;et._onDidDispose=et._register(new H.a),et.onDidDispose=et._onDidDispose.event,et._onDidChangeModelContent=et._register(new H.a),et.onDidChangeModelContent=et._onDidChangeModelContent.event,et._onDidChangeModelLanguage=et._register(new H.a),et.onDidChangeModelLanguage=et._onDidChangeModelLanguage.event,et._onDidChangeModelLanguageConfiguration=et._register(new H.a),et.onDidChangeModelLanguageConfiguration=et._onDidChangeModelLanguageConfiguration.event,et._onDidChangeModelOptions=et._register(new H.a),et.onDidChangeModelOptions=et._onDidChangeModelOptions.event,et._onDidChangeModelDecorations=et._register(new H.a),et.onDidChangeModelDecorations=et._onDidChangeModelDecorations.event,et._onDidChangeConfiguration=et._register(new H.a),et.onDidChangeConfiguration=et._onDidChangeConfiguration.event,et._onDidChangeModel=et._register(new H.a),et.onDidChangeModel=et._onDidChangeModel.event,et._onDidChangeCursorPosition=et._register(new H.a),et.onDidChangeCursorPosition=et._onDidChangeCursorPosition.event,et._onDidChangeCursorSelection=et._register(new H.a),et.onDidChangeCursorSelection=et._onDidChangeCursorSelection.event,et._onDidAttemptReadOnlyEdit=et._register(new H.a),et.onDidAttemptReadOnlyEdit=et._onDidAttemptReadOnlyEdit.event,et._onDidLayoutChange=et._register(new H.a),et.onDidLayoutChange=et._onDidLayoutChange.event,et._editorTextFocus=et._register(new ei),et.onDidFocusEditorText=et._editorTextFocus.onDidChangeToTrue,et.onDidBlurEditorText=et._editorTextFocus.onDidChangeToFalse,et._editorWidgetFocus=et._register(new ei),et.onDidFocusEditorWidget=et._editorWidgetFocus.onDidChangeToTrue,et.onDidBlurEditorWidget=et._editorWidgetFocus.onDidChangeToFalse,et._onWillType=et._register(new H.a),et.onWillType=et._onWillType.event,et._onDidType=et._register(new H.a),et.onDidType=et._onDidType.event,et._onDidCompositionStart=et._register(new H.a),et.onDidCompositionStart=et._onDidCompositionStart.event,et._onDidCompositionEnd=et._register(new H.a),et.onDidCompositionEnd=et._onDidCompositionEnd.event,et._onDidPaste=et._register(new H.a),et.onDidPaste=et._onDidPaste.event,et._onMouseUp=et._register(new H.a),et.onMouseUp=et._onMouseUp.event,et._onMouseDown=et._register(new H.a),et.onMouseDown=et._onMouseDown.event,et._onMouseDrag=et._register(new H.a),et.onMouseDrag=et._onMouseDrag.event,et._onMouseDrop=et._register(new H.a),et.onMouseDrop=et._onMouseDrop.event,et._onContextMenu=et._register(new H.a),et.onContextMenu=et._onContextMenu.event,et._onMouseMove=et._register(new H.a),et.onMouseMove=et._onMouseMove.event,et._onMouseLeave=et._register(new H.a),et.onMouseLeave=et._onMouseLeave.event,et._onMouseWheel=et._register(new H.a),et.onMouseWheel=et._onMouseWheel.event,et._onKeyUp=et._register(new H.a),et.onKeyUp=et._onKeyUp.event,et._onKeyDown=et._register(new H.a),et.onKeyDown=et._onKeyDown.event,et._onDidContentSizeChange=et._register(new H.a),et.onDidContentSizeChange=et._onDidContentSizeChange.event,et._onDidScrollChange=et._register(new H.a),et.onDidScrollChange=et._onDidScrollChange.event,et._onDidChangeViewZones=et._register(new H.a),et.onDidChangeViewZones=et._onDidChangeViewZones.event,et._domElement=t,et._id=++gi,et._decorationTypeKeysToIds={},et._decorationTypeSubtypes={},et.isSimpleWidget=g.isSimpleWidget||!1,et._telemetryData=g.telemetryData,i=i||{},et._configuration=et._register(et._createConfiguration(i,_t)),et._register(et._configuration.onDidChange(function(io){et._onDidChangeConfiguration.fire(io);var yo=et._configuration.options;if(io.hasChanged(107)){var mo=yo.get(107);et._onDidLayoutChange.fire(mo)}})),et._contextKeyService=et._register(Le.createScoped(et._domElement)),et._notificationService=ct,et._codeEditorService=K,et._commandService=Ie,et._themeService=qe,et._register(new Fs(et,et._contextKeyService)),et._register(new Ws(et,et._contextKeyService)),et._instantiationService=b.createChild(new sr.a([mi.c,et._contextKeyService])),et._modelData=null,et._contributions={},et._actions={},et._focusTracker=new Br(t),et._focusTracker.onChange(function(){et._editorWidgetFocus.setValue(et._focusTracker.hasFocus())}),et._contentWidgets={},et._overlayWidgets={};var Wt;Array.isArray(g.contributions)?Wt=g.contributions:Wt=x.d.getEditorContributions();for(var kt=0,Vt=Wt;kt1?T.a("problems","{0} of {1} problems",F,se):T.a("change","{0} of {1} problem",F,se);this.setTitle(Object(s.b)(Se.uri),Ve)}this._icon.className="codicon "+d.className(U.c.toSeverity(this._severity)),this.editor.revealPositionInCenter(De,0),this.editor.focus()},Q.prototype.updateMarker=function(C){this._container.classList.remove("stale"),this._message.update(C)},Q.prototype.showStale=function(){this._container.classList.add("stale"),this._relayout()},Q.prototype._doLayoutBody=function(C,F){ve.prototype._doLayoutBody.call(this,C,F),this._heightInPixel=C,this._message.layout(C,F),this._container.style.height=C+"px"},Q.prototype._onWidth=function(C){this._message.layout(this._heightInPixel,C)},Q.prototype._relayout=function(){ve.prototype._relayout.call(this,this.computeRequiredHeight())},Q.prototype.computeRequiredHeight=function(){return 3+this._message.getHeightInLines()},Q}(c.c),A=Object(_.Kb)(_.q,_.p),k=Object(_.Kb)(_.P,_.O),R=Object(_.Kb)(_.H,_.G),$=Object(_.Tb)("editorMarkerNavigationError.background",{dark:A,light:A,hc:A},T.a("editorMarkerNavigationError","Editor marker navigation widget error color.")),ie=Object(_.Tb)("editorMarkerNavigationWarning.background",{dark:k,light:k,hc:k},T.a("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),W=Object(_.Tb)("editorMarkerNavigationInfo.background",{dark:R,light:R,hc:R},T.a("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),B=Object(_.Tb)("editorMarkerNavigation.background",{dark:"#2D2D30",light:f.a.white,hc:"#0C141F"},T.a("editorMarkerNavigationBackground","Editor marker navigation widget background."));Object(H.e)(function(ve,Q){var C=ve.getColor(_.ec);C&&(Q.addRule(".monaco-editor .marker-widget a { color: "+C+"; }"),Q.addRule(".monaco-editor .marker-widget a.code-link span:hover { color: "+C+"; }"))});var le=e("N0LK"),Ce=e("Vxe3"),Me=e("/cxE"),Te=e("fjLI"),Fe=e("8HAY"),Ue=e("bexQ"),Pe=e("W9cx"),ne=function(){var ve=function(C,F){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(se,oe){se.__proto__=oe}||function(se,oe){for(var be in oe)oe.hasOwnProperty(be)&&(se[be]=oe[be])},ve(C,F)};return function(Q,C){ve(Q,C);function F(){this.constructor=Q}Q.prototype=C===null?Object.create(C):(F.prototype=C.prototype,new F)}}(),ee=function(ve,Q,C,F){var se=arguments.length,oe=se<3?Q:F===null?F=Object.getOwnPropertyDescriptor(Q,C):F,be;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")oe=Reflect.decorate(ve,Q,C,F);else for(var De=ve.length-1;De>=0;De--)(be=ve[De])&&(oe=(se<3?be(oe):se>3?be(Q,C,oe):be(Q,C))||oe);return se>3&&oe&&Object.defineProperty(Q,C,oe),oe},ae=function(ve,Q){return function(C,F){Q(C,F,ve)}},q=function(ve,Q,C,F){function se(oe){return oe instanceof C?oe:new C(function(be){be(oe)})}return new(C||(C=Promise))(function(oe,be){function De(Qe){try{Ve(F.next(Qe))}catch(it){be(it)}}function Se(Qe){try{Ve(F.throw(Qe))}catch(it){be(it)}}function Ve(Qe){Qe.done?oe(Qe.value):se(Qe.value).then(De,Se)}Ve((F=F.apply(ve,Q||[])).next())})},ue=function(ve,Q){var C={label:0,sent:function(){if(oe[0]&1)throw oe[1];return oe[1]},trys:[],ops:[]},F,se,oe,be;return be={next:De(0),throw:De(1),return:De(2)},typeof Symbol=="function"&&(be[Symbol.iterator]=function(){return this}),be;function De(Ve){return function(Qe){return Se([Ve,Qe])}}function Se(Ve){if(F)throw new TypeError("Generator is already executing.");for(;C;)try{if(F=1,se&&(oe=Ve[0]&2?se.return:Ve[0]?se.throw||((oe=se.return)&&oe.call(se),0):se.next)&&!(oe=oe.call(se,Ve[1])).done)return oe;(se=0,oe)&&(Ve=[Ve[0]&2,oe.value]);switch(Ve[0]){case 0:case 1:oe=Ve;break;case 4:return C.label++,{value:Ve[1],done:!1};case 5:C.label++,se=Ve[1],Ve=[0];continue;case 7:Ve=C.ops.pop(),C.trys.pop();continue;default:if(!(oe=C.trys,oe=oe.length>0&&oe[oe.length-1])&&(Ve[0]===6||Ve[0]===2)){C=0;continue}if(Ve[0]===3&&(!oe||Ve[1]>oe[0]&&Ve[1]=0?this._markers[this._nextIdx]:void 0;this._markers=Q||[],this._markers.sort(je.compareMarker),C?this._nextIdx=Math.max(-1,Object(p.c)(this._markers,C,je.compareMarker)):this._nextIdx=-1,this._onMarkerSetChanged.fire(this)},ve.prototype.withoutWatchingEditorPosition=function(Q){this._ignoreSelectionChange=!0;try{Q()}finally{this._ignoreSelectionChange=!1}},ve.prototype._initIdx=function(Q){for(var C=!1,F=this._editor.getPosition(),se=0;se0?this._nextIdx=(this._nextIdx-1+this._markers.length)%this._markers.length:se=!0),F!==this._nextIdx){var oe=this._markers[this._nextIdx];this._onCurrentMarkerChanged.fire(oe)}return se},ve.prototype.canNavigate=function(){return this._markers.length>0},ve.prototype.findMarkerAtPosition=function(Q){return Object(p.h)(this._markers,function(C){return z.a.containsPosition(C,Q)})},Object.defineProperty(ve.prototype,"total",{get:function(){return this._markers.length},enumerable:!0,configurable:!0}),ve.prototype.indexOf=function(Q){return 1+this._markers.indexOf(Q)},ve.prototype.dispose=function(){this._toUnbind.dispose()},ve}(),he=function(){function ve(Q,C,F,se,oe,be,De){this._markerService=C,this._contextKeyService=F,this._themeService=se,this._editorService=oe,this._keybindingService=be,this._openerService=De,this._model=null,this._widget=null,this._disposeOnClose=new J.b,this._editor=Q,this._widgetVisible=Re.bindTo(this._contextKeyService)}return ve.get=function(Q){return Q.getContribution(ve.ID)},ve.prototype.dispose=function(){this._cleanUp(),this._disposeOnClose.dispose()},ve.prototype._cleanUp=function(){this._widgetVisible.reset(),this._disposeOnClose.clear(),this._widget=null,this._model=null},ve.prototype.getOrCreateModel=function(){var Q=this;if(this._model)return this._model;var C=this._getMarkers();this._model=new X(this._editor,C),this._markerService.onMarkerChanged(this._onMarkerChanged,this,this._disposeOnClose);var F=this._keybindingService.lookupKeybinding(me.ID),se=this._keybindingService.lookupKeybinding(Xe.ID),oe=[new Fe.a(Xe.ID,Xe.LABEL+(se?" ("+se.getLabel()+")":""),"show-next-problem codicon-chevron-down",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ue(this,function(Ve){return this._model&&this._model.move(!0,!0),[2]})})}),new Fe.a(me.ID,me.LABEL+(F?" ("+F.getLabel()+")":""),"show-previous-problem codicon-chevron-up",this._model.canNavigate(),function(){return q(Q,void 0,void 0,function(){return ue(this,function(Ve){return this._model&&this._model.move(!1,!0),[2]})})})];this._widget=new L(this._editor,oe,this._themeService,this._openerService),this._widgetVisible.set(!0),this._widget.onDidClose(function(){return Q.closeMarkersNavigation()},this,this._disposeOnClose),this._disposeOnClose.add(this._model),this._disposeOnClose.add(this._widget);for(var be=0,De=oe;beA)return!1;for(var k=0;k=65&&R<=90&&R+32===$)continue;if($>=65&&$<=90&&$+32===R)continue;return!1}return!0},l.prototype._createOperationsForBlockComment=function(d,m,E,L,A,k){var R=d.startLineNumber,$=d.startColumn,ie=d.endLineNumber,W=d.endColumn,B=A.getLineContent(R),le=A.getLineContent(ie),Ce=B.lastIndexOf(m,$-1+m.length),Me=le.indexOf(E,W-1-E.length);if(Ce!==-1&&Me!==-1)if(R===ie){var Te=B.substring(Ce+m.length,Me);Te.indexOf(E)>=0&&(Ce=-1,Me=-1)}else{var Fe=B.substring(Ce+m.length),Ue=le.substring(0,Me);(Fe.indexOf(E)>=0||Ue.indexOf(E)>=0)&&(Ce=-1,Me=-1)}var Pe;Ce!==-1&&Me!==-1?(L&&Ce+m.length0&&le.charCodeAt(Me-1)===32&&(E=" "+E,Me-=1),Pe=l._createRemoveBlockCommentOperations(new O.a(R,Ce+m.length+1,ie,Me+1),m,E)):(Pe=l._createAddBlockCommentOperations(d,m,E,this._insertSpace),this._usedEndToken=Pe.length===1?E:null);for(var ne=0,ee=Pe;neA?m[$].commentStrOffset=k-1:m[$].commentStrOffset=k}},l}(),f=function(){var l=function(m,E){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,A){L.__proto__=A}||function(L,A){for(var k in A)A.hasOwnProperty(k)&&(L[k]=A[k])},l(m,E)};return function(d,m){l(d,m);function E(){this.constructor=d}d.prototype=m===null?Object.create(m):(E.prototype=m.prototype,new E)}}(),v=function(l){f(d,l);function d(m,E){var L=l.call(this,E)||this;return L._type=m,L}return d.prototype.run=function(m,E){if(!E.hasModel())return;for(var L=E.getModel(),A=[],k=E.getSelections(),R=L.getOptions(),$=E.getOption(13),ie=0,W=k;ie=qe?b=Math.max(b,qe+ct-g):(t[i++]=new Ue(g,b),g=qe,b=ct)}return t[i++]=new Ue(g,b),t},V._createHorizontalRangesFromClientRects=function(o,t){if(!o||o.length===0)return null;for(var i=[],g=0,b=o.length;gqe)return null;t=Math.min(qe,Math.max(Le,t)),g=Math.min(qe,Math.max(Le,g)),t!==g&&(g>0&&b===0&&(g--,b=1073741824));var ct=o.children[t].firstChild,wt=o.children[g].firstChild;if((!ct||!wt)&&(!ct&&i===0&&t>0&&(ct=o.children[t-1].firstChild,i=1073741824),!wt&&b===0&&g>0&&(wt=o.children[g-1].firstChild,b=1073741824)),!ct||!wt)return null;i=Math.min(ct.textContent.length,Math.max(0,i)),b=Math.min(wt.textContent.length,Math.max(0,b));var et=this._readClientRects(ct,i,wt,b,Ie);return this._createHorizontalRangesFromClientRects(et,K)},V}(),q=e("dBaI"),ue=e("baJR"),X=e("t9D7"),he=e("/UlZ"),je=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Xe=function(){return _.f?!0:!(_.d||v.h||v.k)}(),me=v.f,ge=function(){function V(o,t){this._domNode=o,this._clientRectDeltaLeft=0,this._clientRectDeltaLeftRead=!1,this.endNode=t}return Object.defineProperty(V.prototype,"clientRectDeltaLeft",{get:function(){return this._clientRectDeltaLeftRead||(this._clientRectDeltaLeftRead=!0,this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left),this._clientRectDeltaLeft},enumerable:!0,configurable:!0}),V}(),we=function(){function V(o,t){this.themeType=t;var i=o.options,g=i.get(34);this.renderWhitespace=i.get(74),this.renderControlCharacters=i.get(69),this.spaceWidth=g.spaceWidth,this.middotWidth=g.middotWidth,this.useMonospaceOptimizations=g.isMonospace&&!i.get(23),this.canUseHalfwidthRightwardsArrow=g.canUseHalfwidthRightwardsArrow,this.lineHeight=i.get(49),this.stopRenderingLineAfter=i.get(88),this.fontLigatures=i.get(35)}return V.prototype.equals=function(o){return this.themeType===o.themeType&&this.renderWhitespace===o.renderWhitespace&&this.renderControlCharacters===o.renderControlCharacters&&this.spaceWidth===o.spaceWidth&&this.middotWidth===o.middotWidth&&this.useMonospaceOptimizations===o.useMonospaceOptimizations&&this.canUseHalfwidthRightwardsArrow===o.canUseHalfwidthRightwardsArrow&&this.lineHeight===o.lineHeight&&this.stopRenderingLineAfter===o.stopRenderingLineAfter&&this.fontLigatures===o.fontLigatures},V}(),Re=function(){function V(o){this._options=o,this._isMaybeInvalid=!0,this._renderedViewLine=null}return V.prototype.getDomNode=function(){return this._renderedViewLine&&this._renderedViewLine.domNode?this._renderedViewLine.domNode.domNode:null},V.prototype.setDomNode=function(o){if(this._renderedViewLine)this._renderedViewLine.domNode=Object(y.b)(o);else throw new Error("I have no rendered view line to set the dom node to...")},V.prototype.onContentChanged=function(){this._isMaybeInvalid=!0},V.prototype.onTokensChanged=function(){this._isMaybeInvalid=!0},V.prototype.onDecorationsChanged=function(){this._isMaybeInvalid=!0},V.prototype.onOptionsChanged=function(o){this._isMaybeInvalid=!0,this._options=o},V.prototype.onSelectionChanged=function(){return me||this._options.themeType===X.b||this._options.renderWhitespace==="selection"?(this._isMaybeInvalid=!0,!0):!1},V.prototype.renderLine=function(o,t,i,g){if(this._isMaybeInvalid===!1)return!1;this._isMaybeInvalid=!1;var b=i.getViewLineRenderingData(o),K=this._options,Ie=q.a.filter(b.inlineDecorations,o,b.minColumn,b.maxColumn),Le=null;if(me||K.themeType===X.b||this._options.renderWhitespace==="selection")for(var qe=i.selections,ct=0,wt=qe;cto)continue;var Wt=et.startLineNumber===o?et.startColumn:b.minColumn,kt=et.endLineNumber===o?et.endColumn:b.maxColumn;Wt');var qt=Object(ue.d)(Vt,g);g.appendASCIIString("");var $t=null;return Xe&&b.isBasicASCII&&K.useMonospaceOptimizations&&qt.containsForeignElements===0&&(b.content.length<300&&Vt.lineTokens.getCount()<100&&($t=new Ee(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping))),$t||($t=C(this._renderedViewLine?this._renderedViewLine.domNode:null,Vt,qt.characterMapping,qt.containsRTL,qt.containsForeignElements)),this._renderedViewLine=$t,!0},V.prototype.layoutLine=function(o,t){this._renderedViewLine&&this._renderedViewLine.domNode&&(this._renderedViewLine.domNode.setTop(t),this._renderedViewLine.domNode.setHeight(this._options.lineHeight))},V.prototype.getWidth=function(){return this._renderedViewLine?this._renderedViewLine.getWidth():0},V.prototype.getWidthIsFast=function(){return this._renderedViewLine?this._renderedViewLine.getWidthIsFast():!0},V.prototype.getVisibleRangesForRange=function(o,t,i){if(!this._renderedViewLine)return null;o=o|0,t=t|0,o=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,o)),t=Math.min(this._renderedViewLine.input.lineContent.length+1,Math.max(1,t));var g=this._renderedViewLine.input.stopRenderingLineAfter|0,b=!1;g!==-1&&o>g+1&&t>g+1&&(b=!0),g!==-1&&o>g+1&&(o=g+1),g!==-1&&t>g+1&&(t=g+1);var K=this._renderedViewLine.getVisibleRangesForRange(o,t,i);return K&&K.length>0?new ne(b,K):null},V.prototype.getColumnOfNodeOffset=function(o,t,i){return this._renderedViewLine?this._renderedViewLine.getColumnOfNodeOffset(o,t,i):1},V.CLASS_NAME="view-line",V}(),Ee=function(){function V(o,t,i){this.domNode=o,this.input=t,this._characterMapping=i,this._charWidth=t.spaceWidth}return V.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)},V.prototype.getWidthIsFast=function(){return!0},V.prototype.getVisibleRangesForRange=function(o,t,i){var g=this._getCharPosition(o),b=this._getCharPosition(t);return[new Ue(g,b-g)]},V.prototype._getCharPosition=function(o){var t=this._characterMapping.getAbsoluteOffsets();return t.length===0?0:Math.round(this._charWidth*t[o-1])},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),ve=function(){function V(o,t,i,g,b){if(this.domNode=o,this.input=t,this._characterMapping=i,this._isWhitespaceOnly=/^\s*$/.test(t.lineContent),this._containsForeignElements=b,this._cachedWidth=-1,this._pixelOffsetCache=null,!g||this._characterMapping.length===0){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var K=0,Ie=this._characterMapping.length;K<=Ie;K++)this._pixelOffsetCache[K]=-1}}return V.prototype._getReadingTarget=function(o){return o.domNode.firstChild},V.prototype.getWidth=function(){return this.domNode?(this._cachedWidth===-1&&(this._cachedWidth=this._getReadingTarget(this.domNode).offsetWidth),this._cachedWidth):0},V.prototype.getWidthIsFast=function(){return!(this._cachedWidth===-1)},V.prototype.getVisibleRangesForRange=function(o,t,i){if(!this.domNode)return null;if(this._pixelOffsetCache!==null){var g=this._readPixelOffset(this.domNode,o,i);if(g===-1)return null;var b=this._readPixelOffset(this.domNode,t,i);return b===-1?null:[new Ue(g,b-g)]}return this._readVisibleRangesForRange(this.domNode,o,t,i)},V.prototype._readVisibleRangesForRange=function(o,t,i,g){if(t===i){var b=this._readPixelOffset(o,t,g);return b===-1?null:[new Ue(b,0)]}else return this._readRawVisibleRangesForRange(o,t,i,g)},V.prototype._readPixelOffset=function(o,t,i){if(this._characterMapping.length===0){if(this._containsForeignElements===0)return 0;if(this._containsForeignElements===2)return 0;if(this._containsForeignElements===1)return this.getWidth();var g=this._getReadingTarget(o);return g.firstChild?g.firstChild.offsetWidth:0}if(this._pixelOffsetCache!==null){var b=this._pixelOffsetCache[t];if(b!==-1)return b;var K=this._actualReadPixelOffset(o,t,i);return this._pixelOffsetCache[t]=K,K}return this._actualReadPixelOffset(o,t,i)},V.prototype._actualReadPixelOffset=function(o,t,i){if(this._characterMapping.length===0){var g=ae.readHorizontalRanges(this._getReadingTarget(o),0,0,0,0,i.clientRectDeltaLeft,i.endNode);return!g||g.length===0?-1:g[0].left}if(t===this._characterMapping.length&&this._isWhitespaceOnly&&this._containsForeignElements===0)return this.getWidth();var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,K,Ie,i.clientRectDeltaLeft,i.endNode);return!Le||Le.length===0?-1:Le[0].left},V.prototype._readRawVisibleRangesForRange=function(o,t,i,g){if(t===1&&i===this._characterMapping.length)return[new Ue(0,this.getWidth())];var b=this._characterMapping.charOffsetToPartData(t-1),K=ue.a.getPartIndex(b),Ie=ue.a.getCharIndex(b),Le=this._characterMapping.charOffsetToPartData(i-1),qe=ue.a.getPartIndex(Le),ct=ue.a.getCharIndex(Le);return ae.readHorizontalRanges(this._getReadingTarget(o),K,Ie,qe,ct,g.clientRectDeltaLeft,g.endNode)},V.prototype.getColumnOfNodeOffset=function(o,t,i){for(var g=t.textContent.length,b=-1;t;)t=t.previousSibling,b++;var K=this._characterMapping.partDataToCharOffset(b,g,i);return K+1},V}(),Q=function(V){je(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._readVisibleRangesForRange=function(t,i,g,b){var K=V.prototype._readVisibleRangesForRange.call(this,t,i,g,b);if(!K||K.length===0||i===g||i===1&&g===this._characterMapping.length)return K;if(!this.input.containsRTL){var Ie=this._readPixelOffset(t,g,b);if(Ie!==-1){var Le=K[K.length-1];Le.left=4&&o[0]===3&&o[3]===7},V.isStrictChildOfViewLines=function(o){return o.length>4&&o[0]===3&&o[3]===7},V.isChildOfScrollableElement=function(o){return o.length>=2&&o[0]===3&&o[1]===5},V.isChildOfMinimap=function(o){return o.length>=2&&o[0]===3&&o[1]===8},V.isChildOfContentWidgets=function(o){return o.length>=4&&o[0]===3&&o[3]===1},V.isChildOfOverflowingContentWidgets=function(o){return o.length>=1&&o[0]===2},V.isChildOfOverlayWidgets=function(o){return o.length>=2&&o[0]===3&&o[1]===4},V}(),pt=function(){function V(o,t,i){this.model=o.model;var g=o.configuration.options;this.layoutInfo=g.get(107),this.viewDomNode=t.viewDomNode,this.lineHeight=g.get(49),this.typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,this.lastRenderData=i,this._context=o,this._viewHelper=t}return V.prototype.getZoneAtCoord=function(o){return V.getZoneAtCoord(this._context,o)},V.getZoneAtCoord=function(o,t){var i=o.viewLayout.getWhitespaceAtVerticalOffset(t);if(i){var g=i.verticalOffset+i.height/2,b=o.model.getLineCount(),K=null,Ie=void 0,Le=null;return i.afterLineNumber!==b&&(Le=new oe.a(i.afterLineNumber+1,1)),i.afterLineNumber>0&&(K=new oe.a(i.afterLineNumber,o.model.getLineMaxColumn(i.afterLineNumber))),Le===null?Ie=K:K===null?Ie=Le:t=o.layoutInfo.glyphMarginLeft,this.isInContentArea=!this.isInMarginArea,this.mouseColumn=Math.max(0,ao._getMouseColumn(this.mouseContentHorizontalOffset,o.typicalHalfwidthCharacterWidth))}return V}(),Mt=function(V){Se(o,V);function o(t,i,g,b){var K=V.call(this,t,i,g)||this;return K._ctx=t,b?(K.target=b,K.targetPath=le.collect(b,t.viewDomNode)):(K.target=null,K.targetPath=new Uint8Array(0)),K}return o.prototype.toString=function(){return"pos("+this.pos.x+","+this.pos.y+"), editorPos("+this.editorPos.x+","+this.editorPos.y+"), mouseVerticalOffset: "+this.mouseVerticalOffset+", mouseContentHorizontalOffset: "+this.mouseContentHorizontalOffset+` + target: `+(this.target?this.target.outerHTML:null)},o.prototype.fulfill=function(t,i,g,b){i===void 0&&(i=null),g===void 0&&(g=null),b===void 0&&(b=null);var K=this.mouseColumn;return i&&i.columnK.contentLeft+K.width)continue;var wt=o.getVerticalOffsetForLineNumber(K.position.lineNumber);if(wt<=Le&&Le<=wt+K.height)return t.fulfill(6,K.position)}return null},V._hitTestViewZone=function(o,t){var i=o.getZoneAtCoord(t.mouseVerticalOffset);if(i){var g=t.isInContentArea?8:5;return t.fulfill(g,i.position,null,i)}return null},V._hitTestTextArea=function(o,t){return it.isTextArea(t.targetPath)?o.lastRenderData.lastTextareaPosition?t.fulfill(6,o.lastRenderData.lastTextareaPosition):t.fulfill(1,o.lastRenderData.lastTextareaPosition):null},V._hitTestMargin=function(o,t){if(t.isInMarginArea){var i=o.getFullLineRangeAtCoord(t.mouseVerticalOffset),g=i.range.getStartPosition(),b=Math.abs(t.pos.x-t.editorPos.x),K={isAfterLines:i.isAfterLines,glyphMarginLeft:o.layoutInfo.glyphMarginLeft,glyphMarginWidth:o.layoutInfo.glyphMarginWidth,lineNumbersWidth:o.layoutInfo.lineNumbersWidth,offsetX:b};return b-=o.layoutInfo.glyphMarginLeft,b<=o.layoutInfo.glyphMarginWidth?t.fulfill(2,g,i.range,K):(b-=o.layoutInfo.glyphMarginWidth,b<=o.layoutInfo.lineNumbersWidth?t.fulfill(3,g,i.range,K):(b-=o.layoutInfo.lineNumbersWidth,t.fulfill(4,g,i.range,K)))}return null},V._hitTestViewLines=function(o,t,i){if(!it.isChildOfViewLines(t.targetPath))return null;if(o.isAfterLines(t.mouseVerticalOffset)){var g=o.model.getLineCount(),b=o.model.getLineMaxColumn(g);return t.fulfill(7,new oe.a(g,b),void 0,zt)}if(i){if(it.isStrictChildOfViewLines(t.targetPath)){var K=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);if(o.model.getLineLength(K)===0){var Ie=o.getLineWidth(K),Le=uo(t.mouseContentHorizontalOffset-Ie);return t.fulfill(7,new oe.a(K,1),void 0,Le)}var qe=o.getLineWidth(K);if(t.mouseContentHorizontalOffset>=qe){var Le=uo(t.mouseContentHorizontalOffset-qe),ct=new oe.a(K,o.model.getLineMaxColumn(K));return t.fulfill(7,ct,void 0,Le)}}return t.fulfill(0)}var wt=V._doHitTest(o,t);return wt.position?V.createMouseTargetFromHitTestPosition(o,t,wt.position.lineNumber,wt.position.column):this._createMouseTarget(o,t.withTarget(wt.hitTarget),!0)},V._hitTestMinimap=function(o,t){if(it.isChildOfMinimap(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V._hitTestScrollbarSlider=function(o,t){if(it.isChildOfScrollableElement(t.targetPath)&&(t.target&&t.target.nodeType===1)){var i=t.target.className;if(i&&/\b(slider|scrollbar)\b/.test(i)){var g=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),b=o.model.getLineMaxColumn(g);return t.fulfill(11,new oe.a(g,b))}}return null},V._hitTestScrollbar=function(o,t){if(it.isChildOfScrollableElement(t.targetPath)){var i=o.getLineNumberAtVerticalOffset(t.mouseVerticalOffset),g=o.model.getLineMaxColumn(i);return t.fulfill(11,new oe.a(i,g))}return null},V.prototype.getMouseColumn=function(o,t){var i=this._context.configuration.options,g=i.get(107),b=this._context.viewLayout.getCurrentScrollLeft()+t.x-o.x-g.contentLeft;return V._getMouseColumn(b,i.get(34).typicalHalfwidthCharacterWidth)},V._getMouseColumn=function(o,t){if(o<0)return 1;var i=Math.round(o/t);return i+1},V.createMouseTargetFromHitTestPosition=function(o,t,i,g){var b=new oe.a(i,g),K=o.getLineWidth(i);if(t.mouseContentHorizontalOffset>K){if(v.e&&b.column===1){var Ie=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,new oe.a(i,o.model.getLineMaxColumn(i)),void 0,Ie)}var Le=uo(t.mouseContentHorizontalOffset-K);return t.fulfill(7,b,void 0,Le)}var qe=o.visibleRangeForPosition(i,g);if(!qe)return t.fulfill(0,b);var ct=qe.left;if(t.mouseContentHorizontalOffset===ct)return t.fulfill(6,b);var wt=[];if(wt.push({offset:qe.left,column:g}),g>1){var et=o.visibleRangeForPosition(i,g-1);et&&wt.push({offset:et.left,column:g-1})}var Wt=o.model.getLineMaxColumn(i);if(g=t.editorPos.y+o.layoutInfo.height&&(K=t.editorPos.y+o.layoutInfo.height-1);var Ie=new l(t.pos.x,K),Le=this._actualDoHitTestWithCaretRangeFromPoint(o,Ie.toClientCoordinates());return Le.position?Le:this._actualDoHitTestWithCaretRangeFromPoint(o,t.pos.toClientCoordinates())},V._actualDoHitTestWithCaretRangeFromPoint=function(o,t){var i=J.E(o.viewDomNode),g;if(i?typeof i.caretRangeFromPoint=="undefined"?g=so(i,t.clientX,t.clientY):g=i.caretRangeFromPoint(t.clientX,t.clientY):g=document.caretRangeFromPoint(t.clientX,t.clientY),!g||!g.startContainer)return{position:null,hitTarget:null};var b=g.startContainer,K=null;if(b.nodeType===b.TEXT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,qe=Le?Le.parentNode:null,ct=qe&&qe.nodeType===qe.ELEMENT_NODE?qe.className:null;if(ct===Re.CLASS_NAME){var wt=o.getPositionFromDOMInfo(Ie,g.startOffset);return{position:wt,hitTarget:null}}else K=b.parentNode}else if(b.nodeType===b.ELEMENT_NODE){var Ie=b.parentNode,Le=Ie?Ie.parentNode:null,et=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:null;if(et===Re.CLASS_NAME){var wt=o.getPositionFromDOMInfo(b,b.textContent.length);return{position:wt,hitTarget:null}}else K=b}return{position:null,hitTarget:K}},V._doHitTestWithCaretPositionFromPoint=function(o,t){var i=document.caretPositionFromPoint(t.clientX,t.clientY);if(i.offsetNode.nodeType===i.offsetNode.TEXT_NODE){var g=i.offsetNode.parentNode,b=g?g.parentNode:null,K=b?b.parentNode:null,Ie=K&&K.nodeType===K.ELEMENT_NODE?K.className:null;if(Ie===Re.CLASS_NAME){var Le=o.getPositionFromDOMInfo(i.offsetNode.parentNode,i.offset);return{position:Le,hitTarget:null}}else return{position:null,hitTarget:i.offsetNode.parentNode}}return{position:null,hitTarget:i.offsetNode}},V._doHitTestWithMoveToPoint=function(o,t){var i=null,g=null,b=document.body.createTextRange();try{b.moveToPoint(t.clientX,t.clientY)}catch(wt){return{position:null,hitTarget:null}}b.collapse(!0);var K=b?b.parentElement():null,Ie=K?K.parentNode:null,Le=Ie?Ie.parentNode:null,qe=Le&&Le.nodeType===Le.ELEMENT_NODE?Le.className:"";if(qe===Re.CLASS_NAME){var ct=b.duplicate();ct.moveToElementText(K),ct.setEndPoint("EndToStart",b),i=o.getPositionFromDOMInfo(K,ct.text.length),ct.moveToElementText(o.viewDomNode)}else g=K;return b.moveToElementText(o.viewDomNode),{position:i,hitTarget:g}},V._doHitTest=function(o,t){return typeof document.caretRangeFromPoint=="function"?this._doHitTestWithCaretRangeFromPoint(o,t):document.caretPositionFromPoint?this._doHitTestWithCaretPositionFromPoint(o,t.pos.toClientCoordinates()):document.body.createTextRange?this._doHitTestWithMoveToPoint(o,t.pos.toClientCoordinates()):{position:null,hitTarget:null}},V}();function so(V,o,t){var i=document.createRange(),g=V.elementFromPoint(o,t);if(g!==null){for(;g&&g.firstChild&&g.firstChild.nodeType!==g.firstChild.TEXT_NODE;)g=g.lastChild;var b=g.getBoundingClientRect(),K=window.getComputedStyle(g,null).getPropertyValue("font"),Ie=g.innerText,Le=b.left,qe=0,ct=void 0;if(o>b.left+b.width)qe=Ie.length;else for(var wt=Pt.getInstance(),et=0;et0?1:-1;ft.a.setZoomLevel(wt+et),ct.preventDefault(),ct.stopPropagation()}};return b._register(J.j(b.viewHelper.viewDomNode,v.f?"mousewheel":"wheel",Ie,{capture:!0,passive:!1})),b._context.addEventHandler(b),b}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype.onCursorStateChanged=function(t){return this._mouseDownOperation.onCursorStateChanged(t),!1},o.prototype.onFocusChanged=function(t){return this._isFocused=t.isFocused,!1},o.prototype.onScrollChanged=function(t){return this._mouseDownOperation.onScrollChanged(),!1},o.prototype.getTargetAtClientPoint=function(t,i){var g=new d(t,i),b=g.toPageCoordinates(),K=E(this.viewHelper.viewDomNode);return b.yK.y+K.height||b.xK.x+K.width?null:this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),K,b,null)},o.prototype._createMouseTarget=function(t,i){return this.mouseTargetFactory.createMouseTarget(this.viewHelper.getLastRenderData(),t.editorPos,t.pos,i?t.target:null)},o.prototype._getMouseColumn=function(t){return this.mouseTargetFactory.getMouseColumn(t.editorPos,t.pos)},o.prototype._onContextMenu=function(t,i){this.viewController.emitContextMenu({event:t,target:this._createMouseTarget(t,i)})},o.prototype._onMouseMove=function(t){if(this._mouseDownOperation.isActive())return;var i=t.timestamp;if(ii.y+i.height){var Ie=b.getCurrentScrollTop()+(t.posy-i.y),Le=pt.getZoneAtCoord(this._context,Ie);if(Le){var qe=this._helpPositionJumpOverViewZone(Le);if(qe)return new Qe(null,13,K,qe)}var wt=b.getLineNumberAtVerticalOffset(Ie);return new Qe(null,13,K,new oe.a(wt,g.getLineMaxColumn(wt)))}var et=b.getLineNumberAtVerticalOffset(b.getCurrentScrollTop()+(t.posy-i.y));return t.posxi.x+i.width?new Qe(null,13,K,new oe.a(et,g.getLineMaxColumn(et))):null},o.prototype._findMousePosition=function(t,i){var g=this._getPositionOutsideEditor(t);if(g)return g;var b=this._createMouseTarget(t,i),K=b.position;if(!K)return null;if(b.type===8||b.type===5){var Ie=this._helpPositionJumpOverViewZone(b.detail);if(Ie)return new Qe(b.element,b.type,b.mouseColumn,Ie,null,b.detail)}return b},o.prototype._helpPositionJumpOverViewZone=function(t){var i=new oe.a(this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn),g=t.positionBefore,b=t.positionAfter;return g&&b?g.isBefore(i)?g:b:null},o.prototype._dispatchMouse=function(t,i){if(!t.position)return;this._viewController.dispatchMouse({position:t.position,mouseColumn:t.mouseColumn,startedOnLineNumbers:this._mouseState.startedOnLineNumbers,inSelectionMode:i,mouseDownCount:this._mouseState.count,altKey:this._mouseState.altKey,ctrlKey:this._mouseState.ctrlKey,metaKey:this._mouseState.metaKey,shiftKey:this._mouseState.shiftKey,leftButton:this._mouseState.leftButton,middleButton:this._mouseState.middleButton})},o}(z.a),Ct=function(){function V(){this._altKey=!1,this._ctrlKey=!1,this._metaKey=!1,this._shiftKey=!1,this._leftButton=!1,this._middleButton=!1,this._startedOnLineNumbers=!1,this._lastMouseDownPosition=null,this._lastMouseDownPositionEqualCount=0,this._lastMouseDownCount=0,this._lastSetMouseDownCountTime=0,this.isDragAndDrop=!1}return Object.defineProperty(V.prototype,"altKey",{get:function(){return this._altKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"ctrlKey",{get:function(){return this._ctrlKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"metaKey",{get:function(){return this._metaKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"shiftKey",{get:function(){return this._shiftKey},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"leftButton",{get:function(){return this._leftButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"middleButton",{get:function(){return this._middleButton},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"startedOnLineNumbers",{get:function(){return this._startedOnLineNumbers},enumerable:!0,configurable:!0}),Object.defineProperty(V.prototype,"count",{get:function(){return this._lastMouseDownCount},enumerable:!0,configurable:!0}),V.prototype.setModifiers=function(o){this._altKey=o.altKey,this._ctrlKey=o.ctrlKey,this._metaKey=o.metaKey,this._shiftKey=o.shiftKey},V.prototype.setStartButtons=function(o){this._leftButton=o.leftButton,this._middleButton=o.middleButton},V.prototype.setStartedOnLineNumbers=function(o){this._startedOnLineNumbers=o},V.prototype.trySetCount=function(o,t){var i=new Date().getTime();i-this._lastSetMouseDownCountTime>V.CLEAR_MOUSE_DOWN_COUNT_TIME&&(o=1),this._lastSetMouseDownCountTime=i,o>this._lastMouseDownCount+1&&(o=this._lastMouseDownCount+1),this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(t)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1,this._lastMouseDownPosition=t,this._lastMouseDownCount=Math.min(o,this._lastMouseDownPositionEqualCount)},V.CLEAR_MOUSE_DOWN_COUNT_TIME=400,V}(),gt=e("CjF5"),bt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Gt(V,o){var t={translationY:o.translationY,translationX:o.translationX};return V&&(t.translationY+=V.translationY,t.translationX+=V.translationX),t}var Nt=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.msTouchAction="none",b.viewHelper.linesContentDomNode.style.msContentZooming="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(Le){var qe=Le.pointerType;if(qe===(Le.MSPOINTER_TYPE_MOUSE||"mouse")){b._lastPointerType="mouse";return}else qe===(Le.MSPOINTER_TYPE_TOUCH||"touch")?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Et=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b.viewHelper.linesContentDomNode.style.touchAction="none",b._installGestureHandlerTimeout=window.setTimeout(function(){if(b._installGestureHandlerTimeout=-1,window.MSGesture){var K=new MSGesture,Ie=new MSGesture;K.target=b.viewHelper.linesContentDomNode,Ie.target=b.viewHelper.linesContentDomNode,b.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(Le){var qe=Le.pointerType;if(qe==="mouse"){b._lastPointerType="mouse";return}else qe==="touch"?(b._lastPointerType="touch",K.addPointer(Le.pointerId)):(b._lastPointerType="pen",Ie.addPointer(Le.pointerId))}),b._register(J.m(b.viewHelper.linesContentDomNode,"MSGestureChange",function(Le){return b._onGestureChange(Le)},Gt)),b._register(J.j(b.viewHelper.linesContentDomNode,"MSGestureTap",function(Le){return b._onCaptureGestureTap(Le)},!0))}},100),b._lastPointerType="mouse",b}return o.prototype._onMouseDown=function(t){this._lastPointerType==="mouse"&&V.prototype._onMouseDown.call(this,t)},o.prototype._onCaptureGestureTap=function(t){var i=this,g=new L(t,this.viewHelper.viewDomNode),b=this._createMouseTarget(g,!1);b.position&&this.viewController.moveTo(b.position),g.browserEvent.fromElement?(g.preventDefault(),this.viewHelper.focusTextArea()):setTimeout(function(){i.viewHelper.focusTextArea()})},o.prototype._onGestureChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype.dispose=function(){window.clearTimeout(this._installGestureHandlerTimeout),V.prototype.dispose.call(this)},o}(tt),Je=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(Ie){return b.onTap(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(Ie){return b.onChange(Ie)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(Ie){return b._onContextMenu(new L(Ie,b.viewHelper.viewDomNode),!1)})),b._lastPointerType="mouse",b._register(J.j(b.viewHelper.linesContentDomNode,"pointerdown",function(Ie){var Le=Ie.pointerType;if(Le==="mouse"){b._lastPointerType="mouse";return}else Le==="touch"?b._lastPointerType="touch":b._lastPointerType="pen"}));var K=new k(b.viewHelper.viewDomNode);return b._register(K.onPointerMoveThrottled(b.viewHelper.viewDomNode,function(Ie){return b._onMouseMove(Ie)},at(b.mouseTargetFactory),tt.MOUSE_MOVE_MINIMUM_TIME)),b._register(K.onPointerUp(b.viewHelper.viewDomNode,function(Ie){return b._onMouseUp(Ie)})),b._register(K.onPointerLeave(b.viewHelper.viewDomNode,function(Ie){return b._onMouseLeave(Ie)})),b._register(K.onPointerDown(b.viewHelper.viewDomNode,function(Ie){return b._onMouseDown(Ie)})),b}return o.prototype.onTap=function(t){if(!t.initialTarget||!this.viewHelper.linesContentDomNode.contains(t.initialTarget))return;t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.dispatchMouse({position:i.position,mouseColumn:i.position.column,startedOnLineNumbers:!1,mouseDownCount:t.tapCount,inSelectionMode:!1,altKey:!1,ctrlKey:!1,metaKey:!1,shiftKey:!1,leftButton:!1,middleButton:!1})},o.prototype.onChange=function(t){this._lastPointerType==="touch"&&this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o.prototype._onMouseDown=function(t){if(t.target&&this.viewHelper.linesContentDomNode.contains(t.target)&&this._lastPointerType==="touch")return;V.prototype._onMouseDown.call(this,t)},o}(tt),$e=function(V){bt(o,V);function o(t,i,g){var b=V.call(this,t,i,g)||this;return b._register(f.b.addTarget(b.viewHelper.linesContentDomNode)),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Tap,function(K){return b.onTap(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Change,function(K){return b.onChange(K)})),b._register(J.j(b.viewHelper.linesContentDomNode,f.a.Contextmenu,function(K){return b._onContextMenu(new L(K,b.viewHelper.viewDomNode),!1)})),b}return o.prototype.onTap=function(t){t.preventDefault(),this.viewHelper.focusTextArea();var i=this._createMouseTarget(new L(t,this.viewHelper.viewDomNode),!1);i.position&&this.viewController.moveTo(i.position)},o.prototype.onChange=function(t){this._context.viewLayout.deltaScrollNow(-t.translationX,-t.translationY)},o}(tt),ze=function(V){bt(o,V);function o(t,i,g){var b=V.call(this)||this;return window.navigator.msPointerEnabled?b.handler=b._register(new Nt(t,i,g)):_.c&>.a.pointerEvents?b.handler=b._register(new Je(t,i,g)):window.TouchEvent?b.handler=b._register(new $e(t,i,g)):window.navigator.pointerEnabled||window.PointerEvent?b.handler=b._register(new Et(t,i,g)):b.handler=b._register(new tt(t,i,g)),b}return o.prototype.getTargetAtClientPoint=function(t,i){return this.handler.getTargetAtClientPoint(t,i)},o}(z.a),Ke=e("VvMK"),fe=e("N0LK"),G=e("5TxY"),te=e("Comh"),Y=e("Krc3"),de=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ke=function(V){de(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o}(ie),lt=e("kYye"),Tt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Jt=function(V){Tt(o,V);function o(t){var i=V.call(this)||this;return i._context=t,i._readConfig(),i._lastCursorModelPosition=new oe.a(1,1),i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype._readConfig=function(){var t=this._context.configuration.options;this._lineHeight=t.get(49);var i=t.get(50);this._renderLineNumbers=i.renderType,this._renderCustomLineNumbers=i.renderFn,this._renderFinalNewline=t.get(71);var g=t.get(107);this._lineNumbersLeft=g.lineNumbersLeft,this._lineNumbersWidth=g.lineNumbersWidth},o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){return this._readConfig(),!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0].getPosition();return this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(i),this._renderLineNumbers===2||this._renderLineNumbers===3},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getLineRenderLineNumber=function(t){var i=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(t,1));if(i.column!==1)return"";var g=i.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(g);if(this._renderLineNumbers===2){var b=Math.abs(this._lastCursorModelPosition.lineNumber-g);return b===0?''+g+"":String(b)}return this._renderLineNumbers===3?this._lastCursorModelPosition.lineNumber===g||g%10===0?String(g):"":String(g)},o.prototype.prepareRender=function(t){if(this._renderLineNumbers===0){this._renderResult=null;return}for(var i=_.d?this._lineHeight%2===0?" lh-even":" lh-odd":"",g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K='
',Ie=this._context.model.getLineCount(),Le=[],qe=g;qe<=b;qe++){var ct=qe-g;if(!this._renderFinalNewline&&(qe===Ie&&this._context.model.getLineLength(qe)===0)){Le[ct]="";continue}var wt=this._getLineRenderLineNumber(qe);wt?Le[ct]=K+wt+"
":Le[ct]=""}this._renderResult=Le},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.CLASS_NAME="line-numbers",o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.k);t&&o.addRule(".monaco-editor .line-numbers { color: "+t+"; }");var i=V.getColor(lt.b);i&&o.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+i+"; }")});var eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),po=function(V){eo(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._canUseLayerHinting=!g.get(22),i._contentLeft=b.contentLeft,i._glyphMarginLeft=b.glyphMarginLeft,i._glyphMarginWidth=b.glyphMarginWidth,i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setClassName(o.OUTER_CLASS_NAME),i._domNode.setPosition("absolute"),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._glyphMarginBackgroundDomNode=Object(y.b)(document.createElement("div")),i._glyphMarginBackgroundDomNode.setClassName(o.CLASS_NAME),i._domNode.appendChild(i._glyphMarginBackgroundDomNode),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._canUseLayerHinting=!i.get(22),this._contentLeft=g.contentLeft,this._glyphMarginLeft=g.glyphMarginLeft,this._glyphMarginWidth=g.glyphMarginWidth,!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setLayerHinting(this._canUseLayerHinting),this._domNode.setContain("strict");var i=t.scrollTop-t.bigNumbersDelta;this._domNode.setTop(-i);var g=Math.min(t.scrollHeight,1e6);this._domNode.setHeight(g),this._domNode.setWidth(this._contentLeft),this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft),this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth),this._glyphMarginBackgroundDomNode.setHeight(g)},o.CLASS_NAME="glyph-margin",o.OUTER_CLASS_NAME="margin",o}(B),co=e("5v8Y"),Eo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Oo=function(){function V(o){this.type=1,this._source=o}return V.prototype.hasChanged=function(o){return this._source.hasChanged(o)},V}(),Ao=function(){function V(o){this.type=2,this.contentWidth=o.contentWidth,this.contentHeight=o.contentHeight,this.contentWidthChanged=o.contentWidthChanged,this.contentHeightChanged=o.contentHeightChanged}return V}(),Zo=function(){function V(o,t){this.type=3,this.selections=o,this.modelSelections=t}return V}(),Co=function(){function V(){this.type=4}return V}(),Wo=function(){function V(){this.type=5}return V}(),Go=function(){function V(o){this.type=6,this.isFocused=o}return V}(),Bo=function(){function V(){this.type=7}return V}(),Mo=function(){function V(){this.type=8}return V}(),Qo=function(){function V(o,t){this.type=9,this.fromLineNumber=o,this.toLineNumber=t}return V}(),fn=function(){function V(o,t){this.type=10,this.fromLineNumber=o,this.toLineNumber=t}return V}(),Vo=function(){function V(o,t){this.type=11,this.fromLineNumber=o,this.toLineNumber=t}return V}(),mn=function(){function V(o,t,i,g,b){this.type=12,this.source=o,this.range=t,this.verticalType=i,this.revealHorizontal=g,this.scrollType=b}return V}(),yn=function(){function V(o){this.type=13,this.scrollWidth=o.scrollWidth,this.scrollLeft=o.scrollLeft,this.scrollHeight=o.scrollHeight,this.scrollTop=o.scrollTop,this.scrollWidthChanged=o.scrollWidthChanged,this.scrollLeftChanged=o.scrollLeftChanged,this.scrollHeightChanged=o.scrollHeightChanged,this.scrollTopChanged=o.scrollTopChanged}return V}(),dn=function(){function V(){this.type=14}return V}(),rn=function(){function V(o){this.type=15,this.ranges=o}return V}(),pn=function(){function V(){this.type=16}return V}(),zo=function(){function V(){this.type=17}return V}(),Ho=function(V){Eo(o,V);function o(){var t=V.call(this)||this;return t._listeners=[],t._collector=null,t._collectorCnt=0,t}return o.prototype.dispose=function(){this._listeners=[],V.prototype.dispose.call(this)},o.prototype._beginEmit=function(){return this._collectorCnt++,this._collectorCnt===1&&(this._collector=new St),this._collector},o.prototype._endEmit=function(){if(this._collectorCnt--,this._collectorCnt===0){var t=this._collector.finalize();this._collector=null,t.length>0&&this._emit(t)}},o.prototype._emit=function(t){for(var i=this._listeners.slice(0),g=0,b=i.length;g0)return new te.b(kt,kt.length,kt.length,Wt,Wt)}}return te.b.EMPTY}return te.a.fromEditorSelection(wt,Le,b._selections[0],b._accessibilityPageSize,b._accessibilitySupport===0)},deduceModelPosition:function(wt,et,Wt){return b._context.model.deduceModelPositionRelativeToViewPosition(wt,et,Wt)}};return b._textAreaInput=b._register(new G.b(qe,b.textArea)),b._register(b._textAreaInput.onKeyDown(function(ct){b._viewController.emitKeyDown(ct)})),b._register(b._textAreaInput.onKeyUp(function(ct){b._viewController.emitKeyUp(ct)})),b._register(b._textAreaInput.onPaste(function(ct){var wt=!1,et=null,Wt=null;ct.metadata&&(wt=b._emptySelectionClipboard&&!!ct.metadata.isFromEmptySelection,et=typeof ct.metadata.multicursorText!="undefined"?ct.metadata.multicursorText:null,Wt=ct.metadata.mode),b._viewController.paste("keyboard",ct.text,wt,et,Wt)})),b._register(b._textAreaInput.onCut(function(){b._viewController.cut("keyboard")})),b._register(b._textAreaInput.onType(function(ct){ct.replaceCharCnt?b._viewController.replacePreviousChar("keyboard",ct.text,ct.replaceCharCnt):b._viewController.type("keyboard",ct.text)})),b._register(b._textAreaInput.onSelectionChangeRequest(function(ct){b._viewController.setSelection("keyboard",ct)})),b._register(b._textAreaInput.onCompositionStart(function(){var ct=b._selections[0].startLineNumber,wt=b._selections[0].startColumn;b._context.privateViewEventBus.emit(new mn("keyboard",new be.a(ct,wt,ct,wt),0,!0,1));var et=b._viewHelper.visibleRangeForPositionRelativeToEditor(ct,wt);et&&(b._visibleTextArea=new Dt(b._context.viewLayout.getVerticalOffsetForLineNumber(ct),et.left,_e?0:1),b._render()),b.textArea.setClassName("inputarea ime-input"),b._viewController.compositionStart("keyboard")})),b._register(b._textAreaInput.onCompositionUpdate(function(ct){v.f?b._visibleTextArea=b._visibleTextArea.setWidth(0):b._visibleTextArea=b._visibleTextArea.setWidth(P(ct.data,b._fontInfo)),b._render()})),b._register(b._textAreaInput.onCompositionEnd(function(){b._visibleTextArea=null,b._render(),b.textArea.setClassName("inputarea"),b._viewController.compositionEnd("keyboard")})),b._register(b._textAreaInput.onFocus(function(){b._context.privateViewEventBus.emit(new Go(!0))})),b._register(b._textAreaInput.onBlur(function(){b._context.privateViewEventBus.emit(new Go(!1))})),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._getWordBeforePosition=function(t){for(var i=this._context.model.getLineContent(t.lineNumber),g=Object(co.a)(this._context.configuration.options.get(96)),b=t.column,K=0;b>1;){var Ie=i.charCodeAt(b-2),Le=g.get(Ie);if(Le!==0||K>50)return i.substring(b-1,t.column-1);K++,b--}return i.substring(0,t.column-1)},o.prototype._getCharacterBeforePosition=function(t){if(t.column>1){var i=this._context.model.getLineContent(t.lineNumber),g=i.charAt(t.column-2);if(!fe.z(g.charCodeAt(0)))return g}return""},o.prototype._getAriaLabel=function(t){var i=t.get(2);return i===1?re.a("accessibilityOffAriaLabel","The editor is not accessible at this time. Press Alt+F1 for options."):t.get(4)},o.prototype._setAccessibilityOptions=function(t){this._accessibilitySupport=t.get(2);var i=t.get(3);this._accessibilitySupport===2&&i===he.e.accessibilityPageSize.defaultValue?this._accessibilityPageSize=160:this._accessibilityPageSize=i},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._setAccessibilityOptions(i),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,this._contentHeight=g.height,this._fontInfo=i.get(34),this._lineHeight=i.get(49),this._emptySelectionClipboard=i.get(25),this._copyWithSyntaxHighlighting=i.get(15),this.textArea.setAttribute("aria-label",this._getAriaLabel(i)),_.g&&t.hasChanged(68)&&(i.get(68)?this.textArea.setAttribute("readonly","true"):this.textArea.removeAttribute("readonly")),t.hasChanged(2)&&this._textAreaInput.writeScreenReaderContent("strategy changed"),!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),this._modelSelections=t.modelSelections.slice(0),this._textAreaInput.writeScreenReaderContent("selection changed"),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return this._scrollLeft=t.scrollLeft,this._scrollTop=t.scrollTop,!0},o.prototype.onZonesChanged=function(t){return!0},o.prototype.isFocused=function(){return this._textAreaInput.isFocused()},o.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()},o.prototype.getLastRenderData=function(){return this._lastRenderPosition},o.prototype.setAriaOptions=function(t){t.activeDescendant?(this.textArea.setAttribute("aria-haspopup","true"),this.textArea.setAttribute("aria-autocomplete","list"),this.textArea.setAttribute("aria-activedescendant",t.activeDescendant)):(this.textArea.setAttribute("aria-haspopup","false"),this.textArea.setAttribute("aria-autocomplete","both"),this.textArea.removeAttribute("aria-activedescendant"))},o.prototype.prepareRender=function(t){this._primaryCursorPosition=new oe.a(this._selections[0].positionLineNumber,this._selections[0].positionColumn),this._primaryCursorVisibleRange=t.visibleRangeForPosition(this._primaryCursorPosition)},o.prototype.render=function(t){this._textAreaInput.writeScreenReaderContent("render"),this._render()},o.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(null,this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var t=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(tthis._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var i=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(i<0||i>this._contentHeight){this._renderAtTopLeft();return}if(_.e){this._renderInsideEditor(this._primaryCursorPosition,i,t,_e?0:1,this._lineHeight);return}this._renderInsideEditor(this._primaryCursorPosition,i,t,_e?0:1,_e?0:1)},o.prototype._renderInsideEditor=function(t,i,g,b,K){this._lastRenderPosition=t;var Ie=this.textArea,Le=this.textAreaCover;H.a.applyFontInfo(Ie,this._fontInfo),Ie.setTop(i),Ie.setLeft(g),Ie.setWidth(b),Ie.setHeight(K),Le.setTop(0),Le.setLeft(0),Le.setWidth(0),Le.setHeight(0)},o.prototype._renderAtTopLeft=function(){this._lastRenderPosition=null;var t=this.textArea,i=this.textAreaCover;if(H.a.applyFontInfo(t,this._fontInfo),t.setTop(0),t.setLeft(0),i.setTop(0),i.setLeft(0),_e){t.setWidth(0),t.setHeight(0),i.setWidth(0),i.setHeight(0);return}t.setWidth(1),t.setHeight(1),i.setWidth(1),i.setHeight(1);var g=this._context.configuration.options;g.get(40)?i.setClassName("monaco-editor-background textAreaCover "+po.OUTER_CLASS_NAME):g.get(50).renderType!==0?i.setClassName("monaco-editor-background textAreaCover "+Jt.CLASS_NAME):i.setClassName("monaco-editor-background textAreaCover")},o}(B);function P(V,o){var t=document.createElement("canvas"),i=t.getContext("2d");i.font=Z(o);var g=i.measureText(V);return v.h?g.width+2:g.width}function Z(V){return Ae("normal",V.fontWeight,V.fontSize,V.lineHeight,V.fontFamily)}function Ae(V,o,t,i,g){return V+" normal "+o+" "+t+"px / "+i+"px "+g}var xe=e("1YUG"),Ne=function(){function V(o,t,i,g){this.configuration=o,this.viewModel=t,this.outgoingEvents=i,this.commandDelegate=g}return V.prototype._execMouseCommand=function(o,t){t.source="mouse",this.commandDelegate.executeEditorCommand(o,t)},V.prototype.paste=function(o,t,i,g,b){this.commandDelegate.paste(o,t,i,g,b)},V.prototype.type=function(o,t){this.commandDelegate.type(o,t)},V.prototype.replacePreviousChar=function(o,t,i){this.commandDelegate.replacePreviousChar(o,t,i)},V.prototype.compositionStart=function(o){this.commandDelegate.compositionStart(o)},V.prototype.compositionEnd=function(o){this.commandDelegate.compositionEnd(o)},V.prototype.cut=function(o){this.commandDelegate.cut(o)},V.prototype.setSelection=function(o,t){this.commandDelegate.executeEditorCommand(xe.CoreNavigationCommands.SetSelection,{source:o,selection:t})},V.prototype._validateViewColumn=function(o){var t=this.viewModel.getLineMinColumn(o.lineNumber);return o.column=4?this._selectAll():o.mouseDownCount===3?this._hasMulticursorModifier(o)?o.inSelectionMode?this._lastCursorLineSelectDrag(o.position):this._lastCursorLineSelect(o.position):o.inSelectionMode?this._lineSelectDrag(o.position):this._lineSelect(o.position):o.mouseDownCount===2?this._hasMulticursorModifier(o)?this._lastCursorWordSelect(o.position):o.inSelectionMode?this._wordSelectDrag(o.position):this._wordSelect(o.position):this._hasMulticursorModifier(o)?this._hasNonMulticursorModifier(o)||(o.shiftKey?this._columnSelect(o.position,o.mouseColumn,!0):o.inSelectionMode?this._lastCursorMoveToSelect(o.position):this._createCursor(o.position,!1)):o.inSelectionMode?o.altKey?this._columnSelect(o.position,o.mouseColumn,!0):this._moveToSelect(o.position):this.moveTo(o.position)},V.prototype._usualArgs=function(o){return o=this._validateViewColumn(o),{position:this._convertViewToModelPosition(o),viewPosition:o}},V.prototype.moveTo=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveTo,this._usualArgs(o))},V.prototype._moveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.MoveToSelect,this._usualArgs(o))},V.prototype._columnSelect=function(o,t,i){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.ColumnSelect,{position:this._convertViewToModelPosition(o),viewPosition:o,mouseColumn:t,doColumnSelect:i})},V.prototype._createCursor=function(o,t){o=this._validateViewColumn(o),this._execMouseCommand(xe.CoreNavigationCommands.CreateCursor,{position:this._convertViewToModelPosition(o),viewPosition:o,wholeLine:t})},V.prototype._lastCursorMoveToSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorMoveToSelect,this._usualArgs(o))},V.prototype._wordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelect,this._usualArgs(o))},V.prototype._wordSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.WordSelectDrag,this._usualArgs(o))},V.prototype._lastCursorWordSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorWordSelect,this._usualArgs(o))},V.prototype._lineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelect,this._usualArgs(o))},V.prototype._lineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LineSelectDrag,this._usualArgs(o))},V.prototype._lastCursorLineSelect=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelect,this._usualArgs(o))},V.prototype._lastCursorLineSelectDrag=function(o){this._execMouseCommand(xe.CoreNavigationCommands.LastCursorLineSelectDrag,this._usualArgs(o))},V.prototype._selectAll=function(){this._execMouseCommand(xe.CoreNavigationCommands.SelectAll,{})},V.prototype._convertViewToModelPosition=function(o){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(o)},V.prototype.emitKeyDown=function(o){this.outgoingEvents.emitKeyDown(o)},V.prototype.emitKeyUp=function(o){this.outgoingEvents.emitKeyUp(o)},V.prototype.emitContextMenu=function(o){this.outgoingEvents.emitContextMenu(o)},V.prototype.emitMouseMove=function(o){this.outgoingEvents.emitMouseMove(o)},V.prototype.emitMouseLeave=function(o){this.outgoingEvents.emitMouseLeave(o)},V.prototype.emitMouseUp=function(o){this.outgoingEvents.emitMouseUp(o)},V.prototype.emitMouseDown=function(o){this.outgoingEvents.emitMouseDown(o)},V.prototype.emitMouseDrag=function(o){this.outgoingEvents.emitMouseDrag(o)},V.prototype.emitMouseDrop=function(o){this.outgoingEvents.emitMouseDrop(o)},V.prototype.emitMouseWheel=function(o){this.outgoingEvents.emitMouseWheel(o)},V}(),dt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ht=function(V){dt(o,V);function o(t){var i=V.call(this)||this;return i.onDidContentSizeChange=null,i.onDidScroll=null,i.onDidGainFocus=null,i.onDidLoseFocus=null,i.onKeyDown=null,i.onKeyUp=null,i.onContextMenu=null,i.onMouseMove=null,i.onMouseLeave=null,i.onMouseUp=null,i.onMouseDown=null,i.onMouseDrag=null,i.onMouseDrop=null,i.onMouseWheel=null,i._viewModel=t,i}return o.prototype.emitContentSizeChange=function(t){this.onDidContentSizeChange&&this.onDidContentSizeChange(t)},o.prototype.emitScrollChanged=function(t){this.onDidScroll&&this.onDidScroll(t)},o.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)},o.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)},o.prototype.emitKeyDown=function(t){this.onKeyDown&&this.onKeyDown(t)},o.prototype.emitKeyUp=function(t){this.onKeyUp&&this.onKeyUp(t)},o.prototype.emitContextMenu=function(t){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseMove=function(t){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseLeave=function(t){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseUp=function(t){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDown=function(t){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrag=function(t){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseDrop=function(t){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(t))},o.prototype.emitMouseWheel=function(t){this.onMouseWheel&&this.onMouseWheel(t)},o.prototype._convertViewToModelMouseEvent=function(t){return t.target?{event:t.event,target:this._convertViewToModelMouseTarget(t.target)}:t},o.prototype._convertViewToModelMouseTarget=function(t){return o.convertViewToModelMouseTarget(t,this._viewModel.coordinatesConverter)},o.convertViewToModelMouseTarget=function(t,i){return new xt(t.element,t.type,t.mouseColumn,t.position?i.convertViewPositionToModelPosition(t.position):null,t.range?i.convertViewRangeToModelRange(t.range):null,t.detail)},o}(z.a),xt=function(){function V(o,t,i,g,b,K){this.element=o,this.type=t,this.mouseColumn=i,this.position=g,this.range=b,this.detail=K}return V.prototype.toString=function(){return Qe.toString(this)},V}(),Bt=e("erNZ"),Ht=function(){function V(o){this._createLine=o,this._set(1,[])}return V.prototype.flush=function(){this._set(1,[])},V.prototype._set=function(o,t){this._lines=t,this._rendLineNumberStart=o},V.prototype._get=function(){return{rendLineNumberStart:this._rendLineNumberStart,lines:this._lines}},V.prototype.getStartLineNumber=function(){return this._rendLineNumberStart},V.prototype.getEndLineNumber=function(){return this._rendLineNumberStart+this._lines.length-1},V.prototype.getCount=function(){return this._lines.length},V.prototype.getLine=function(o){var t=o-this._rendLineNumberStart;if(t<0||t>=this._lines.length)throw new Error("Illegal value for lineNumber");return this._lines[t]},V.prototype.onLinesDeleted=function(o,t){if(this.getCount()===0)return null;var i=this.getStartLineNumber(),g=this.getEndLineNumber();if(tg)return null;for(var K=0,Ie=0,Le=i;Le<=g;Le++){var qe=Le-this._rendLineNumberStart;o<=Le&&Le<=t&&(Ie===0?(K=qe,Ie=1):Ie++)}if(o=i&&K<=g&&(this._lines[K-this._rendLineNumberStart].onContentChanged(),b=!0);return b},V.prototype.onLinesInserted=function(o,t){if(this.getCount()===0)return null;var i=t-o+1,g=this.getStartLineNumber(),b=this.getEndLineNumber();if(o<=g)return this._rendLineNumberStart+=i,null;if(o>b)return null;if(i+o>b){var K=this._lines.splice(o-this._rendLineNumberStart,b-o+1);return K}for(var Ie=[],Le=0;Lei)continue;for(var Le=Math.max(t,Ie.fromLineNumber),qe=Math.min(i,Ie.toLineNumber),ct=Le;ct<=qe;ct++){var wt=ct-this._rendLineNumberStart;this._lines[wt].onTokensChanged(),g=!0}}return g},V}(),Ut=function(){function V(o){var t=this;this._host=o,this.domNode=this._createDomNode(),this._linesCollection=new Ht(function(){return t._host.createVisibleLine()})}return V.prototype._createDomNode=function(){var o=Object(y.b)(document.createElement("div"));return o.setClassName("view-layer"),o.setPosition("absolute"),o.domNode.setAttribute("role","presentation"),o.domNode.setAttribute("aria-hidden","true"),o},V.prototype.onConfigurationChanged=function(o){return!!o.hasChanged(107)},V.prototype.onFlushed=function(o){return this._linesCollection.flush(),!0},V.prototype.onLinesChanged=function(o){return this._linesCollection.onLinesChanged(o.fromLineNumber,o.toLineNumber)},V.prototype.onLinesDeleted=function(o){var t=this._linesCollection.onLinesDeleted(o.fromLineNumber,o.toLineNumber);if(t)for(var i=0,g=t.length;it){var Ie=t,Le=Math.min(i,b.rendLineNumberStart-1);Ie<=Le&&(this._insertLinesBefore(b,Ie,Le,g,t),b.linesLength+=Le-Ie+1)}else if(b.rendLineNumberStart0&&(this._removeLinesBefore(b,qe),b.linesLength-=qe)}if(b.rendLineNumberStart=t,b.rendLineNumberStart+b.linesLength-1i){var Ie=Math.max(0,i-b.rendLineNumberStart+1),Le=b.linesLength-1,qe=Le-Ie+1;qe>0&&(this._removeLinesAfter(b,qe),b.linesLength-=qe)}return this._finishRendering(b,!1,g),b},V.prototype._renderUntouchedLines=function(o,t,i,g,b){for(var K=o.rendLineNumberStart,Ie=o.lines,Le=t;Le<=i;Le++){var qe=K+Le;Ie[Le].layoutLine(qe,g[qe-b])}},V.prototype._insertLinesBefore=function(o,t,i,g,b){for(var K=[],Ie=0,Le=t;Le<=i;Le++)K[Ie++]=this.host.createVisibleLine();o.lines=K.concat(o.lines)},V.prototype._removeLinesBefore=function(o,t){for(var i=0;i=0;Ie--){var Le=o.lines[Ie];g[Ie]&&(Le.setDomNode(K),K=K.previousSibling)}},V.prototype._finishRenderingInvalidLines=function(o,t,i){var g=document.createElement("div");g.innerHTML=t;for(var b=0;b'),g.appendASCIIString(b),g.appendASCIIString(""),!0)},V.prototype.layoutLine=function(o,t){this._domNode&&(this._domNode.setTop(t),this._domNode.setHeight(this._lineHeight))},V}(),He=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentWidth=b.contentWidth,i.domNode.setHeight(0),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._contentWidth=g.contentWidth,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollWidthChanged},o.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t),this.domNode.setWidth(Math.max(t.scrollWidth,this._contentWidth))},o}(fo),Oe=function(V){Zt(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._contentLeft=b.contentLeft,i.domNode.setClassName("margin-view-overlays"),i.domNode.setWidth(1),H.a.applyFontInfo(i.domNode,g.get(34)),i}return o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;H.a.applyFontInfo(this.domNode,i.get(34));var g=i.get(107);return this._contentLeft=g.contentLeft,V.prototype.onConfigurationChanged.call(this,t)||!0},o.prototype.onScrollChanged=function(t){return V.prototype.onScrollChanged.call(this,t)||t.scrollHeightChanged},o.prototype._viewOverlaysRender=function(t){V.prototype._viewOverlaysRender.call(this,t);var i=Math.min(t.scrollHeight,1e6);this.domNode.setHeight(i),this.domNode.setWidth(this._contentLeft)},o}(fo),rt=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),It=function(){function V(o,t){this.top=o,this.left=t}return V}(),pe=function(V){rt(o,V);function o(t,i){var g=V.call(this,t)||this;return g._viewDomNode=i,g._widgets={},g.domNode=Object(y.b)(document.createElement("div")),le.write(g.domNode,1),g.domNode.setClassName("contentWidgets"),g.domNode.setPosition("absolute"),g.domNode.setTop(0),g.overflowingContentWidgetsDomNode=Object(y.b)(document.createElement("div")),le.write(g.overflowingContentWidgetsDomNode,2),g.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets"),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.onConfigurationChanged=function(t){for(var i=Object.keys(this._widgets),g=0,b=i;g=g,et=Le,Wt=qe>=g,kt=o.left,Vt=t.left;return kt+i>b.scrollLeft+b.viewportWidth&&(kt=b.scrollLeft+b.viewportWidth-i),Vt+i>b.scrollLeft+b.viewportWidth&&(Vt=b.scrollLeft+b.viewportWidth-i),ktK){var Le=Ie-(K-g);Ie-=Le,i-=Le}if(Ie=io,bo=ct+g<=wt.height-yo;return this._fixedOverflowWidgets?{fitsAbove:mo,aboveTop:Math.max(qe,io),aboveLeft:kt,fitsBelow:bo,belowTop:ct,belowLeft:$t}:{fitsAbove:mo,aboveTop:Math.max(K,io),aboveLeft:Wt,fitsBelow:bo,belowTop:Ie,belowLeft:qt}},V.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(o){return new It(o.top,o.left+this._contentLeft)},V.prototype._getTopAndBottomLeft=function(o){if(!this._viewRange)return[null,null];var t=o.linesVisibleRangesForRange(this._viewRange,!1);if(!t||t.length===0)return[null,null];for(var i=t[0],g=t[0],b=0,K=t;bg.lineNumber&&(g=Ie)}for(var Le=1073741824,qe=0,ct=i.ranges;qeo.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRenderWidget(o)},V.prototype.render=function(o){if(!this._renderData){this._isVisible&&(this.domNode.removeAttribute("monaco-visible-content-widget"),this._isVisible=!1,this.domNode.setVisibility("hidden"));return}this.allowEditorOverflow?(this.domNode.setTop(this._renderData.top),this.domNode.setLeft(this._renderData.left)):(this.domNode.setTop(this._renderData.top+o.scrollTop-o.bigNumbersDelta),this.domNode.setLeft(this._renderData.left)),this._isVisible||(this.domNode.setVisibility("inherit"),this.domNode.setAttribute("monaco-visible-content-widget","true"),this._isVisible=!0)},V}(),ye=e("kw+w"),We=e("6OMU"),Ze=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),st=!0,mt=function(V){Ze(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._lineHeight=g.get(49),i._renderLineHighlight=g.get(72),i._contentLeft=b.contentLeft,i._contentWidth=b.contentWidth,i._selectionIsEmpty=!0,i._cursorLineNumbers=[],i._selections=[],i._renderData=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype._readFromSelections=function(){var t=!1,i=st?this._selections.slice(0,1):this._selections,g=i.map(function(K){return K.positionLineNumber});g.sort(function(K,Ie){return K-Ie}),We.g(this._cursorLineNumbers,g)||(this._cursorLineNumbers=g,t=!0);var b=i.every(function(K){return K.isEmpty()});return this._selectionIsEmpty!==b&&(this._selectionIsEmpty=b,t=!0),t},o.prototype.onThemeChanged=function(t){return this._readFromSelections()},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._lineHeight=i.get(49),this._renderLineHighlight=i.get(72),this._contentLeft=g.contentLeft,this._contentWidth=g.contentWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._readFromSelections()},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollWidthChanged||t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._shouldRenderThis()){this._renderData=null;return}for(var i=this._renderOne(t),g=t.visibleRange.startLineNumber,b=t.visibleRange.endLineNumber,K=this._cursorLineNumbers.length,Ie=0,Le=[],qe=g;qe<=b;qe++){for(var ct=qe-g;Ie=this._renderData.length?"":this._renderData[g]},o}(ke),Kt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line"+(this._shouldRenderOther()?" current-line-both":"");return'
'},o.prototype._shouldRenderThis=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o.prototype._shouldRenderOther=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o}(mt),Xt=function(V){Ze(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._renderOne=function(t){var i="current-line current-line-margin"+(this._shouldRenderOther()?" current-line-margin-both":"");return'
'},o.prototype._shouldRenderThis=function(){return this._renderLineHighlight==="gutter"||this._renderLineHighlight==="all"},o.prototype._shouldRenderOther=function(){return(this._renderLineHighlight==="line"||this._renderLineHighlight==="all")&&this._selectionIsEmpty},o}(mt);Object(X.e)(function(V,o){st=!1;var t=V.getColor(lt.i);if(t&&(o.addRule(".monaco-editor .view-overlays .current-line { background-color: "+t+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+t+"; border: none; }")),!t||t.isTransparent()||V.defines(lt.j)){var i=V.getColor(lt.j);i&&(st=!0,o.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+i+"; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+i+"; }"),V.type==="hc"&&(o.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }"),o.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")))}});var no=e("Vtyv"),vo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),lo=function(V){vo(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged||t.scrollWidthChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.prepareRender=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;KVt.options.zIndex)return 1;var qt=kt.options.className,$t=Vt.options.className;return qt<$t?-1:qt>$t?1:be.a.compareRangesUsingStarts(kt.range,Vt.range)});for(var qe=t.visibleRange.startLineNumber,ct=t.visibleRange.endLineNumber,wt=[],et=qe;et<=ct;et++){var Wt=et-qe;wt[Wt]=""}this._renderWholeLineDecorations(t,g,wt),this._renderNormalDecorations(t,g,wt),this._renderResult=wt},o.prototype._renderWholeLineDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=t.visibleRange.endLineNumber,Le=0,qe=i.length;Le',et=Math.max(ct.range.startLineNumber,K),Wt=Math.min(ct.range.endLineNumber,Ie),kt=et;kt<=Wt;kt++){var Vt=kt-K;g[Vt]+=wt}}},o.prototype._renderNormalDecorations=function(t,i,g){for(var b=String(this._lineHeight),K=t.visibleRange.startLineNumber,Ie=null,Le=!1,qe=null,ct=0,wt=i.length;ct';Le[Wt]+=io}}},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke),Ro=e("GJhM"),wo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_o=function(V){wo(o,V);function o(t,i,g,b){var K=V.call(this,t)||this,Ie=K._context.configuration.options,Le=Ie.get(78),qe=Ie.get(56),ct=Ie.get(27),wt={listenOnDomNode:g.domNode,className:"editor-scrollable "+Object(X.d)(t.theme.type),useShadows:!1,lazyRender:!0,vertical:Le.vertical,horizontal:Le.horizontal,verticalHasArrows:Le.verticalHasArrows,horizontalHasArrows:Le.horizontalHasArrows,verticalScrollbarSize:Le.verticalScrollbarSize,verticalSliderSize:Le.verticalSliderSize,horizontalScrollbarSize:Le.horizontalScrollbarSize,horizontalSliderSize:Le.horizontalSliderSize,handleMouseWheel:Le.handleMouseWheel,alwaysConsumeMouseWheel:Le.alwaysConsumeMouseWheel,arrowSize:Le.arrowSize,mouseWheelScrollSensitivity:qe,fastScrollSensitivity:ct};K.scrollbar=K._register(new Ro.c(i.domNode,wt,K._context.viewLayout.getScrollable())),le.write(K.scrollbar.getDomNode(),5),K.scrollbarDomNode=Object(y.b)(K.scrollbar.getDomNode()),K.scrollbarDomNode.setPosition("absolute"),K._setLayout();var et=function(kt,Vt,qt){var $t={};if(Vt){var io=kt.scrollTop;io&&($t.scrollTop=K._context.viewLayout.getCurrentScrollTop()+io,kt.scrollTop=0)}if(qt){var yo=kt.scrollLeft;yo&&($t.scrollLeft=K._context.viewLayout.getCurrentScrollLeft()+yo,kt.scrollLeft=0)}K._context.viewLayout.setScrollPositionNow($t)};return K._register(J.j(g.domNode,"scroll",function(Wt){return et(g.domNode,!0,!0)})),K._register(J.j(i.domNode,"scroll",function(Wt){return et(i.domNode,!0,!1)})),K._register(J.j(b.domNode,"scroll",function(Wt){return et(b.domNode,!0,!1)})),K._register(J.j(K.scrollbarDomNode.domNode,"scroll",function(Wt){return et(K.scrollbarDomNode.domNode,!0,!1)})),K}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype._setLayout=function(){var t=this._context.configuration.options,i=t.get(107);this.scrollbarDomNode.setLeft(i.contentLeft);var g=t.get(54),b=g.side;b==="right"?this.scrollbarDomNode.setWidth(i.contentWidth+i.minimapWidth):this.scrollbarDomNode.setWidth(i.contentWidth),this.scrollbarDomNode.setHeight(i.height)},o.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()},o.prototype.getDomNode=function(){return this.scrollbarDomNode},o.prototype.delegateVerticalScrollbarMouseDown=function(t){this.scrollbar.delegateVerticalScrollbarMouseDown(t)},o.prototype.onConfigurationChanged=function(t){if(t.hasChanged(78)||t.hasChanged(56)||t.hasChanged(27)){var i=this._context.configuration.options,g=i.get(78),b=i.get(56),K=i.get(27),Ie={handleMouseWheel:g.handleMouseWheel,mouseWheelScrollSensitivity:b,fastScrollSensitivity:K};this.scrollbar.updateOptions(Ie)}return t.hasChanged(107)&&this._setLayout(),!0},o.prototype.onScrollChanged=function(t){return!0},o.prototype.onThemeChanged=function(t){return this.scrollbar.updateClassName("editor-scrollable "+Object(X.d)(this._context.theme.type)),!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this.scrollbar.renderNow()},o}(B),jo=e("hHjc"),Uo=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Do=function(){function V(o,t,i){this.startLineNumber=+o,this.endLineNumber=+t,this.className=String(i)}return V}(),xo=function(V){Uo(o,V);function o(){return V!==null&&V.apply(this,arguments)||this}return o.prototype._render=function(t,i,g){for(var b=[],K=t;K<=i;K++){var Ie=K-t;b[Ie]=[]}if(g.length===0)return b;g.sort(function($t,io){return $t.className===io.className?$t.startLineNumber===io.startLineNumber?$t.endLineNumber-io.endLineNumber:$t.startLineNumber-io.startLineNumber:$t.className',ct=[],wt=i;wt<=g;wt++){var et=wt-i,Wt=b[et];Wt.length===0?ct[et]="":ct[et]='
=this._renderResult.length?"":this._renderResult[g]},o}(xo),gn=e("C6rC"),En=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),on=function(V){En(o,V);function o(t){var i=V.call(this)||this;i._context=t,i._primaryLineNumber=0;var g=i._context.configuration.options,b=g.get(108),K=g.get(34);return i._lineHeight=g.get(49),i._spaceWidth=K.spaceWidth,i._enabled=g.get(70),i._activeIndentEnabled=g.get(43),i._maxIndentLeft=b.wrappingColumn===-1?-1:b.wrappingColumn*K.typicalHalfwidthCharacterWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(108),b=i.get(34);return this._lineHeight=i.get(49),this._spaceWidth=b.spaceWidth,this._enabled=i.get(70),this._activeIndentEnabled=i.get(43),this._maxIndentLeft=g.wrappingColumn===-1?-1:g.wrappingColumn*b.typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){var i=t.selections[0],g=i.isEmpty()?i.positionLineNumber:0;return this._primaryLineNumber!==g?(this._primaryLineNumber=g,!0):!1},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype.onLanguageConfigurationChanged=function(t){return!0},o.prototype.prepareRender=function(t){if(!this._enabled){this._renderResult=null;return}var i=t.visibleRange.startLineNumber,g=t.visibleRange.endLineNumber,b=this._context.model.getOptions().indentSize,K=b*this._spaceWidth,Ie=t.scrollWidth,Le=this._lineHeight,qe=this._context.model.getLinesIndentGuides(i,g),ct=0,wt=0,et=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var Wt=this._context.model.getActiveIndentGuide(this._primaryLineNumber,i,g);ct=Wt.startLineNumber,wt=Wt.endLineNumber,et=Wt.indent}for(var kt=[],Vt=i;Vt<=g;Vt++){var qt=ct<=Vt&&Vt<=wt,$t=Vt-i,io=qe[$t],yo="";if(io>=1)for(var mo=t.visibleRangeForPosition(new oe.a(Vt,1)),bo=mo?mo.left:0,go=1;go<=io;go++){var Lo=qt&&go===et?"cigra":"cigr";if(yo+='
',bo+=K,bo>Ie||this._maxIndentLeft>0&&bo>this._maxIndentLeft)break}kt[$t]=yo}this._renderResult=kt},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o}(ke);Object(X.e)(function(V,o){var t=V.getColor(lt.h);t&&o.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+t+" inset; }");var i=V.getColor(lt.a)||t;i&&o.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+i+" inset; }")});var On=e("OKK6"),Hn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Rn=function(){function V(){this._currentVisibleRange=new be.a(1,1,1,1)}return V.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange},V.prototype.setCurrentVisibleRange=function(o){this._currentVisibleRange=o},V}(),ai=function(){function V(o,t,i,g,b,K){this.lineNumber=o,this.startColumn=t,this.endColumn=i,this.startScrollTop=g,this.stopScrollTop=b,this.scrollType=K}return V}(),bi=function(V){Hn(o,V);function o(t,i){var g=V.call(this,t)||this;g._linesContent=i,g._textRangeRestingSpot=document.createElement("div"),g._visibleLines=new Ut(g),g.domNode=g._visibleLines.domNode;var b=g._context.configuration,K=g._context.configuration.options,Ie=K.get(34),Le=K.get(108);return g._lineHeight=K.get(49),g._typicalHalfwidthCharacterWidth=Ie.typicalHalfwidthCharacterWidth,g._isViewportWrapping=Le.isViewportWrapping,g._revealHorizontalRightPadding=K.get(75),g._cursorSurroundingLines=K.get(19),g._cursorSurroundingLinesStyle=K.get(20),g._canUseLayerHinting=!K.get(22),g._viewLineOptions=new we(b,g._context.theme.type),le.write(g.domNode,7),g.domNode.setClassName("view-lines"),H.a.applyFontInfo(g.domNode,Ie),g._maxLineWidth=0,g._asyncUpdateLineWidths=new p.d(function(){g._updateLineWidthsSlow()},200),g._lastRenderedData=new Rn,g._horizontalRevealRequest=null,g}return o.prototype.dispose=function(){this._asyncUpdateLineWidths.dispose(),V.prototype.dispose.call(this)},o.prototype.getDomNode=function(){return this.domNode},o.prototype.createVisibleLine=function(){return new Re(this._viewLineOptions)},o.prototype.onConfigurationChanged=function(t){this._visibleLines.onConfigurationChanged(t),t.hasChanged(108)&&(this._maxLineWidth=0);var i=this._context.configuration.options,g=i.get(34),b=i.get(108);return this._lineHeight=i.get(49),this._typicalHalfwidthCharacterWidth=g.typicalHalfwidthCharacterWidth,this._isViewportWrapping=b.isViewportWrapping,this._revealHorizontalRightPadding=i.get(75),this._cursorSurroundingLines=i.get(19),this._cursorSurroundingLinesStyle=i.get(20),this._canUseLayerHinting=!i.get(22),H.a.applyFontInfo(this.domNode,g),this._onOptionsMaybeChanged(),t.hasChanged(107)&&(this._maxLineWidth=0),!0},o.prototype._onOptionsMaybeChanged=function(){var t=this._context.configuration,i=new we(t,this._context.theme.type);if(!this._viewLineOptions.equals(i)){this._viewLineOptions=i;for(var g=this._visibleLines.getStartLineNumber(),b=this._visibleLines.getEndLineNumber(),K=g;K<=b;K++){var Ie=this._visibleLines.getVisibleLine(K);Ie.onOptionsChanged(this._viewLineOptions)}return!0}return!1},o.prototype.onCursorStateChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=!1,K=i;K<=g;K++)b=this._visibleLines.getVisibleLine(K).onSelectionChanged()||b;return b},o.prototype.onDecorationsChanged=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=i;b<=g;b++)this._visibleLines.getVisibleLine(b).onDecorationsChanged();return!0},o.prototype.onFlushed=function(t){var i=this._visibleLines.onFlushed(t);return this._maxLineWidth=0,i},o.prototype.onLinesChanged=function(t){return this._visibleLines.onLinesChanged(t)},o.prototype.onLinesDeleted=function(t){return this._visibleLines.onLinesDeleted(t)},o.prototype.onLinesInserted=function(t){return this._visibleLines.onLinesInserted(t)},o.prototype.onRevealRangeRequest=function(t){var i=this._computeScrollTopToRevealRange(this._context.viewLayout.getFutureViewport(),t.source,t.range,t.verticalType),g=this._context.viewLayout.validateScrollPosition({scrollTop:i});t.revealHorizontal?t.range.startLineNumber!==t.range.endLineNumber?g={scrollTop:g.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new ai(t.range.startLineNumber,t.range.startColumn,t.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),g.scrollTop,t.scrollType):this._horizontalRevealRequest=null;var b=Math.abs(this._context.viewLayout.getCurrentScrollTop()-g.scrollTop);return t.scrollType===0&&b>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(g):this._context.viewLayout.setScrollPositionNow(g),!0},o.prototype.onScrollChanged=function(t){if(this._horizontalRevealRequest&&t.scrollLeftChanged&&(this._horizontalRevealRequest=null),this._horizontalRevealRequest&&t.scrollTopChanged){var i=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop),g=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(t.scrollTopg)&&(this._horizontalRevealRequest=null)}return this.domNode.setWidth(t.scrollWidth),this._visibleLines.onScrollChanged(t)||!0},o.prototype.onTokensChanged=function(t){return this._visibleLines.onTokensChanged(t)},o.prototype.onZonesChanged=function(t){return this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth),this._visibleLines.onZonesChanged(t)},o.prototype.onThemeChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.getPositionFromDOMInfo=function(t,i){var g=this._getViewLineDomNode(t);if(g===null)return null;var b=this._getLineNumberFor(g);if(b===-1)return null;if(b<1||b>this._context.model.getLineCount())return null;if(this._context.model.getLineMaxColumn(b)===1)return new oe.a(b,1);var K=this._visibleLines.getStartLineNumber(),Ie=this._visibleLines.getEndLineNumber();if(bIe)return null;var Le=this._visibleLines.getVisibleLine(b).getColumnOfNodeOffset(b,t,i),qe=this._context.model.getLineMinColumn(b);return Leg?-1:this._visibleLines.getVisibleLine(t).getWidth()},o.prototype.linesVisibleRangesForRange=function(t,i){if(this.shouldRender())return null;var g=t.endLineNumber,b=be.a.intersectRanges(t,this._lastRenderedData.getCurrentVisibleRange());if(!b)return null;var K=[],Ie=0,Le=new ge(this.domNode.domNode,this._textRangeRestingSpot),qe=0;i&&(qe=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new oe.a(b.startLineNumber,1)).lineNumber);for(var ct=this._visibleLines.getStartLineNumber(),wt=this._visibleLines.getEndLineNumber(),et=b.startLineNumber;et<=b.endLineNumber;et++){if(etwt)continue;var Wt=et===b.startLineNumber?b.startColumn:1,kt=et===b.endLineNumber?b.endColumn:this._context.model.getLineMaxColumn(et),Vt=this._visibleLines.getVisibleLine(et).getVisibleRangesForRange(Wt,kt,Le);if(!Vt)continue;if(i&&etthis._visibleLines.getEndLineNumber())?null:this._visibleLines.getVisibleLine(t).getVisibleRangesForRange(i,g,new ge(this.domNode.domNode,this._textRangeRestingSpot))},o.prototype.visibleRangeForPosition=function(t){var i=this._visibleRangesForLineRange(t.lineNumber,t.column,t.column);return i?new Pe(i.outsideRenderedLine,i.ranges[0].left):null},o.prototype.updateLineWidths=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidthsFast=function(){return this._updateLineWidths(!0)},o.prototype._updateLineWidthsSlow=function(){this._updateLineWidths(!1)},o.prototype._updateLineWidths=function(t){for(var i=this._visibleLines.getStartLineNumber(),g=this._visibleLines.getEndLineNumber(),b=1,K=!0,Ie=i;Ie<=g;Ie++){var Le=this._visibleLines.getVisibleLine(Ie);if(t&&!Le.getWidthIsFast()){K=!1;continue}b=Math.max(b,Le.getWidth())}return K&&i===1&&g===this._context.model.getLineCount()&&(this._maxLineWidth=0),this._ensureMaxLineWidth(b),K},o.prototype.prepareRender=function(){throw new Error("Not supported")},o.prototype.render=function(){throw new Error("Not supported")},o.prototype.renderText=function(t){if(this._visibleLines.renderLines(t),this._lastRenderedData.setCurrentVisibleRange(t.visibleRange),this.domNode.setWidth(this._context.viewLayout.getScrollWidth()),this.domNode.setHeight(Math.min(this._context.viewLayout.getScrollHeight(),1e6)),this._horizontalRevealRequest){var i=this._horizontalRevealRequest.lineNumber,g=this._horizontalRevealRequest.startColumn,b=this._horizontalRevealRequest.endColumn,K=this._horizontalRevealRequest.scrollType;if(t.startLineNumber<=i&&i<=t.endLineNumber){this._horizontalRevealRequest=null,this.onDidRender();var Ie=this._computeScrollLeftToRevealRange(i,g,b),Le=this._isViewportWrapping;Le||this._ensureMaxLineWidth(Ie.maxHorizontalOffset),K===0?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:Ie.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:Ie.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule(),this._linesContent.setLayerHinting(this._canUseLayerHinting),this._linesContent.setContain("strict");var qe=this._context.viewLayout.getCurrentScrollTop()-t.bigNumbersDelta;this._linesContent.setTop(-qe),this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())},o.prototype._ensureMaxLineWidth=function(t){var i=Math.ceil(t);this._maxLineWidthIe)Wt=qe;else if(b===1||b===2)if(b===2&&K<=qe&&ct<=Le)Wt=K;else{var kt=(qe+ct)/2;Wt=Math.max(0,kt-Ie/2)}else Wt=this._computeMinimumScrolling(K,Le,qe,ct,b===3,b===4);return Wt},o.prototype._computeScrollLeftToRevealRange=function(t,i,g){var b=0,K=this._context.viewLayout.getCurrentViewport(),Ie=K.left,Le=Ie+K.width,qe=this._visibleRangesForLineRange(t,i,g),ct=1073741824,wt=0;if(!qe)return{scrollLeft:Ie,maxHorizontalOffset:b};for(var et=0,Wt=qe.ranges;etwt&&(wt=kt.left+kt.width)}b=wt,ct=Math.max(0,ct-o.HORIZONTAL_EXTRA_PX),wt+=this._revealHorizontalRightPadding;var Vt=this._computeMinimumScrolling(Ie,Le,ct,wt);return{scrollLeft:Vt,maxHorizontalOffset:b}},o.prototype._computeMinimumScrolling=function(t,i,g,b,K,Ie){t=t|0,i=i|0,g=g|0,b=b|0,K=!!K,Ie=!!Ie;var Le=i-t,qe=b-g;if(qei)return Math.max(0,b-Le)}else return g;return t},o.HORIZONTAL_EXTRA_PX=30,o}(B),kn=e("J+ZK"),Qn=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Yr=function(V){Qn(o,V);function o(t){var i=V.call(this)||this;i._context=t;var g=i._context.configuration.options,b=g.get(107);return i._decorationsLeft=b.decorationsLeft,i._decorationsWidth=b.decorationsWidth,i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._decorationsLeft=g.decorationsLeft,this._decorationsWidth=g.decorationsWidth,!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._getDecorations=function(t){for(var i=t.getDecorationsInViewport(),g=[],b=0,K=0,Ie=i.length;K
',qe=[],ct=i;ct<=g;ct++){for(var wt=ct-i,et=b[wt],Wt="",kt=0,Vt=et.length;kt';K[Le]=ct}this._renderResult=K},o.prototype.render=function(t,i){return this._renderResult?this._renderResult[i-t]:""},o}(xo),Zr=e("8gvo"),Gi=function(){function V(o,t,i,g){this.r=V._clamp(o),this.g=V._clamp(t),this.b=V._clamp(i),this.a=V._clamp(g)}return V._clamp=function(o){return o<0?0:o>255?255:o|0},V.Empty=new V(0,0,0,0),V}(),$o=e("twdY"),li=function(){function V(){var o=this;this._onDidChange=new U.a,this.onDidChange=this._onDidChange.event,this._updateColorMap(),$o.B.onDidChange(function(t){t.changedColorMap&&o._updateColorMap()})}return V.getInstance=function(){return this._INSTANCE||(this._INSTANCE=new V),this._INSTANCE},V.prototype._updateColorMap=function(){var o=$o.B.getColorMap();if(!o){this._colors=[Gi.Empty],this._backgroundIsLight=!0;return}this._colors=[Gi.Empty];for(var t=1;t=.5,this._onDidChange.fire(void 0)},V.prototype.getColor=function(o){return(o<1||o>=this._colors.length)&&(o=2),this._colors[o]},V.prototype.backgroundIsLight=function(){return this._backgroundIsLight},V._INSTANCE=null,V}(),Tn=e("MD5Z"),yr=function(){for(var V=[],o=32;o<=126;o++)V.push(o);return V.push(65533),V}(),Qr=function(o,t){return o-=32,o<0||o>96?t<=2?(o+96)%96:96-1:o},xn=function(){function V(o,t){this.scale=t,this.charDataNormal=V.soften(o,12/15),this.charDataLight=V.soften(o,50/60)}return V.soften=function(o,t){for(var i=new Uint8ClampedArray(o.length),g=0,b=o.length;go.width||i+ct>o.height){console.warn("bad render request outside image data");return}for(var wt=Le?this.charDataLight:this.charDataNormal,et=Qr(g,Ie),Wt=o.width*4,kt=K.r,Vt=K.g,qt=K.b,$t=b.r-kt,io=b.g-Vt,yo=b.b-qt,mo=o.data,bo=et*qe*ct,go=i*Wt+t*4,Lo=0;Loo.width||i+Le>o.height){console.warn("bad render request outside image data");return}for(var qe=o.width*4,ct=.5,wt=b.r,et=b.g,Wt=b.b,kt=g.r-wt,Vt=g.g-et,qt=g.b-Wt,$t=wt+kt*ct,io=et+Vt*ct,yo=Wt+qt*ct,mo=o.data,bo=i*qe+t*4,go=0;go>1]=Xi[o[i]]<<4|Xi[o[i+1]]&15;return t},Yi={1:Object($n.a)(function(){return br("0000511D6300CF609C709645A78432005642574171487021003C451900274D35D762755E8B629C5BA856AF57BA649530C167D1512A272A3F6038604460398526BCA2A968DB6F8957C768BE5FBE2FB467CF5D8D5B795DC7625B5DFF50DE64C466DB2FC47CD860A65E9A2EB96CB54CE06DA763AB2EA26860524D3763536601005116008177A8705E53AB738E6A982F88BAA35B5F5B626D9C636B449B737E5B7B678598869A662F6B5B8542706C704C80736A607578685B70594A49715A4522E792")}),2:Object($n.a)(function(){return br("000000000000000055394F383D2800008B8B1F210002000081B1CBCBCC820000847AAF6B9AAF2119BE08B8881AD60000A44FD07DCCF107015338130C00000000385972265F390B406E2437634B4B48031B12B8A0847000001E15B29A402F0000000000004B33460B00007A752C2A0000000000004D3900000084394B82013400ABA5CFC7AD9C0302A45A3E5A98AB000089A43382D97900008BA54AA087A70A0248A6A7AE6DBE0000BF6F94987EA40A01A06DCFA7A7A9030496C32F77891D0000A99FB1A0AFA80603B29AB9CA75930D010C0948354D3900000C0948354F37460D0028BE673D8400000000AF9D7B6E00002B007AA8933400007AA642675C2700007984CFB9C3985B768772A8A6B7B20000CAAECAAFC4B700009F94A6009F840009D09F9BA4CA9C0000CC8FC76DC87F0000C991C472A2000000A894A48CA7B501079BA2C9C69BA20000B19A5D3FA89000005CA6009DA2960901B0A7F0669FB200009D009E00B7890000DAD0F5D092820000D294D4C48BD10000B5A7A4A3B1A50402CAB6CBA6A2000000B5A7A4A3B1A8044FCDADD19D9CB00000B7778F7B8AAE0803C9AB5D3F5D3F00009EA09EA0BAB006039EA0989A8C7900009B9EF4D6B7C00000A9A7816CACA80000ABAC84705D3F000096DA635CDC8C00006F486F266F263D4784006124097B00374F6D2D6D2D6D4A3A95872322000000030000000000008D8939130000000000002E22A5C9CBC70600AB25C0B5C9B400061A2DB04CA67001082AA6BEBEBFC606002321DACBC19E03087AA08B6768380000282FBAC0B8CA7A88AD25BBA5A29900004C396C5894A6000040485A6E356E9442A32CD17EADA70000B4237923628600003E2DE9C1D7B500002F25BBA5A2990000231DB6AFB4A804023025C0B5CAB588062B2CBDBEC0C706882435A75CA20000002326BD6A82A908048B4B9A5A668000002423A09CB4BB060025259C9D8A7900001C1FCAB2C7C700002A2A9387ABA200002626A4A47D6E9D14333163A0C87500004B6F9C2D643A257049364936493647358A34438355497F1A0000A24C1D590000D38DFFBDD4CD3126")})},di=function(){function V(){}return V.create=function(o,t){if(this.lastCreated&&o===this.lastCreated.scale&&t===this.lastFontFamily)return this.lastCreated;var i;return Yi[o]?i=new xn(Yi[o](),o):i=V.createFromSampleData(V.createSampleData(t).data,o),this.lastFontFamily=t,this.lastCreated=i,i},V.createSampleData=function(o){var t=document.createElement("canvas"),i=t.getContext("2d");t.style.height=16+"px",t.height=16,t.width=96*10,t.style.width=96*10+"px",i.fillStyle="#ffffff",i.font="bold "+16+"px "+o,i.textBaseline="middle";for(var g=0,b=0,K=yr;b0)for(var ct=255/Le,wt=0;wt=K+mo){var bo=1,go=K;return new V(Ie,Le,io,yo,kt,bo,go)}else{var bo=Math.max(1,Math.floor(t-yo*ct/wt));qe&&qe.scrollHeight===Le&&(qe.scrollTop>Ie&&(bo=Math.min(bo,qe.startLineNumber)),qe.scrollTopJr){i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.scrollTop});return}var ct=Le.posy-b;i._context.viewLayout.setScrollPositionNow({scrollTop:Ie.getDesiredScrollTopFromDelta(ct)})},function(){i._slider.toggleClassName("active",!1)})}}),i._gestureDisposable=f.b.addTarget(i._domNode.domNode),i._sliderTouchStartListener=J.j(i._domNode.domNode,f.a.Start,function(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&(i._slider.toggleClassName("active",!0),i._gestureInProgress=!0,i.scrollDueToTouchEvent(g))}),i._sliderTouchMoveListener=J.o(i._domNode.domNode,f.a.Change,function(g){g.preventDefault(),g.stopPropagation(),i._lastRenderData&&i._gestureInProgress&&i.scrollDueToTouchEvent(g)}),i._sliderTouchEndListener=J.o(i._domNode.domNode,f.a.End,function(g){g.preventDefault(),g.stopPropagation(),i._gestureInProgress=!1,i._slider.toggleClassName("active",!1)}),i}return o.prototype.scrollDueToTouchEvent=function(t){var i=this._domNode.domNode.getBoundingClientRect().top,g=this._lastRenderData.renderedLayout.getDesiredScrollTopFromTouchLocation(t.pageY-i);this._context.viewLayout.setScrollPositionNow({scrollTop:g})},o.prototype.dispose=function(){this._mouseDownListener.dispose(),this._sliderMouseMoveMonitor.dispose(),this._sliderMouseDownListener.dispose(),this._gestureDisposable.dispose(),this._sliderTouchStartListener.dispose(),this._sliderTouchMoveListener.dispose(),this._sliderTouchEndListener.dispose(),V.prototype.dispose.call(this)},o.prototype._getMinimapDomNodeClassName=function(){return this._options.showSlider==="always"?"minimap slider-always":"minimap slider-mouseover"},o.prototype.getDomNode=function(){return this._domNode},o.prototype._applyLayout=function(){this._domNode.setLeft(this._options.minimapLeft),this._domNode.setWidth(this._options.minimapWidth),this._domNode.setHeight(this._options.minimapHeight),this._shadow.setHeight(this._options.minimapHeight),this._canvas.setWidth(this._options.canvasOuterWidth),this._canvas.setHeight(this._options.canvasOuterHeight),this._canvas.domNode.width=this._options.canvasInnerWidth,this._canvas.domNode.height=this._options.canvasInnerHeight,this._decorationsCanvas.setWidth(this._options.canvasOuterWidth),this._decorationsCanvas.setHeight(this._options.canvasOuterHeight),this._decorationsCanvas.domNode.width=this._options.canvasInnerWidth,this._decorationsCanvas.domNode.height=this._options.canvasInnerHeight,this._slider.setWidth(this._options.minimapWidth)},o.prototype._getBuffer=function(){return this._buffers||this._options.canvasInnerWidth>0&&this._options.canvasInnerHeight>0&&(this._buffers=new wr(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2))),this._buffers?this._buffers.getBuffer():null},o.prototype._onOptionsMaybeChanged=function(){var t=new Qi(this._context.configuration);return this._options.equals(t)?!1:(this._options=t,this._lastRenderData=null,this._buffers=null,this._applyLayout(),this._domNode.setClassName(this._getMinimapDomNodeClassName()),!0)},o.prototype.onConfigurationChanged=function(t){return this._onOptionsMaybeChanged()},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections,this._renderDecorations=!0,!0},o.prototype.onFlushed=function(t){return this._lastRenderData=null,!0},o.prototype.onLinesChanged=function(t){return this._lastRenderData?this._lastRenderData.onLinesChanged(t):!1},o.prototype.onLinesDeleted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesDeleted(t),!0},o.prototype.onLinesInserted=function(t){return this._lastRenderData&&this._lastRenderData.onLinesInserted(t),!0},o.prototype.onScrollChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onTokensChanged=function(t){return this._lastRenderData?this._lastRenderData.onTokensChanged(t):!1},o.prototype.onTokensColorsChanged=function(t){return this._lastRenderData=null,this._buffers=null,!0},o.prototype.onZonesChanged=function(t){return this._lastRenderData=null,!0},o.prototype.onDecorationsChanged=function(t){return this._renderDecorations=!0,!0},o.prototype.onThemeChanged=function(t){return this._context.model.invalidateMinimapColorCache(),this._selectionColor=this._context.theme.getColor(Tn.Ib),this._renderDecorations=!0,!0},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){var i=this._options.renderMinimap;if(i===0){this._shadow.setClassName("minimap-shadow-hidden"),this._sliderHorizontal.setWidth(0),this._sliderHorizontal.setHeight(0);return}t.scrollLeft+t.viewportWidth>=t.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var g=qr.create(this._options,t.visibleRange.startLineNumber,t.visibleRange.endLineNumber,t.viewportHeight,t.viewportData.whitespaceViewportData.length>0,this._context.model.getLineCount(),t.scrollTop,t.scrollHeight,this._lastRenderData?this._lastRenderData.renderedLayout:null);this._slider.setTop(g.sliderTop),this._slider.setHeight(g.sliderHeight);var b=t.scrollLeft/this._options.typicalHalfwidthCharacterWidth,K=Math.min(this._options.minimapWidth,Math.round(b*Zi(this._options.renderMinimap,this._options.fontScale)/this._options.pixelRatio));this._sliderHorizontal.setLeft(K),this._sliderHorizontal.setWidth(this._options.minimapWidth-K),this._sliderHorizontal.setTop(0),this._sliderHorizontal.setHeight(g.sliderHeight),this.renderDecorations(g),this._lastRenderData=this.renderLines(g)},o.prototype.renderDecorations=function(t){if(this._renderDecorations){this._renderDecorations=!1;var i=this._context.model.getDecorationsInViewport(new be.a(t.startLineNumber,1,t.endLineNumber,this._context.model.getLineMaxColumn(t.endLineNumber))),g=this._options,b=g.renderMinimap,K=g.canvasInnerWidth,Ie=g.canvasInnerHeight,Le=_n(b,this._options.fontScale),qe=Zi(b,this._options.fontScale),ct=this._context.model.getOptions().tabSize,wt=this._decorationsCanvas.domNode.getContext("2d");wt.clearRect(0,0,K,Ie);for(var et=new Map,Wt=0;Wtthis._options.canvasInnerHeight)return;var Wt=i.get(Ie),kt=!Wt;if(!Wt){var Vt=this._context.model.getLineContent(Ie);Wt=[he.f];for(var qt=1;qtIe?Wt.length-1:mo-1;if(No>0){var Fo=Wt[No]-Lo||2;this.renderDecoration(t,b,Lo,et,Fo,Le)}kt&&this.renderLineHighlight(t,b,et,Le)},o.prototype.renderLineHighlight=function(t,i,g,b){t.fillStyle=i&&i.transparent(.5).toString()||"",t.fillRect(he.f,g,t.canvas.width,b)},o.prototype.renderDecoration=function(t,i,g,b,K,Ie){t.fillStyle=i&&i.toString()||"",t.fillRect(g,b,K,Ie)},o.prototype.renderLines=function(t){var i=this._options.renderMinimap,g=this._options.charRenderer(),b=t.startLineNumber,K=t.endLineNumber,Ie=_n(i,this._options.fontScale);if(this._lastRenderData&&this._lastRenderData.linesEquals(t)){var Le=this._lastRenderData._get();return new Er(t,Le.imageData,Le.lines)}var qe=this._getBuffer();if(!qe)return null;for(var ct=o._renderUntouchedLines(qe,b,K,Ie,this._lastRenderData),wt=ct[0],et=ct[1],Wt=ct[2],kt=this._context.model.getMinimapLinesRenderingData(b,K,Wt),Vt=kt.tabSize,qt=this._tokensColorTracker.getColor(2),$t=this._tokensColorTracker.backgroundIsLight(),io=0,yo=[],mo=0,bo=K-b+1;mo=0&&PoVt)return;var No=et.charCodeAt($t);if(No===9){var Fo=qe-($t+io)%qe;io+=Fo-1,qt+=Fo*kt}else if(No===32)qt+=kt;else for(var Xo=fe.y(No)?2:1,Po=0;PoVt)return}},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Xb);if(t){var i=t.transparent(.5);o.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+i+"; }")}var g=V.getColor(Tn.Yb);if(g){var b=g.transparent(.5);o.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+b+"; }")}var K=V.getColor(Tn.Wb);if(K){var Ie=K.transparent(.5);o.addRule(".monaco-editor .minimap-slider.active, .monaco-editor .minimap-slider.active .minimap-slider-horizontal { background: "+Ie+"; }")}var Le=V.getColor(Tn.Vb);Le&&o.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+Le+" -6px 0 6px -6px inset; }")});var na=e("cl4r"),ts=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),_r=function(V){ts(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options,b=g.get(107);return i._widgets={},i._verticalScrollbarWidth=b.verticalScrollbarWidth,i._minimapWidth=b.minimapWidth,i._horizontalScrollbarHeight=b.horizontalScrollbarHeight,i._editorHeight=b.height,i._editorWidth=b.width,i._domNode=Object(y.b)(document.createElement("div")),le.write(i._domNode,4),i._domNode.setClassName("overlayWidgets"),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._widgets={}},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(107);return this._verticalScrollbarWidth=g.verticalScrollbarWidth,this._minimapWidth=g.minimapWidth,this._horizontalScrollbarHeight=g.horizontalScrollbarHeight,this._editorHeight=g.height,this._editorWidth=g.width,!0},o.prototype.addWidget=function(t){var i=Object(y.b)(t.getDomNode());this._widgets[t.getId()]={widget:t,preference:null,domNode:i},i.setPosition("absolute"),i.setAttribute("widgetId",t.getId()),this._domNode.appendChild(i),this.setShouldRender()},o.prototype.setWidgetPosition=function(t,i){var g=this._widgets[t.getId()];return g.preference===i?!1:(g.preference=i,this.setShouldRender(),!0)},o.prototype.removeWidget=function(t){var i=t.getId();if(this._widgets.hasOwnProperty(i)){var g=this._widgets[i],b=g.domNode.domNode;delete this._widgets[i],b.parentNode.removeChild(b),this.setShouldRender()}},o.prototype._renderWidget=function(t){var i=t.domNode;if(t.preference===null){i.unsetTop();return}if(t.preference===0)i.setTop(0),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth);else if(t.preference===1){var g=i.domNode.clientHeight;i.setTop(this._editorHeight-g-2*this._horizontalScrollbarHeight),i.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else t.preference===2&&(i.setTop(0),i.domNode.style.right="50%")},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._editorWidth);for(var i=Object.keys(this._widgets),g=0,b=i.length;g=3){var b=Math.floor(g/3),K=Math.floor(g/3),Ie=g-b-K,Le=o,qe=Le+b,ct=Le+b+Ie;return[[0,Le,qe,Le,ct,Le,qe,Le],[0,b,Ie,b+Ie,K,b+Ie+K,Ie+K,b+Ie+K]]}else if(i===2){var b=Math.floor(g/2),K=g-b,Le=o,ct=Le+b;return[[0,Le,Le,Le,ct,Le,Le,Le],[0,b,b,b,K,b+K,b+K,b+K]]}else{var wt=o,et=g;return[[0,wt,wt,wt,wt,wt,wt,wt],[0,et,et,et,et,et,et,et]]}},V.prototype.equals=function(o){return this.lineHeight===o.lineHeight&&this.pixelRatio===o.pixelRatio&&this.overviewRulerLanes===o.overviewRulerLanes&&this.renderBorder===o.renderBorder&&this.borderColor===o.borderColor&&this.hideCursor===o.hideCursor&&this.cursorColor===o.cursorColor&&this.themeType===o.themeType&&this.backgroundColor===o.backgroundColor&&this.top===o.top&&this.right===o.right&&this.domWidth===o.domWidth&&this.domHeight===o.domHeight&&this.canvasWidth===o.canvasWidth&&this.canvasHeight===o.canvasHeight},V}(),os=function(V){Sr(o,V);function o(t){var i=V.call(this,t)||this;return i._domNode=Object(y.b)(document.createElement("canvas")),i._domNode.setClassName("decorationsOverviewRuler"),i._domNode.setPosition("absolute"),i._domNode.setLayerHinting(!0),i._domNode.setContain("strict"),i._domNode.setAttribute("aria-hidden","true"),i._updateSettings(!1),i._tokensColorTrackerListener=$o.B.onDidChange(function(g){g.changedColorMap&&i._updateSettings(!0)}),i._cursorPositions=[],i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._tokensColorTrackerListener.dispose()},o.prototype._updateSettings=function(t){var i=new Oi(this._context.configuration,this._context.theme);return this._settings&&this._settings.equals(i)?!1:(this._settings=i,this._domNode.setTop(this._settings.top),this._domNode.setRight(this._settings.right),this._domNode.setWidth(this._settings.domWidth),this._domNode.setHeight(this._settings.domHeight),this._domNode.domNode.width=this._settings.canvasWidth,this._domNode.domNode.height=this._settings.canvasHeight,t&&this._render(),!0)},o.prototype.onConfigurationChanged=function(t){return this._updateSettings(!1)},o.prototype.onCursorStateChanged=function(t){this._cursorPositions=[];for(var i=0,g=t.selections.length;ii&&(cn=i-ct),Po=cn-ct,nn=cn+ct}Po>bo+1||No!==yo?(go!==0&&wt.fillRect(et[yo],mo,Wt[yo],bo-mo),yo=No,mo=Po,bo=nn):nn>bo&&(bo=nn)}wt.fillRect(et[yo],mo,Wt[yo],bo-mo)}if(!this._settings.hideCursor&&this._settings.cursorColor){var Nn=2*this._settings.pixelRatio|0,hn=Nn/2|0,Wn=this._settings.x[7],Fn=this._settings.w[7];wt.fillStyle=this._settings.cursorColor;for(var mo=-100,bo=-100,go=0,Lo=this._cursorPositions.length;goi&&(cn=i-hn);var Po=cn-hn,nn=Po+Nn;Po>bo+1?(go!==0&&wt.fillRect(Wn,mo,Fn,bo-mo),mo=Po,bo=nn):nn>bo&&(bo=nn)}wt.fillRect(Wn,mo,Fn,bo-mo)}this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0&&(wt.beginPath(),wt.lineWidth=1,wt.strokeStyle=this._settings.borderColor,wt.moveTo(0,0),wt.lineTo(0,i),wt.stroke(),wt.moveTo(0,0),wt.lineTo(t,0),wt.stroke())},o}(B),ns=e("MvK1"),is=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),rs=function(V){is(o,V);function o(t,i){var g=V.call(this)||this;g._context=t;var b=g._context.configuration.options;return g._domNode=Object(y.b)(document.createElement("canvas")),g._domNode.setClassName(i),g._domNode.setPosition("absolute"),g._domNode.setLayerHinting(!0),g._domNode.setContain("strict"),g._zoneManager=new ns.b(function(K){return g._context.viewLayout.getVerticalOffsetForLineNumber(K)}),g._zoneManager.setDOMWidth(0),g._zoneManager.setDOMHeight(0),g._zoneManager.setOuterHeight(g._context.viewLayout.getScrollHeight()),g._zoneManager.setLineHeight(b.get(49)),g._zoneManager.setPixelRatio(b.get(105)),g._context.addEventHandler(g),g}return o.prototype.dispose=function(){this._context.removeEventHandler(this),V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return t.hasChanged(49)&&(this._zoneManager.setLineHeight(i.get(49)),this._render()),t.hasChanged(105)&&(this._zoneManager.setPixelRatio(i.get(105)),this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render()),!0},o.prototype.onFlushed=function(t){return this._render(),!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged&&(this._zoneManager.setOuterHeight(t.scrollHeight),this._render()),!0},o.prototype.onZonesChanged=function(t){return this._render(),!0},o.prototype.getDomNode=function(){return this._domNode.domNode},o.prototype.setLayout=function(t){this._domNode.setTop(t.top),this._domNode.setRight(t.right);var i=!1;i=this._zoneManager.setDOMWidth(t.width)||i,i=this._zoneManager.setDOMHeight(t.height)||i,i&&(this._domNode.setWidth(this._zoneManager.getDOMWidth()),this._domNode.setHeight(this._zoneManager.getDOMHeight()),this._domNode.domNode.width=this._zoneManager.getCanvasWidth(),this._domNode.domNode.height=this._zoneManager.getCanvasHeight(),this._render())},o.prototype.setZones=function(t){this._zoneManager.setZones(t),this._render()},o.prototype._render=function(){if(this._zoneManager.getOuterHeight()===0)return!1;var t=this._zoneManager.getCanvasWidth(),i=this._zoneManager.getCanvasHeight(),g=this._zoneManager.resolveColorZones(),b=this._zoneManager.getId2Color(),K=this._domNode.domNode.getContext("2d");return K.clearRect(0,0,t,i),g.length>0&&this._renderOneLane(K,g,b,t),!0},o.prototype._renderOneLane=function(t,i,g,b){for(var K=0,Ie=0,Le=0,qe=0,ct=i;qe=Wt?Le=Math.max(Le,kt):(t.fillRect(0,Ie,b,Le-Ie),Ie=Wt,Le=kt)}t.fillRect(0,Ie,b,Le-Ie)},o}(ie),ia=e("7zd4"),ss=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),as=function(V){ss(o,V);function o(t){var i=V.call(this,t)||this;i.domNode=Object(y.b)(document.createElement("div")),i.domNode.setAttribute("role","presentation"),i.domNode.setAttribute("aria-hidden","true"),i.domNode.setClassName("view-rulers"),i._renderedRulers=[];var g=i._context.configuration.options;return i._rulers=g.get(77),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._rulers=i.get(77),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onScrollChanged=function(t){return t.scrollHeightChanged},o.prototype.prepareRender=function(t){},o.prototype._ensureRulersCount=function(){var t=this._renderedRulers.length,i=this._rulers.length;if(t===i)return;if(t0;){var Ie=Object(y.b)(document.createElement("div"));Ie.setClassName("view-ruler"),Ie.setWidth(b),this.domNode.appendChild(Ie),this._renderedRulers.push(Ie),K--}return}for(var Le=t-i;Le>0;){var Ie=this._renderedRulers.pop();this.domNode.removeChild(Ie),Le--}},o.prototype.render=function(t){this._ensureRulersCount();for(var i=0,g=this._rulers.length;i0;return this._shouldShow!==t?(this._shouldShow=t,!0):!1},o.prototype.getDomNode=function(){return this._domNode},o.prototype._updateWidth=function(){var t=this._context.configuration.options,i=t.get(107);i.renderMinimap===0||i.minimapWidth>0&&i.minimapLeft===0?this._width=i.width:this._width=i.width-i.minimapWidth-i.verticalScrollbarWidth},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options,g=i.get(78);return this._useShadows=g.useShadows,this._updateWidth(),this._updateShouldShow(),!0},o.prototype.onScrollChanged=function(t){return this._scrollTop=t.scrollTop,this._updateShouldShow()},o.prototype.prepareRender=function(t){},o.prototype.render=function(t){this._domNode.setWidth(this._width),this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")},o}(B);Object(X.e)(function(V,o){var t=V.getColor(Tn.Vb);t&&o.addRule(".monaco-editor .scroll-decoration { box-shadow: "+t+" 0 6px 6px -6px inset; }")});var cs=e("eC1c"),Lr=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Mr=function(){function V(o){this.left=o.left,this.width=o.width,this.startStyle=null,this.endStyle=null}return V}(),Dr=function(){function V(o,t){this.lineNumber=o,this.ranges=t}return V}();function us(V){return new Mr(V)}function hs(V){return new Dr(V.lineNumber,V.ranges.map(us))}var fs=v.f,ms=function(V){Lr(o,V);function o(t){var i=V.call(this)||this;i._previousFrameVisibleRangesWithStyle=[],i._context=t;var g=i._context.configuration.options;return i._lineHeight=g.get(49),i._roundedSelection=g.get(76),i._typicalHalfwidthCharacterWidth=g.get(34).typicalHalfwidthCharacterWidth,i._selections=[],i._renderResult=null,i._context.addEventHandler(i),i}return o.prototype.dispose=function(){this._context.removeEventHandler(this),this._renderResult=null,V.prototype.dispose.call(this)},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;return this._lineHeight=i.get(49),this._roundedSelection=i.get(76),this._typicalHalfwidthCharacterWidth=i.get(34).typicalHalfwidthCharacterWidth,!0},o.prototype.onCursorStateChanged=function(t){return this._selections=t.selections.slice(0),!0},o.prototype.onDecorationsChanged=function(t){return!0},o.prototype.onFlushed=function(t){return!0},o.prototype.onLinesChanged=function(t){return!0},o.prototype.onLinesDeleted=function(t){return!0},o.prototype.onLinesInserted=function(t){return!0},o.prototype.onScrollChanged=function(t){return t.scrollTopChanged},o.prototype.onZonesChanged=function(t){return!0},o.prototype._visibleRangesHaveGaps=function(t){for(var i=0,g=t.length;i1)return!0}return!1},o.prototype._enrichVisibleRangesWithStyle=function(t,i,g){var b=this._typicalHalfwidthCharacterWidth/4,K=null,Ie=null;if(g&&g.length>0&&i.length>0){var Le=i[0].lineNumber;if(Le===t.startLineNumber)for(var qe=0;!K&&qe=0;qe--)g[qe].lineNumber===ct&&(Ie=g[qe].ranges[0]);K&&!K.startStyle&&(K=null),Ie&&!Ie.startStyle&&(Ie=null)}for(var qe=0,wt=i.length;qe0){var $t=i[qe-1].ranges[0].left,io=i[qe-1].ranges[0].left+i[qe-1].ranges[0].width;oi(Wt-$t)$t&&(Vt.top=1),oi(kt-io)'},o.prototype._actualRenderOneSelection=function(t,i,g,b){if(b.length===0)return;for(var K=!!b[0].ranges[0].startStyle,Ie=this._lineHeight.toString(),Le=(this._lineHeight-1).toString(),qe=b[0].lineNumber,ct=b[b.length-1].lineNumber,wt=0,et=b.length;wt1,et)}this._previousFrameVisibleRangesWithStyle=Le,this._renderResult=i.map(function(Wt){var kt=Wt[0],Vt=Wt[1];return kt+Vt})},o.prototype.render=function(t,i){if(!this._renderResult)return"";var g=i-t;return g<0||g>=this._renderResult.length?"":this._renderResult[g]},o.SELECTION_CLASS_NAME="selected-text",o.SELECTION_TOP_LEFT="top-left-radius",o.SELECTION_BOTTOM_LEFT="bottom-left-radius",o.SELECTION_TOP_RIGHT="top-right-radius",o.SELECTION_BOTTOM_RIGHT="bottom-right-radius",o.EDITOR_BACKGROUND_CLASS_NAME="monaco-editor-background",o.ROUNDED_PIECE_WIDTH=10,o}(ke);Object(X.e)(function(V,o){var t=V.getColor(Tn.K);t&&o.addRule(".monaco-editor .focused .selected-text { background-color: "+t+"; }");var i=V.getColor(Tn.F);i&&o.addRule(".monaco-editor .selected-text { background-color: "+i+"; }");var g=V.getColor(Tn.L);g&&o.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+g+"; }")});function oi(V){return V<0?-V:V}var sa=e("2Tsy"),Or=function(){function V(o,t,i,g,b,K){this.top=o,this.left=t,this.width=i,this.height=g,this.textContent=b,this.textContentClassName=K}return V}(),Tr=function(){function V(o){this._context=o;var t=this._context.configuration.options,i=t.get(34);this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),this._isVisible=!0,this._domNode=Object(y.b)(document.createElement("div")),this._domNode.setClassName("cursor"),this._domNode.setHeight(this._lineHeight),this._domNode.setTop(0),this._domNode.setLeft(0),H.a.applyFontInfo(this._domNode,i),this._domNode.setDisplay("none"),this._position=new oe.a(1,1),this._lastRenderedContent="",this._renderData=null}return V.prototype.getDomNode=function(){return this._domNode},V.prototype.getPosition=function(){return this._position},V.prototype.show=function(){this._isVisible||(this._domNode.setVisibility("inherit"),this._isVisible=!0)},V.prototype.hide=function(){this._isVisible&&(this._domNode.setVisibility("hidden"),this._isVisible=!1)},V.prototype.onConfigurationChanged=function(o){var t=this._context.configuration.options,i=t.get(34);return this._cursorStyle=t.get(18),this._lineHeight=t.get(49),this._typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth,this._lineCursorWidth=Math.min(t.get(21),this._typicalHalfwidthCharacterWidth),H.a.applyFontInfo(this._domNode,i),!0},V.prototype.onCursorPositionChanged=function(o){return this._position=o,!0},V.prototype._prepareRender=function(o){var t="";if(this._cursorStyle===he.g.Line||this._cursorStyle===he.g.LineThin){var i=o.visibleRangeForPosition(this._position);if(!i||i.outsideRenderedLine)return null;var g;if(this._cursorStyle===he.g.Line){if(g=J.u(this._lineCursorWidth>0?this._lineCursorWidth:2),g>2){var b=this._context.model.getLineContent(this._position.lineNumber),K=fe.E(b,this._position.column-1);t=b.substr(this._position.column-1,K)}}else g=J.u(1);var Ie=i.left;g>=2&&Ie>=1&&(Ie-=1);var Le=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta;return new Or(Le,Ie,g,this._lineHeight,t,"")}var qe=this._context.model.getLineContent(this._position.lineNumber),ct=fe.E(qe,this._position.column-1),wt=o.linesVisibleRangesForRange(new be.a(this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+ct),!1);if(!wt||wt.length===0)return null;var et=wt[0];if(et.outsideRenderedLine||et.ranges.length===0)return null;var Wt=et.ranges[0],kt=Wt.width<1?this._typicalHalfwidthCharacterWidth:Wt.width,Vt="";if(this._cursorStyle===he.g.Block){var qt=this._context.model.getViewLineData(this._position.lineNumber);t=qe.substr(this._position.column-1,ct);var $t=qt.tokens.findTokenIndexAtOffset(this._position.column-1);Vt=qt.tokens.getClassName($t)}var io=o.getVerticalOffsetForLineNumber(this._position.lineNumber)-o.bigNumbersDelta,yo=this._lineHeight;return(this._cursorStyle===he.g.Underline||this._cursorStyle===he.g.UnderlineThin)&&(io+=this._lineHeight-2,yo=2),new Or(io,Wt.left,kt,yo,t,Vt)},V.prototype.prepareRender=function(o){this._renderData=this._prepareRender(o)},V.prototype.render=function(o){return this._renderData?(this._lastRenderedContent!==this._renderData.textContent&&(this._lastRenderedContent=this._renderData.textContent,this._domNode.domNode.textContent=this._lastRenderedContent),this._domNode.setClassName("cursor "+this._renderData.textContentClassName),this._domNode.setDisplay("block"),this._domNode.setTop(this._renderData.top),this._domNode.setLeft(this._renderData.left),this._domNode.setWidth(this._renderData.width),this._domNode.setLineHeight(this._renderData.height),this._domNode.setHeight(this._renderData.height),{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}):(this._domNode.setDisplay("none"),null)},V}(),ps=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),gs=function(V){ps(o,V);function o(t){var i=V.call(this,t)||this,g=i._context.configuration.options;return i._readOnly=g.get(68),i._cursorBlinking=g.get(16),i._cursorStyle=g.get(18),i._cursorSmoothCaretAnimation=g.get(17),i._selectionIsEmpty=!0,i._isVisible=!1,i._primaryCursor=new Tr(i._context),i._secondaryCursors=[],i._renderData=[],i._domNode=Object(y.b)(document.createElement("div")),i._domNode.setAttribute("role","presentation"),i._domNode.setAttribute("aria-hidden","true"),i._updateDomClassName(),i._domNode.appendChild(i._primaryCursor.getDomNode()),i._startCursorBlinkAnimation=new p.e,i._cursorFlatBlinkInterval=new p.c,i._blinkingEnabled=!1,i._editorHasFocus=!1,i._updateBlinking(),i}return o.prototype.dispose=function(){V.prototype.dispose.call(this),this._startCursorBlinkAnimation.dispose(),this._cursorFlatBlinkInterval.dispose()},o.prototype.getDomNode=function(){return this._domNode},o.prototype.onConfigurationChanged=function(t){var i=this._context.configuration.options;this._readOnly=i.get(68),this._cursorBlinking=i.get(16),this._cursorStyle=i.get(18),this._cursorSmoothCaretAnimation=i.get(17),this._updateBlinking(),this._updateDomClassName(),this._primaryCursor.onConfigurationChanged(t);for(var g=0,b=this._secondaryCursors.length;gi.length)for(var Ie=this._secondaryCursors.length-i.length,b=0;bi)for(var K=t-i,b=0;b=o+1&&this.lastAddedCursorIndex--,this.secondaryCursors[o].dispose(this.context),this.secondaryCursors.splice(o,1)},V.prototype._getAll=function(){var o=[];o[0]=this.primaryCursor;for(var t=0,i=this.secondaryCursors.length;tWt&&Fo.index--}o.splice(Wt,1),t.splice(et,1),this._removeSecondaryCursor(Wt-1),b--}}},V}(),bn=e("snIX"),Mn=e("GR/f"),Ln=e("iuje"),xi=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}();function Ei(V){for(var o=0,t=V.length;o=t.length)return!1;if(!t[i].strictContainsRange(o[i]))return!1}return!0},V}(),Rr=function(V){xi(o,V);function o(t,i,g){var b=V.call(this)||this;b._onDidReachMaxCursorCount=b._register(new U.a),b.onDidReachMaxCursorCount=b._onDidReachMaxCursorCount.event,b._onDidAttemptReadOnlyEdit=b._register(new U.a),b.onDidAttemptReadOnlyEdit=b._onDidAttemptReadOnlyEdit.event,b._onDidChange=b._register(new U.a),b.onDidChange=b._onDidChange.event,b._configuration=t,b._model=i,b._knownModelVersionId=b._model.getVersionId(),b._viewModel=g,b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors=new Vn(b.context),b._isHandling=!1,b._isDoingComposition=!1,b._selectionsWhenCompositionStarted=null,b._columnSelectData=null,b._autoClosedActions=[],b._prevEditOperationType=0,b._register(b._model.onDidChangeRawContent(function(Ie){if(b._knownModelVersionId=Ie.versionId,b._isHandling)return;var Le=Ie.containsEvent(1);b._onModelContentChanged(Le)})),b._register(g.addEventListener(function(Ie){if(!Ei(Ie))return;if(b._knownModelVersionId!==b._model.getVersionId())return;b.setStates("viewModel",0,b.getAll())}));var K=function(){b.context=new De.c(b._configuration,b._model,b._viewModel),b._cursors.updateContext(b.context)};return b._register(b._model.onDidChangeLanguage(function(Ie){K()})),b._register(b._model.onDidChangeLanguageConfiguration(function(){K()})),b._register(b._model.onDidChangeOptions(function(){K()})),b._register(b._configuration.onDidChange(function(Ie){De.b.shouldRecreate(Ie)&&K()})),b}return o.prototype.dispose=function(){this._cursors.dispose(),this._autoClosedActions=Object(z.f)(this._autoClosedActions),V.prototype.dispose.call(this)},o.prototype._validateAutoClosedActions=function(){if(this._autoClosedActions.length>0)for(var t=this._cursors.getSelections(),i=0;io.MAX_CURSOR_COUNT&&(g=g.slice(0,o.MAX_CURSOR_COUNT),this._onDidReachMaxCursorCount.fire(void 0));var b=new qi(this._model,this);this._cursors.setStates(g),this._cursors.normalize(),this._columnSelectData=null,this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,i,b)},o.prototype.setColumnSelectData=function(t){this._columnSelectData=t},o.prototype.reveal=function(t,i,g,b){this._revealRange(t,g,0,i,b)},o.prototype.revealRange=function(t,i,g,b,K){this.emitCursorRevealRange(t,g,b,i,K)},o.prototype.scrollTo=function(t){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:t})},o.prototype.saveState=function(){for(var t=[],i=this._cursors.getSelections(),g=0,b=i.length;g0&&this._pushAutoClosedAction(g,b),this._prevEditOperationType=t.type}t.shouldPushStackElementAfter&&this._model.pushStackElement()},o.prototype._interpretCommandResult=function(t){(!t||t.length===0)&&(t=this._cursors.readSelectionFromMarkers()),this._columnSelectData=null,this._cursors.setSelections(t),this._cursors.normalize()},o.prototype._emitStateChangedIfNecessary=function(t,i,g){var b=new qi(this._model,this);if(b.equals(g))return!1;var K=this._cursors.getSelections(),Ie=this._cursors.getViewSelections();try{var Le=this._beginEmit();Le.emit(new Zo(Ie,K))}finally{this._endEmit()}if(!g||g.cursorState.length!==b.cursorState.length||b.cursorState.some(function(wt,et){return!wt.modelState.equals(g.cursorState[et].modelState)})){var qe=g?g.cursorState.map(function(wt){return wt.modelState.selection}):null,ct=g?g.modelVersionId:0;this._onDidChange.fire(new Ji(K,b.modelVersionId,qe,ct,t||"keyboard",i))}return!0},o.prototype._revealRange=function(t,i,g,b,K){var Ie=this._cursors.getViewPositions(),Le=Ie[0];if(i===1)for(var qe=1;qe1)return;var ct=new be.a(Le.lineNumber,Le.column,Le.lineNumber,Le.column);this.emitCursorRevealRange(t,ct,g,b,K)},o.prototype.emitCursorRevealRange=function(t,i,g,b,K){try{var Ie=this._beginEmit();Ie.emit(new mn(t,i,g,b,K))}finally{this._endEmit()}},o.prototype._findAutoClosingPairs=function(t){if(!t.length)return null;for(var i=[],g=0,b=t.length;g=0)return null;var Ie=K.text.match(/([)\]}>'"`])([^)\]}>'"`]*)$/);if(!Ie)return null;var Le=Ie[1],qe=this.context.config.autoClosingPairsClose2.get(Le);if(!qe||qe.length!==1)return null;var ct=qe[0].open,wt=K.text.length-Ie[2].length-1,et=K.text.lastIndexOf(ct,wt-1);if(et===-1)return null;i.push([et,wt])}return i},o.prototype.executeEdits=function(t,i,g){var b=this,K=null;t==="snippet"&&(K=this._findAutoClosingPairs(i)),K&&(i[0]._isTracked=!0);var Ie=[],Le=[],qe=this._model.pushEditOperations(this.getSelections(),i,function(ct){if(K)for(var wt=0,et=K.length;wt0&&this._pushAutoClosedAction(Ie,Le)},o.prototype.trigger=function(t,i,g){var b=Ln.b;if(i===b.CompositionStart){this._isDoingComposition=!0,this._selectionsWhenCompositionStarted=this.getSelections().slice(0);return}if(i===b.CompositionEnd&&(this._isDoingComposition=!1),this._configuration.options.get(68)){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var K=new qi(this._model,this),Ie=0;i!==b.Undo&&i!==b.Redo&&this._cursors.stopTrackingSelections(),this._cursors.ensureValidState(),this._isHandling=!0;try{switch(i){case b.Type:this._type(t,g.text);break;case b.ReplacePreviousChar:this._replacePreviousChar(g.text,g.replaceCharCnt);break;case b.Paste:Ie=4,this._paste(g.text,g.pasteOnNewLine,g.multicursorText||[]);break;case b.Cut:this._cut();break;case b.Undo:Ie=5,this._interpretCommandResult(this._model.undo());break;case b.Redo:Ie=6,this._interpretCommandResult(this._model.redo());break;case b.ExecuteCommand:this._externalExecuteCommand(g);break;case b.ExecuteCommands:this._externalExecuteCommands(g);break;case b.CompositionEnd:this._interpretCompositionEnd(t);break}}catch(Le){Object(I.e)(Le)}this._isHandling=!1,i!==b.Undo&&i!==b.Redo&&this._cursors.startTrackingSelections(),this._validateAutoClosedActions(),this._emitStateChangedIfNecessary(t,Ie,K)&&this._revealRange(t,0,0,!0,0)},o.prototype._interpretCompositionEnd=function(t){if(!this._isDoingComposition&&t==="keyboard"){var i=er.getAllAutoClosedCharacters(this._autoClosedActions);this._executeEditOperation(Mn.a.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this._selectionsWhenCompositionStarted,this.getSelections(),i)),this._selectionsWhenCompositionStarted=null}},o.prototype._type=function(t,i){if(!this._isDoingComposition&&t==="keyboard")for(var g=i.length,b=0;b0&&(K[0]._isTracked=!0);var qe=o.model.pushEditOperations(o.selectionsBefore,K,function(Vt){for(var qt=[],$t=0;$t0?(qt[Fo].sort(bo),go[Fo]=t[Fo].computeCursorState(o.model,{getInverseEditOperations:function(){return qt[Fo]},getTrackedSelection:function(Po){var nn=parseInt(Po,10),vn=o.model._getTrackedRange(o.trackedRanges[nn]);return o.trackedRangesDirection[nn]===0?new vt.a(vn.startLineNumber,vn.startColumn,vn.endLineNumber,vn.endColumn):new vt.a(vn.endLineNumber,vn.endColumn,vn.startLineNumber,vn.startColumn)}})):go[Fo]=o.selectionsBefore[Fo]},$t=0;$tb.identifier.major?K=g.identifier.major:K=b.identifier.major,t[K.toString()]=!0;for(var Ie=0;Ie0&&i--}}return t},V}(),Es=e("9Y+e"),Jo=e("wQH0"),Ai=e("TQUy"),ws=e("QuOb"),In=function(){function V(){this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[]}return V.prototype.insert=function(o){this._hasPending=!0,this._inserts.push(o)},V.prototype.change=function(o){this._hasPending=!0,this._changes.push(o)},V.prototype.remove=function(o){this._hasPending=!0,this._removes.push(o)},V.prototype.mustCommit=function(){return this._hasPending},V.prototype.commit=function(o){if(!this._hasPending)return;var t=this._inserts,i=this._changes,g=this._removes;this._hasPending=!1,this._inserts=[],this._changes=[],this._removes=[],o._commitPendingChanges(t,i,g)},V}(),wi=function(){function V(o,t,i,g,b){this.id=o,this.afterLineNumber=t,this.ordinal=i,this.height=g,this.minWidth=b,this.prefixSum=0}return V}(),Xn=function(){function V(o,t){this._instanceId=fe.M(++V.INSTANCE_COUNT),this._pendingChanges=new In,this._lastWhitespaceId=0,this._arr=[],this._prefixSumValidIndex=-1,this._minWidth=-1,this._lineCount=o,this._lineHeight=t}return V.findInsertionIndex=function(o,t,i){for(var g=0,b=o.length;g>>1;t===o[K].afterLineNumber?i0||i.length>0)&&(this._minWidth=-1),o.length+t.length+i.length<=1){for(var g=0,b=o;gt&&(this._arr[i].afterLineNumber-=t-o+1)}},V.prototype.onLinesInserted=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0,this._lineCount+=t-o+1;for(var i=0,g=this._arr.length;i=t.length||t[Ie+1].afterLineNumber>=o)return Ie;i=Ie+1|0}else g=Ie-1|0}return-1},V.prototype._findFirstWhitespaceAfterLineNumber=function(o){o=o|0;var t=this._findLastWhitespaceBeforeLineNumber(o),i=t+1;return i1?t=this._lineHeight*(o-1):t=0;var i=this.getWhitespaceAccumulatedHeightBeforeLineNumber(o);return t+i},V.prototype.getWhitespaceMinWidth=function(){if(this._checkPendingChanges(),this._minWidth===-1){for(var o=0,t=0,i=this._arr.length;tt},V.prototype.getLineNumberAtOrAfterVerticalOffset=function(o){if(this._checkPendingChanges(),o=o|0,o<0)return 1;for(var t=this._lineCount|0,i=this._lineHeight,g=1,b=t;g=Ie+i)g=K+1;else{if(o>=Ie)return K;b=K}}return g>t?t:g},V.prototype.getLinesViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this._lineHeight,g=this.getLineNumberAtOrAfterVerticalOffset(o)|0,b=this.getVerticalOffsetForLineNumber(g)|0,K=this._lineCount|0,Ie=this.getFirstWhitespaceIndexAfterLineNumber(g)|0,Le=this.getWhitespacesCount()|0,qe,ct;Ie===-1?(Ie=Le,ct=K+1,qe=0):(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);var wt=b,et=wt,Wt=5e5,kt=0;b>=Wt&&(kt=Math.floor(b/Wt)*Wt,kt=Math.floor(kt/i)*i,et-=kt);for(var Vt=[],qt=o+(t-o)/2,$t=-1,io=g;io<=K;io++){if($t===-1){var yo=wt,mo=wt+i;(yo<=qt&&qtqt)&&($t=io)}for(wt+=i,Vt[io-g]=et,et+=i;ct===io;)et+=qe,wt+=qe,Ie++,Ie>=Le?ct=K+1:(ct=this.getAfterLineNumberForWhitespaceIndex(Ie)|0,qe=this.getHeightForWhitespaceIndex(Ie)|0);if(wt>=t){K=io;break}}$t===-1&&($t=K);var bo=this.getVerticalOffsetForLineNumber(K)|0,go=g,Lo=K;return got&&Lo--),{bigNumbersDelta:kt,startLineNumber:g,endLineNumber:K,relativeVerticalOffset:Vt,centeredLineNumber:$t,completelyVisibleStartLineNumber:go,completelyVisibleEndLineNumber:Lo}},V.prototype.getVerticalOffsetForWhitespaceIndex=function(o){this._checkPendingChanges(),o=o|0;var t=this.getAfterLineNumberForWhitespaceIndex(o),i;t>=1?i=this._lineHeight*t:i=0;var g;return o>0?g=this.getWhitespacesAccumulatedHeight(o-1):g=0,i+g},V.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(o){this._checkPendingChanges(),o=o|0;var t=0,i=this.getWhitespacesCount()-1;if(i<0)return-1;var g=this.getVerticalOffsetForWhitespaceIndex(i),b=this.getHeightForWhitespaceIndex(i);if(o>=g+b)return-1;for(;t=Ie+Le)t=K+1;else{if(o>=Ie)return K;i=K}}return t},V.prototype.getWhitespaceAtVerticalOffset=function(o){this._checkPendingChanges(),o=o|0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(o);if(t<0)return null;if(t>=this.getWhitespacesCount())return null;var i=this.getVerticalOffsetForWhitespaceIndex(t);if(i>o)return null;var g=this.getHeightForWhitespaceIndex(t),b=this.getIdForWhitespaceIndex(t),K=this.getAfterLineNumberForWhitespaceIndex(t);return{id:b,afterLineNumber:K,verticalOffset:i,height:g}},V.prototype.getWhitespaceViewportData=function(o,t){this._checkPendingChanges(),o=o|0,t=t|0;var i=this.getWhitespaceIndexAtOrAfterVerticallOffset(o),g=this.getWhitespacesCount()-1;if(i<0)return[];for(var b=[],K=i;K<=g;K++){var Ie=this.getVerticalOffsetForWhitespaceIndex(K),Le=this.getHeightForWhitespaceIndex(K);if(Ie>=t)break;b.push({id:this.getIdForWhitespaceIndex(K),afterLineNumber:this.getAfterLineNumberForWhitespaceIndex(K),verticalOffset:Ie,height:Le})}return b},V.prototype.getWhitespaces=function(){return this._checkPendingChanges(),this._arr.slice(0)},V.prototype.getWhitespacesCount=function(){return this._checkPendingChanges(),this._arr.length},V.prototype.getIdForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].id},V.prototype.getAfterLineNumberForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].afterLineNumber},V.prototype.getHeightForWhitespaceIndex=function(o){return this._checkPendingChanges(),o=o|0,this._arr[o].height},V.INSTANCE_COUNT=0,V}(),zn=e("qNAo"),Ri=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),tr=125,_i=function(){function V(o,t,i,g){o=o|0,t=t|0,i=i|0,g=g|0,o<0&&(o=0),t<0&&(t=0),i<0&&(i=0),g<0&&(g=0),this.width=o,this.contentWidth=t,this.scrollWidth=Math.max(o,t),this.height=i,this.contentHeight=g,this.scrollHeight=Math.max(i,g)}return V.prototype.equals=function(o){return this.width===o.width&&this.contentWidth===o.contentWidth&&this.height===o.height&&this.contentHeight===o.contentHeight},V}(),Ii=function(V){Ri(o,V);function o(t,i){var g=V.call(this)||this;return g._onDidContentSizeChange=g._register(new U.a),g.onDidContentSizeChange=g._onDidContentSizeChange.event,g._dimensions=new _i(0,0,0,0),g._scrollable=g._register(new ws.a(t,i)),g.onDidScroll=g._scrollable.onScroll,g}return o.prototype.getScrollable=function(){return this._scrollable},o.prototype.setSmoothScrollDuration=function(t){this._scrollable.setSmoothScrollDuration(t)},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.getScrollDimensions=function(){return this._dimensions},o.prototype.setScrollDimensions=function(t){if(this._dimensions.equals(t))return;var i=this._dimensions;this._dimensions=t,this._scrollable.setScrollDimensions({width:t.width,scrollWidth:t.scrollWidth,height:t.height,scrollHeight:t.scrollHeight});var g=i.contentWidth!==t.contentWidth,b=i.contentHeight!==t.contentHeight;(g||b)&&this._onDidContentSizeChange.fire({contentWidth:t.contentWidth,contentHeight:t.contentHeight,contentWidthChanged:g,contentHeightChanged:b})},o.prototype.getFutureScrollPosition=function(){return this._scrollable.getFutureScrollPosition()},o.prototype.getCurrentScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o}(z.a),_s=function(V){Ri(o,V);function o(t,i,g){var b=V.call(this)||this;b._configuration=t;var K=b._configuration.options,Ie=K.get(107);return b._linesLayout=new Xn(i,K.get(49)),b._scrollable=b._register(new Ii(0,g)),b._configureSmoothScrollDuration(),b._scrollable.setScrollDimensions(new _i(Ie.contentWidth,0,Ie.height,0)),b.onDidScroll=b._scrollable.onDidScroll,b.onDidContentSizeChange=b._scrollable.onDidContentSizeChange,b._updateHeight(),b}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.getScrollable=function(){return this._scrollable.getScrollable()},o.prototype.onHeightMaybeChanged=function(){this._updateHeight()},o.prototype._configureSmoothScrollDuration=function(){this._scrollable.setSmoothScrollDuration(this._configuration.options.get(87)?tr:0)},o.prototype.onConfigurationChanged=function(t){var i=this._configuration.options;if(t.hasChanged(49)&&this._linesLayout.setLineHeight(i.get(49)),t.hasChanged(107)){var g=i.get(107),b=g.contentWidth,K=g.height,Ie=this._scrollable.getScrollDimensions(),Le=Ie.scrollWidth;this._scrollable.setScrollDimensions(new _i(b,Ie.contentWidth,K,this._getContentHeight(b,K,Le)))}else this._updateHeight();t.hasChanged(87)&&this._configureSmoothScrollDuration()},o.prototype.onFlushed=function(t){this._linesLayout.onFlushed(t)},o.prototype.onLinesDeleted=function(t,i){this._linesLayout.onLinesDeleted(t,i)},o.prototype.onLinesInserted=function(t,i){this._linesLayout.onLinesInserted(t,i)},o.prototype._getHorizontalScrollbarHeight=function(t,i){var g=this._configuration.options,b=g.get(78);return b.horizontal===2||t>=i?0:b.horizontalScrollbarSize},o.prototype._getContentHeight=function(t,i,g){var b=this._configuration.options,K=this._linesLayout.getLinesTotalHeight();return b.get(80)?K+=i-b.get(49):K+=this._getHorizontalScrollbarHeight(t,g),K},o.prototype._updateHeight=function(){var t=this._scrollable.getScrollDimensions(),i=t.width,g=t.height,b=t.scrollWidth;this._scrollable.setScrollDimensions(new _i(i,t.contentWidth,g,this._getContentHeight(i,g,b)))},o.prototype.getCurrentViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getCurrentScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype.getFutureViewport=function(){var t=this._scrollable.getScrollDimensions(),i=this._scrollable.getFutureScrollPosition();return new zn.f(i.scrollTop,i.scrollLeft,t.width,t.height)},o.prototype._computeContentWidth=function(t){var i=this._configuration.options,g=i.get(108),b=i.get(34);if(g.isViewportWrapping){var K=i.get(107),Ie=i.get(54);return t>K.contentWidth+b.typicalHalfwidthCharacterWidth&&(Ie.enabled&&Ie.side==="right")?t+K.verticalScrollbarWidth:t}else{var Le=i.get(79)*b.typicalHalfwidthCharacterWidth,qe=this._linesLayout.getWhitespaceMinWidth();return Math.max(t+Le,qe)}},o.prototype.onMaxLineWidthChanged=function(t){var i=this._scrollable.getScrollDimensions();this._scrollable.setScrollDimensions(new _i(i.width,this._computeContentWidth(t),i.height,i.contentHeight)),this._updateHeight()},o.prototype.saveState=function(){var t=this._scrollable.getFutureScrollPosition(),i=t.scrollTop,g=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(i),b=this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(g);return{scrollTop:i,scrollTopWithoutViewZones:i-b,scrollLeft:t.scrollLeft}},o.prototype.changeWhitespace=function(t){return this._linesLayout.changeWhitespace(t)},o.prototype.getVerticalOffsetForLineNumber=function(t){return this._linesLayout.getVerticalOffsetForLineNumber(t)},o.prototype.isAfterLines=function(t){return this._linesLayout.isAfterLines(t)},o.prototype.getLineNumberAtVerticalOffset=function(t){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t)},o.prototype.getWhitespaceAtVerticalOffset=function(t){return this._linesLayout.getWhitespaceAtVerticalOffset(t)},o.prototype.getLinesViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(t.top,t.top+t.height)},o.prototype.getLinesViewportDataAtScrollTop=function(t){var i=this._scrollable.getScrollDimensions();return t+i.height>i.scrollHeight&&(t=i.scrollHeight-i.height),t<0&&(t=0),this._linesLayout.getLinesViewportData(t,t+i.height)},o.prototype.getWhitespaceViewportData=function(){var t=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(t.top,t.top+t.height)},o.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()},o.prototype.getContentWidth=function(){var t=this._scrollable.getScrollDimensions();return t.contentWidth},o.prototype.getScrollWidth=function(){var t=this._scrollable.getScrollDimensions();return t.scrollWidth},o.prototype.getContentHeight=function(){var t=this._scrollable.getScrollDimensions();return t.contentHeight},o.prototype.getScrollHeight=function(){var t=this._scrollable.getScrollDimensions();return t.scrollHeight},o.prototype.getCurrentScrollLeft=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollLeft},o.prototype.getCurrentScrollTop=function(){var t=this._scrollable.getCurrentScrollPosition();return t.scrollTop},o.prototype.validateScrollPosition=function(t){return this._scrollable.validateScrollPosition(t)},o.prototype.setScrollPositionNow=function(t){this._scrollable.setScrollPositionNow(t)},o.prototype.setScrollPositionSmooth=function(t){this._scrollable.setScrollPositionSmooth(t)},o.prototype.deltaScrollNow=function(t,i){var g=this._scrollable.getCurrentScrollPosition();this._scrollable.setScrollPositionNow({scrollLeft:g.scrollLeft+t,scrollTop:g.scrollTop+i})},o}(z.a),hi=e("tX9W"),Ss=e("LeU+"),Jn=function(){function V(o,t){this.outputLineIndex=o,this.outputOffset=t}return V}(),qn=function(){function V(o,t,i){this.breakOffsets=o,this.breakOffsetsVisibleColumn=t,this.wrappedTextIndentLength=i}return V.getInputOffsetOfOutputPosition=function(o,t,i){return t===0?i:o[t-1]+i},V.getOutputPositionOfInputOffset=function(o,t){for(var i=0,g=o.length-1,b=0,K=0;i<=g;){b=i+(g-i)/2|0;var Ie=o[b];if(K=b>0?o[b-1]:0,t=Ie)i=b+1;else break}return new Jn(b,t-K)},V}(),Ls=function(){function V(o){this._lines=o}return V.prototype.convertViewPositionToModelPosition=function(o){return this._lines.convertViewPositionToModelPosition(o.lineNumber,o.column)},V.prototype.convertViewRangeToModelRange=function(o){return this._lines.convertViewRangeToModelRange(o)},V.prototype.validateViewPosition=function(o,t){return this._lines.validateViewPosition(o.lineNumber,o.column,t)},V.prototype.validateViewRange=function(o,t){return this._lines.validateViewRange(o,t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._lines.convertModelPositionToViewPosition(o.lineNumber,o.column)},V.prototype.convertModelRangeToViewRange=function(o){return this._lines.convertModelRangeToViewRange(o)},V.prototype.modelPositionIsVisible=function(o){return this._lines.modelPositionIsVisible(o.lineNumber,o.column)},V}(),or=function(){function V(o){this._counts=o,this._isValid=!1,this._validEndIndex=-1,this._modelToView=[],this._viewToModel=[]}return V.prototype._invalidate=function(o){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,o-1)},V.prototype._ensureValid=function(){if(this._isValid)return;for(var o=this._validEndIndex+1,t=this._counts.length;o0?this._modelToView[o-1]:0;this._modelToView[o]=g+i;for(var b=0;b0?this._modelToView[t-1]:0;return new Ss.b(t,o-i)},V}(),Nr=function(){function V(o,t,i,g,b,K,Ie,Le){this.model=o,this._validModelVersionId=-1,this._domLineBreaksComputerFactory=t,this._monospaceLineBreaksComputerFactory=i,this.fontInfo=g,this.tabSize=b,this.wrappingStrategy=K,this.wrappingColumn=Ie,this.wrappingIndent=Le,this._constructLines(!0,null)}return V.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])},V.prototype.createCoordinatesConverter=function(){return new Ls(this)},V.prototype._constructLines=function(o,t){var i=this;this.lines=[],o&&(this.hiddenAreasIds=[]);for(var g=this.model.getLinesContent(),b=g.length,K=this.createLineBreaksComputer(),Ie=0;Ie=wt&&Vt<=et,$t=Ni(Le[Ie],!qt);qe[Ie]=$t.getViewLineCount(),this.lines[Ie]=$t}this._validModelVersionId=this.model.getVersionId(),this.prefixSumComputer=new or(qe)},V.prototype.getHiddenAreas=function(){var o=this;return this.hiddenAreasIds.map(function(t){return o.model.getDecorationRange(t)})},V.prototype._reduceRanges=function(o){var t=this;if(o.length===0)return[];for(var i=o.map(function(ct){return t.model.validateRange(ct)}).sort(be.a.compareRangesUsingStarts),g=[],b=i[0].startLineNumber,K=i[0].endLineNumber,Ie=1,Le=i.length;IeK+1?(g.push(new be.a(b,1,K,1)),b=qe.startLineNumber,K=qe.endLineNumber):qe.endLineNumber>K&&(K=qe.endLineNumber)}return g.push(new be.a(b,1,K,1)),g},V.prototype.setHiddenAreas=function(o){var t=this,i=this._reduceRanges(o),g=this.hiddenAreasIds.map(function(mo){return t.model.getDecorationRange(mo)}).sort(be.a.compareRangesUsingStarts);if(i.length===g.length){for(var b=!1,K=0;K=et&&$t<=Wt?this.lines[K].isVisible()&&(this.lines[K]=this.lines[K].setVisible(!1),io=!0):(qt=!0,this.lines[K].isVisible()||(this.lines[K]=this.lines[K].setVisible(!0),io=!0)),io){var yo=this.lines[K].getViewLineCount();this.prefixSumComputer.changeValue(K,yo)}}return qt||this.setHiddenAreas([]),!0},V.prototype.modelPositionIsVisible=function(o,t){return o<1||o>this.lines.length?!1:this.lines[o-1].isVisible()},V.prototype.setTabSize=function(o){return this.tabSize===o?!1:(this.tabSize=o,this._constructLines(!1,null),!0)},V.prototype.setWrappingSettings=function(o,t,i,g){var b=this.fontInfo.equals(o),K=this.wrappingStrategy===t,Ie=this.wrappingColumn===i,Le=this.wrappingIndent===g;if(b&&K&&Ie&&Le)return!1;var qe=b&&K&&!Ie&&Le;this.fontInfo=o,this.wrappingStrategy=t,this.wrappingColumn=i,this.wrappingIndent=g;var ct=null;if(qe){ct=[];for(var wt=0,et=this.lines.length;wtLe?(ct=t===1?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1,wt=ct+Le-1,kt=wt+1,Vt=kt+(b-Le)-1,qe=!0):bt?t:o|0},V.prototype.getActiveIndentGuide=function(o,t,i){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t),i=this._toValidViewLineNumber(i);var g=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),b=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t)),K=this.convertViewPositionToModelPosition(i,this.getViewLineMinColumn(i)),Ie=this.model.getActiveIndentGuide(g.lineNumber,b.lineNumber,K.lineNumber),Le=this.convertModelPositionToViewPosition(Ie.startLineNumber,1),qe=this.convertModelPositionToViewPosition(Ie.endLineNumber,this.model.getLineMaxColumn(Ie.endLineNumber));return{startLineNumber:Le.lineNumber,endLineNumber:qe.lineNumber,indent:Ie.indent}},V.prototype.getViewLinesIndentGuides=function(o,t){o=this._toValidViewLineNumber(o),t=this._toValidViewLineNumber(t);for(var i=this.convertViewPositionToModelPosition(o,this.getViewLineMinColumn(o)),g=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t)),b=[],K=[],Ie=[],Le=i.lineNumber-1,qe=g.lineNumber-1,ct=null,wt=Le;wt<=qe;wt++){var et=this.lines[wt];if(et.isVisible()){var Wt=et.getViewLineNumberOfModelPosition(0,wt===Le?i.column:1),kt=et.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(wt+1)),Vt=kt-Wt+1,qt=0;Vt>1&&et.getViewLineMinColumn(this.model,wt+1,kt)===1&&(qt=Wt===0?1:2),K.push(Vt),Ie.push(qt),ct===null&&(ct=new oe.a(wt+1,0))}else ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,wt)),ct=null)}ct!==null&&(b=b.concat(this.model.getLinesIndentGuides(ct.lineNumber,g.lineNumber)),ct=null);for(var $t=t-o+1,io=new Array($t),yo=0,mo=0,bo=b.length;mot&&(kt=!0,Wt=t-b+1);var Vt=et+Wt;if(wt.getViewLinesData(this.model,qe+1,et,Vt,b-o,i,Le),b+=Wt,kt)break}return Le},V.prototype.validateViewPosition=function(o,t,i){o=this._toValidViewLineNumber(o);var g=this.prefixSumComputer.getIndexOf(o-1),b=g.index,K=g.remainder,Ie=this.lines[b],Le=Ie.getViewLineMinColumn(this.model,b+1,K),qe=Ie.getViewLineMaxColumn(this.model,b+1,K);tqe&&(t=qe);var ct=Ie.getModelColumnOfViewPosition(K,t),wt=this.model.validatePosition(new oe.a(b+1,ct));return wt.equals(i)?new oe.a(o,t):this.convertModelPositionToViewPosition(i.lineNumber,i.column)},V.prototype.validateViewRange=function(o,t){var i=this.validateViewPosition(o.startLineNumber,o.startColumn,t.getStartPosition()),g=this.validateViewPosition(o.endLineNumber,o.endColumn,t.getEndPosition());return new be.a(i.lineNumber,i.column,g.lineNumber,g.column)},V.prototype.convertViewPositionToModelPosition=function(o,t){o=this._toValidViewLineNumber(o);var i=this.prefixSumComputer.getIndexOf(o-1),g=i.index,b=i.remainder,K=this.lines[g].getModelColumnOfViewPosition(b,t);return this.model.validatePosition(new oe.a(g+1,K))},V.prototype.convertViewRangeToModelRange=function(o){var t=this.convertViewPositionToModelPosition(o.startLineNumber,o.startColumn),i=this.convertViewPositionToModelPosition(o.endLineNumber,o.endColumn);return new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype.convertModelPositionToViewPosition=function(o,t){for(var i=this.model.validatePosition(new oe.a(o,t)),g=i.lineNumber,b=i.column,K=g-1,Ie=!1;K>0&&!this.lines[K].isVisible();)K--,Ie=!0;if(K===0&&!this.lines[K].isVisible())return new oe.a(1,1);var Le=1+(K===0?0:this.prefixSumComputer.getAccumulatedValue(K-1)),qe;return Ie?qe=this.lines[K].getViewPositionOfModelPosition(Le,this.model.getLineMaxColumn(K+1)):qe=this.lines[g-1].getViewPositionOfModelPosition(Le,b),qe},V.prototype.convertModelRangeToViewRange=function(o){var t=this.convertModelPositionToViewPosition(o.startLineNumber,o.startColumn),i=this.convertModelPositionToViewPosition(o.endLineNumber,o.endColumn);return o.startLineNumber===o.endLineNumber&&t.lineNumber!==i.lineNumber&&i.column===this.getViewLineMinColumn(i.lineNumber)?new be.a(t.lineNumber,t.column,i.lineNumber-1,this.getViewLineMaxColumn(i.lineNumber-1)):new be.a(t.lineNumber,t.column,i.lineNumber,i.column)},V.prototype._getViewLineNumberForModelPosition=function(o,t){var i=o-1;if(this.lines[i].isVisible()){var g=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(g,t)}for(;i>0&&!this.lines[i].isVisible();)i--;if(i===0&&!this.lines[i].isVisible())return 1;var b=1+(i===0?0:this.prefixSumComputer.getAccumulatedValue(i-1));return this.lines[i].getViewLineNumberOfModelPosition(b,this.model.getLineMaxColumn(i+1))},V.prototype.getAllOverviewRulerDecorations=function(o,t,i){for(var g=this.model.getOverviewRulerDecorations(o,t),b=new ni,K=0,Ie=g;Kbo.id?1:0:go});for(var Wt=[],kt=0,Vt=null,qt=0,$t=K;qt<$t.length;qt++){var io=$t[qt],yo=io.id;if(Vt===yo)continue;Vt=yo,Wt[kt++]=io}return Wt},V}(),nr=function(){function V(){}return V.prototype.isVisible=function(){return!0},V.prototype.setVisible=function(o){return o?this:ir.INSTANCE},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 1},V.prototype.getViewLineContent=function(o,t,i){return o.getLineContent(t)},V.prototype.getViewLineLength=function(o,t,i){return o.getLineLength(t)},V.prototype.getViewLineMinColumn=function(o,t,i){return o.getLineMinColumn(t)},V.prototype.getViewLineMaxColumn=function(o,t,i){return o.getLineMaxColumn(t)},V.prototype.getViewLineData=function(o,t,i){var g=o.getLineTokens(t),b=g.getLineContent();return new zn.c(b,!1,1,b.length+1,0,g.inflate())},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!K[b]){Ie[b]=null;return}Ie[b]=this.getViewLineData(o,t,0)},V.prototype.getModelColumnOfViewPosition=function(o,t){return t},V.prototype.getViewPositionOfModelPosition=function(o,t){return new oe.a(o,t)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){return o},V.INSTANCE=new V,V}(),ir=function(){function V(){}return V.prototype.isVisible=function(){return!1},V.prototype.setVisible=function(o){return o?nr.INSTANCE:this},V.prototype.getLineBreakData=function(){return null},V.prototype.getViewLineCount=function(){return 0},V.prototype.getViewLineContent=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineLength=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMinColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineMaxColumn=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLineData=function(o,t,i){throw new Error("Not supported")},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){throw new Error("Not supported")},V.prototype.getModelColumnOfViewPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewPositionOfModelPosition=function(o,t){throw new Error("Not supported")},V.prototype.getViewLineNumberOfModelPosition=function(o,t){throw new Error("Not supported")},V.INSTANCE=new V,V}(),Yn=function(){function V(o,t){this._lineBreakData=o,this._isVisible=t}return V.prototype.isVisible=function(){return this._isVisible},V.prototype.setVisible=function(o){return this._isVisible=o,this},V.prototype.getLineBreakData=function(){return this._lineBreakData},V.prototype.getViewLineCount=function(){return this._isVisible?this._lineBreakData.breakOffsets.length:0},V.prototype.getInputStartOffsetOfOutputLineIndex=function(o){return qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,o,0)},V.prototype.getInputEndOffsetOfOutputLineIndex=function(o,t,i){return i+1===this._lineBreakData.breakOffsets.length?o.getLineMaxColumn(t)-1:qn.getInputOffsetOfOutputPosition(this._lineBreakData.breakOffsets,i+1,0)},V.prototype.getViewLineContent=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});return i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K),K},V.prototype.getViewLineLength=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=b-g;return i>0&&(K=this._lineBreakData.wrappedTextIndentLength+K),K},V.prototype.getViewLineMinColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return i>0?this._lineBreakData.wrappedTextIndentLength+1:1},V.prototype.getViewLineMaxColumn=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(o,t,i).length+1},V.prototype.getViewLineData=function(o,t,i){if(!this._isVisible)throw new Error("Not supported");var g=this.getInputStartOffsetOfOutputLineIndex(i),b=this.getInputEndOffsetOfOutputLineIndex(o,t,i),K=o.getValueInRange({startLineNumber:t,startColumn:g+1,endLineNumber:t,endColumn:b+1});i>0&&(K=rr(this._lineBreakData.wrappedTextIndentLength)+K);var Ie=i>0?this._lineBreakData.wrappedTextIndentLength+1:1,Le=K.length+1,qe=i+10&&(ct=this._lineBreakData.wrappedTextIndentLength);var wt=o.getLineTokens(t),et=i===0?0:this._lineBreakData.breakOffsetsVisibleColumn[i-1];return new zn.c(K,qe,Ie,Le,et,wt.sliceAndInflate(g,b,ct))},V.prototype.getViewLinesData=function(o,t,i,g,b,K,Ie){if(!this._isVisible)throw new Error("Not supported");for(var Le=i;Le0&&(i0&&(b+=this._lineBreakData.wrappedTextIndentLength),new oe.a(o+g,b)},V.prototype.getViewLineNumberOfModelPosition=function(o,t){if(!this._isVisible)throw new Error("Not supported");var i=qn.getOutputPositionOfInputOffset(this._lineBreakData.breakOffsets,t-1);return o+i.outputLineIndex},V}(),An=[""];function rr(V){if(V>=An.length)for(var o=1;o<=V;o++)An[o]=Ms(o);return An[V]}function Ms(V){return new Array(V+1).join(" ")}function Ni(V,o){return V===null?o?nr.INSTANCE:ir.INSTANCE:new Yn(V,o)}var Ds=function(){function V(o){this._lines=o}return V.prototype._validPosition=function(o){return this._lines.model.validatePosition(o)},V.prototype._validRange=function(o){return this._lines.model.validateRange(o)},V.prototype.convertViewPositionToModelPosition=function(o){return this._validPosition(o)},V.prototype.convertViewRangeToModelRange=function(o){return this._validRange(o)},V.prototype.validateViewPosition=function(o,t){return this._validPosition(t)},V.prototype.validateViewRange=function(o,t){return this._validRange(t)},V.prototype.convertModelPositionToViewPosition=function(o){return this._validPosition(o)},V.prototype.convertModelRangeToViewRange=function(o){return this._validRange(o)},V.prototype.modelPositionIsVisible=function(o){var t=this._lines.model.getLineCount();return!(o.lineNumber<1||o.lineNumber>t)},V}(),fi=function(){function V(o){this.model=o}return V.prototype.dispose=function(){},V.prototype.createCoordinatesConverter=function(){return new Ds(this)},V.prototype.getHiddenAreas=function(){return[]},V.prototype.setHiddenAreas=function(o){return!1},V.prototype.setTabSize=function(o){return!1},V.prototype.setWrappingSettings=function(o,t,i,g){return!1},V.prototype.createLineBreaksComputer=function(){var o=[];return{addRequest:function(i,g){o.push(null)},finalize:function(){return o}}},V.prototype.onModelFlushed=function(){},V.prototype.onModelLinesDeleted=function(o,t,i){return new fn(t,i)},V.prototype.onModelLinesInserted=function(o,t,i,g){return new Vo(t,i)},V.prototype.onModelLineChanged=function(o,t,i){return[!1,new Qo(t,t),null,null]},V.prototype.acceptVersionId=function(o){},V.prototype.getViewLineCount=function(){return this.model.getLineCount()},V.prototype.getActiveIndentGuide=function(o,t,i){return{startLineNumber:o,endLineNumber:o,indent:0}},V.prototype.getViewLinesIndentGuides=function(o,t){for(var i=t-o+1,g=new Array(i),b=0;b=t){i>Ie&&(b[b.length-1]=i);return}b.push(g,t,i)}else this.result[o]=[g,t,i]},V}(),Os=function(){function V(o,t,i,g,b){this.editorId=o,this.model=t,this.configuration=i,this._linesCollection=g,this._coordinatesConverter=b,this._decorationsCache=Object.create(null),this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null}return V.prototype._clearCachedModelDecorationsResolver=function(){this._cachedModelDecorationsResolver=null,this._cachedModelDecorationsResolverViewRange=null},V.prototype.dispose=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.reset=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onModelDecorationsChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype.onLineMappingChanged=function(){this._decorationsCache=Object.create(null),this._clearCachedModelDecorationsResolver()},V.prototype._getOrCreateViewModelDecoration=function(o){var t=o.id,i=this._decorationsCache[t];if(!i){var g=o.range,b=o.options,K=void 0;if(b.isWholeLine){var Ie=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.startLineNumber,1)),Le=this._coordinatesConverter.convertModelPositionToViewPosition(new oe.a(g.endLineNumber,this.model.getLineMaxColumn(g.endLineNumber)));K=new be.a(Ie.lineNumber,Ie.column,Le.lineNumber,Le.column)}else K=this._coordinatesConverter.convertModelRangeToViewRange(g);i=new zn.e(K,b),this._decorationsCache[t]=i}return i},V.prototype.getDecorationsViewportData=function(o){var t=this._cachedModelDecorationsResolver!==null;return t=t&&o.equalsRange(this._cachedModelDecorationsResolverViewRange),t||(this._cachedModelDecorationsResolver=this._getDecorationsViewportData(o),this._cachedModelDecorationsResolverViewRange=o),this._cachedModelDecorationsResolver},V.prototype._getDecorationsViewportData=function(o){for(var t=this._linesCollection.getDecorationsInRange(o,this.editorId,Object(he.j)(this.configuration.options)),i=o.startLineNumber,g=o.endLineNumber,b=[],K=0,Ie=[],Le=i;Le<=g;Le++)Ie[Le-i]=[];for(var qe=0,ct=t.length;qe=2&&t.viewportStartLineTrackedRange){var Po=t.model._getTrackedRange(t.viewportStartLineTrackedRange);if(Po){var nn=t.coordinatesConverter.convertModelPositionToViewPosition(Po.getStartPosition()),vn=t.viewLayout.getVerticalOffsetForLineNumber(nn.lineNumber);t.viewLayout.setScrollPositionNow({scrollTop:vn+t.viewportStartLineDelta})}}})),this._register(this.model.onDidChangeTokens(function(i){for(var g=[],b=0,K=i.ranges.length;bqe)continue;Ie0&&wt[Wt-1]===wt[Wt])continue;et+=this.model.getLineContent(wt[Wt])+b}return et}if(K&&i){for(var kt=[],Vt=0,qt=0,$t=t;qt<$t.length;qt++){var io=$t[qt],yo=io.startLineNumber;io.isEmpty()?yo!==Vt&&kt.push(this.model.getLineContent(yo)):kt.push(this.model.getValueInRange(io,g?2:0)),Vt=yo}return kt.length===1?kt[0]:kt}for(var mo=[],bo=0,go=t;bo'+this._getHTMLToCopy(b,Le)+""}},o.prototype._getHTMLToCopy=function(t,i){for(var g=t.startLineNumber,b=t.startColumn,K=t.endLineNumber,Ie=t.endColumn,Le=this.getTabSize(),qe="",ct=g;ct<=K;ct++){var wt=this.model.getLineTokens(ct),et=wt.getLineContent(),Wt=ct===g?b-1:0,kt=ct===K?Ie-1:et.length;et===""?qe+="
":qe+=Object(Ai.a)(et,wt.inflate(),i,Wt,kt,Le,_.h)}return qe},o.prototype._getColorMap=function(){var t=$o.B.getColorMap(),i=["#000000"];if(t)for(var g=1,b=t.length;g=0&&t<256?this._asciiMap[t]:t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959?3:this._map.get(t)||this._defaultValue},o}(Rs.a),ji=[],lr=[],Ns=function(){function V(o,t){this.classifier=new Is(o,t)}return V.create=function(o){return new V(o.get(99),o.get(98))},V.prototype.createLineBreaksComputer=function(o,t,i,g){var b=this;t=t|0,i=+i;var K=[],Ie=[];return{addRequest:function(qe,ct){K.push(qe),Ie.push(ct)},finalize:function(){for(var qe=o.typicalFullwidthCharacterWidth/o.typicalHalfwidthCharacterWidth,ct=[],wt=0,et=K.length;wt=0)for(var io=Math.abs(qe[$t]-Vt);$t+1=io)break;io=yo,$t++}for(;$tVt){No=Nn,Fo=Xo-Fn,Xo-Lo>wt&&(go=0),vn=!1;break}Po=hn,nn=Wn}if(vn){kt>0&&(et[kt]=Le[Le.length-1],Wt[kt]=qe[Le.length-1],kt++);break}}if(go===0){for(var Xo=bo,hn=t.charCodeAt(mo),Wn=V.get(hn),Hi=!1,cn=mo-1;cn>=0;cn--){var Nn=cn+1,Po=t.charCodeAt(cn);if(Po===9){Hi=!0;break}var nn=void 0,fr=void 0;if(fe.A(Po)?(cn--,nn=0,fr=2):(nn=V.get(Po),fr=fe.y(Po)?b:1),Xo<=Vt){if(No===0&&(No=Nn,Fo=Xo),Xo<=Vt-wt)break;if(cr(Po,nn,hn,Wn)){go=Nn,Lo=Xo;break}}Xo-=fr,hn=Po,Wn=nn}if(go!==0){var Ur=wt-(Fo-Lo);if(Ur<=i){var Zn=t.charCodeAt(No),Fn=void 0;fe.z(Zn)?Fn=2:Fn=Pi(Zn,Fo,i,b),Ur-Fn<0&&(go=0)}}if(Hi){$t--;continue}}for(go===0&&(go=No,Lo=Fo),et[kt]=go,Wt[kt]=Lo,kt++,Vt=Lo+wt;$t<0||$t=io)break;io=yo,$t++}}return kt===0?null:(et.length=kt,Wt.length=kt,ji=o.breakOffsets,lr=o.breakOffsetsVisibleColumn,o.breakOffsets=et,o.breakOffsetsVisibleColumn=Wt,o.wrappedTextIndentLength=ct,o)}function Ps(V,o,t,i,g,b){if(i===-1)return null;var K=o.length;if(K<=1)return null;var Ie=ki(o,t,i,g,b),Le=i-Ie,qe=[],ct=[],wt=0,et=0,Wt=0,kt=i,Vt=o.charCodeAt(0),qt=V.get(Vt),$t=Pi(Vt,0,t,g),io=1;fe.z(Vt)&&($t+=1,Vt=o.charCodeAt(1),qt=V.get(Vt),io++);for(var yo=io;yokt&&((et===0||$t-Wt>Le)&&(et=mo,Wt=$t-Lo),qe[wt]=et,ct[wt]=Wt,wt++,kt=Wt+Le,et=0),Vt=bo,qt=go}return wt===0?null:(qe[wt]=K,ct[wt]=$t,new qn(qe,ct,Ie))}function Pi(V,o,t,i){return V===9?t-o%t:fe.y(V)?i:1}function dr(V,o){return o-V%o}function cr(V,o,t,i){return t!==32&&(o===2||o===3&&i!==2||i===1||i===3&&o!==1)}function ki(V,o,t,i,g){var b=0;if(g!==0){var K=fe.q(V);if(K!==-1){for(var Ie=0;Iet&&(b=0)}}return b}var Pr=function(){function V(){}return V.create=function(){return new V},V.prototype.createLineBreaksComputer=function(o,t,i,g){t=t|0,i=+i;var b=[];return{addRequest:function(Ie,Le){b.push(Ie)},finalize:function(){return Fi(b,o,t,i,g)}}},V}();function Fi(V,o,t,i,g){if(i===-1){for(var b=[],K=0,Ie=V.length;KLe?($t=0,io=0):yo=Le-go}var Lo=qt.substr($t),No=kr(Lo,io,t,yo,ct);wt[K]=$t,et[K]=io,Wt[K]=Lo,kt[K]=No[0],Vt[K]=No[1]}qe.innerHTML=ct.build(),qe.style.position="absolute",qe.style.top="10000",qe.style.wordWrap="break-word",document.body.appendChild(qe);for(var Fo=document.createRange(),Xo=Array.prototype.slice.call(qe.children,0),Po=[],K=0;K');for(var b=V.length,K=o,Ie=0,Le=[],qe=[],ct=0"),[Le,qe]}function Fr(V,o,t,i){if(t.length<=1)return null;var g=o.firstChild,b=[];return pi(V,g,i,0,null,t.length-1,null,b),b.length===0?null:(b.push(t.length),b)}function pi(V,o,t,i,g,b,K,Ie){if(i===b)return;if(g=g||ur(V,o,t[i],t[i+1]),K=K||ur(V,o,t[b],t[b+1]),Math.abs(g[0].top-K[0].top)<=.1)return;if(i+1===b){Ie.push(b);return}var Le=i+(b-i)/2|0,qe=ur(V,o,t[Le],t[Le+1]);pi(V,o,t,i,g,Le,qe,Ie),pi(V,o,t,Le,qe,b,K,Ie)}function ur(V,o,t,i){return V.setStart(o,t),V.setEnd(o,i),V.getClientRects()}var Li=function(){var V=function(t,i){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var K in b)b.hasOwnProperty(K)&&(g[K]=b[K])},V(t,i)};return function(o,t){V(o,t);function i(){this.constructor=o}o.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),Wr=function(V,o,t,i){var g=arguments.length,b=g<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,t):i,K;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(V,o,t,i);else for(var Ie=V.length-1;Ie>=0;Ie--)(K=V[Ie])&&(b=(g<3?K(b):g>3?K(o,t,b):K(o,t))||b);return g>3&&b&&Object.defineProperty(o,t,b),b},ri=function(V,o){return function(t,i){o(t,i,V)}},gi=0,hr=function(){function V(o,t,i,g,b,K){this.model=o,this.viewModel=t,this.cursor=i,this.view=g,this.hasRealView=b,this.listenersToRemove=K}return V.prototype.dispose=function(){Object(z.f)(this.listenersToRemove),this.model.onBeforeDetached(),this.hasRealView&&this.view.dispose(),this.cursor.dispose(),this.viewModel.dispose()},V}(),ks=function(V){Li(o,V);function o(t,i,g,b,K,Ie,Le,qe,ct,wt){var et=V.call(this)||this;et._onDidDispose=et._register(new U.a),et.onDidDispose=et._onDidDispose.event,et._onDidChangeModelContent=et._register(new U.a),et.onDidChangeModelContent=et._onDidChangeModelContent.event,et._onDidChangeModelLanguage=et._register(new U.a),et.onDidChangeModelLanguage=et._onDidChangeModelLanguage.event,et._onDidChangeModelLanguageConfiguration=et._register(new U.a),et.onDidChangeModelLanguageConfiguration=et._onDidChangeModelLanguageConfiguration.event,et._onDidChangeModelOptions=et._register(new U.a),et.onDidChangeModelOptions=et._onDidChangeModelOptions.event,et._onDidChangeModelDecorations=et._register(new U.a),et.onDidChangeModelDecorations=et._onDidChangeModelDecorations.event,et._onDidChangeConfiguration=et._register(new U.a),et.onDidChangeConfiguration=et._onDidChangeConfiguration.event,et._onDidChangeModel=et._register(new U.a),et.onDidChangeModel=et._onDidChangeModel.event,et._onDidChangeCursorPosition=et._register(new U.a),et.onDidChangeCursorPosition=et._onDidChangeCursorPosition.event,et._onDidChangeCursorSelection=et._register(new U.a),et.onDidChangeCursorSelection=et._onDidChangeCursorSelection.event,et._onDidAttemptReadOnlyEdit=et._register(new U.a),et.onDidAttemptReadOnlyEdit=et._onDidAttemptReadOnlyEdit.event,et._onDidLayoutChange=et._register(new U.a),et.onDidLayoutChange=et._onDidLayoutChange.event,et._editorTextFocus=et._register(new ei),et.onDidFocusEditorText=et._editorTextFocus.onDidChangeToTrue,et.onDidBlurEditorText=et._editorTextFocus.onDidChangeToFalse,et._editorWidgetFocus=et._register(new ei),et.onDidFocusEditorWidget=et._editorWidgetFocus.onDidChangeToTrue,et.onDidBlurEditorWidget=et._editorWidgetFocus.onDidChangeToFalse,et._onWillType=et._register(new U.a),et.onWillType=et._onWillType.event,et._onDidType=et._register(new U.a),et.onDidType=et._onDidType.event,et._onDidCompositionStart=et._register(new U.a),et.onDidCompositionStart=et._onDidCompositionStart.event,et._onDidCompositionEnd=et._register(new U.a),et.onDidCompositionEnd=et._onDidCompositionEnd.event,et._onDidPaste=et._register(new U.a),et.onDidPaste=et._onDidPaste.event,et._onMouseUp=et._register(new U.a),et.onMouseUp=et._onMouseUp.event,et._onMouseDown=et._register(new U.a),et.onMouseDown=et._onMouseDown.event,et._onMouseDrag=et._register(new U.a),et.onMouseDrag=et._onMouseDrag.event,et._onMouseDrop=et._register(new U.a),et.onMouseDrop=et._onMouseDrop.event,et._onContextMenu=et._register(new U.a),et.onContextMenu=et._onContextMenu.event,et._onMouseMove=et._register(new U.a),et.onMouseMove=et._onMouseMove.event,et._onMouseLeave=et._register(new U.a),et.onMouseLeave=et._onMouseLeave.event,et._onMouseWheel=et._register(new U.a),et.onMouseWheel=et._onMouseWheel.event,et._onKeyUp=et._register(new U.a),et.onKeyUp=et._onKeyUp.event,et._onKeyDown=et._register(new U.a),et.onKeyDown=et._onKeyDown.event,et._onDidContentSizeChange=et._register(new U.a),et.onDidContentSizeChange=et._onDidContentSizeChange.event,et._onDidScrollChange=et._register(new U.a),et.onDidScrollChange=et._onDidScrollChange.event,et._onDidChangeViewZones=et._register(new U.a),et.onDidChangeViewZones=et._onDidChangeViewZones.event,et._domElement=t,et._id=++gi,et._decorationTypeKeysToIds={},et._decorationTypeSubtypes={},et.isSimpleWidget=g.isSimpleWidget||!1,et._telemetryData=g.telemetryData,i=i||{},et._configuration=et._register(et._createConfiguration(i,wt)),et._register(et._configuration.onDidChange(function(io){et._onDidChangeConfiguration.fire(io);var yo=et._configuration.options;if(io.hasChanged(107)){var mo=yo.get(107);et._onDidLayoutChange.fire(mo)}})),et._contextKeyService=et._register(Le.createScoped(et._domElement)),et._notificationService=ct,et._codeEditorService=K,et._commandService=Ie,et._themeService=qe,et._register(new Fs(et,et._contextKeyService)),et._register(new Ws(et,et._contextKeyService)),et._instantiationService=b.createChild(new sr.a([mi.c,et._contextKeyService])),et._modelData=null,et._contributions={},et._actions={},et._focusTracker=new Br(t),et._focusTracker.onChange(function(){et._editorWidgetFocus.setValue(et._focusTracker.hasFocus())}),et._contentWidgets={},et._overlayWidgets={};var Wt;Array.isArray(g.contributions)?Wt=g.contributions:Wt=x.d.getEditorContributions();for(var kt=0,Vt=Wt;kt1),this._hasNonEmptySelection.set(t.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},o.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},o.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},o}(z.a),Ws=function(V){Li(o,V);function o(t,i){var g=V.call(this)||this;g._editor=t,g._contextKeyService=i,g._langId=Jo.a.languageId.bindTo(i),g._hasCompletionItemProvider=Jo.a.hasCompletionItemProvider.bindTo(i),g._hasCodeActionsProvider=Jo.a.hasCodeActionsProvider.bindTo(i),g._hasCodeLensProvider=Jo.a.hasCodeLensProvider.bindTo(i),g._hasDefinitionProvider=Jo.a.hasDefinitionProvider.bindTo(i),g._hasDeclarationProvider=Jo.a.hasDeclarationProvider.bindTo(i),g._hasImplementationProvider=Jo.a.hasImplementationProvider.bindTo(i),g._hasTypeDefinitionProvider=Jo.a.hasTypeDefinitionProvider.bindTo(i),g._hasHoverProvider=Jo.a.hasHoverProvider.bindTo(i),g._hasDocumentHighlightProvider=Jo.a.hasDocumentHighlightProvider.bindTo(i),g._hasDocumentSymbolProvider=Jo.a.hasDocumentSymbolProvider.bindTo(i),g._hasReferenceProvider=Jo.a.hasReferenceProvider.bindTo(i),g._hasRenameProvider=Jo.a.hasRenameProvider.bindTo(i),g._hasSignatureHelpProvider=Jo.a.hasSignatureHelpProvider.bindTo(i),g._hasDocumentFormattingProvider=Jo.a.hasDocumentFormattingProvider.bindTo(i),g._hasDocumentSelectionFormattingProvider=Jo.a.hasDocumentSelectionFormattingProvider.bindTo(i),g._hasMultipleDocumentFormattingProvider=Jo.a.hasMultipleDocumentFormattingProvider.bindTo(i),g._hasMultipleDocumentSelectionFormattingProvider=Jo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),g._isInWalkThrough=Jo.a.isInEmbeddedEditor.bindTo(i);var b=function(){return g._update()};return g._register(t.onDidChangeModel(b)),g._register(t.onDidChangeModelLanguage(b)),g._register($o.d.onDidChange(b)),g._register($o.a.onDidChange(b)),g._register($o.b.onDidChange(b)),g._register($o.f.onDidChange(b)),g._register($o.e.onDidChange(b)),g._register($o.q.onDidChange(b)),g._register($o.C.onDidChange(b)),g._register($o.p.onDidChange(b)),g._register($o.i.onDidChange(b)),g._register($o.m.onDidChange(b)),g._register($o.u.onDidChange(b)),g._register($o.v.onDidChange(b)),g._register($o.g.onDidChange(b)),g._register($o.j.onDidChange(b)),g._register($o.x.onDidChange(b)),b(),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},o.prototype._update=function(){var t=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(i.getLanguageIdentifier().language),t._hasCompletionItemProvider.set($o.d.has(i)),t._hasCodeActionsProvider.set($o.a.has(i)),t._hasCodeLensProvider.set($o.b.has(i)),t._hasDefinitionProvider.set($o.f.has(i)),t._hasDeclarationProvider.set($o.e.has(i)),t._hasImplementationProvider.set($o.q.has(i)),t._hasTypeDefinitionProvider.set($o.C.has(i)),t._hasHoverProvider.set($o.p.has(i)),t._hasDocumentHighlightProvider.set($o.i.has(i)),t._hasDocumentSymbolProvider.set($o.m.has(i)),t._hasReferenceProvider.set($o.u.has(i)),t._hasRenameProvider.set($o.v.has(i)),t._hasSignatureHelpProvider.set($o.x.has(i)),t._hasDocumentFormattingProvider.set($o.g.has(i)||$o.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($o.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($o.g.all(i).length+$o.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($o.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===O.b.walkThroughSnippet)})},o}(z.a),Br=function(V){Li(o,V);function o(t){var i=V.call(this)||this;return i._onChange=i._register(new H.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(J.Z(t)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return o.prototype.hasFocus=function(){return this._hasFocus},o}(z.a),Bs=encodeURIComponent("");function vi(V){return Bs+encodeURIComponent(V.toString())+Ur}var Us=encodeURIComponent('');function Bi(V){return Us+encodeURIComponent(V.toString())+Wi}Object(X.e)(function(V,o){var t=V.getColor(Tn.p);t&&o.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=V.getColor(Tn.q);i&&o.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var g=V.getColor(Tn.O);g&&o.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+g+"; }");var b=V.getColor(Tn.P);b&&o.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(b)+'") repeat-x bottom left; }');var K=V.getColor(Tn.G);K&&o.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+K+"; }");var Ie=V.getColor(Tn.H);Ie&&o.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Ie)+'") repeat-x bottom left; }');var Le=V.getColor(Tn.y);Le&&o.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+Le+"; }");var qe=V.getColor(Tn.z);qe&&o.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ct=V.getColor(lt.o);ct&&o.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ct.rgba.a+"; }");var _t=V.getColor(lt.n);_t&&o.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+_t+"; }");var et=V.getColor(Tn.x)||"inherit";o.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+et+"}")})},nD70:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re});var T=function(){function J(I){this._prefix=I,this._lastId=0}return J.prototype.nextId=function(){return this._prefix+ ++this._lastId},J}(),re=new T("id#")},nlbu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"a",function(){return z});var T=e("N0LK"),re=function(){function O(U){this.value=U}return O.prototype.equals=function(U){return this.value===U.value},O.prototype.contains=function(U){return this.equals(U)||this.value===""||Object(T.N)(U.value,this.value+O.sep)},O.prototype.intersects=function(U){return this.contains(U)||U.contains(this)},O.prototype.append=function(U){return new O(this.value+O.sep+U)},O.sep=".",O.None=new O("@@none@@"),O.Empty=new O(""),O.QuickFix=new O("quickfix"),O.Refactor=new O("refactor"),O.Source=new O("source"),O.SourceOrganizeImports=O.Source.append("organizeImports"),O.SourceFixAll=O.Source.append("fixAll"),O}();function J(O,U){return O.include&&!O.include.intersects(U)||O.excludes&&O.excludes.some(function(x){return H(U,x,O.include)})?!1:!(!O.includeSourceActions&&re.Source.contains(U))}function I(O,U){var x=U.kind?new re(U.kind):void 0;return O.include&&(!x||!O.include.contains(x))||(O.excludes&&(x&&O.excludes.some(function(u){return H(x,u,O.include)}))||!O.includeSourceActions&&(x&&re.Source.contains(x)))?!1:!(O.onlyIncludePreferredActions&&!U.isPreferred)}function H(O,U,x){return U.contains(O)?!(x&&U.contains(x)):!1}var z=function(){function O(U,x,u){this.kind=U,this.apply=x,this.preferred=u}return O.fromUser=function(U,x){return!U||typeof U!="object"?new O(x.kind,x.apply,!1):new O(O.getKindFromUser(U,x.kind),O.getApplyFromUser(U,x.apply),O.getPreferredUser(U))},O.getApplyFromUser=function(U,x){switch(typeof U.apply=="string"?U.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return x}},O.getKindFromUser=function(U,x){return typeof U.kind=="string"?new re(U.kind):x},O.getPreferredUser=function(U){return typeof U.preferred=="boolean"?U.preferred:!1},O}()},nn6Y:function(Lt,j,e){},nnTU:function(Lt,j,e){"use strict";e.d(j,"b",function(){return U}),e.d(j,"a",function(){return x});var T=e("pmY6"),re=e("746U"),J=e("Cg/j"),I=e("MI8n"),H=e("24hK"),z=e("QDVR"),O=function(){for(var u=0,y=0,w=arguments.length;y=21&&u<=30||u>=31&&u<=56?!0:u===80||u===81||u===82||u===83||u===84||u===85||u===86||u===110||u===111||u===87||u===88||u===89||u===90||u===91||u===92},x.prototype._assertNoCtrlAlt=function(u,y){u.ctrlKey&&u.altKey&&!u.metaKey&&(x._mightProduceChar(u.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",u," for ",y))},x.prototype._registerDefaultKeybinding=function(u,y,w,f,v,_){re.a===1&&this._assertNoCtrlAlt(u.parts[0],y),this._coreKeybindings.push({keybinding:u,command:y,commandArgs:w,when:_,weight1:f,weight2:v}),this._cachedMergedKeybindings=null},x.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(U)),this._cachedMergedKeybindings.slice(0)},x}(),z=new H,O={EditorModes:"platform.keybindingsRegistry"};I.a.add(O.EditorModes,z);function U(x,u){return x.weight1!==u.weight1?x.weight1-u.weight1:x.commandu.command?1:x.weight2-u.weight2}},nuFA:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T;(function(re){function J(O,U){if(O.start>=U.end||U.start>=O.end)return{start:0,end:0};var x=Math.max(O.start,U.start),u=Math.min(O.end,U.end);return u-x<=0?{start:0,end:0}:{start:x,end:u}}re.intersect=J;function I(O){return O.end-O.start<=0}re.isEmpty=I;function H(O,U){return!I(J(O,U))}re.intersects=H;function z(O,U){var x=[],u={start:O.start,end:Math.min(U.start,O.end)},y={start:Math.max(U.end,O.start),end:O.end};return I(u)||x.push(u),I(y)||x.push(y),x}re.relativeComplement=z})(T||(T={}))},o39E:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("pmY6"),re=e("EffR"),J=function(){var H=function(O,U){return H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},H(O,U)};return function(z,O){H(z,O);function U(){this.constructor=z}z.prototype=O===null?Object.create(O):(U.prototype=O.prototype,new U)}}(),I=function(H){J(z,H);function z(O,U,x){var u=H.call(this)||this;return u.referenceDomElement=O,u.changeCallback=x,u.width=-1,u.height=-1,u.mutationObserver=null,u.windowSizeListener=null,u.measureReferenceDomElement(!1,U),u}return z.prototype.dispose=function(){this.stopObserving(),H.prototype.dispose.call(this)},z.prototype.getWidth=function(){return this.width},z.prototype.getHeight=function(){return this.height},z.prototype.startObserving=function(){var O=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return O._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.j(window,"resize",function(){return O._onDidResizeWindow()}))},z.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},z.prototype.observe=function(O){this.measureReferenceDomElement(!0,O)},z.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},z.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},z.prototype.measureReferenceDomElement=function(O,U){var x=0,u=0;U?(x=U.width,u=U.height):this.referenceDomElement&&(x=this.referenceDomElement.clientWidth,u=this.referenceDomElement.clientHeight),x=Math.max(5,x),u=Math.max(5,u),(this.width!==x||this.height!==u)&&(this.width=x,this.height=u,O&&this.changeCallback())},z}(T.a)},oAeH:function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return U});var T=e("746U"),re=e("Ll0s"),J=e("+Fos"),I=e("1I1M"),H=e("cGHE"),z=e("aokT"),O=function(){function x(){}return x.addCursorDown=function(u,y,w){for(var f=[],v=0,_=0,p=y.length;_c&&(s=c,l=u.model.getLineMaxColumn(s)),re.d.fromModelState(new re.f(new z.a(_.lineNumber,1,s,l),0,new H.a(s,l),0))}var d=y.modelState.selectionStart.getStartPosition().lineNumber;if(_.lineNumberd){var c=u.viewModel.getLineCount(),m=p.lineNumber+1,E=1;return m>c&&(m=c,E=u.viewModel.getLineMaxColumn(m)),re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),m,E,0))}else{var L=y.modelState.selectionStart.getEndPosition();return re.d.fromModelState(y.modelState.move(y.modelState.hasSelection(),L.lineNumber,L.column,0))}},x.word=function(u,y,w,f){var v=u.model.validatePosition(f);return re.d.fromModelState(I.a.word(u.config,u.model,y.modelState,w,v))},x.cancelSelection=function(u,y){if(!y.modelState.hasSelection())return new re.d(y.modelState,y.viewState);var w=y.viewState.position.lineNumber,f=y.viewState.position.column;return re.d.fromViewState(new re.f(new z.a(w,f,w,f),0,new H.a(w,f),0))},x.moveTo=function(u,y,w,f,v){var _=u.model.validatePosition(f),p=v?u.validateViewPosition(new H.a(v.lineNumber,v.column),_):u.convertModelPositionToViewPosition(_);return re.d.fromViewState(y.viewState.move(w,p.lineNumber,p.column,0))},x.move=function(u,y,w){var f=w.select,v=w.value;switch(w.direction){case 0:return w.unit===4?this._moveHalfLineLeft(u,y,f):this._moveLeft(u,y,f,v);case 1:return w.unit===4?this._moveHalfLineRight(u,y,f):this._moveRight(u,y,f,v);case 2:return w.unit===2?this._moveUpByViewLines(u,y,f,v):this._moveUpByModelLines(u,y,f,v);case 3:return w.unit===2?this._moveDownByViewLines(u,y,f,v):this._moveDownByModelLines(u,y,f,v);case 4:return this._moveToViewMinColumn(u,y,f);case 5:return this._moveToViewFirstNonWhitespaceColumn(u,y,f);case 6:return this._moveToViewCenterColumn(u,y,f);case 7:return this._moveToViewMaxColumn(u,y,f);case 8:return this._moveToViewLastNonWhitespaceColumn(u,y,f);case 9:{var _=y[0],p=u.getCompletelyVisibleModelRange(),c=this._firstLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,_,f,c,s)]}case 11:{var _=y[0],p=u.getCompletelyVisibleModelRange(),c=this._lastLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,_,f,c,s)]}case 10:{var _=y[0],p=u.getCompletelyVisibleModelRange(),c=Math.round((p.startLineNumber+p.endLineNumber)/2),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,_,f,c,s)]}case 12:{for(var l=u.getCompletelyVisibleViewRange(),d=[],m=0,E=y.length;mw.endLineNumber-1&&(v=w.endLineNumber-1),v1),this._hasNonEmptySelection.set(t.some(function(i){return!i.isEmpty()}))):(this._hasMultipleSelections.reset(),this._hasNonEmptySelection.reset())},o.prototype._updateFromFocus=function(){this._editorFocus.set(this._editor.hasWidgetFocus()&&!this._editor.isSimpleWidget),this._editorTextFocus.set(this._editor.hasTextFocus()&&!this._editor.isSimpleWidget),this._textInputFocus.set(this._editor.hasTextFocus())},o.prototype._updateFromModel=function(){var t=this._editor.getModel();this._canUndo.set(Boolean(t&&t.canUndo())),this._canRedo.set(Boolean(t&&t.canRedo()))},o}(z.a),Ws=function(V){Li(o,V);function o(t,i){var g=V.call(this)||this;g._editor=t,g._contextKeyService=i,g._langId=Jo.a.languageId.bindTo(i),g._hasCompletionItemProvider=Jo.a.hasCompletionItemProvider.bindTo(i),g._hasCodeActionsProvider=Jo.a.hasCodeActionsProvider.bindTo(i),g._hasCodeLensProvider=Jo.a.hasCodeLensProvider.bindTo(i),g._hasDefinitionProvider=Jo.a.hasDefinitionProvider.bindTo(i),g._hasDeclarationProvider=Jo.a.hasDeclarationProvider.bindTo(i),g._hasImplementationProvider=Jo.a.hasImplementationProvider.bindTo(i),g._hasTypeDefinitionProvider=Jo.a.hasTypeDefinitionProvider.bindTo(i),g._hasHoverProvider=Jo.a.hasHoverProvider.bindTo(i),g._hasDocumentHighlightProvider=Jo.a.hasDocumentHighlightProvider.bindTo(i),g._hasDocumentSymbolProvider=Jo.a.hasDocumentSymbolProvider.bindTo(i),g._hasReferenceProvider=Jo.a.hasReferenceProvider.bindTo(i),g._hasRenameProvider=Jo.a.hasRenameProvider.bindTo(i),g._hasSignatureHelpProvider=Jo.a.hasSignatureHelpProvider.bindTo(i),g._hasDocumentFormattingProvider=Jo.a.hasDocumentFormattingProvider.bindTo(i),g._hasDocumentSelectionFormattingProvider=Jo.a.hasDocumentSelectionFormattingProvider.bindTo(i),g._hasMultipleDocumentFormattingProvider=Jo.a.hasMultipleDocumentFormattingProvider.bindTo(i),g._hasMultipleDocumentSelectionFormattingProvider=Jo.a.hasMultipleDocumentSelectionFormattingProvider.bindTo(i),g._isInWalkThrough=Jo.a.isInEmbeddedEditor.bindTo(i);var b=function(){return g._update()};return g._register(t.onDidChangeModel(b)),g._register(t.onDidChangeModelLanguage(b)),g._register($o.d.onDidChange(b)),g._register($o.a.onDidChange(b)),g._register($o.b.onDidChange(b)),g._register($o.f.onDidChange(b)),g._register($o.e.onDidChange(b)),g._register($o.q.onDidChange(b)),g._register($o.C.onDidChange(b)),g._register($o.p.onDidChange(b)),g._register($o.i.onDidChange(b)),g._register($o.m.onDidChange(b)),g._register($o.u.onDidChange(b)),g._register($o.v.onDidChange(b)),g._register($o.g.onDidChange(b)),g._register($o.j.onDidChange(b)),g._register($o.x.onDidChange(b)),b(),g}return o.prototype.dispose=function(){V.prototype.dispose.call(this)},o.prototype.reset=function(){var t=this;this._contextKeyService.bufferChangeEvents(function(){t._langId.reset(),t._hasCompletionItemProvider.reset(),t._hasCodeActionsProvider.reset(),t._hasCodeLensProvider.reset(),t._hasDefinitionProvider.reset(),t._hasDeclarationProvider.reset(),t._hasImplementationProvider.reset(),t._hasTypeDefinitionProvider.reset(),t._hasHoverProvider.reset(),t._hasDocumentHighlightProvider.reset(),t._hasDocumentSymbolProvider.reset(),t._hasReferenceProvider.reset(),t._hasRenameProvider.reset(),t._hasDocumentFormattingProvider.reset(),t._hasDocumentSelectionFormattingProvider.reset(),t._hasSignatureHelpProvider.reset(),t._isInWalkThrough.reset()})},o.prototype._update=function(){var t=this,i=this._editor.getModel();if(!i){this.reset();return}this._contextKeyService.bufferChangeEvents(function(){t._langId.set(i.getLanguageIdentifier().language),t._hasCompletionItemProvider.set($o.d.has(i)),t._hasCodeActionsProvider.set($o.a.has(i)),t._hasCodeLensProvider.set($o.b.has(i)),t._hasDefinitionProvider.set($o.f.has(i)),t._hasDeclarationProvider.set($o.e.has(i)),t._hasImplementationProvider.set($o.q.has(i)),t._hasTypeDefinitionProvider.set($o.C.has(i)),t._hasHoverProvider.set($o.p.has(i)),t._hasDocumentHighlightProvider.set($o.i.has(i)),t._hasDocumentSymbolProvider.set($o.m.has(i)),t._hasReferenceProvider.set($o.u.has(i)),t._hasRenameProvider.set($o.v.has(i)),t._hasSignatureHelpProvider.set($o.x.has(i)),t._hasDocumentFormattingProvider.set($o.g.has(i)||$o.j.has(i)),t._hasDocumentSelectionFormattingProvider.set($o.j.has(i)),t._hasMultipleDocumentFormattingProvider.set($o.g.all(i).length+$o.j.all(i).length>1),t._hasMultipleDocumentSelectionFormattingProvider.set($o.j.all(i).length>1),t._isInWalkThrough.set(i.uri.scheme===O.b.walkThroughSnippet)})},o}(z.a),Br=function(V){Li(o,V);function o(t){var i=V.call(this)||this;return i._onChange=i._register(new U.a),i.onChange=i._onChange.event,i._hasFocus=!1,i._domFocusTracker=i._register(J.Z(t)),i._register(i._domFocusTracker.onDidFocus(function(){i._hasFocus=!0,i._onChange.fire(void 0)})),i._register(i._domFocusTracker.onDidBlur(function(){i._hasFocus=!1,i._onChange.fire(void 0)})),i}return o.prototype.hasFocus=function(){return this._hasFocus},o}(z.a),Bs=encodeURIComponent("");function vi(V){return Bs+encodeURIComponent(V.toString())+Hr}var Hs=encodeURIComponent('');function Bi(V){return Hs+encodeURIComponent(V.toString())+Wi}Object(X.e)(function(V,o){var t=V.getColor(Tn.p);t&&o.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+t+"; }");var i=V.getColor(Tn.q);i&&o.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+vi(i)+'") repeat-x bottom left; }');var g=V.getColor(Tn.O);g&&o.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+g+"; }");var b=V.getColor(Tn.P);b&&o.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+vi(b)+'") repeat-x bottom left; }');var K=V.getColor(Tn.G);K&&o.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+K+"; }");var Ie=V.getColor(Tn.H);Ie&&o.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+vi(Ie)+'") repeat-x bottom left; }');var Le=V.getColor(Tn.y);Le&&o.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+Le+"; }");var qe=V.getColor(Tn.z);qe&&o.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Bi(qe)+'") no-repeat bottom left; }');var ct=V.getColor(lt.o);ct&&o.addRule(".monaco-editor.showUnused .squiggly-inline-unnecessary { opacity: "+ct.rgba.a+"; }");var wt=V.getColor(lt.n);wt&&o.addRule(".monaco-editor.showUnused .squiggly-unnecessary { border-bottom: 2px dashed "+wt+"; }");var et=V.getColor(Tn.x)||"inherit";o.addRule(".monaco-editor .squiggly-inline-deprecated { text-decoration: line-through; text-decoration-color: "+et+"}")})},nD70:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T}),e.d(j,"b",function(){return re});var T=function(){function J(I){this._prefix=I,this._lastId=0}return J.prototype.nextId=function(){return this._prefix+ ++this._lastId},J}(),re=new T("id#")},nlbu:function(Lt,j,e){"use strict";e.d(j,"b",function(){return re}),e.d(j,"d",function(){return J}),e.d(j,"c",function(){return I}),e.d(j,"a",function(){return z});var T=e("N0LK"),re=function(){function O(H){this.value=H}return O.prototype.equals=function(H){return this.value===H.value},O.prototype.contains=function(H){return this.equals(H)||this.value===""||Object(T.N)(H.value,this.value+O.sep)},O.prototype.intersects=function(H){return this.contains(H)||H.contains(this)},O.prototype.append=function(H){return new O(this.value+O.sep+H)},O.sep=".",O.None=new O("@@none@@"),O.Empty=new O(""),O.QuickFix=new O("quickfix"),O.Refactor=new O("refactor"),O.Source=new O("source"),O.SourceOrganizeImports=O.Source.append("organizeImports"),O.SourceFixAll=O.Source.append("fixAll"),O}();function J(O,H){return O.include&&!O.include.intersects(H)||O.excludes&&O.excludes.some(function(x){return U(H,x,O.include)})?!1:!(!O.includeSourceActions&&re.Source.contains(H))}function I(O,H){var x=H.kind?new re(H.kind):void 0;return O.include&&(!x||!O.include.contains(x))||(O.excludes&&(x&&O.excludes.some(function(u){return U(x,u,O.include)}))||!O.includeSourceActions&&(x&&re.Source.contains(x)))?!1:!(O.onlyIncludePreferredActions&&!H.isPreferred)}function U(O,H,x){return H.contains(O)?!(x&&H.contains(x)):!1}var z=function(){function O(H,x,u){this.kind=H,this.apply=x,this.preferred=u}return O.fromUser=function(H,x){return!H||typeof H!="object"?new O(x.kind,x.apply,!1):new O(O.getKindFromUser(H,x.kind),O.getApplyFromUser(H,x.apply),O.getPreferredUser(H))},O.getApplyFromUser=function(H,x){switch(typeof H.apply=="string"?H.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return x}},O.getKindFromUser=function(H,x){return typeof H.kind=="string"?new re(H.kind):x},O.getPreferredUser=function(H){return typeof H.preferred=="boolean"?H.preferred:!1},O}()},nn6Y:function(Lt,j,e){},nnTU:function(Lt,j,e){"use strict";e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x});var T=e("pmY6"),re=e("746U"),J=e("Cg/j"),I=e("MI8n"),U=e("24hK"),z=e("QDVR"),O=function(){for(var u=0,y=0,_=arguments.length;y<_;y++)u+=arguments[y].length;for(var f=Array(u),v=0,y=0;y<_;y++)for(var w=arguments[y],p=0,c=w.length;p=21&&u<=30||u>=31&&u<=56?!0:u===80||u===81||u===82||u===83||u===84||u===85||u===86||u===110||u===111||u===87||u===88||u===89||u===90||u===91||u===92},x.prototype._assertNoCtrlAlt=function(u,y){u.ctrlKey&&u.altKey&&!u.metaKey&&(x._mightProduceChar(u.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",u," for ",y))},x.prototype._registerDefaultKeybinding=function(u,y,_,f,v,w){re.a===1&&this._assertNoCtrlAlt(u.parts[0],y),this._coreKeybindings.push({keybinding:u,command:y,commandArgs:_,when:w,weight1:f,weight2:v}),this._cachedMergedKeybindings=null},x.prototype.getDefaultKeybindings=function(){return this._cachedMergedKeybindings||(this._cachedMergedKeybindings=[].concat(this._coreKeybindings).concat(this._extensionKeybindings),this._cachedMergedKeybindings.sort(H)),this._cachedMergedKeybindings.slice(0)},x}(),z=new U,O={EditorModes:"platform.keybindingsRegistry"};I.a.add(O.EditorModes,z);function H(x,u){return x.weight1!==u.weight1?x.weight1-u.weight1:x.commandu.command?1:x.weight2-u.weight2}},nuFA:function(Lt,j,e){"use strict";e.d(j,"a",function(){return T});var T;(function(re){function J(O,H){if(O.start>=H.end||H.start>=O.end)return{start:0,end:0};var x=Math.max(O.start,H.start),u=Math.min(O.end,H.end);return u-x<=0?{start:0,end:0}:{start:x,end:u}}re.intersect=J;function I(O){return O.end-O.start<=0}re.isEmpty=I;function U(O,H){return!I(J(O,H))}re.intersects=U;function z(O,H){var x=[],u={start:O.start,end:Math.min(H.start,O.end)},y={start:Math.max(H.end,O.start),end:O.end};return I(u)||x.push(u),I(y)||x.push(y),x}re.relativeComplement=z})(T||(T={}))},o39E:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I});var T=e("pmY6"),re=e("EffR"),J=function(){var U=function(O,H){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,u){x.__proto__=u}||function(x,u){for(var y in u)u.hasOwnProperty(y)&&(x[y]=u[y])},U(O,H)};return function(z,O){U(z,O);function H(){this.constructor=z}z.prototype=O===null?Object.create(O):(H.prototype=O.prototype,new H)}}(),I=function(U){J(z,U);function z(O,H,x){var u=U.call(this)||this;return u.referenceDomElement=O,u.changeCallback=x,u.width=-1,u.height=-1,u.mutationObserver=null,u.windowSizeListener=null,u.measureReferenceDomElement(!1,H),u}return z.prototype.dispose=function(){this.stopObserving(),U.prototype.dispose.call(this)},z.prototype.getWidth=function(){return this.width},z.prototype.getHeight=function(){return this.height},z.prototype.startObserving=function(){var O=this;!this.mutationObserver&&this.referenceDomElement&&(this.mutationObserver=new MutationObserver(function(){return O._onDidMutate()}),this.mutationObserver.observe(this.referenceDomElement,{attributes:!0})),this.windowSizeListener||(this.windowSizeListener=re.j(window,"resize",function(){return O._onDidResizeWindow()}))},z.prototype.stopObserving=function(){this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=null),this.windowSizeListener&&(this.windowSizeListener.dispose(),this.windowSizeListener=null)},z.prototype.observe=function(O){this.measureReferenceDomElement(!0,O)},z.prototype._onDidMutate=function(){this.measureReferenceDomElement(!0)},z.prototype._onDidResizeWindow=function(){this.measureReferenceDomElement(!0)},z.prototype.measureReferenceDomElement=function(O,H){var x=0,u=0;H?(x=H.width,u=H.height):this.referenceDomElement&&(x=this.referenceDomElement.clientWidth,u=this.referenceDomElement.clientHeight),x=Math.max(5,x),u=Math.max(5,u),(this.width!==x||this.height!==u)&&(this.width=x,this.height=u,O&&this.changeCallback())},z}(T.a)},oAeH:function(Lt,j,e){"use strict";e.d(j,"b",function(){return O}),e.d(j,"a",function(){return H});var T=e("746U"),re=e("Ll0s"),J=e("+Fos"),I=e("1I1M"),U=e("cGHE"),z=e("aokT"),O=function(){function x(){}return x.addCursorDown=function(u,y,_){for(var f=[],v=0,w=0,p=y.length;wc&&(s=c,l=u.model.getLineMaxColumn(s)),re.d.fromModelState(new re.f(new z.a(w.lineNumber,1,s,l),0,new U.a(s,l),0))}var d=y.modelState.selectionStart.getStartPosition().lineNumber;if(w.lineNumberd){var c=u.viewModel.getLineCount(),m=p.lineNumber+1,E=1;return m>c&&(m=c,E=u.viewModel.getLineMaxColumn(m)),re.d.fromViewState(y.viewState.move(y.modelState.hasSelection(),m,E,0))}else{var L=y.modelState.selectionStart.getEndPosition();return re.d.fromModelState(y.modelState.move(y.modelState.hasSelection(),L.lineNumber,L.column,0))}},x.word=function(u,y,_,f){var v=u.model.validatePosition(f);return re.d.fromModelState(I.a.word(u.config,u.model,y.modelState,_,v))},x.cancelSelection=function(u,y){if(!y.modelState.hasSelection())return new re.d(y.modelState,y.viewState);var _=y.viewState.position.lineNumber,f=y.viewState.position.column;return re.d.fromViewState(new re.f(new z.a(_,f,_,f),0,new U.a(_,f),0))},x.moveTo=function(u,y,_,f,v){var w=u.model.validatePosition(f),p=v?u.validateViewPosition(new U.a(v.lineNumber,v.column),w):u.convertModelPositionToViewPosition(w);return re.d.fromViewState(y.viewState.move(_,p.lineNumber,p.column,0))},x.move=function(u,y,_){var f=_.select,v=_.value;switch(_.direction){case 0:return _.unit===4?this._moveHalfLineLeft(u,y,f):this._moveLeft(u,y,f,v);case 1:return _.unit===4?this._moveHalfLineRight(u,y,f):this._moveRight(u,y,f,v);case 2:return _.unit===2?this._moveUpByViewLines(u,y,f,v):this._moveUpByModelLines(u,y,f,v);case 3:return _.unit===2?this._moveDownByViewLines(u,y,f,v):this._moveDownByModelLines(u,y,f,v);case 4:return this._moveToViewMinColumn(u,y,f);case 5:return this._moveToViewFirstNonWhitespaceColumn(u,y,f);case 6:return this._moveToViewCenterColumn(u,y,f);case 7:return this._moveToViewMaxColumn(u,y,f);case 8:return this._moveToViewLastNonWhitespaceColumn(u,y,f);case 9:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=this._firstLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 11:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=this._lastLineNumberInRange(u.model,p,v),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 10:{var w=y[0],p=u.getCompletelyVisibleModelRange(),c=Math.round((p.startLineNumber+p.endLineNumber)/2),s=u.model.getLineFirstNonWhitespaceColumn(c);return[this._moveToModelPosition(u,w,f,c,s)]}case 12:{for(var l=u.getCompletelyVisibleViewRange(),d=[],m=0,E=y.length;m_.endLineNumber-1&&(v=_.endLineNumber-1),v<_.startLineNumber&&(v=_.startLineNumber);var w=u.viewModel.getLineFirstNonWhitespaceColumn(v);return this._moveToViewPosition(u,y,f,v,w)},x._firstLineNumberInRange=function(u,y,_){var f=y.startLineNumber;return y.startColumn!==u.getLineMinColumn(f)&&f++,Math.min(y.endLineNumber,f+_-1)},x._lastLineNumberInRange=function(u,y,_){var f=y.startLineNumber;return y.startColumn!==u.getLineMinColumn(f)&&f++,Math.max(f,y.endLineNumber-_+1)},x._moveLeft=function(u,y,_,f){for(var v=[],w=0,p=y.length;w=0?Oe+1:1},yt.prototype.getCurrentMatchesPosition=function(Ue){for(var Oe=this._editor.getModel().getDecorationsInRange(Ue),rt=0,It=Oe;rt1e3){pe=yt._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var ye=rt._editor.getModel().getLineCount(),We=rt._editor.getLayoutInfo().height,Ze=We/ye,st=Math.max(2,Math.ceil(3/Ze)),mt=Ue[0].range.startLineNumber,Kt=Ue[0].range.endLineNumber,Xt=1,no=Ue.length;Xt=vo.startLineNumber?vo.endLineNumber>Kt&&(Kt=vo.endLineNumber):(D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),mt=vo.startLineNumber,Kt=vo.endLineNumber)}D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var lo=new Array(Ue.length),Xt=0,no=Ue.length;Xt=0;Oe--){var rt=this._decorations[Oe],It=this._editor.getModel().getDecorationRange(rt);if(!It||It.endLineNumber>Ue.lineNumber)continue;if(It.endLineNumberUe.column)continue;return It}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},yt.prototype.matchAfterPosition=function(Ue){if(this._decorations.length===0)return null;for(var Oe=0,rt=this._decorations.length;OeUe.lineNumber)return pe;if(pe.startColumn0){for(var rt=[],It=0;It0;){if(Ue=rt)break;var pe=yt.charCodeAt(Oe);switch(pe){case 92:Ue.emitUnchanged(Oe-1),Ue.emitStatic("\\",Oe+1);break;case 110:Ue.emitUnchanged(Oe-1),Ue.emitStatic(` -`,Oe+1);break;case 116:Ue.emitUnchanged(Oe-1),Ue.emitStatic(" ",Oe+1);break}continue}if(It===36){if(Oe++,Oe>=rt)break;var pe=yt.charCodeAt(Oe);if(pe===36){Ue.emitUnchanged(Oe-1),Ue.emitStatic("$",Oe+1);continue}if(pe===48||pe===38){Ue.emitUnchanged(Oe-1),Ue.emitMatchIndex(0,Oe+1);continue}if(49<=pe&&pe<=57){var D=pe-48;if(Oe+10},yt.prototype._cannotFind=function(){if(!this._hasMatches()){var Ue=this._decorations.getFindScope();return Ue&&this._editor.revealRangeInCenterIfOutsideViewport(Ue,0),!0}return!1},yt.prototype._setCurrentFindMatch=function(Ue){var Oe=this._decorations.setCurrentFindMatch(Ue);this._state.changeMatchInfo(Oe,this._decorations.getCount(),Ue),this._editor.setSelection(Ue),this._editor.revealRangeInCenterIfOutsideViewport(Ue,0)},yt.prototype._prevSearchPosition=function(Ue){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=Ue.lineNumber,It=Ue.column,pe=this._editor.getModel();return Oe||It===1?(rt===1?rt=pe.getLineCount():rt--,It=pe.getLineMaxColumn(rt)):It--,new U.a(rt,It)},yt.prototype._moveToPrevMatch=function(Ue,Oe){if(Oe===void 0&&(Oe=!1),this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),rt=Ue.lineNumber,It=Ue.column,pe=this._editor.getModel();return Oe||It===pe.getLineMaxColumn(rt)?(rt===pe.getLineCount()?rt=1:rt++,It=1):It++,new U.a(rt,It)},yt.prototype._moveToNextMatch=function(Ue){if(this._decorations.getCount()=He?this._largeReplaceAll():this._regularReplaceAll(Ue),this.research(!1)},yt.prototype._largeReplaceAll=function(){var Ue=new y.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Oe=Ue.parseSearchRequest();if(!Oe)return;var rt=Oe.regex;if(!rt.multiline){var It="mu";rt.ignoreCase&&(It+="i"),rt.global&&(It+="g"),rt=new RegExp(rt.source,It)}var pe=this._editor.getModel(),D=pe.getValue(1),ye=pe.getFullModelRange(),We=this._getReplacePattern(),Ze,st=this._state.preserveCase;We.hasReplacementPatterns||st?Ze=D.replace(rt,function(){return We.buildReplaceString(arguments,st)}):Ze=D.replace(rt,We.buildReplaceString(null,st));var mt=new O.b(ye,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",mt)},yt.prototype._regularReplaceAll=function(Ue){for(var Oe=this._getReplacePattern(),rt=this._findMatches(Ue,Oe.hasReplacementPatterns||this._state.preserveCase,1073741824),It=[],pe=0,D=rt.length;pert&&(Oe=rt),this._matchesPosition!==Oe&&(this._matchesPosition=Oe,pe.matchesPosition=!0,D=!0),this._matchesCount!==rt&&(this._matchesCount=rt,pe.matchesCount=!0,D=!0),typeof It!="undefined"&&(x.a.equalsRange(this._currentMatch,It)||(this._currentMatch=It,pe.currentMatch=!0,D=!0)),D&&this._onFindReplaceStateChange.fire(pe)},Ue.prototype.change=function(Oe,rt,It){It===void 0&&(It=!0);var pe={moveCursor:rt,updateHistory:It,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},D=!1,ye=this.isRegex,We=this.wholeWord,Ze=this.matchCase,st=this.preserveCase;typeof Oe.searchString!="undefined"&&(this._searchString!==Oe.searchString&&(this._searchString=Oe.searchString,pe.searchString=!0,D=!0)),typeof Oe.replaceString!="undefined"&&(this._replaceString!==Oe.replaceString&&(this._replaceString=Oe.replaceString,pe.replaceString=!0,D=!0)),typeof Oe.isRevealed!="undefined"&&(this._isRevealed!==Oe.isRevealed&&(this._isRevealed=Oe.isRevealed,pe.isRevealed=!0,D=!0)),typeof Oe.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==Oe.isReplaceRevealed&&(this._isReplaceRevealed=Oe.isReplaceRevealed,pe.isReplaceRevealed=!0,D=!0)),typeof Oe.isRegex!="undefined"&&(this._isRegex=Oe.isRegex),typeof Oe.wholeWord!="undefined"&&(this._wholeWord=Oe.wholeWord),typeof Oe.matchCase!="undefined"&&(this._matchCase=Oe.matchCase),typeof Oe.preserveCase!="undefined"&&(this._preserveCase=Oe.preserveCase),typeof Oe.searchScope!="undefined"&&(x.a.equalsRange(this._searchScope,Oe.searchScope)||(this._searchScope=Oe.searchScope,pe.searchScope=!0,D=!0)),this._isRegexOverride=typeof Oe.isRegexOverride!="undefined"?Oe.isRegexOverride:0,this._wholeWordOverride=typeof Oe.wholeWordOverride!="undefined"?Oe.wholeWordOverride:0,this._matchCaseOverride=typeof Oe.matchCaseOverride!="undefined"?Oe.matchCaseOverride:0,this._preserveCaseOverride=typeof Oe.preserveCaseOverride!="undefined"?Oe.preserveCaseOverride:0,ye!==this.isRegex&&(D=!0,pe.isRegex=!0),We!==this.wholeWord&&(D=!0,pe.wholeWord=!0),Ze!==this.matchCase&&(D=!0,pe.matchCase=!0),st!==this.preserveCase&&(D=!0,pe.preserveCase=!0),D&&this._onFindReplaceStateChange.fire(pe)},Ue}(J.a),Se=e("AbCa"),Ve=e("OBOq"),Qe=e("cMOf"),it=e("/cxE"),pt=e("MNsG"),Rt=e("yqFB"),Mt=e("0+8E"),zt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(Ue,Oe){yt(Ue,Oe);function rt(){this.constructor=Ue}Ue.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),uo=T.a("defaultLabel","input"),ao=function(yt){zt(Ue,yt);function Ue(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D.onMouseDown=D._onMouseDown.event,D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onCaseSensitiveKeyDown=D._register(new X.a),D.onCaseSensitiveKeyDown=D._onCaseSensitiveKeyDown.event,D._onRegexKeyDown=D._register(new X.a),D.onRegexKeyDown=D._onRegexKeyDown.event,D._lastHighlightFindOptions=0,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||uo,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.appendCaseSensitiveLabel||"",We=pe.appendWholeWordsLabel||"",Ze=pe.appendRegexLabel||"",st=pe.history||[],mt=!!pe.flexibleHeight,Kt=!!pe.flexibleWidth,Xt=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{placeholder:D.placeholder||"",ariaLabel:D.label||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:st,flexibleHeight:mt,flexibleWidth:Kt,flexibleMaxHeight:Xt})),D.regex=D._register(new C({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.regex.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.regex.onKeyDown(function(lo){D._onRegexKeyDown.fire(lo)})),D.wholeWords=D._register(new Q({appendTitle:We,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.wholeWords.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D.caseSensitive=D._register(new ve({appendTitle:ye,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.caseSensitive.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.caseSensitive.onKeyDown(function(lo){D._onCaseSensitiveKeyDown.fire(lo)})),D._showOptionButtons&&(D.inputBox.paddingRight=D.caseSensitive.width()+D.wholeWords.width()+D.regex.width());var no=[D.caseSensitive.domNode,D.wholeWords.domNode,D.regex.domNode];D.onkeydown(D.domNode,function(lo){if(lo.equals(15)||lo.equals(17)||lo.equals(9)){var Ro=no.indexOf(document.activeElement);if(Ro>=0){var _o=-1;lo.equals(17)?_o=(Ro+1)%no.length:lo.equals(15)&&(Ro===0?_o=no.length-1:_o=Ro-1),lo.equals(9)?no[Ro].blur():_o>=0&&no[_o].focus(),ee.c.stop(lo,!0)}}});var vo=document.createElement("div");return vo.className="controls",vo.style.display=D._showOptionButtons?"block":"none",vo.appendChild(D.caseSensitive.domNode),vo.appendChild(D.wholeWords.domNode),vo.appendChild(D.regex.domNode),D.domNode.appendChild(vo),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(lo){return D._onKeyDown.fire(lo)}),D.onkeyup(D.inputBox.inputElement,function(lo){return D._onKeyUp.fire(lo)}),D.oninput(D.inputBox.inputElement,function(lo){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(lo){return D._onMouseDown.fire(lo)}),D}return Ue.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},Ue.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},Ue.prototype.setFocusInputOnOptionClick=function(Oe){this.fixFocusOnOptionClickEnabled=Oe},Ue.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},Ue.prototype.getValue=function(){return this.inputBox.value},Ue.prototype.setValue=function(Oe){this.inputBox.value!==Oe&&(this.inputBox.value=Oe)},Ue.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},Ue.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Oe),this.wholeWords.style(Oe),this.caseSensitive.style(Oe);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},Ue.prototype.select=function(){this.inputBox.select()},Ue.prototype.focus=function(){this.inputBox.focus()},Ue.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},Ue.prototype.setCaseSensitive=function(Oe){this.caseSensitive.checked=Oe},Ue.prototype.getWholeWords=function(){return this.wholeWords.checked},Ue.prototype.setWholeWords=function(Oe){this.wholeWords.checked=Oe},Ue.prototype.getRegex=function(){return this.regex.checked},Ue.prototype.setRegex=function(Oe){this.regex.checked=Oe,this.validate()},Ue.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},Ue.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},Ue.prototype.validate=function(){this.inputBox.validate()},Ue.prototype.clearMessage=function(){this.inputBox.hideMessage()},Ue}(q.a),so=e("nrhi"),Pt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(Ue,Oe){yt(Ue,Oe);function rt(){this.constructor=Ue}Ue.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ft=T.a("defaultLabel","input"),vt=T.a("label.preserveCaseCheckbox","Preserve Case"),At=function(yt){Pt(Ue,yt);function Ue(Oe){return yt.call(this,{actionClassName:"codicon-preserve-case",title:vt+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return Ue}(me),at=function(yt){Pt(Ue,yt);function Ue(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D.cachedOptionsWidth=0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onPreserveCaseKeyDown=D._register(new X.a),D.onPreserveCaseKeyDown=D._onPreserveCaseKeyDown.event,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||ft,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.history||[],We=!!pe.flexibleHeight,Ze=!!pe.flexibleWidth,st=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{ariaLabel:D.label||"",placeholder:D.placeholder||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:ye,flexibleHeight:We,flexibleWidth:Ze,flexibleMaxHeight:st})),D.preserveCase=D._register(new At({appendTitle:"",isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.preserveCase.onChange(function(Xt){D._onDidOptionChange.fire(Xt),!Xt&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.preserveCase.onKeyDown(function(Xt){D._onPreserveCaseKeyDown.fire(Xt)})),D._showOptionButtons?D.cachedOptionsWidth=D.preserveCase.width():D.cachedOptionsWidth=0;var mt=[D.preserveCase.domNode];D.onkeydown(D.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var no=mt.indexOf(document.activeElement);if(no>=0){var vo=-1;Xt.equals(17)?vo=(no+1)%mt.length:Xt.equals(15)&&(no===0?vo=mt.length-1:vo=no-1),Xt.equals(9)?mt[no].blur():vo>=0&&mt[vo].focus(),ee.c.stop(Xt,!0)}}});var Kt=document.createElement("div");return Kt.className="controls",Kt.style.display=D._showOptionButtons?"block":"none",Kt.appendChild(D.preserveCase.domNode),D.domNode.appendChild(Kt),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(Xt){return D._onKeyDown.fire(Xt)}),D.onkeyup(D.inputBox.inputElement,function(Xt){return D._onKeyUp.fire(Xt)}),D.oninput(D.inputBox.inputElement,function(Xt){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(Xt){return D._onMouseDown.fire(Xt)}),D}return Ue.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},Ue.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},Ue.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},Ue.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},Ue.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Oe);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},Ue.prototype.select=function(){this.inputBox.select()},Ue.prototype.focus=function(){this.inputBox.focus()},Ue.prototype.getPreserveCase=function(){return this.preserveCase.checked},Ue.prototype.setPreserveCase=function(Oe){this.preserveCase.checked=Oe},Ue.prototype.focusOnPreserve=function(){this.preserveCase.focus()},Ue.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(Ue.prototype,"width",{set:function(rt){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=rt,this.domNode.style.width=rt+"px"},enumerable:!0,configurable:!0}),Ue.prototype.dispose=function(){yt.prototype.dispose.call(this)},Ue}(q.a),tt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(Ue,Oe){yt(Ue,Oe);function rt(){this.constructor=Ue}Ue.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ut=function(yt,Ue,Oe,rt){var It=arguments.length,pe=It<3?Ue:rt===null?rt=Object.getOwnPropertyDescriptor(Ue,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,Ue,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(Ue,Oe,pe):D(Ue,Oe))||pe);return It>3&&pe&&Object.defineProperty(Ue,Oe,pe),pe},Ct=function(yt,Ue){return function(Oe,rt){Ue(Oe,rt,yt)}},gt="historyNavigationWidget",bt="historyNavigationEnabled";function Gt(yt,Ue,Oe){new $.d(Oe,Ue).bindTo(yt)}function Nt(yt,Ue){return yt.createScoped(Ue.target)}function Et(yt,Ue){return yt.getContext(document.activeElement).getValue(Ue)}function Je(yt,Ue){var Oe=Nt(yt,Ue);Gt(Oe,Ue,gt);var rt=new $.d(bt,!0).bindTo(Oe);return{scopedContextKeyService:Oe,historyNavigationEnablement:rt}}var $e=function(yt){tt(Ue,yt);function Ue(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return Ue=ut([Ct(3,$.c)],Ue),Ue}(ao),ze=function(yt){tt(Ue,yt);function Ue(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return Ue=ut([Ct(3,$.c)],Ue),Ue}(at);so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:16,secondary:[512|16],handler:function(Ue,Oe){var rt=Et(Ue.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showPreviousValue()}}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:18,secondary:[512|18],handler:function(Ue,Oe){var rt=Et(Ue.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showNextValue()}}});var Ke=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(Ue,Oe){yt(Ue,Oe);function rt(){this.constructor=Ue}Ue.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),fe=T.a("label.find","Find"),G=T.a("placeholder.find","Find"),te=T.a("label.previousMatchButton","Previous match"),Y=T.a("label.nextMatchButton","Next match"),de=T.a("label.toggleSelectionFind","Find in selection"),ke=T.a("label.closeButton","Close"),lt=T.a("label.replace","Replace"),Tt=T.a("placeholder.replace","Replace"),Jt=T.a("label.replaceButton","Replace"),eo=T.a("label.replaceAllButton","Replace All"),po=T.a("label.toggleReplaceButton","Toggle Replace mode"),co=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",He),Eo=T.a("label.matchesLocation","{0} of {1}"),Oo=T.a("label.noResults","No Results"),Ao=419,Zo=275,Co=Zo-54,Wo=69,Go=33,Bo="ctrlEnterReplaceAll.windows.donotask",Mo=pt.e?256:2048,Qo=function(){function yt(Ue){this.afterLineNumber=Ue,this.heightInPx=Go,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return yt}();function fn(yt,Ue,Oe){var rt=!!Ue.match(/\n/);if(Oe&&rt&&Oe.selectionStart>0){yt.stopPropagation();return}}function Vo(yt,Ue,Oe){var rt=!!Ue.match(/\n/);if(Oe&&rt&&Oe.selectionEnd0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",rt),this._updateMatchesCount(),this._updateButtons()}(Oe.searchString||Oe.currentMatch)&&this._layoutViewZone(),Oe.updateHistory&&this._delayedUpdateHistory()},Ue.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},Ue.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},Ue.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wo+"px",this._state.matchesCount>=He?this._matchesCount.title=co:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Oe;if(this._state.matchesCount>0){var rt=String(this._state.matchesCount);this._state.matchesCount>=He&&(rt+="+");var It=String(this._state.matchesPosition);It==="0"&&(It="?"),Oe=I.r(Eo,It,rt)}else Oe=Oo;this._matchesCount.appendChild(document.createTextNode(Oe)),Object(Ve.a)(this._getAriaLabel(Oe,this._state.currentMatch,this._state.searchString),!0),Wo=Math.max(Wo,this._matchesCount.clientWidth)},Ue.prototype._getAriaLabel=function(Oe,rt,It){return Oe===Oo?It===""?T.a("ariaSearchNoResultEmpty","{0} found",Oe):T.a("ariaSearchNoResult","{0} found for {1}",Oe,It):rt?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Oe,It,rt.startLineNumber+":"+rt.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Oe,It)},Ue.prototype._updateToggleSelectionFindButton=function(){var Oe=this._codeEditor.getSelection(),rt=Oe?Oe.startLineNumber!==Oe.endLineNumber||Oe.startColumn!==Oe.endColumn:!1,It=this._toggleSelectionFind.checked;this._isVisible&&(It||rt)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},Ue.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Oe=this._state.searchString.length>0,rt=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Oe&&rt),this._nextBtn.setEnabled(this._isVisible&&Oe&&rt),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),ee.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var It=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&It)},Ue.prototype._reveal=function(){var Oe=this;if(!this._isVisible){this._isVisible=!0;var rt=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var It=!!rt&&rt.startLineNumber!==rt.endLineNumber;this._toggleSelectionFind.checked=It;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(Oe._domNode,"visible"),Oe._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Oe._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var pe=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&rt){var D=this._codeEditor.getDomNode();if(D){var ye=ee.C(D),We=this._codeEditor.getScrolledVisiblePosition(rt.getStartPosition()),Ze=ye.left+(We?We.left:0),st=We?We.top:0;if(this._viewZone&&strt.startLineNumber&&(pe=!1);var mt=ee.F(this._domNode).left;Ze>mt&&(pe=!1);var Kt=this._codeEditor.getScrolledVisiblePosition(rt.getEndPosition()),Xt=ye.left+(Kt?Kt.left:0);Xt>mt&&(pe=!1)}}}this._showViewZone(pe)}},Ue.prototype._hide=function(Oe){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Oe&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},Ue.prototype._layoutViewZone=function(){var Oe=this,rt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!rt){this._removeViewZone();return}if(!this._isVisible)return;var It=this._viewZone;if(this._viewZoneId!==void 0||!It)return;this._codeEditor.changeViewZones(function(pe){It.heightInPx=Oe._getHeight(),Oe._viewZoneId=pe.addZone(It),Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()+It.heightInPx)})},Ue.prototype._showViewZone=function(Oe){var rt=this;if(Oe===void 0&&(Oe=!0),!this._isVisible)return;var It=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!It)return;this._viewZone===void 0&&(this._viewZone=new Qo(0));var pe=this._viewZone;this._codeEditor.changeViewZones(function(D){if(rt._viewZoneId!==void 0){var ye=rt._getHeight();if(ye===pe.heightInPx)return;var We=ye-pe.heightInPx;pe.heightInPx=ye,D.layoutZone(rt._viewZoneId),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We);return}else{var We=rt._getHeight();pe.heightInPx=We,rt._viewZoneId=D.addZone(pe),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We)}})},Ue.prototype._removeViewZone=function(){var Oe=this;this._codeEditor.changeViewZones(function(rt){Oe._viewZoneId!==void 0&&(rt.removeZone(Oe._viewZoneId),Oe._viewZoneId=void 0,Oe._viewZone&&(Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()-Oe._viewZone.heightInPx),Oe._viewZone=void 0))})},Ue.prototype._applyTheme=function(Oe){var rt={inputActiveOptionBorder:Oe.getColor(v.Y),inputActiveOptionBackground:Oe.getColor(v.X),inputBackground:Oe.getColor(v.Z),inputForeground:Oe.getColor(v.bb),inputBorder:Oe.getColor(v.ab),inputValidationInfoBackground:Oe.getColor(v.fb),inputValidationInfoForeground:Oe.getColor(v.hb),inputValidationInfoBorder:Oe.getColor(v.gb),inputValidationWarningBackground:Oe.getColor(v.ib),inputValidationWarningForeground:Oe.getColor(v.kb),inputValidationWarningBorder:Oe.getColor(v.jb),inputValidationErrorBackground:Oe.getColor(v.cb),inputValidationErrorForeground:Oe.getColor(v.eb),inputValidationErrorBorder:Oe.getColor(v.db)};this._findInput.style(rt),this._replaceInput.style(rt),this._toggleSelectionFind.style(rt)},Ue.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var Oe=this._codeEditor.getLayoutInfo(),rt=Oe.contentWidth;if(rt<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var It=Oe.width,pe=Oe.minimapWidth,D=!1,ye=!1,We=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>Ao){this._domNode.style.maxWidth=It-28-pe-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(Ao+28+pe>=It&&(ye=!0),Ao+28+pe-Wo>=It&&(We=!0),Ao+28+pe-Wo>=It+50&&(D=!0),ee.Y(this._domNode,"collapsed-find-widget",D),ee.Y(this._domNode,"narrow-find-widget",We),ee.Y(this._domNode,"reduced-find-widget",ye),!We&&!D&&(this._domNode.style.maxWidth=It-28-pe-15+"px"),this._resized){this._findInput.inputBox.layout();var st=this._findInput.inputBox.element.clientWidth;st>0&&(this._replaceInput.width=st)}else this._isReplaceVisible&&(this._replaceInput.width=ee.H(this._findInput.domNode))},Ue.prototype._getHeight=function(){var Oe=0;return Oe+=4,Oe+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Oe+=4,Oe+=this._replaceInput.inputBox.height+2),Oe+=4,Oe},Ue.prototype._tryUpdateHeight=function(){var Oe=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Oe?!1:(this._cachedHeight=Oe,this._domNode.style.height=Oe+"px",!0)},Ue.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},Ue.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},Ue.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},Ue.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var Oe=this._codeEditor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Oe.endLineNumber-1)));var rt=this._state.currentMatch;Oe.startLineNumber!==Oe.endLineNumber&&(x.a.equalsRange(Oe,rt)||this._state.change({searchScope:Oe},!0))}},Ue.prototype._onFindInputMouseDown=function(Oe){Oe.middleButton&&Oe.stopPropagation()},Ue.prototype._onFindInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){this._findInput.inputBox.insertAtCursor(` -`),Oe.preventDefault();return}if(Oe.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},Ue.prototype._onReplaceInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){pt.h&&pt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(T.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Bo,!0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),Oe.preventDefault();return}if(Oe.equals(2)){this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(1024|2)){this._findInput.focus(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},Ue.prototype.getHorizontalSashTop=function(Oe){return 0},Ue.prototype.getHorizontalSashLeft=function(Oe){return 0},Ue.prototype.getHorizontalSashWidth=function(Oe){return 500},Ue.prototype._keybindingLabelFor=function(Oe){var rt=this._keybindingService.lookupKeybinding(Oe);return rt?" ("+rt.getLabel()+")":""},Ue.prototype._buildDomNode=function(){var Oe=this,rt=!0,It=!0;this._findInput=this._register(new $e(null,this._contextViewProvider,{width:Co,label:fe,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(Fe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Fe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Fe.ToggleRegexCommand),validation:function(mt){if(mt.length===0||!Oe._findInput.getRegex())return null;try{return new RegExp(mt),null}catch(Kt){return{content:Kt.message}}},flexibleHeight:rt,flexibleWidth:It,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(st){return Oe._onFindInputKeyDown(st)})),this._register(this._findInput.inputBox.onDidChange(function(){if(Oe._ignoreChangeEvent)return;Oe._state.change({searchString:Oe._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Oe._state.change({isRegex:Oe._findInput.getRegex(),wholeWord:Oe._findInput.getWholeWords(),matchCase:Oe._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(st){st.equals(1024|2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focus(),st.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(st){st.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focusOnPreserve(),st.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(st){Oe._tryUpdateHeight()&&Oe._showViewZone()})),pt.d&&this._register(this._findInput.onMouseDown(function(st){return Oe._onFindInputMouseDown(st)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new yn({label:te+this._keybindingLabelFor(Fe.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Oe._codeEditor.getAction(Fe.PreviousMatchFindAction).run().then(void 0,it.e)}})),this._nextBtn=this._register(new yn({label:Y+this._keybindingLabelFor(Fe.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Oe._codeEditor.getAction(Fe.NextMatchFindAction).run().then(void 0,it.e)}}));var pe=document.createElement("div");pe.className="find-part",pe.appendChild(this._findInput.domNode);var D=document.createElement("div");D.className="find-actions",pe.appendChild(D),D.appendChild(this._matchesCount),D.appendChild(this._prevBtn.domNode),D.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new me({actionClassName:"codicon codicon-selection",title:de+this._keybindingLabelFor(Fe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Oe._toggleSelectionFind.checked){if(Oe._codeEditor.hasModel()){var st=Oe._codeEditor.getSelection();st.endColumn===1&&st.endLineNumber>st.startLineNumber&&(st=st.setEndPosition(st.endLineNumber-1,Oe._codeEditor.getModel().getLineMaxColumn(st.endLineNumber-1))),st.isEmpty()||Oe._state.change({searchScope:st},!0)}}else Oe._state.change({searchScope:null},!0)})),D.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new yn({label:ke+this._keybindingLabelFor(Fe.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Oe._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(mt){mt.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceBtn.isEnabled()?Oe._replaceBtn.focus():Oe._codeEditor.focus(),mt.preventDefault()))}})),D.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ze(null,void 0,{label:lt,placeholder:Tt,history:[],flexibleHeight:rt,flexibleWidth:It,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(st){return Oe._onReplaceInputKeyDown(st)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Oe._state.change({replaceString:Oe._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(st){Oe._isReplaceVisible&&Oe._tryUpdateHeight()&&Oe._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Oe._state.change({preserveCase:Oe._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(st){st.equals(2)&&(Oe._prevBtn.isEnabled()?Oe._prevBtn.focus():Oe._nextBtn.isEnabled()?Oe._nextBtn.focus():Oe._toggleSelectionFind.enabled?Oe._toggleSelectionFind.focus():Oe._closeBtn.isEnabled()&&Oe._closeBtn.focus(),st.preventDefault())})),this._replaceBtn=this._register(new yn({label:Jt+this._keybindingLabelFor(Fe.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Oe._controller.replace()},onKeyDown:function(mt){mt.equals(1024|2)&&(Oe._closeBtn.focus(),mt.preventDefault())}})),this._replaceAllBtn=this._register(new yn({label:eo+this._keybindingLabelFor(Fe.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Oe._controller.replaceAll()}}));var ye=document.createElement("div");ye.className="replace-part",ye.appendChild(this._replaceInput.domNode);var We=document.createElement("div");We.className="replace-actions",ye.appendChild(We),We.appendChild(this._replaceBtn.domNode),We.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new yn({label:po,className:"codicon toggle left",onTrigger:function(){Oe._state.change({isReplaceRevealed:!Oe._isReplaceVisible},!1),Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode),Oe._replaceInput.inputBox.layout()),Oe._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=Ao+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(pe),this._domNode.appendChild(ye),this._resizeSash=new Qe.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=Ao;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(Oe._domNode)})),this._register(this._resizeSash.onDidChange(function(st){Oe._resized=!0;var mt=Ze+st.startX-st.currentX;if(mtKt)return;Oe._domNode.style.width=mt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout(),Oe._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var st=ee.H(Oe._domNode);if(st=0},Ue.prototype.focus=function(){this._domNode.focus()},Ue.prototype.setEnabled=function(Oe){ee.Y(this._domNode,"disabled",!Oe),this._domNode.setAttribute("aria-disabled",String(!Oe)),this._domNode.tabIndex=Oe?0:-1},Ue.prototype.setExpanded=function(Oe){this._domNode.setAttribute("aria-expanded",String(!!Oe))},Ue.prototype.toggleClass=function(Oe,rt){ee.Y(this._domNode,Oe,rt)},Ue}(q.a);Object(_.e)(function(yt,Ue){var Oe=function(vo,lo){lo&&Ue.addRule(".monaco-editor "+vo+" { background-color: "+lo+"; }")};Oe(".findMatch",yt.getColor(v.t)),Oe(".currentFindMatch",yt.getColor(v.r)),Oe(".findScope",yt.getColor(v.v));var rt=yt.getColor(v.Q);Oe(".find-widget",rt);var It=yt.getColor(v.hc);It&&Ue.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+It+"; }");var pe=yt.getColor(v.u);pe&&Ue.addRule(".monaco-editor .findMatch { border: 1px "+(yt.type==="hc"?"dotted":"solid")+" "+pe+"; box-sizing: border-box; }");var D=yt.getColor(v.s);D&&Ue.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+D+"; padding: 1px; box-sizing: border-box; }");var ye=yt.getColor(v.w);ye&&Ue.addRule(".monaco-editor .findScope { border: 1px "+(yt.type==="hc"?"dashed":"solid")+" "+ye+"; }");var We=yt.getColor(v.e);We&&Ue.addRule(".monaco-editor .find-widget { border: 1px solid "+We+"; }");var Ze=yt.getColor(v.S);Ze&&Ue.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var st=yt.getColor(v.U);st&&Ue.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+st+"; }");var mt=yt.getColor(v.T);if(mt)Ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+mt+"; width: 3px !important; margin-left: -4px;}");else{var Kt=yt.getColor(v.R);Kt&&Ue.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Kt+"; width: 3px !important; margin-left: -4px;}")}var Xt=yt.getColor(v.V);Xt&&Ue.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var dn=e("9XeP"),rn=e("Uzvx"),pn=e("Cg/j"),zo=e("bexQ"),Uo=e("A+jI"),St=e("sM1p"),ot=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(Ue,Oe){yt(Ue,Oe);function rt(){this.constructor=Ue}Ue.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),nt=function(yt,Ue,Oe,rt){var It=arguments.length,pe=It<3?Ue:rt===null?rt=Object.getOwnPropertyDescriptor(Ue,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,Ue,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(Ue,Oe,pe):D(Ue,Oe))||pe);return It>3&&pe&&Object.defineProperty(Ue,Oe,pe),pe},Dt=function(yt,Ue){return function(Oe,rt){Ue(Oe,rt,yt)}},we=524288;function M(yt){if(!yt.hasModel())return null;var Ue=yt.getSelection();if(Ue.startLineNumber===Ue.endLineNumber){if(Ue.isEmpty()){var Oe=yt.getModel().getWordAtPosition(Ue.getStartPosition());if(Oe)return Oe.word}else if(yt.getModel().getValueLengthInRange(Ue)Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Oe.endLineNumber-1))),Oe.isEmpty()||this._state.change({searchScope:Oe},!0)}},Ue.prototype.setSearchString=function(Oe){this._state.isRegex&&(Oe=I.p(Oe)),this._state.change({searchString:Oe},!1)},Ue.prototype.highlightFindOptions=function(){},Ue.prototype._start=function(Oe){if(this.disposeModel(),!this._editor.hasModel())return;var rt={isRevealed:!0};if(Oe.seedSearchStringFromSelection){var It=M(this._editor);It&&(this._state.isRegex?rt.searchString=I.p(It):rt.searchString=It)}if(!rt.searchString&&Oe.seedSearchStringFromGlobalClipboard){var It=this.getGlobalBufferTerm();It&&(rt.searchString=It)}if(Oe.forceRevealReplace?rt.isReplaceRevealed=!0:this._findWidgetVisible.get()||(rt.isReplaceRevealed=!1),Oe.updateSearchScope){var pe=this._editor.getSelection();pe.isEmpty()||(rt.searchScope=pe)}this._state.change(rt,!1),this._model||(this._model=new ne(this._editor,this._state))},Ue.prototype.start=function(Oe){this._start(Oe)},Ue.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},Ue.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},Ue.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},Ue.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},Ue.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},Ue.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},Ue.prototype.setGlobalBufferTerm=function(Oe){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Oe)},Ue.ID="editor.contrib.findController",Ue=nt([Dt(1,$.c),Dt(2,Uo.a),Dt(3,dn.a)],Ue),Ue}(J.a),Z=function(yt){ot(Ue,yt);function Ue(Oe,rt,It,pe,D,ye,We,Ze){var st=yt.call(this,Oe,It,We,Ze)||this;return st._contextViewService=rt,st._keybindingService=pe,st._themeService=D,st._notificationService=ye,st._widget=null,st._findOptionsWidget=null,st}return Ue.prototype._start=function(Oe){this._widget||this._createFindWidget();var rt=this._editor.getSelection(),It=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":It=!0;break;case"never":It=!1;break;case"multiline":var pe=!!rt&&rt.startLineNumber!==rt.endLineNumber;It=pe;break;default:break}Oe.updateSearchScope=It,yt.prototype._start.call(this,Oe),Oe.shouldFocus===2?this._widget.focusReplaceInput():Oe.shouldFocus===1&&this._widget.focusFindInput()},Ue.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},Ue.prototype._createFindWidget=function(){this._widget=this._register(new mn(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new se(this._editor,this._state,this._keybindingService,this._themeService))},Ue=nt([Dt(1,rn.b),Dt(2,$.c),Dt(3,zo.a),Dt(4,_.c),Dt(5,St.a),Dt(6,Uo.a),Dt(7,Object(pn.d)(dn.a))],Ue),Ue}(P),Ae=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.StartFindAction,label:T.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return Ue.prototype.run=function(Oe,rt){var It=P.get(rt);It&&It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:rt.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},Ue}(H.b),xe=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.StartFindWithSelection,label:T.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return Ue.prototype.run=function(Oe,rt){var It=P.get(rt);It&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),It.setGlobalBufferTerm(It.getState().searchString))},Ue}(H.b),Ne=function(yt){ot(Ue,yt);function Ue(){return yt!==null&&yt.apply(this,arguments)||this}return Ue.prototype.run=function(Oe,rt){var It=P.get(rt);It&&!this._run(It)&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:It.getState().searchString.length===0&&rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},Ue}(H.b),dt=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToNextMatch()},Ue}(Ne),ht=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:3,weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToNextMatch()},Ue}(Ne),xt=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToPrevMatch()},Ue}(Ne),Bt=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:1024|3,weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToPrevMatch()},Ue}(Ne),Ut=function(yt){ot(Ue,yt);function Ue(){return yt!==null&&yt.apply(this,arguments)||this}return Ue.prototype.run=function(Oe,rt){var It=P.get(rt);if(!It)return;var pe=M(rt);pe&&It.setSearchString(pe),this._run(It)||(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},Ue}(H.b),Ht=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.NextSelectionMatchFindAction,label:T.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|61,weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToNextMatch()},Ue}(Ut),oo=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.PreviousSelectionMatchFindAction,label:T.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|1024|61,weight:100}})||this}return Ue.prototype._run=function(Oe){return Oe.moveToPrevMatch()},Ue}(Ut),Zt=function(yt){ot(Ue,yt);function Ue(){return yt.call(this,{id:Fe.StartFindReplaceAction,label:T.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return Ue.prototype.run=function(Oe,rt){if(!rt.hasModel()||rt.getOption(68))return;var It=P.get(rt),pe=rt.getSelection(),D=It.isFindInputFocused(),ye=!pe.isEmpty()&&pe.startLineNumber===pe.endLineNumber&&rt.getOption(28).seedSearchStringFromSelection&&!D,We=D||ye?2:1;It&&It.start({forceRevealReplace:!0,seedSearchStringFromSelection:ye,seedSearchStringFromGlobalClipboard:rt.getOption(28).seedSearchStringFromSelection,shouldFocus:We,shouldAnimate:!0,updateSearchScope:!1})},Ue}(H.b);Object(H.h)(P.ID,Z),Object(H.f)(Ae),Object(H.f)(xe),Object(H.f)(dt),Object(H.f)(ht),Object(H.f)(xt),Object(H.f)(Bt),Object(H.f)(Ht),Object(H.f)(oo),Object(H.f)(Zt);var fo=H.c.bindToContribution(P.get);Object(H.g)(new fo({id:Fe.CloseFindWidgetCommand,precondition:ie,handler:function(Ue){return Ue.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(H.g)(new fo({id:Fe.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(Ue){return Ue.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:le.primary,mac:le.mac,win:le.win,linux:le.linux}})),Object(H.g)(new fo({id:Fe.ToggleWholeWordCommand,precondition:void 0,handler:function(Ue){return Ue.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Ce.primary,mac:Ce.mac,win:Ce.win,linux:Ce.linux}})),Object(H.g)(new fo({id:Fe.ToggleRegexCommand,precondition:void 0,handler:function(Ue){return Ue.toggleRegex()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(H.g)(new fo({id:Fe.ToggleSearchScopeCommand,precondition:void 0,handler:function(Ue){return Ue.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Te.primary,mac:Te.mac,win:Te.win,linux:Te.linux}})),Object(H.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(Ue){return Ue.replace()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|1024|22}})),Object(H.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(Ue){return Ue.replace()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:3}})),Object(H.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(Ue){return Ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|512|3}})),Object(H.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(Ue){return Ue.replaceAll()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:void 0,mac:{primary:2048|3}}})),Object(H.g)(new fo({id:Fe.SelectAllMatchesAction,precondition:ie,handler:function(Ue){return Ue.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:512|3}}))},oiKk:function(Lt,j,e){"use strict";e.r(j),e.d(j,"IPadShowKeyboard",function(){return U});var T=e("ci+S"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),H=e("pmY6"),z=e("sswD"),O=function(){var u=function(w,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,_){v.__proto__=_}||function(v,_){for(var p in _)_.hasOwnProperty(p)&&(v[p]=_[p])},u(w,f)};return function(y,w){u(y,w);function f(){this.constructor=y}y.prototype=w===null?Object.create(w):(f.prototype=w.prototype,new f)}}(),U=function(u){O(y,u);function y(w){var f=u.call(this)||this;return f.editor=w,f.widget=null,J.j&&(f._register(w.onDidChangeConfiguration(function(){return f.update()})),f.update()),f}return y.prototype.update=function(){var w=!this.editor.getOption(68);!this.widget&&w?this.widget=new x(this.editor):this.widget&&!w&&(this.widget.dispose(),this.widget=null)},y.prototype.dispose=function(){u.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},y.ID="editor.contrib.iPadShowKeyboard",y}(H.a),x=function(u){O(y,u);function y(w){var f=u.call(this)||this;return f.editor=w,f._domNode=document.createElement("textarea"),f._domNode.className="iPadShowKeyboard",f._register(I.j(f._domNode,"touchstart",function(v){f.editor.focus()})),f._register(I.j(f._domNode,"focus",function(v){f.editor.focus()})),f.editor.addOverlayWidget(f),f}return y.prototype.dispose=function(){this.editor.removeOverlayWidget(this),u.prototype.dispose.call(this)},y.prototype.getId=function(){return y.ID},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{preference:1}},y.ID="editor.contrib.ShowKeyboardWidget",y}(H.a);Object(z.h)(U.ID,U)},p3Ex:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(280).then(e.bind(null,"/Om3"))}})},p5tG:function(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function u(y,w,f){this._onDidChange=new J,this._languageId=y,this.setDiagnosticsOptions(w),this.setModeConfiguration(f)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),u.prototype.setDiagnosticsOptions=function(y){this._diagnosticsOptions=y||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(y){this._modeConfiguration=y||Object.create(null),this._onDidChange.fire(this)},u}(),H={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},z={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},O=new I("json",H,z);function U(){return{jsonDefaults:O}}monaco.languages.json=U();function x(){return e.e(271).then(e.bind(null,"R7lK"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){x().then(function(u){return u.setupMode(O)})})},pAvP:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("Cg/j"),re="editorWorkerService",J=Object(T.c)(re)},pI2L:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(312).then(e.bind(null,"KpXS"))}})},pg8w:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return U});var T=e("6OMU"),re=e("pmY6"),J=e("EffR"),I=e("ZCR3"),H=function(){var x=function(y,w){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var _ in v)v.hasOwnProperty(_)&&(f[_]=v[_])},x(y,w)};return function(u,y){x(u,y);function w(){this.constructor=u}u.prototype=y===null?Object.create(y):(w.prototype=y.prototype,new w)}}(),z=function(x,u,y,w){var f=arguments.length,v=f<3?u:w===null?w=Object.getOwnPropertyDescriptor(u,y):w,_;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(x,u,y,w);else for(var p=x.length-1;p>=0;p--)(_=x[p])&&(v=(f<3?_(v):f>3?_(u,y,v):_(u,y))||v);return f>3&&v&&Object.defineProperty(u,y,v),v},O;(function(x){x.Tap="-monaco-gesturetap",x.Change="-monaco-gesturechange",x.Start="-monaco-gesturestart",x.End="-monaco-gesturesend",x.Contextmenu="-monaco-gesturecontextmenu"})(O||(O={}));var U=function(x){H(u,x);function u(){var y=x.call(this)||this;return y.dispatched=!1,y.activeTouches={},y.handle=null,y.targets=[],y.ignoreTargets=[],y._lastSetTapCountTime=0,y._register(J.j(document,"touchstart",function(w){return y.onTouchStart(w)})),y._register(J.j(document,"touchend",function(w){return y.onTouchEnd(w)})),y._register(J.j(document,"touchmove",function(w){return y.onTouchMove(w)})),y}return u.addTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.targets.push(y),{dispose:function(){u.INSTANCE.targets=u.INSTANCE.targets.filter(function(f){return f!==y})}}):re.a.None},u.ignoreTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.ignoreTargets.push(y),{dispose:function(){u.INSTANCE.ignoreTargets=u.INSTANCE.ignoreTargets.filter(function(f){return f!==y})}}):re.a.None},u.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},u.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),x.prototype.dispose.call(this)},u.prototype.onTouchStart=function(y){var w=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var f=0,v=y.targetTouches.length;f=u.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var A=_.newGestureEvent(O.Contextmenu,E.initialTarget);A.pageX=T.v(E.rollingPageX),A.pageY=T.v(E.rollingPageY),_.dispatchEvent(A)}else if(f===1){var k=T.v(E.rollingPageX),R=T.v(E.rollingPageY),$=T.v(E.rollingTimestamps)-E.rollingTimestamps[0],ie=k-E.rollingPageX[0],W=R-E.rollingPageY[0],B=_.targets.filter(function(le){return E.initialTarget instanceof Node&&le.contains(E.initialTarget)});_.inertia(B,w,Math.abs(ie)/$,ie>0?1:-1,k,Math.abs(W)/$,W>0?1:-1,R)}_.dispatchEvent(_.newGestureEvent(O.End,E.initialTarget)),delete _.activeTouches[m.identifier]},_=this,p=0,c=y.changedTouches.length;pu.CLEAR_TAP_COUNT_TIME?v=1:v=2,this._lastSetTapCountTime=f,y.tapCount=v}else(y.type===O.Change||y.type===O.Contextmenu)&&(this._lastSetTapCountTime=0);for(var _=0;_0&&(A=!1,E=v*f*m),p>0&&(A=!1,L=c*p*m);var k=l.newGestureEvent(O.Change);k.translationX=E,k.translationY=L,y.forEach(function(R){return R.dispatchEvent(k)}),A||l.inertia(y,d,f,v,_+E,p,c,s+L)})},u.prototype.onTouchMove=function(y){for(var w=Date.now(),f=0,v=y.changedTouches.length;f3&&(p.rollingPageX.shift(),p.rollingPageY.shift(),p.rollingTimestamps.shift()),p.rollingPageX.push(_.pageX),p.rollingPageY.push(_.pageY),p.rollingTimestamps.push(w)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,z([I.a],u,"isTouchDevice",null),u}(re.a)},pmY6:function(Lt,j,e){"use strict";e.d(j,"g",function(){return H}),e.d(j,"f",function(){return z}),e.d(j,"e",function(){return O}),e.d(j,"h",function(){return U}),e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"d",function(){return y}),e.d(j,"c",function(){return w});var T=!1,re="__is_disposable_tracked__";function J(f){if(!T)return;if(f&&f!==u.None)try{f[re]=!0}catch(v){}}function I(f){if(!T)return f;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){f[re]||console.log(v)},3e3),f}function H(f){return typeof f.dispose=="function"&&f.dispose.length===0}function z(f){return Array.isArray(f)?(f.forEach(function(v){v&&(J(v),v.dispose())}),[]):f?(J(f),f.dispose(),f):void 0}function O(){for(var f=[],v=0;v0;){var f=w.shift();Object.freeze(f);for(var v in f)if(I.call(f,v)){var _=f[v];typeof _=="object"&&!Object.isFrozen(_)&&w.push(_)}}return y}var I=Object.prototype.hasOwnProperty;function H(y,w){return z(y,w,new Set)}function z(y,w,f){if(Object(T.l)(y))return y;var v=w(y);if(typeof v!="undefined")return v;if(Object(T.d)(y)){for(var _=[],p=0,c=y;put.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),at.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},at.prototype.guessColorPresentation=function(tt,ut){for(var Ct=0;Ct0;return tt&&ut}var ee=e("X+cX"),ae=function(){function at(tt,ut,Ct,gt,bt){var Gt=this;this._computer=tt,this._state=0,this._hoverTime=bt,this._firstWaitScheduler=new ee.d(function(){return Gt._triggerAsyncComputation()},0),this._secondWaitScheduler=new ee.d(function(){return Gt._triggerSyncComputation()},0),this._loadingMessageScheduler=new ee.d(function(){return Gt._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=ut,this._errorCallback=Ct,this._progressCallback=gt}return at.prototype.setHoverTime=function(tt){this._hoverTime=tt},at.prototype._firstWaitTime=function(){return this._hoverTime/2},at.prototype._secondWaitTime=function(){return this._hoverTime/2},at.prototype._loadingMessageTime=function(){return 3*this._hoverTime},at.prototype._triggerAsyncComputation=function(){var tt=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)(function(ut){return tt._computer.computeAsync(ut)}),this._asyncComputationPromise.then(function(ut){tt._asyncComputationPromiseDone=!0,tt._withAsyncResult(ut)},function(ut){return tt._onError(ut)})):this._asyncComputationPromiseDone=!0},at.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},at.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},at.prototype._withAsyncResult=function(tt){tt&&this._computer.onResult(tt,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},at.prototype._onComplete=function(tt){this._completeCallback&&this._completeCallback(tt)},at.prototype._onError=function(tt){this._errorCallback?this._errorCallback(tt):Object(He.e)(tt)},at.prototype._onProgress=function(tt){this._progressCallback&&this._progressCallback(tt)},at.prototype.start=function(tt){if(tt===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},at.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},at}(),q=e("GJhM"),ue=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),X=function(){for(var at=0,tt=0,ut=arguments.length;ttthis._editor.getModel().getLineCount())return[];var gt=c.ColorDetector.get(this._editor),bt=ut.getLineMaxColumn(Ct),Gt=this._editor.getLineDecorations(Ct),Nt=!1,Et=this._range,Je=Gt.map(function($e){var ze=$e.range.startLineNumber===Ct?$e.range.startColumn:1,Ke=$e.range.endLineNumber===Ct?$e.range.endColumn:bt;if(ze>Et.startColumn||Et.endColumn>Ke)return null;var fe=new z.a(Et.startLineNumber,ze,Et.startLineNumber,Ke),G=tt._markerDecorationsService.getMarker(ut,$e);if(G)return new be(fe,G);var te=gt.getColorData($e.range.getStartPosition());if(!Nt&&te){Nt=!0;var Y=te.colorInfo,de=Y.color,ke=Y.range;return new oe(ke,de,te.provider)}else{if(Object(w.b)($e.options.hoverMessage))return null;var lt=$e.options.hoverMessage?Object(Fe.b)($e.options.hoverMessage):[];return{contents:lt,range:fe}}});return Object(Fe.d)(Je)},at.prototype.onResult=function(tt,ut){ut?this._result=tt.concat(this._result.sort(function(Ct,gt){return Ct instanceof oe?-1:gt instanceof oe?1:0})):this._result=this._result.concat(tt)},at.prototype.getResult=function(){return this._result.slice(0)},at.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},at.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new w.a().appendText(re.a("modesContentHover.loading","Loading..."))]}},at}(),Se={type:2,filter:{include:Q.b.QuickFix}},Ve=function(at){C(tt,at);function tt(ut,Ct,gt,bt,Gt,Nt){Nt===void 0&&(Nt=_e.b);var Et=at.call(this,tt.ID,ut)||this;return Et._themeService=gt,Et._keybindingService=bt,Et._modeService=Gt,Et._openerService=Nt,Et.renderDisposable=Et._register(new I.d),Et._messages=[],Et._lastRange=null,Et._computer=new De(Et._editor,Ct),Et._highlightDecorations=[],Et._isChangingDecorations=!1,Et._shouldFocus=!1,Et._colorPicker=null,Et._hoverOperation=new ae(Et._computer,function(Je){return Et._withResult(Je,!0)},null,function(Je){return Et._withResult(Je,!1)},Et._editor.getOption(44).delay),Et._register(x.o(Et.getDomNode(),x.d.FOCUS,function(){Et._colorPicker&&x.f(Et.getDomNode(),"colorpicker-hover")})),Et._register(x.o(Et.getDomNode(),x.d.BLUR,function(){x.P(Et.getDomNode(),"colorpicker-hover")})),Et._register(ut.onDidChangeConfiguration(function(Je){Et._hoverOperation.setHoverTime(Et._editor.getOption(44).delay)})),Et._register(_.B.onDidChange(function(Je){Et.isVisible&&Et._lastRange&&Et._messages.length>0&&(Et._domNode.textContent="",Et._renderMessages(Et._lastRange,Et._messages))})),Et}return tt.prototype.dispose=function(){this._hoverOperation.cancel(),at.prototype.dispose.call(this)},tt.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},tt.prototype.startShowingAt=function(ut,Ct,gt){if(this._lastRange&&this._lastRange.equalsRange(ut))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ut.startLineNumber)this.hide();else{for(var bt=[],Gt=0,Nt=this._messages.length;Gt=ut.endColumn&&bt.push(Et)}if(bt.length>0){if(Qe(bt,this._messages))return;this._renderMessages(ut,bt)}else this.hide()}this._lastRange=ut,this._computer.setRange(ut),this._shouldFocus=gt,this._hoverOperation.start(Ct)},tt.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),at.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},tt.prototype.isColorPickerVisible=function(){return!!this._colorPicker},tt.prototype._withResult=function(ut,Ct){this._messages=ut,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):Ct&&this.hide()},tt.prototype._renderMessages=function(ut,Ct){var gt=this;this.renderDisposable.dispose(),this._colorPicker=null;var bt=1073741824,Gt=Ct[0].range?z.a.lift(Ct[0].range):null,Nt=document.createDocumentFragment(),Et=!0,Je=!1,$e=new I.b,ze=[];if(Ct.forEach(function(fe){if(!fe.range)return;if(bt=Math.min(bt,fe.range.startColumn),Gt=Gt?z.a.plusRange(Gt,fe.range):z.a.lift(fe.range),fe instanceof oe){Je=!0;var G=fe.color,te=G.red,Y=G.green,de=G.blue,ke=G.alpha,lt=new y.c(Math.round(te*255),Math.round(Y*255),Math.round(de*255),ke),Tt=new y.a(lt);if(!gt._editor.hasModel())return;var Jt=gt._editor.getModel(),eo=new z.a(fe.range.startLineNumber,fe.range.startColumn,fe.range.endLineNumber,fe.range.endColumn),po={range:fe.range,color:fe.color},co=new l(Tt,[],0),Eo=new Te(Nt,co,gt._editor.getOption(105),gt._themeService);Object(p.a)(Jt,po,fe.provider,u.a.None).then(function(Oo){if(co.colorPresentations=Oo||[],!gt._editor.hasModel())return;var Ao=gt._editor.getModel().getValueInRange(fe.range);co.guessColorPresentation(Tt,Ao);var Zo=function(){var Mo,Qo;co.presentation.textEdit?(Mo=[co.presentation.textEdit],Qo=new z.a(co.presentation.textEdit.range.startLineNumber,co.presentation.textEdit.range.startColumn,co.presentation.textEdit.range.endLineNumber,co.presentation.textEdit.range.endColumn),Qo=Qo.setEndPosition(Qo.endLineNumber,Qo.startColumn+co.presentation.textEdit.text.length)):(Mo=[{identifier:null,range:eo,text:co.presentation.label,forceMoveMarkers:!1}],Qo=eo.setEndPosition(eo.endLineNumber,eo.startColumn+co.presentation.label.length)),gt._editor.pushUndoStop(),gt._editor.executeEdits("colorpicker",Mo),co.presentation.additionalTextEdits&&(Mo=F(co.presentation.additionalTextEdits),gt._editor.executeEdits("colorpicker",Mo),gt.hide()),gt._editor.pushUndoStop(),eo=Qo},Co=function(Mo){return Object(p.a)(Jt,{range:eo,color:{red:Mo.rgba.r/255,green:Mo.rgba.g/255,blue:Mo.rgba.b/255,alpha:Mo.rgba.a}},fe.provider,u.a.None).then(function(Qo){co.colorPresentations=Qo||[]})},Wo=co.onColorFlushed(function(Bo){Co(Bo).then(Zo)}),Go=co.onDidChangeColor(Co);gt._colorPicker=Eo,gt.showAt(eo.getStartPosition(),eo,gt._shouldFocus),gt.updateContents(Nt),gt._colorPicker.layout(),gt.renderDisposable.value=Object(I.e)(Wo,Go,Eo,$e)})}else fe instanceof be?(ze.push(fe),Et=!1):fe.contents.filter(function(Oo){return!Object(w.b)(Oo)}).forEach(function(Oo){var Ao=se("div.hover-row.markdown-hover"),Zo=x.q(Ao,se("div.hover-contents")),Co=$e.add(new Xe.a(gt._editor,gt._modeService,gt._openerService));$e.add(Co.onDidRenderCodeBlock(function(){Zo.className="hover-contents code-hover-contents",gt.onContentsChange()}));var Wo=$e.add(Co.render(Oo));Zo.appendChild(Wo.element),Nt.appendChild(Ao),Et=!1})}),ze.length){ze.forEach(function(fe){return Nt.appendChild(gt.renderMarkerHover(fe))});var Ke=ze.length===1?ze[0]:ze.sort(function(fe,G){return me.c.compare(fe.marker.severity,G.marker.severity)})[0];Nt.appendChild(this.renderMarkerStatusbar(Ke))}!Je&&!Et&&(this.showAt(new f.a(ut.startLineNumber,bt),Gt,this._shouldFocus),this.updateContents(Nt)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Gt?[{range:Gt,options:tt._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},tt.prototype.renderMarkerHover=function(ut){var Ct=this,gt=se("div.hover-row"),bt=x.q(gt,se("div.marker.hover-contents")),Gt=ut.marker,Nt=Gt.source,Et=Gt.message,Je=Gt.code,$e=Gt.relatedInformation;this._editor.applyFontInfo(bt);var ze=x.q(bt,se("span"));if(ze.style.whiteSpace="pre-wrap",ze.innerText=Et,Nt||Je){if(typeof Je=="string"){var Ke=x.q(bt,se("span"));Ke.style.opacity="0.6",Ke.style.paddingLeft="6px",Ke.innerText=Nt&&Je?Nt+"("+Je+")":Nt||"("+Je+")"}else if(Je){var fe=se("span");if(Nt){var G=x.q(fe,se("span"));G.innerText=Nt}this._codeLink=x.q(fe,se("a.code-link")),this._codeLink.setAttribute("href",Je.link.toString()),this._codeLink.onclick=function(Oo){Ct._openerService.open(Je.link),Oo.preventDefault(),Oo.stopPropagation()};var te=x.q(this._codeLink,se("span"));te.innerText=Je.value;var Ke=x.q(bt,fe);Ke.style.opacity="0.6",Ke.style.paddingLeft="6px"}}if(Object(Fe.q)($e))for(var Y=function(Oo,Ao,Zo,Co){var Wo=x.q(bt,se("div"));Wo.style.marginTop="8px";var Go=x.q(Wo,se("a"));Go.innerText=Object(ge.b)(Ao)+"("+Zo+", "+Co+"): ",Go.style.cursor="pointer",Go.onclick=function(Mo){Mo.stopPropagation(),Mo.preventDefault(),Ct._openerService&&Ct._openerService.open(Ao.with({fragment:Zo+","+Co}),{fromUserGesture:!0}).catch(He.e)};var Bo=x.q(Wo,se("span"));Bo.innerText=Oo,de._editor.applyFontInfo(Bo)},de=this,ke=0,lt=$e;ke0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},tt.prototype._renderMessages=function(ut,Ct){this._renderDisposeables.clear();for(var gt=document.createDocumentFragment(),bt=0,Gt=Ct;bt=0;Nt--)(Gt=at[Nt])&&(bt=(gt<3?Gt(bt):gt>3?Gt(tt,ut,bt):Gt(tt,ut))||bt);return gt>3&&bt&&Object.defineProperty(tt,ut,bt),bt},Pt=function(at,tt){return function(ut,Ct){tt(ut,Ct,at)}},ft=function(){function at(tt,ut,Ct,gt,bt,Gt){var Nt=this;this._editor=tt,this._openerService=ut,this._modeService=Ct,this._markerDecorationsService=gt,this._keybindingService=bt,this._themeService=Gt,this._toUnhook=new I.b,this._contentWidget=new I.d,this._glyphWidget=new I.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(44)&&(Nt._hideWidgets(),Nt._unhookEvents(),Nt._hookEvents())})}return Object.defineProperty(at.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),at.get=function(tt){return tt.getContribution(at.ID)},at.prototype._hookEvents=function(){var tt=this,ut=function(){return tt._hideWidgets()},Ct=this._editor.getOption(44);this._isHoverEnabled=Ct.enabled,this._isHoverSticky=Ct.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(gt){return tt._onEditorMouseDown(gt)})),this._toUnhook.add(this._editor.onMouseUp(function(gt){return tt._onEditorMouseUp(gt)})),this._toUnhook.add(this._editor.onMouseMove(function(gt){return tt._onEditorMouseMove(gt)})),this._toUnhook.add(this._editor.onKeyDown(function(gt){return tt._onKeyDown(gt)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return tt._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ut)),this._toUnhook.add(this._editor.onMouseLeave(ut)),this._toUnhook.add(this._editor.onDidChangeModel(ut)),this._toUnhook.add(this._editor.onDidScrollChange(function(gt){return tt._onEditorScrollChanged(gt)}))},at.prototype._unhookEvents=function(){this._toUnhook.clear()},at.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},at.prototype._onEditorScrollChanged=function(tt){(tt.scrollTopChanged||tt.scrollLeftChanged)&&this._hideWidgets()},at.prototype._onEditorMouseDown=function(tt){this._isMouseDown=!0;var ut=tt.target.type;if(ut===9&&tt.target.detail===Ve.ID){this._hoverClicked=!0;return}if(ut===12&&tt.target.detail===Rt.ID)return;ut!==12&&tt.target.detail!==Rt.ID&&(this._hoverClicked=!1),this._hideWidgets()},at.prototype._onEditorMouseUp=function(tt){this._isMouseDown=!1},at.prototype._onEditorMouseMove=function(tt){var ut=tt.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ut===9&&tt.target.detail===Ve.ID)return;if(this._isHoverSticky&&ut===12&&tt.target.detail===Rt.ID)return;if(ut===7){var Ct=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,gt=tt.target.detail;gt&&!gt.isAfterLines&&typeof gt.horizontalDistanceToText=="number"&>.horizontalDistanceToText0)},fe.prototype.getChildren=function(G,te){var Y=this.modelProvider.getModel();return Promise.resolve(Y===te?Y.entries:[])},fe.prototype.getParent=function(G,te){return Promise.resolve(null)},fe}(),u=function(){function fe(G){this.modelProvider=G}return fe.prototype.getAriaLabel=function(G,te){var Y=this.modelProvider.getModel();return Y.accessibilityProvider?Y.accessibilityProvider.getAriaLabel(te):null},fe.prototype.getPosInSet=function(G,te){var Y=this.modelProvider.getModel(),de=0;if(Y.filter)for(var ke=0,lt=Y.entries;ke=0;te--){var Y=this._arr[te];if(G.toChord().equals(Y.keybinding))return Y.callback}return null},fe}(),s=function(){function fe(G){var te=this;G===void 0&&(G={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=G,this.downKeyBindingDispatcher=new c,this.upKeyBindingDispatcher=new c,(typeof G.keyboardSupport!="boolean"||G.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(Y,de){return te.onUp(Y,de)}),this.downKeyBindingDispatcher.set(18,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(15,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(17,function(Y,de){return te.onRight(Y,de)}),O.e&&(this.downKeyBindingDispatcher.set(2048|16,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(256|44,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(256|46,function(Y,de){return te.onUp(Y,de)})),this.downKeyBindingDispatcher.set(11,function(Y,de){return te.onPageUp(Y,de)}),this.downKeyBindingDispatcher.set(12,function(Y,de){return te.onPageDown(Y,de)}),this.downKeyBindingDispatcher.set(14,function(Y,de){return te.onHome(Y,de)}),this.downKeyBindingDispatcher.set(13,function(Y,de){return te.onEnd(Y,de)}),this.downKeyBindingDispatcher.set(10,function(Y,de){return te.onSpace(Y,de)}),this.downKeyBindingDispatcher.set(9,function(Y,de){return te.onEscape(Y,de)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2048|3,this.onEnter.bind(this)))}return fe.prototype.onMouseDown=function(G,te,Y,de){if(de===void 0&&(de="mouse"),this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)){if(Y.target){if(Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return!1;if(I.x(Y.target,"scrollbar","monaco-tree"))return!1;if(I.x(Y.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(G,te,Y,de)}return!1},fe.prototype.onClick=function(G,te,Y){var de=O.e;return de&&Y.ctrlKey?(Y.preventDefault(),Y.stopPropagation(),!1):Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)?!1:this.onLeftClick(G,te,Y)},fe.prototype.onLeftClick=function(G,te,Y,de){de===void 0&&(de="mouse");var ke=Y,lt={origin:de,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(ke)};if(G.getInput()===te)G.clearFocus(lt),G.clearSelection(lt);else{var Tt=Y&&ke.browserEvent&&ke.browserEvent.type==="mousedown"&&ke.browserEvent.detail===1;Tt||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([te],lt),G.setFocus(te,lt),this.shouldToggleExpansion(te,ke,de)&&(G.isExpanded(te)?G.collapse(te).then(void 0,_.e):G.expand(te).then(void 0,_.e))}return!0},fe.prototype.shouldToggleExpansion=function(G,te,Y){var de=Y==="mouse"&&te.detail===2;return this.openOnSingleClick||de||this.isClickOnTwistie(te)},Object.defineProperty(fe.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===0},enumerable:!0,configurable:!0}),fe.prototype.isClickOnTwistie=function(G){var te=G.target;if(!I.I(te,"content"))return!1;var Y=window.getComputedStyle(te,":before");if(Y.backgroundImage==="none"||Y.display==="none")return!1;var de=parseInt(Y.width)+parseInt(Y.paddingRight);return G.browserEvent.offsetX<=de},fe.prototype.onContextMenu=function(G,te,Y){return Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||Y&&(Y.preventDefault(),Y.stopPropagation()),!1},fe.prototype.onTap=function(G,te,Y){var de=Y.initialTarget;return de&&de.tagName&&de.tagName.toLowerCase()==="input"?!1:this.onLeftClick(G,te,Y,"touch")},fe.prototype.onKeyDown=function(G,te){return this.onKey(this.downKeyBindingDispatcher,G,te)},fe.prototype.onKeyUp=function(G,te){return this.onKey(this.upKeyBindingDispatcher,G,te)},fe.prototype.onKey=function(G,te,Y){var de=G.dispatch(Y.toKeybinding());return de&&de(te,Y)?(Y.preventDefault(),Y.stopPropagation(),!0):!1},fe.prototype.onUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPrevious(1,Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onPageUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPreviousPage(Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNext(1,Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onPageDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNextPage(Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onHome=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusFirst(Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onEnd=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusLast(Y),G.reveal(G.getFocus()).then(void 0,_.e)),!0},fe.prototype.onLeft=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.collapse(de).then(function(ke){return de&&!ke?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,_.e)}return!0},fe.prototype.onRight=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.expand(de).then(function(ke){return de&&!ke?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,_.e)}return!0},fe.prototype.onEnter=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())return!1;var de=G.getFocus();return de&&G.setSelection([de],Y),!0},fe.prototype.onSpace=function(G,te){if(G.getHighlight())return!1;var Y=G.getFocus();return Y&&G.toggleExpansion(Y),!0},fe.prototype.onEscape=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?(G.clearHighlight(Y),!0):G.getSelection().length?(G.clearSelection(Y),!0):G.getFocus()?(G.clearFocus(Y),!0):!1},fe}(),l=function(){function fe(){}return fe.prototype.getDragURI=function(G,te){return null},fe.prototype.onDragStart=function(G,te,Y){return},fe.prototype.onDragOver=function(G,te,Y,de){return null},fe.prototype.drop=function(G,te,Y,de){return},fe}(),d=function(){function fe(){}return fe.prototype.isVisible=function(G,te){return!0},fe}(),m=function(){function fe(){}return fe.prototype.getAriaLabel=function(G,te){return null},fe}(),E=function(){function fe(G,te){this.styleElement=G,this.selectorSuffix=te}return fe.prototype.style=function(G){var te=this.selectorSuffix?"."+this.selectorSuffix:"",Y=[];G.listFocusBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+G.listFocusBackground+"; }"),G.listFocusForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+G.listFocusForeground+"; }"),G.listActiveSelectionBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listActiveSelectionBackground+"; }"),G.listActiveSelectionForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listActiveSelectionForeground+"; }"),G.listFocusAndSelectionBackground&&Y.push(` + `,constraint:u,schema:{type:"object",required:["to"],properties:{to:{type:"string",enum:["left","right","up","down","wrappedLineStart","wrappedLineEnd","wrappedLineColumnCenter","wrappedLineFirstNonWhitespaceCharacter","wrappedLineLastNonWhitespaceCharacter","viewPortTop","viewPortCenter","viewPortBottom","viewPortIfOutside"]},by:{type:"string",enum:["line","wrappedLine","character","halfLine"]},value:{type:"number",default:1},select:{type:"boolean",default:!1}}}}]},x.RawDirection={Left:"left",Right:"right",Up:"up",Down:"down",WrappedLineStart:"wrappedLineStart",WrappedLineFirstNonWhitespaceCharacter:"wrappedLineFirstNonWhitespaceCharacter",WrappedLineColumnCenter:"wrappedLineColumnCenter",WrappedLineEnd:"wrappedLineEnd",WrappedLineLastNonWhitespaceCharacter:"wrappedLineLastNonWhitespaceCharacter",ViewPortTop:"viewPortTop",ViewPortCenter:"viewPortCenter",ViewPortBottom:"viewPortBottom",ViewPortIfOutside:"viewPortIfOutside"},x.RawUnit={Line:"line",WrappedLine:"wrappedLine",Character:"character",HalfLine:"halfLine"};function y(_){if(!_.to)return null;var f;switch(_.to){case x.RawDirection.Left:f=0;break;case x.RawDirection.Right:f=1;break;case x.RawDirection.Up:f=2;break;case x.RawDirection.Down:f=3;break;case x.RawDirection.WrappedLineStart:f=4;break;case x.RawDirection.WrappedLineFirstNonWhitespaceCharacter:f=5;break;case x.RawDirection.WrappedLineColumnCenter:f=6;break;case x.RawDirection.WrappedLineEnd:f=7;break;case x.RawDirection.WrappedLineLastNonWhitespaceCharacter:f=8;break;case x.RawDirection.ViewPortTop:f=9;break;case x.RawDirection.ViewPortBottom:f=11;break;case x.RawDirection.ViewPortCenter:f=10;break;case x.RawDirection.ViewPortIfOutside:f=12;break;default:return null}var v=0;switch(_.by){case x.RawUnit.Line:v=1;break;case x.RawUnit.WrappedLine:v=2;break;case x.RawUnit.Character:v=3;break;case x.RawUnit.HalfLine:v=4;break}return{direction:f,unit:v,select:!!_.select,value:_.value||1}}x.parse=y})(H||(H={}))},oKJv:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:function(){return e.e(302).then(e.bind(null,"HGU1"))}})},oQaD:function(Lt,j,e){"use strict";e.r(j),e.d(j,"getSelectionSearchString",function(){return M}),e.d(j,"CommonFindController",function(){return P}),e.d(j,"FindController",function(){return Z}),e.d(j,"StartFindAction",function(){return Ae}),e.d(j,"StartFindWithSelectionAction",function(){return xe}),e.d(j,"MatchFindAction",function(){return Ne}),e.d(j,"NextMatchFindAction",function(){return dt}),e.d(j,"NextMatchFindAction2",function(){return ht}),e.d(j,"PreviousMatchFindAction",function(){return xt}),e.d(j,"PreviousMatchFindAction2",function(){return Bt}),e.d(j,"SelectionMatchFindAction",function(){return Ht}),e.d(j,"NextSelectionMatchFindAction",function(){return Ut}),e.d(j,"PreviousSelectionMatchFindAction",function(){return oo}),e.d(j,"StartFindReplaceAction",function(){return Zt});var T=e("3/fG"),re=e("X+cX"),J=e("pmY6"),I=e("N0LK"),U=e("sswD"),z=e("wQH0"),O=e("LCkn"),H=e("cGHE"),x=e("aokT"),u=e("gCVg"),y=e("jAJ/"),_=e("M1Kb"),f=e("tX9W"),v=e("MD5Z"),w=e("t9D7"),p=function(){function yt(He){this._editor=He,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}return yt.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},yt.prototype.reset=function(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationId=null,this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null},yt.prototype.getCount=function(){return this._decorations.length},yt.prototype.getFindScope=function(){return this._findScopeDecorationId?this._editor.getModel().getDecorationRange(this._findScopeDecorationId):null},yt.prototype.getStartPosition=function(){return this._startPosition},yt.prototype.setStartPosition=function(He){this._startPosition=He,this.setCurrentFindMatch(null)},yt.prototype._getDecorationIndex=function(He){var Oe=this._decorations.indexOf(He);return Oe>=0?Oe+1:1},yt.prototype.getCurrentMatchesPosition=function(He){for(var Oe=this._editor.getModel().getDecorationsInRange(He),rt=0,It=Oe;rt1e3){pe=yt._FIND_MATCH_NO_OVERVIEW_DECORATION;for(var ye=rt._editor.getModel().getLineCount(),We=rt._editor.getLayoutInfo().height,Ze=We/ye,st=Math.max(2,Math.ceil(3/Ze)),mt=He[0].range.startLineNumber,Kt=He[0].range.endLineNumber,Xt=1,no=He.length;Xt=vo.startLineNumber?vo.endLineNumber>Kt&&(Kt=vo.endLineNumber):(D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),mt=vo.startLineNumber,Kt=vo.endLineNumber)}D.push({range:new x.a(mt,1,Kt,1),options:yt._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}for(var lo=new Array(He.length),Xt=0,no=He.length;Xt=0;Oe--){var rt=this._decorations[Oe],It=this._editor.getModel().getDecorationRange(rt);if(!It||It.endLineNumber>He.lineNumber)continue;if(It.endLineNumberHe.column)continue;return It}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])},yt.prototype.matchAfterPosition=function(He){if(this._decorations.length===0)return null;for(var Oe=0,rt=this._decorations.length;OeHe.lineNumber)return pe;if(pe.startColumn0){for(var rt=[],It=0;It0;){if(He=rt)break;var pe=yt.charCodeAt(Oe);switch(pe){case 92:He.emitUnchanged(Oe-1),He.emitStatic("\\",Oe+1);break;case 110:He.emitUnchanged(Oe-1),He.emitStatic(` +`,Oe+1);break;case 116:He.emitUnchanged(Oe-1),He.emitStatic(" ",Oe+1);break}continue}if(It===36){if(Oe++,Oe>=rt)break;var pe=yt.charCodeAt(Oe);if(pe===36){He.emitUnchanged(Oe-1),He.emitStatic("$",Oe+1);continue}if(pe===48||pe===38){He.emitUnchanged(Oe-1),He.emitMatchIndex(0,Oe+1);continue}if(49<=pe&&pe<=57){var D=pe-48;if(Oe+10},yt.prototype._cannotFind=function(){if(!this._hasMatches()){var He=this._decorations.getFindScope();return He&&this._editor.revealRangeInCenterIfOutsideViewport(He,0),!0}return!1},yt.prototype._setCurrentFindMatch=function(He){var Oe=this._decorations.setCurrentFindMatch(He);this._state.changeMatchInfo(Oe,this._decorations.getCount(),He),this._editor.setSelection(He),this._editor.revealRangeInCenterIfOutsideViewport(He,0)},yt.prototype._prevSearchPosition=function(He){var Oe=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),rt=He.lineNumber,It=He.column,pe=this._editor.getModel();return Oe||It===1?(rt===1?rt=pe.getLineCount():rt--,It=pe.getLineMaxColumn(rt)):It--,new H.a(rt,It)},yt.prototype._moveToPrevMatch=function(He,Oe){if(Oe===void 0&&(Oe=!1),this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),rt=He.lineNumber,It=He.column,pe=this._editor.getModel();return Oe||It===pe.getLineMaxColumn(rt)?(rt===pe.getLineCount()?rt=1:rt++,It=1):It++,new H.a(rt,It)},yt.prototype._moveToNextMatch=function(He){if(this._decorations.getCount()=Ue?this._largeReplaceAll():this._regularReplaceAll(He),this.research(!1)},yt.prototype._largeReplaceAll=function(){var He=new y.a(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(96):null),Oe=He.parseSearchRequest();if(!Oe)return;var rt=Oe.regex;if(!rt.multiline){var It="mu";rt.ignoreCase&&(It+="i"),rt.global&&(It+="g"),rt=new RegExp(rt.source,It)}var pe=this._editor.getModel(),D=pe.getValue(1),ye=pe.getFullModelRange(),We=this._getReplacePattern(),Ze,st=this._state.preserveCase;We.hasReplacementPatterns||st?Ze=D.replace(rt,function(){return We.buildReplaceString(arguments,st)}):Ze=D.replace(rt,We.buildReplaceString(null,st));var mt=new O.b(ye,Ze,this._editor.getSelection());this._executeEditorCommand("replaceAll",mt)},yt.prototype._regularReplaceAll=function(He){for(var Oe=this._getReplacePattern(),rt=this._findMatches(He,Oe.hasReplacementPatterns||this._state.preserveCase,1073741824),It=[],pe=0,D=rt.length;pert&&(Oe=rt),this._matchesPosition!==Oe&&(this._matchesPosition=Oe,pe.matchesPosition=!0,D=!0),this._matchesCount!==rt&&(this._matchesCount=rt,pe.matchesCount=!0,D=!0),typeof It!="undefined"&&(x.a.equalsRange(this._currentMatch,It)||(this._currentMatch=It,pe.currentMatch=!0,D=!0)),D&&this._onFindReplaceStateChange.fire(pe)},He.prototype.change=function(Oe,rt,It){It===void 0&&(It=!0);var pe={moveCursor:rt,updateHistory:It,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1},D=!1,ye=this.isRegex,We=this.wholeWord,Ze=this.matchCase,st=this.preserveCase;typeof Oe.searchString!="undefined"&&(this._searchString!==Oe.searchString&&(this._searchString=Oe.searchString,pe.searchString=!0,D=!0)),typeof Oe.replaceString!="undefined"&&(this._replaceString!==Oe.replaceString&&(this._replaceString=Oe.replaceString,pe.replaceString=!0,D=!0)),typeof Oe.isRevealed!="undefined"&&(this._isRevealed!==Oe.isRevealed&&(this._isRevealed=Oe.isRevealed,pe.isRevealed=!0,D=!0)),typeof Oe.isReplaceRevealed!="undefined"&&(this._isReplaceRevealed!==Oe.isReplaceRevealed&&(this._isReplaceRevealed=Oe.isReplaceRevealed,pe.isReplaceRevealed=!0,D=!0)),typeof Oe.isRegex!="undefined"&&(this._isRegex=Oe.isRegex),typeof Oe.wholeWord!="undefined"&&(this._wholeWord=Oe.wholeWord),typeof Oe.matchCase!="undefined"&&(this._matchCase=Oe.matchCase),typeof Oe.preserveCase!="undefined"&&(this._preserveCase=Oe.preserveCase),typeof Oe.searchScope!="undefined"&&(x.a.equalsRange(this._searchScope,Oe.searchScope)||(this._searchScope=Oe.searchScope,pe.searchScope=!0,D=!0)),this._isRegexOverride=typeof Oe.isRegexOverride!="undefined"?Oe.isRegexOverride:0,this._wholeWordOverride=typeof Oe.wholeWordOverride!="undefined"?Oe.wholeWordOverride:0,this._matchCaseOverride=typeof Oe.matchCaseOverride!="undefined"?Oe.matchCaseOverride:0,this._preserveCaseOverride=typeof Oe.preserveCaseOverride!="undefined"?Oe.preserveCaseOverride:0,ye!==this.isRegex&&(D=!0,pe.isRegex=!0),We!==this.wholeWord&&(D=!0,pe.wholeWord=!0),Ze!==this.matchCase&&(D=!0,pe.matchCase=!0),st!==this.preserveCase&&(D=!0,pe.preserveCase=!0),D&&this._onFindReplaceStateChange.fire(pe)},He}(J.a),Se=e("AbCa"),Ve=e("OBOq"),Qe=e("cMOf"),it=e("/cxE"),pt=e("MNsG"),Rt=e("yqFB"),Mt=e("0+8E"),zt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),uo=T.a("defaultLabel","input"),ao=function(yt){zt(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D.onMouseDown=D._onMouseDown.event,D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onCaseSensitiveKeyDown=D._register(new X.a),D.onCaseSensitiveKeyDown=D._onCaseSensitiveKeyDown.event,D._onRegexKeyDown=D._register(new X.a),D.onRegexKeyDown=D._onRegexKeyDown.event,D._lastHighlightFindOptions=0,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||uo,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.appendCaseSensitiveLabel||"",We=pe.appendWholeWordsLabel||"",Ze=pe.appendRegexLabel||"",st=pe.history||[],mt=!!pe.flexibleHeight,Kt=!!pe.flexibleWidth,Xt=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{placeholder:D.placeholder||"",ariaLabel:D.label||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:st,flexibleHeight:mt,flexibleWidth:Kt,flexibleMaxHeight:Xt})),D.regex=D._register(new C({appendTitle:Ze,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.regex.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.regex.onKeyDown(function(lo){D._onRegexKeyDown.fire(lo)})),D.wholeWords=D._register(new Q({appendTitle:We,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.wholeWords.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D.caseSensitive=D._register(new ve({appendTitle:ye,isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.caseSensitive.onChange(function(lo){D._onDidOptionChange.fire(lo),!lo&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.caseSensitive.onKeyDown(function(lo){D._onCaseSensitiveKeyDown.fire(lo)})),D._showOptionButtons&&(D.inputBox.paddingRight=D.caseSensitive.width()+D.wholeWords.width()+D.regex.width());var no=[D.caseSensitive.domNode,D.wholeWords.domNode,D.regex.domNode];D.onkeydown(D.domNode,function(lo){if(lo.equals(15)||lo.equals(17)||lo.equals(9)){var Ro=no.indexOf(document.activeElement);if(Ro>=0){var wo=-1;lo.equals(17)?wo=(Ro+1)%no.length:lo.equals(15)&&(Ro===0?wo=no.length-1:wo=Ro-1),lo.equals(9)?no[Ro].blur():wo>=0&&no[wo].focus(),ee.c.stop(lo,!0)}}});var vo=document.createElement("div");return vo.className="controls",vo.style.display=D._showOptionButtons?"block":"none",vo.appendChild(D.caseSensitive.domNode),vo.appendChild(D.wholeWords.domNode),vo.appendChild(D.regex.domNode),D.domNode.appendChild(vo),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(lo){return D._onKeyDown.fire(lo)}),D.onkeyup(D.inputBox.inputElement,function(lo){return D._onKeyUp.fire(lo)}),D.oninput(D.inputBox.inputElement,function(lo){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(lo){return D._onMouseDown.fire(lo)}),D}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.regex.enable(),this.wholeWords.enable(),this.caseSensitive.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.regex.disable(),this.wholeWords.disable(),this.caseSensitive.disable()},He.prototype.setFocusInputOnOptionClick=function(Oe){this.fixFocusOnOptionClickEnabled=Oe},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.getValue=function(){return this.inputBox.value},He.prototype.setValue=function(Oe){this.inputBox.value!==Oe&&(this.inputBox.value=Oe)},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.regex.style(Oe),this.wholeWords.style(Oe),this.caseSensitive.style(Oe);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getCaseSensitive=function(){return this.caseSensitive.checked},He.prototype.setCaseSensitive=function(Oe){this.caseSensitive.checked=Oe},He.prototype.getWholeWords=function(){return this.wholeWords.checked},He.prototype.setWholeWords=function(Oe){this.wholeWords.checked=Oe},He.prototype.getRegex=function(){return this.regex.checked},He.prototype.setRegex=function(Oe){this.regex.checked=Oe,this.validate()},He.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()},He.prototype.highlightFindOptions=function(){ee.P(this.domNode,"highlight-"+this._lastHighlightFindOptions),this._lastHighlightFindOptions=1-this._lastHighlightFindOptions,ee.f(this.domNode,"highlight-"+this._lastHighlightFindOptions)},He.prototype.validate=function(){this.inputBox.validate()},He.prototype.clearMessage=function(){this.inputBox.hideMessage()},He}(q.a),so=e("nrhi"),Pt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ft=T.a("defaultLabel","input"),vt=T.a("label.preserveCaseCheckbox","Preserve Case"),At=function(yt){Pt(He,yt);function He(Oe){return yt.call(this,{actionClassName:"codicon-preserve-case",title:vt+Oe.appendTitle,isChecked:Oe.isChecked,inputActiveOptionBorder:Oe.inputActiveOptionBorder,inputActiveOptionBackground:Oe.inputActiveOptionBackground})||this}return He}(me),at=function(yt){Pt(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;D._showOptionButtons=It,D.fixFocusOnOptionClickEnabled=!0,D.cachedOptionsWidth=0,D._onDidOptionChange=D._register(new X.a),D.onDidOptionChange=D._onDidOptionChange.event,D._onKeyDown=D._register(new X.a),D.onKeyDown=D._onKeyDown.event,D._onMouseDown=D._register(new X.a),D._onInput=D._register(new X.a),D._onKeyUp=D._register(new X.a),D._onPreserveCaseKeyDown=D._register(new X.a),D.onPreserveCaseKeyDown=D._onPreserveCaseKeyDown.event,D.contextViewProvider=rt,D.placeholder=pe.placeholder||"",D.validation=pe.validation,D.label=pe.label||ft,D.inputActiveOptionBorder=pe.inputActiveOptionBorder,D.inputActiveOptionBackground=pe.inputActiveOptionBackground,D.inputBackground=pe.inputBackground,D.inputForeground=pe.inputForeground,D.inputBorder=pe.inputBorder,D.inputValidationInfoBorder=pe.inputValidationInfoBorder,D.inputValidationInfoBackground=pe.inputValidationInfoBackground,D.inputValidationInfoForeground=pe.inputValidationInfoForeground,D.inputValidationWarningBorder=pe.inputValidationWarningBorder,D.inputValidationWarningBackground=pe.inputValidationWarningBackground,D.inputValidationWarningForeground=pe.inputValidationWarningForeground,D.inputValidationErrorBorder=pe.inputValidationErrorBorder,D.inputValidationErrorBackground=pe.inputValidationErrorBackground,D.inputValidationErrorForeground=pe.inputValidationErrorForeground;var ye=pe.history||[],We=!!pe.flexibleHeight,Ze=!!pe.flexibleWidth,st=pe.flexibleMaxHeight;D.domNode=document.createElement("div"),ee.f(D.domNode,"monaco-findInput"),D.inputBox=D._register(new Mt.a(D.domNode,D.contextViewProvider,{ariaLabel:D.label||"",placeholder:D.placeholder||"",validationOptions:{validation:D.validation},inputBackground:D.inputBackground,inputForeground:D.inputForeground,inputBorder:D.inputBorder,inputValidationInfoBackground:D.inputValidationInfoBackground,inputValidationInfoForeground:D.inputValidationInfoForeground,inputValidationInfoBorder:D.inputValidationInfoBorder,inputValidationWarningBackground:D.inputValidationWarningBackground,inputValidationWarningForeground:D.inputValidationWarningForeground,inputValidationWarningBorder:D.inputValidationWarningBorder,inputValidationErrorBackground:D.inputValidationErrorBackground,inputValidationErrorForeground:D.inputValidationErrorForeground,inputValidationErrorBorder:D.inputValidationErrorBorder,history:ye,flexibleHeight:We,flexibleWidth:Ze,flexibleMaxHeight:st})),D.preserveCase=D._register(new At({appendTitle:"",isChecked:!1,inputActiveOptionBorder:D.inputActiveOptionBorder,inputActiveOptionBackground:D.inputActiveOptionBackground})),D._register(D.preserveCase.onChange(function(Xt){D._onDidOptionChange.fire(Xt),!Xt&&D.fixFocusOnOptionClickEnabled&&D.inputBox.focus(),D.validate()})),D._register(D.preserveCase.onKeyDown(function(Xt){D._onPreserveCaseKeyDown.fire(Xt)})),D._showOptionButtons?D.cachedOptionsWidth=D.preserveCase.width():D.cachedOptionsWidth=0;var mt=[D.preserveCase.domNode];D.onkeydown(D.domNode,function(Xt){if(Xt.equals(15)||Xt.equals(17)||Xt.equals(9)){var no=mt.indexOf(document.activeElement);if(no>=0){var vo=-1;Xt.equals(17)?vo=(no+1)%mt.length:Xt.equals(15)&&(no===0?vo=mt.length-1:vo=no-1),Xt.equals(9)?mt[no].blur():vo>=0&&mt[vo].focus(),ee.c.stop(Xt,!0)}}});var Kt=document.createElement("div");return Kt.className="controls",Kt.style.display=D._showOptionButtons?"block":"none",Kt.appendChild(D.preserveCase.domNode),D.domNode.appendChild(Kt),Oe&&Oe.appendChild(D.domNode),D.onkeydown(D.inputBox.inputElement,function(Xt){return D._onKeyDown.fire(Xt)}),D.onkeyup(D.inputBox.inputElement,function(Xt){return D._onKeyUp.fire(Xt)}),D.oninput(D.inputBox.inputElement,function(Xt){return D._onInput.fire()}),D.onmousedown(D.inputBox.inputElement,function(Xt){return D._onMouseDown.fire(Xt)}),D}return He.prototype.enable=function(){ee.P(this.domNode,"disabled"),this.inputBox.enable(),this.preserveCase.enable()},He.prototype.disable=function(){ee.f(this.domNode,"disabled"),this.inputBox.disable(),this.preserveCase.disable()},He.prototype.setEnabled=function(Oe){Oe?this.enable():this.disable()},He.prototype.style=function(Oe){this.inputActiveOptionBorder=Oe.inputActiveOptionBorder,this.inputActiveOptionBackground=Oe.inputActiveOptionBackground,this.inputBackground=Oe.inputBackground,this.inputForeground=Oe.inputForeground,this.inputBorder=Oe.inputBorder,this.inputValidationInfoBackground=Oe.inputValidationInfoBackground,this.inputValidationInfoForeground=Oe.inputValidationInfoForeground,this.inputValidationInfoBorder=Oe.inputValidationInfoBorder,this.inputValidationWarningBackground=Oe.inputValidationWarningBackground,this.inputValidationWarningForeground=Oe.inputValidationWarningForeground,this.inputValidationWarningBorder=Oe.inputValidationWarningBorder,this.inputValidationErrorBackground=Oe.inputValidationErrorBackground,this.inputValidationErrorForeground=Oe.inputValidationErrorForeground,this.inputValidationErrorBorder=Oe.inputValidationErrorBorder,this.applyStyles()},He.prototype.applyStyles=function(){if(this.domNode){var Oe={inputActiveOptionBorder:this.inputActiveOptionBorder,inputActiveOptionBackground:this.inputActiveOptionBackground};this.preserveCase.style(Oe);var rt={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(rt)}},He.prototype.select=function(){this.inputBox.select()},He.prototype.focus=function(){this.inputBox.focus()},He.prototype.getPreserveCase=function(){return this.preserveCase.checked},He.prototype.setPreserveCase=function(Oe){this.preserveCase.checked=Oe},He.prototype.focusOnPreserve=function(){this.preserveCase.focus()},He.prototype.validate=function(){this.inputBox&&this.inputBox.validate()},Object.defineProperty(He.prototype,"width",{set:function(rt){this.inputBox.paddingRight=this.cachedOptionsWidth,this.inputBox.width=rt,this.domNode.style.width=rt+"px"},enumerable:!0,configurable:!0}),He.prototype.dispose=function(){yt.prototype.dispose.call(this)},He}(q.a),tt=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),ut=function(yt,He,Oe,rt){var It=arguments.length,pe=It<3?He:rt===null?rt=Object.getOwnPropertyDescriptor(He,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,He,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(He,Oe,pe):D(He,Oe))||pe);return It>3&&pe&&Object.defineProperty(He,Oe,pe),pe},Ct=function(yt,He){return function(Oe,rt){He(Oe,rt,yt)}},gt="historyNavigationWidget",bt="historyNavigationEnabled";function Gt(yt,He,Oe){new $.d(Oe,He).bindTo(yt)}function Nt(yt,He){return yt.createScoped(He.target)}function Et(yt,He){return yt.getContext(document.activeElement).getValue(He)}function Je(yt,He){var Oe=Nt(yt,He);Gt(Oe,He,gt);var rt=new $.d(bt,!0).bindTo(Oe);return{scopedContextKeyService:Oe,historyNavigationEnablement:rt}}var $e=function(yt){tt(He,yt);function He(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return He=ut([Ct(3,$.c)],He),He}(ao),ze=function(yt){tt(He,yt);function He(Oe,rt,It,pe,D){D===void 0&&(D=!1);var ye=yt.call(this,Oe,rt,D,It)||this;return ye._register(Je(pe,{target:ye.inputBox.element,historyNavigator:ye.inputBox}).scopedContextKeyService),ye}return He=ut([Ct(3,$.c)],He),He}(at);so.a.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:16,secondary:[512|16],handler:function(He,Oe){var rt=Et(He.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showPreviousValue()}}}),so.a.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:$.a.and($.a.has(gt),$.a.equals(bt,!0)),primary:18,secondary:[512|18],handler:function(He,Oe){var rt=Et(He.get($.c),gt);if(rt){var It=rt.historyNavigator;It.showNextValue()}}});var Ke=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),fe=T.a("label.find","Find"),G=T.a("placeholder.find","Find"),te=T.a("label.previousMatchButton","Previous match"),Y=T.a("label.nextMatchButton","Next match"),de=T.a("label.toggleSelectionFind","Find in selection"),ke=T.a("label.closeButton","Close"),lt=T.a("label.replace","Replace"),Tt=T.a("placeholder.replace","Replace"),Jt=T.a("label.replaceButton","Replace"),eo=T.a("label.replaceAllButton","Replace All"),po=T.a("label.toggleReplaceButton","Toggle Replace mode"),co=T.a("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Ue),Eo=T.a("label.matchesLocation","{0} of {1}"),Oo=T.a("label.noResults","No Results"),Ao=419,Zo=275,Co=Zo-54,Wo=69,Go=33,Bo="ctrlEnterReplaceAll.windows.donotask",Mo=pt.e?256:2048,Qo=function(){function yt(He){this.afterLineNumber=He,this.heightInPx=Go,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}return yt}();function fn(yt,He,Oe){var rt=!!He.match(/\n/);if(Oe&&rt&&Oe.selectionStart>0){yt.stopPropagation();return}}function Vo(yt,He,Oe){var rt=!!He.match(/\n/);if(Oe&&rt&&Oe.selectionEnd0&&this._state.matchesCount===0;ee.Y(this._domNode,"no-results",rt),this._updateMatchesCount(),this._updateButtons()}(Oe.searchString||Oe.currentMatch)&&this._layoutViewZone(),Oe.updateHistory&&this._delayedUpdateHistory()},He.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))},He.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()},He.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=Wo+"px",this._state.matchesCount>=Ue?this._matchesCount.title=co:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var Oe;if(this._state.matchesCount>0){var rt=String(this._state.matchesCount);this._state.matchesCount>=Ue&&(rt+="+");var It=String(this._state.matchesPosition);It==="0"&&(It="?"),Oe=I.r(Eo,It,rt)}else Oe=Oo;this._matchesCount.appendChild(document.createTextNode(Oe)),Object(Ve.a)(this._getAriaLabel(Oe,this._state.currentMatch,this._state.searchString),!0),Wo=Math.max(Wo,this._matchesCount.clientWidth)},He.prototype._getAriaLabel=function(Oe,rt,It){return Oe===Oo?It===""?T.a("ariaSearchNoResultEmpty","{0} found",Oe):T.a("ariaSearchNoResult","{0} found for {1}",Oe,It):rt?T.a("ariaSearchNoResultWithLineNum","{0} found for {1} at {2}",Oe,It,rt.startLineNumber+":"+rt.startColumn):T.a("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for {1}",Oe,It)},He.prototype._updateToggleSelectionFindButton=function(){var Oe=this._codeEditor.getSelection(),rt=Oe?Oe.startLineNumber!==Oe.endLineNumber||Oe.startColumn!==Oe.endColumn:!1,It=this._toggleSelectionFind.checked;this._isVisible&&(It||rt)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()},He.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);var Oe=this._state.searchString.length>0,rt=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&Oe&&rt),this._nextBtn.setEnabled(this._isVisible&&Oe&&rt),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&Oe),ee.Y(this._domNode,"replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var It=!this._codeEditor.getOption(68);this._toggleReplaceBtn.setEnabled(this._isVisible&&It)},He.prototype._reveal=function(){var Oe=this;if(!this._isVisible){this._isVisible=!0;var rt=this._codeEditor.getSelection();switch(this._codeEditor.getOption(28).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":var It=!!rt&&rt.startLineNumber!==rt.endLineNumber;this._toggleSelectionFind.checked=It;break;default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),setTimeout(function(){ee.f(Oe._domNode,"visible"),Oe._domNode.setAttribute("aria-hidden","false")},0),setTimeout(function(){Oe._findInput.validate()},200),this._codeEditor.layoutOverlayWidget(this);var pe=!0;if(this._codeEditor.getOption(28).seedSearchStringFromSelection&&rt){var D=this._codeEditor.getDomNode();if(D){var ye=ee.C(D),We=this._codeEditor.getScrolledVisiblePosition(rt.getStartPosition()),Ze=ye.left+(We?We.left:0),st=We?We.top:0;if(this._viewZone&&strt.startLineNumber&&(pe=!1);var mt=ee.F(this._domNode).left;Ze>mt&&(pe=!1);var Kt=this._codeEditor.getScrolledVisiblePosition(rt.getEndPosition()),Xt=ye.left+(Kt?Kt.left:0);Xt>mt&&(pe=!1)}}}this._showViewZone(pe)}},He.prototype._hide=function(Oe){this._isVisible&&(this._isVisible=!1,this._updateButtons(),ee.P(this._domNode,"visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),Oe&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())},He.prototype._layoutViewZone=function(){var Oe=this,rt=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!rt){this._removeViewZone();return}if(!this._isVisible)return;var It=this._viewZone;if(this._viewZoneId!==void 0||!It)return;this._codeEditor.changeViewZones(function(pe){It.heightInPx=Oe._getHeight(),Oe._viewZoneId=pe.addZone(It),Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()+It.heightInPx)})},He.prototype._showViewZone=function(Oe){var rt=this;if(Oe===void 0&&(Oe=!0),!this._isVisible)return;var It=this._codeEditor.getOption(28).addExtraSpaceOnTop;if(!It)return;this._viewZone===void 0&&(this._viewZone=new Qo(0));var pe=this._viewZone;this._codeEditor.changeViewZones(function(D){if(rt._viewZoneId!==void 0){var ye=rt._getHeight();if(ye===pe.heightInPx)return;var We=ye-pe.heightInPx;pe.heightInPx=ye,D.layoutZone(rt._viewZoneId),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We);return}else{var We=rt._getHeight();pe.heightInPx=We,rt._viewZoneId=D.addZone(pe),Oe&&rt._codeEditor.setScrollTop(rt._codeEditor.getScrollTop()+We)}})},He.prototype._removeViewZone=function(){var Oe=this;this._codeEditor.changeViewZones(function(rt){Oe._viewZoneId!==void 0&&(rt.removeZone(Oe._viewZoneId),Oe._viewZoneId=void 0,Oe._viewZone&&(Oe._codeEditor.setScrollTop(Oe._codeEditor.getScrollTop()-Oe._viewZone.heightInPx),Oe._viewZone=void 0))})},He.prototype._applyTheme=function(Oe){var rt={inputActiveOptionBorder:Oe.getColor(v.Y),inputActiveOptionBackground:Oe.getColor(v.X),inputBackground:Oe.getColor(v.Z),inputForeground:Oe.getColor(v.bb),inputBorder:Oe.getColor(v.ab),inputValidationInfoBackground:Oe.getColor(v.fb),inputValidationInfoForeground:Oe.getColor(v.hb),inputValidationInfoBorder:Oe.getColor(v.gb),inputValidationWarningBackground:Oe.getColor(v.ib),inputValidationWarningForeground:Oe.getColor(v.kb),inputValidationWarningBorder:Oe.getColor(v.jb),inputValidationErrorBackground:Oe.getColor(v.cb),inputValidationErrorForeground:Oe.getColor(v.eb),inputValidationErrorBorder:Oe.getColor(v.db)};this._findInput.style(rt),this._replaceInput.style(rt),this._toggleSelectionFind.style(rt)},He.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;if(!ee.M(this._domNode))return;var Oe=this._codeEditor.getLayoutInfo(),rt=Oe.contentWidth;if(rt<=0){ee.f(this._domNode,"hiddenEditor");return}else ee.I(this._domNode,"hiddenEditor")&&ee.P(this._domNode,"hiddenEditor");var It=Oe.width,pe=Oe.minimapWidth,D=!1,ye=!1,We=!1;if(this._resized){var Ze=ee.H(this._domNode);if(Ze>Ao){this._domNode.style.maxWidth=It-28-pe-15+"px",this._replaceInput.width=ee.H(this._findInput.domNode);return}}if(Ao+28+pe>=It&&(ye=!0),Ao+28+pe-Wo>=It&&(We=!0),Ao+28+pe-Wo>=It+50&&(D=!0),ee.Y(this._domNode,"collapsed-find-widget",D),ee.Y(this._domNode,"narrow-find-widget",We),ee.Y(this._domNode,"reduced-find-widget",ye),!We&&!D&&(this._domNode.style.maxWidth=It-28-pe-15+"px"),this._resized){this._findInput.inputBox.layout();var st=this._findInput.inputBox.element.clientWidth;st>0&&(this._replaceInput.width=st)}else this._isReplaceVisible&&(this._replaceInput.width=ee.H(this._findInput.domNode))},He.prototype._getHeight=function(){var Oe=0;return Oe+=4,Oe+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(Oe+=4,Oe+=this._replaceInput.inputBox.height+2),Oe+=4,Oe},He.prototype._tryUpdateHeight=function(){var Oe=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===Oe?!1:(this._cachedHeight=Oe,this._domNode.style.height=Oe+"px",!0)},He.prototype.focusFindInput=function(){this._findInput.select(),this._findInput.focus()},He.prototype.focusReplaceInput=function(){this._replaceInput.select(),this._replaceInput.focus()},He.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()},He.prototype._updateSearchScope=function(){if(!this._codeEditor.hasModel())return;if(this._toggleSelectionFind.checked){var Oe=this._codeEditor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(Oe.endLineNumber-1)));var rt=this._state.currentMatch;Oe.startLineNumber!==Oe.endLineNumber&&(x.a.equalsRange(Oe,rt)||this._state.change({searchScope:Oe},!0))}},He.prototype._onFindInputMouseDown=function(Oe){Oe.middleButton&&Oe.stopPropagation()},He.prototype._onFindInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){this._findInput.inputBox.insertAtCursor(` +`),Oe.preventDefault();return}if(Oe.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))},He.prototype._onReplaceInputKeyDown=function(Oe){if(Oe.equals(Mo|3)){pt.h&&pt.f&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(T.a("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(Bo,!0,0)),this._replaceInput.inputBox.insertAtCursor(` +`),Oe.preventDefault();return}if(Oe.equals(2)){this._findInput.focusOnCaseSensitive(),Oe.preventDefault();return}if(Oe.equals(1024|2)){this._findInput.focus(),Oe.preventDefault();return}if(Oe.equals(2048|18)){this._codeEditor.focus(),Oe.preventDefault();return}if(Oe.equals(16))return fn(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(Oe.equals(18))return Vo(Oe,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))},He.prototype.getHorizontalSashTop=function(Oe){return 0},He.prototype.getHorizontalSashLeft=function(Oe){return 0},He.prototype.getHorizontalSashWidth=function(Oe){return 500},He.prototype._keybindingLabelFor=function(Oe){var rt=this._keybindingService.lookupKeybinding(Oe);return rt?" ("+rt.getLabel()+")":""},He.prototype._buildDomNode=function(){var Oe=this,rt=!0,It=!0;this._findInput=this._register(new $e(null,this._contextViewProvider,{width:Co,label:fe,placeholder:G,appendCaseSensitiveLabel:this._keybindingLabelFor(Fe.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(Fe.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(Fe.ToggleRegexCommand),validation:function(mt){if(mt.length===0||!Oe._findInput.getRegex())return null;try{return new RegExp(mt),null}catch(Kt){return{content:Kt.message}}},flexibleHeight:rt,flexibleWidth:It,flexibleMaxHeight:118},this._contextKeyService,!0)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(function(st){return Oe._onFindInputKeyDown(st)})),this._register(this._findInput.inputBox.onDidChange(function(){if(Oe._ignoreChangeEvent)return;Oe._state.change({searchString:Oe._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(function(){Oe._state.change({isRegex:Oe._findInput.getRegex(),wholeWord:Oe._findInput.getWholeWords(),matchCase:Oe._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(function(st){st.equals(1024|2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focus(),st.preventDefault()))})),this._register(this._findInput.onRegexKeyDown(function(st){st.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceInput.focusOnPreserve(),st.preventDefault()))})),this._register(this._findInput.inputBox.onDidHeightChange(function(st){Oe._tryUpdateHeight()&&Oe._showViewZone()})),pt.d&&this._register(this._findInput.onMouseDown(function(st){return Oe._onFindInputMouseDown(st)})),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new yn({label:te+this._keybindingLabelFor(Fe.PreviousMatchFindAction),className:"codicon codicon-arrow-up",onTrigger:function(){Oe._codeEditor.getAction(Fe.PreviousMatchFindAction).run().then(void 0,it.e)}})),this._nextBtn=this._register(new yn({label:Y+this._keybindingLabelFor(Fe.NextMatchFindAction),className:"codicon codicon-arrow-down",onTrigger:function(){Oe._codeEditor.getAction(Fe.NextMatchFindAction).run().then(void 0,it.e)}}));var pe=document.createElement("div");pe.className="find-part",pe.appendChild(this._findInput.domNode);var D=document.createElement("div");D.className="find-actions",pe.appendChild(D),D.appendChild(this._matchesCount),D.appendChild(this._prevBtn.domNode),D.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new me({actionClassName:"codicon codicon-selection",title:de+this._keybindingLabelFor(Fe.ToggleSearchScopeCommand),isChecked:!1})),this._register(this._toggleSelectionFind.onChange(function(){if(Oe._toggleSelectionFind.checked){if(Oe._codeEditor.hasModel()){var st=Oe._codeEditor.getSelection();st.endColumn===1&&st.endLineNumber>st.startLineNumber&&(st=st.setEndPosition(st.endLineNumber-1,Oe._codeEditor.getModel().getLineMaxColumn(st.endLineNumber-1))),st.isEmpty()||Oe._state.change({searchScope:st},!0)}}else Oe._state.change({searchScope:null},!0)})),D.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new yn({label:ke+this._keybindingLabelFor(Fe.CloseFindWidgetCommand),className:"codicon codicon-close",onTrigger:function(){Oe._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(mt){mt.equals(2)&&(Oe._isReplaceVisible&&(Oe._replaceBtn.isEnabled()?Oe._replaceBtn.focus():Oe._codeEditor.focus(),mt.preventDefault()))}})),D.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new ze(null,void 0,{label:lt,placeholder:Tt,history:[],flexibleHeight:rt,flexibleWidth:It,flexibleMaxHeight:118},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(function(st){return Oe._onReplaceInputKeyDown(st)})),this._register(this._replaceInput.inputBox.onDidChange(function(){Oe._state.change({replaceString:Oe._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(function(st){Oe._isReplaceVisible&&Oe._tryUpdateHeight()&&Oe._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(function(){Oe._state.change({preserveCase:Oe._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(function(st){st.equals(2)&&(Oe._prevBtn.isEnabled()?Oe._prevBtn.focus():Oe._nextBtn.isEnabled()?Oe._nextBtn.focus():Oe._toggleSelectionFind.enabled?Oe._toggleSelectionFind.focus():Oe._closeBtn.isEnabled()&&Oe._closeBtn.focus(),st.preventDefault())})),this._replaceBtn=this._register(new yn({label:Jt+this._keybindingLabelFor(Fe.ReplaceOneAction),className:"codicon codicon-replace",onTrigger:function(){Oe._controller.replace()},onKeyDown:function(mt){mt.equals(1024|2)&&(Oe._closeBtn.focus(),mt.preventDefault())}})),this._replaceAllBtn=this._register(new yn({label:eo+this._keybindingLabelFor(Fe.ReplaceAllAction),className:"codicon codicon-replace-all",onTrigger:function(){Oe._controller.replaceAll()}}));var ye=document.createElement("div");ye.className="replace-part",ye.appendChild(this._replaceInput.domNode);var We=document.createElement("div");We.className="replace-actions",ye.appendChild(We),We.appendChild(this._replaceBtn.domNode),We.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new yn({label:po,className:"codicon toggle left",onTrigger:function(){Oe._state.change({isReplaceRevealed:!Oe._isReplaceVisible},!1),Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode),Oe._replaceInput.inputBox.layout()),Oe._showViewZone()}})),this._toggleReplaceBtn.toggleClass("codicon-chevron-down",this._isReplaceVisible),this._toggleReplaceBtn.toggleClass("codicon-chevron-right",!this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=Ao+"px",this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(pe),this._domNode.appendChild(ye),this._resizeSash=new Qe.a(this._domNode,this,{orientation:0}),this._resized=!1;var Ze=Ao;this._register(this._resizeSash.onDidStart(function(){Ze=ee.H(Oe._domNode)})),this._register(this._resizeSash.onDidChange(function(st){Oe._resized=!0;var mt=Ze+st.startX-st.currentX;if(mtKt)return;Oe._domNode.style.width=mt+"px",Oe._isReplaceVisible&&(Oe._replaceInput.width=ee.H(Oe._findInput.domNode)),Oe._findInput.inputBox.layout(),Oe._tryUpdateHeight()})),this._register(this._resizeSash.onDidReset(function(){var st=ee.H(Oe._domNode);if(st=0},He.prototype.focus=function(){this._domNode.focus()},He.prototype.setEnabled=function(Oe){ee.Y(this._domNode,"disabled",!Oe),this._domNode.setAttribute("aria-disabled",String(!Oe)),this._domNode.tabIndex=Oe?0:-1},He.prototype.setExpanded=function(Oe){this._domNode.setAttribute("aria-expanded",String(!!Oe))},He.prototype.toggleClass=function(Oe,rt){ee.Y(this._domNode,Oe,rt)},He}(q.a);Object(w.e)(function(yt,He){var Oe=function(vo,lo){lo&&He.addRule(".monaco-editor "+vo+" { background-color: "+lo+"; }")};Oe(".findMatch",yt.getColor(v.t)),Oe(".currentFindMatch",yt.getColor(v.r)),Oe(".findScope",yt.getColor(v.v));var rt=yt.getColor(v.Q);Oe(".find-widget",rt);var It=yt.getColor(v.hc);It&&He.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+It+"; }");var pe=yt.getColor(v.u);pe&&He.addRule(".monaco-editor .findMatch { border: 1px "+(yt.type==="hc"?"dotted":"solid")+" "+pe+"; box-sizing: border-box; }");var D=yt.getColor(v.s);D&&He.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+D+"; padding: 1px; box-sizing: border-box; }");var ye=yt.getColor(v.w);ye&&He.addRule(".monaco-editor .findScope { border: 1px "+(yt.type==="hc"?"dashed":"solid")+" "+ye+"; }");var We=yt.getColor(v.e);We&&He.addRule(".monaco-editor .find-widget { border: 1px solid "+We+"; }");var Ze=yt.getColor(v.S);Ze&&He.addRule(".monaco-editor .find-widget { color: "+Ze+"; }");var st=yt.getColor(v.U);st&&He.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+st+"; }");var mt=yt.getColor(v.T);if(mt)He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+mt+"; width: 3px !important; margin-left: -4px;}");else{var Kt=yt.getColor(v.R);Kt&&He.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+Kt+"; width: 3px !important; margin-left: -4px;}")}var Xt=yt.getColor(v.V);Xt&&He.addRule(".monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: "+Xt+"; }")});var dn=e("9XeP"),rn=e("Uzvx"),pn=e("Cg/j"),zo=e("bexQ"),Ho=e("A+jI"),St=e("sM1p"),ot=function(){var yt=function(Oe,rt){return yt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(It,pe){It.__proto__=pe}||function(It,pe){for(var D in pe)pe.hasOwnProperty(D)&&(It[D]=pe[D])},yt(Oe,rt)};return function(He,Oe){yt(He,Oe);function rt(){this.constructor=He}He.prototype=Oe===null?Object.create(Oe):(rt.prototype=Oe.prototype,new rt)}}(),nt=function(yt,He,Oe,rt){var It=arguments.length,pe=It<3?He:rt===null?rt=Object.getOwnPropertyDescriptor(He,Oe):rt,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")pe=Reflect.decorate(yt,He,Oe,rt);else for(var ye=yt.length-1;ye>=0;ye--)(D=yt[ye])&&(pe=(It<3?D(pe):It>3?D(He,Oe,pe):D(He,Oe))||pe);return It>3&&pe&&Object.defineProperty(He,Oe,pe),pe},Dt=function(yt,He){return function(Oe,rt){He(Oe,rt,yt)}},_e=524288;function M(yt){if(!yt.hasModel())return null;var He=yt.getSelection();if(He.startLineNumber===He.endLineNumber){if(He.isEmpty()){var Oe=yt.getModel().getWordAtPosition(He.getStartPosition());if(Oe)return Oe.word}else if(yt.getModel().getValueLengthInRange(He)<_e)return yt.getModel().getValueInRange(He)}return null}var P=function(yt){ot(He,yt);function He(Oe,rt,It,pe){var D=yt.call(this)||this;return D._editor=Oe,D._findWidgetVisible=ie.bindTo(rt),D._contextKeyService=rt,D._storageService=It,D._clipboardService=pe,D._updateHistoryDelayer=new re.a(500),D._state=D._register(new De),D.loadQueryState(),D._register(D._state.onFindReplaceStateChange(function(ye){return D._onStateChanged(ye)})),D._model=null,D._register(D._editor.onDidChangeModel(function(){var ye=D._editor.getModel()&&D._state.isRevealed;D.disposeModel(),D._state.change({searchScope:null,matchCase:D._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:D._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:D._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:D._storageService.getBoolean("editor.preserveCase",1,!1)},!1),ye&&D._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})})),D}return He.get=function(Oe){return Oe.getContribution(He.ID)},He.prototype.dispose=function(){this.disposeModel(),yt.prototype.dispose.call(this)},He.prototype.disposeModel=function(){this._model&&(this._model.dispose(),this._model=null)},He.prototype._onStateChanged=function(Oe){this.saveQueryState(Oe),Oe.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),Oe.searchString&&this.setGlobalBufferTerm(this._state.searchString)},He.prototype.saveQueryState=function(Oe){Oe.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1),Oe.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1),Oe.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1),Oe.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1)},He.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)},He.prototype.isFindInputFocused=function(){return!!W.getValue(this._contextKeyService)},He.prototype.getState=function(){return this._state},He.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()},He.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()},He.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){var Oe=this._editor.getSelection();Oe.endColumn===1&&Oe.endLineNumber>Oe.startLineNumber&&(Oe=Oe.setEndPosition(Oe.endLineNumber-1,this._editor.getModel().getLineMaxColumn(Oe.endLineNumber-1))),Oe.isEmpty()||this._state.change({searchScope:Oe},!0)}},He.prototype.setSearchString=function(Oe){this._state.isRegex&&(Oe=I.p(Oe)),this._state.change({searchString:Oe},!1)},He.prototype.highlightFindOptions=function(){},He.prototype._start=function(Oe){if(this.disposeModel(),!this._editor.hasModel())return;var rt={isRevealed:!0};if(Oe.seedSearchStringFromSelection){var It=M(this._editor);It&&(this._state.isRegex?rt.searchString=I.p(It):rt.searchString=It)}if(!rt.searchString&&Oe.seedSearchStringFromGlobalClipboard){var It=this.getGlobalBufferTerm();It&&(rt.searchString=It)}if(Oe.forceRevealReplace?rt.isReplaceRevealed=!0:this._findWidgetVisible.get()||(rt.isReplaceRevealed=!1),Oe.updateSearchScope){var pe=this._editor.getSelection();pe.isEmpty()||(rt.searchScope=pe)}this._state.change(rt,!1),this._model||(this._model=new ne(this._editor,this._state))},He.prototype.start=function(Oe){this._start(Oe)},He.prototype.moveToNextMatch=function(){return this._model?(this._model.moveToNextMatch(),!0):!1},He.prototype.moveToPrevMatch=function(){return this._model?(this._model.moveToPrevMatch(),!0):!1},He.prototype.replace=function(){return this._model?(this._model.replace(),!0):!1},He.prototype.replaceAll=function(){return this._model?(this._model.replaceAll(),!0):!1},He.prototype.selectAllMatches=function(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1},He.prototype.getGlobalBufferTerm=function(){return this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""},He.prototype.setGlobalBufferTerm=function(Oe){this._editor.getOption(28).globalFindClipboard&&this._clipboardService&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(Oe)},He.ID="editor.contrib.findController",He=nt([Dt(1,$.c),Dt(2,Ho.a),Dt(3,dn.a)],He),He}(J.a),Z=function(yt){ot(He,yt);function He(Oe,rt,It,pe,D,ye,We,Ze){var st=yt.call(this,Oe,It,We,Ze)||this;return st._contextViewService=rt,st._keybindingService=pe,st._themeService=D,st._notificationService=ye,st._widget=null,st._findOptionsWidget=null,st}return He.prototype._start=function(Oe){this._widget||this._createFindWidget();var rt=this._editor.getSelection(),It=!1;switch(this._editor.getOption(28).autoFindInSelection){case"always":It=!0;break;case"never":It=!1;break;case"multiline":var pe=!!rt&&rt.startLineNumber!==rt.endLineNumber;It=pe;break;default:break}Oe.updateSearchScope=It,yt.prototype._start.call(this,Oe),Oe.shouldFocus===2?this._widget.focusReplaceInput():Oe.shouldFocus===1&&this._widget.focusFindInput()},He.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget(),this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()},He.prototype._createFindWidget=function(){this._widget=this._register(new mn(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new se(this._editor,this._state,this._keybindingService,this._themeService))},He=nt([Dt(1,rn.b),Dt(2,$.c),Dt(3,zo.a),Dt(4,w.c),Dt(5,St.a),Dt(6,Ho.a),Dt(7,Object(pn.d)(dn.a))],He),He}(P),Ae=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.StartFindAction,label:T.a("startFindAction","Find"),alias:"Find",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|36,weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:rt.getOption(28).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})},He}(U.b),xe=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.StartFindWithSelection,label:T.a("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2048|35},weight:100}})||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),It.setGlobalBufferTerm(It.getState().searchString))},He}(U.b),Ne=function(yt){ot(He,yt);function He(){return yt!==null&&yt.apply(this,arguments)||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);It&&!this._run(It)&&(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:It.getState().searchString.length===0&&rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},He}(U.b),dt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:61,mac:{primary:2048|37,secondary:[61]},weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ne),ht=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.NextMatchFindAction,label:T.a("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:3,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ne),xt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:1024|61,mac:{primary:2048|1024|37,secondary:[1024|61]},weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ne),Bt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.PreviousMatchFindAction,label:T.a("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:{kbExpr:$.a.and(z.a.focus,W),primary:1024|3,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ne),Ht=function(yt){ot(He,yt);function He(){return yt!==null&&yt.apply(this,arguments)||this}return He.prototype.run=function(Oe,rt){var It=P.get(rt);if(!It)return;var pe=M(rt);pe&&It.setSearchString(pe),this._run(It)||(It.start({forceRevealReplace:!1,seedSearchStringFromSelection:rt.getOption(28).seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1}),this._run(It))},He}(U.b),Ut=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.NextSelectionMatchFindAction,label:T.a("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|61,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToNextMatch()},He}(Ht),oo=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.PreviousSelectionMatchFindAction,label:T.a("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:z.a.focus,primary:2048|1024|61,weight:100}})||this}return He.prototype._run=function(Oe){return Oe.moveToPrevMatch()},He}(Ht),Zt=function(yt){ot(He,yt);function He(){return yt.call(this,{id:Fe.StartFindReplaceAction,label:T.a("startReplace","Replace"),alias:"Replace",precondition:void 0,kbOpts:{kbExpr:null,primary:2048|38,mac:{primary:2048|512|36},weight:100},menuOpts:{menuId:17,group:"3_find",title:T.a({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}return He.prototype.run=function(Oe,rt){if(!rt.hasModel()||rt.getOption(68))return;var It=P.get(rt),pe=rt.getSelection(),D=It.isFindInputFocused(),ye=!pe.isEmpty()&&pe.startLineNumber===pe.endLineNumber&&rt.getOption(28).seedSearchStringFromSelection&&!D,We=D||ye?2:1;It&&It.start({forceRevealReplace:!0,seedSearchStringFromSelection:ye,seedSearchStringFromGlobalClipboard:rt.getOption(28).seedSearchStringFromSelection,shouldFocus:We,shouldAnimate:!0,updateSearchScope:!1})},He}(U.b);Object(U.h)(P.ID,Z),Object(U.f)(Ae),Object(U.f)(xe),Object(U.f)(dt),Object(U.f)(ht),Object(U.f)(xt),Object(U.f)(Bt),Object(U.f)(Ut),Object(U.f)(oo),Object(U.f)(Zt);var fo=U.c.bindToContribution(P.get);Object(U.g)(new fo({id:Fe.CloseFindWidgetCommand,precondition:ie,handler:function(He){return He.closeFindWidget()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:9,secondary:[1024|9]}})),Object(U.g)(new fo({id:Fe.ToggleCaseSensitiveCommand,precondition:void 0,handler:function(He){return He.toggleCaseSensitive()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:le.primary,mac:le.mac,win:le.win,linux:le.linux}})),Object(U.g)(new fo({id:Fe.ToggleWholeWordCommand,precondition:void 0,handler:function(He){return He.toggleWholeWords()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Ce.primary,mac:Ce.mac,win:Ce.win,linux:Ce.linux}})),Object(U.g)(new fo({id:Fe.ToggleRegexCommand,precondition:void 0,handler:function(He){return He.toggleRegex()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Me.primary,mac:Me.mac,win:Me.win,linux:Me.linux}})),Object(U.g)(new fo({id:Fe.ToggleSearchScopeCommand,precondition:void 0,handler:function(He){return He.toggleSearchScope()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:Te.primary,mac:Te.mac,win:Te.win,linux:Te.linux}})),Object(U.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(He){return He.replace()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|1024|22}})),Object(U.g)(new fo({id:Fe.ReplaceOneAction,precondition:ie,handler:function(He){return He.replace()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:3}})),Object(U.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(He){return He.replaceAll()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:2048|512|3}})),Object(U.g)(new fo({id:Fe.ReplaceAllAction,precondition:ie,handler:function(He){return He.replaceAll()},kbOpts:{weight:100+5,kbExpr:$.a.and(z.a.focus,B),primary:void 0,mac:{primary:2048|3}}})),Object(U.g)(new fo({id:Fe.SelectAllMatchesAction,precondition:ie,handler:function(He){return He.selectAllMatches()},kbOpts:{weight:100+5,kbExpr:z.a.focus,primary:512|3}}))},oiKk:function(Lt,j,e){"use strict";e.r(j),e.d(j,"IPadShowKeyboard",function(){return H});var T=e("ci+S"),re=e.n(T),J=e("D3Dy"),I=e("EffR"),U=e("pmY6"),z=e("sswD"),O=function(){var u=function(_,f){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,w){v.__proto__=w}||function(v,w){for(var p in w)w.hasOwnProperty(p)&&(v[p]=w[p])},u(_,f)};return function(y,_){u(y,_);function f(){this.constructor=y}y.prototype=_===null?Object.create(_):(f.prototype=_.prototype,new f)}}(),H=function(u){O(y,u);function y(_){var f=u.call(this)||this;return f.editor=_,f.widget=null,J.j&&(f._register(_.onDidChangeConfiguration(function(){return f.update()})),f.update()),f}return y.prototype.update=function(){var _=!this.editor.getOption(68);!this.widget&&_?this.widget=new x(this.editor):this.widget&&!_&&(this.widget.dispose(),this.widget=null)},y.prototype.dispose=function(){u.prototype.dispose.call(this),this.widget&&(this.widget.dispose(),this.widget=null)},y.ID="editor.contrib.iPadShowKeyboard",y}(U.a),x=function(u){O(y,u);function y(_){var f=u.call(this)||this;return f.editor=_,f._domNode=document.createElement("textarea"),f._domNode.className="iPadShowKeyboard",f._register(I.j(f._domNode,"touchstart",function(v){f.editor.focus()})),f._register(I.j(f._domNode,"focus",function(v){f.editor.focus()})),f.editor.addOverlayWidget(f),f}return y.prototype.dispose=function(){this.editor.removeOverlayWidget(this),u.prototype.dispose.call(this)},y.prototype.getId=function(){return y.ID},y.prototype.getDomNode=function(){return this._domNode},y.prototype.getPosition=function(){return{preference:1}},y.ID="editor.contrib.ShowKeyboardWidget",y}(U.a);Object(z.h)(H.ID,H)},p3Ex:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:function(){return e.e(280).then(e.bind(null,"/Om3"))}})},p5tG:function(Lt,j,e){"use strict";e.r(j),e.d(j,"LanguageServiceDefaultsImpl",function(){return I});var T=e("M/lh"),re=e.n(T);"use strict";var J=monaco.Emitter,I=function(){function u(y,_,f){this._onDidChange=new J,this._languageId=y,this.setDiagnosticsOptions(_),this.setModeConfiguration(f)}return Object.defineProperty(u.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"modeConfiguration",{get:function(){return this._modeConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0}),u.prototype.setDiagnosticsOptions=function(y){this._diagnosticsOptions=y||Object.create(null),this._onDidChange.fire(this)},u.prototype.setModeConfiguration=function(y){this._modeConfiguration=y||Object.create(null),this._onDidChange.fire(this)},u}(),U={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1},z={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},O=new I("json",U,z);function H(){return{jsonDefaults:O}}monaco.languages.json=H();function x(){return e.e(271).then(e.bind(null,"R7lK"))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]}),monaco.languages.onLanguage("json",function(){x().then(function(u){return u.setupMode(O)})})},pAvP:function(Lt,j,e){"use strict";e.d(j,"a",function(){return J});var T=e("Cg/j"),re="editorWorkerService",J=Object(T.c)(re)},pI2L:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:function(){return e.e(312).then(e.bind(null,"KpXS"))}})},pg8w:function(Lt,j,e){"use strict";e.d(j,"a",function(){return O}),e.d(j,"b",function(){return H});var T=e("6OMU"),re=e("pmY6"),J=e("EffR"),I=e("ZCR3"),U=function(){var x=function(y,_){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,v){f.__proto__=v}||function(f,v){for(var w in v)v.hasOwnProperty(w)&&(f[w]=v[w])},x(y,_)};return function(u,y){x(u,y);function _(){this.constructor=u}u.prototype=y===null?Object.create(y):(_.prototype=y.prototype,new _)}}(),z=function(x,u,y,_){var f=arguments.length,v=f<3?u:_===null?_=Object.getOwnPropertyDescriptor(u,y):_,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")v=Reflect.decorate(x,u,y,_);else for(var p=x.length-1;p>=0;p--)(w=x[p])&&(v=(f<3?w(v):f>3?w(u,y,v):w(u,y))||v);return f>3&&v&&Object.defineProperty(u,y,v),v},O;(function(x){x.Tap="-monaco-gesturetap",x.Change="-monaco-gesturechange",x.Start="-monaco-gesturestart",x.End="-monaco-gesturesend",x.Contextmenu="-monaco-gesturecontextmenu"})(O||(O={}));var H=function(x){U(u,x);function u(){var y=x.call(this)||this;return y.dispatched=!1,y.activeTouches={},y.handle=null,y.targets=[],y.ignoreTargets=[],y._lastSetTapCountTime=0,y._register(J.j(document,"touchstart",function(_){return y.onTouchStart(_)})),y._register(J.j(document,"touchend",function(_){return y.onTouchEnd(_)})),y._register(J.j(document,"touchmove",function(_){return y.onTouchMove(_)})),y}return u.addTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.targets.push(y),{dispose:function(){u.INSTANCE.targets=u.INSTANCE.targets.filter(function(f){return f!==y})}}):re.a.None},u.ignoreTarget=function(y){return u.isTouchDevice()?(u.INSTANCE||(u.INSTANCE=new u),u.INSTANCE.ignoreTargets.push(y),{dispose:function(){u.INSTANCE.ignoreTargets=u.INSTANCE.ignoreTargets.filter(function(f){return f!==y})}}):re.a.None},u.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0},u.prototype.dispose=function(){this.handle&&(this.handle.dispose(),this.handle=null),x.prototype.dispose.call(this)},u.prototype.onTouchStart=function(y){var _=Date.now();this.handle&&(this.handle.dispose(),this.handle=null);for(var f=0,v=y.targetTouches.length;f=u.HOLD_DELAY&&Math.abs(E.initialPageX-T.v(E.rollingPageX))<30&&Math.abs(E.initialPageY-T.v(E.rollingPageY))<30){var A=w.newGestureEvent(O.Contextmenu,E.initialTarget);A.pageX=T.v(E.rollingPageX),A.pageY=T.v(E.rollingPageY),w.dispatchEvent(A)}else if(f===1){var k=T.v(E.rollingPageX),R=T.v(E.rollingPageY),$=T.v(E.rollingTimestamps)-E.rollingTimestamps[0],ie=k-E.rollingPageX[0],W=R-E.rollingPageY[0],B=w.targets.filter(function(le){return E.initialTarget instanceof Node&&le.contains(E.initialTarget)});w.inertia(B,_,Math.abs(ie)/$,ie>0?1:-1,k,Math.abs(W)/$,W>0?1:-1,R)}w.dispatchEvent(w.newGestureEvent(O.End,E.initialTarget)),delete w.activeTouches[m.identifier]},w=this,p=0,c=y.changedTouches.length;pu.CLEAR_TAP_COUNT_TIME?v=1:v=2,this._lastSetTapCountTime=f,y.tapCount=v}else(y.type===O.Change||y.type===O.Contextmenu)&&(this._lastSetTapCountTime=0);for(var w=0;w0&&(A=!1,E=v*f*m),p>0&&(A=!1,L=c*p*m);var k=l.newGestureEvent(O.Change);k.translationX=E,k.translationY=L,y.forEach(function(R){return R.dispatchEvent(k)}),A||l.inertia(y,d,f,v,w+E,p,c,s+L)})},u.prototype.onTouchMove=function(y){for(var _=Date.now(),f=0,v=y.changedTouches.length;f3&&(p.rollingPageX.shift(),p.rollingPageY.shift(),p.rollingTimestamps.shift()),p.rollingPageX.push(w.pageX),p.rollingPageY.push(w.pageY),p.rollingTimestamps.push(_)}this.dispatched&&(y.preventDefault(),y.stopPropagation(),this.dispatched=!1)},u.SCROLL_FRICTION=-.005,u.HOLD_DELAY=700,u.CLEAR_TAP_COUNT_TIME=400,z([I.a],u,"isTouchDevice",null),u}(re.a)},pmY6:function(Lt,j,e){"use strict";e.d(j,"g",function(){return U}),e.d(j,"f",function(){return z}),e.d(j,"e",function(){return O}),e.d(j,"h",function(){return H}),e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"d",function(){return y}),e.d(j,"c",function(){return _});var T=!1,re="__is_disposable_tracked__";function J(f){if(!T)return;if(f&&f!==u.None)try{f[re]=!0}catch(v){}}function I(f){if(!T)return f;var v=new Error("Potentially leaked disposable").stack;return setTimeout(function(){f[re]||console.log(v)},3e3),f}function U(f){return typeof f.dispose=="function"&&f.dispose.length===0}function z(f){return Array.isArray(f)?(f.forEach(function(v){v&&(J(v),v.dispose())}),[]):f?(J(f),f.dispose(),f):void 0}function O(){for(var f=[],v=0;v0;){var f=_.shift();Object.freeze(f);for(var v in f)if(I.call(f,v)){var w=f[v];typeof w=="object"&&!Object.isFrozen(w)&&_.push(w)}}return y}var I=Object.prototype.hasOwnProperty;function U(y,_){return z(y,_,new Set)}function z(y,_,f){if(Object(T.l)(y))return y;var v=_(y);if(typeof v!="undefined")return v;if(Object(T.d)(y)){for(var w=[],p=0,c=y;put.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)},enumerable:!0,configurable:!0}),at.prototype.selectNextColorPresentation=function(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)},at.prototype.guessColorPresentation=function(tt,ut){for(var Ct=0;Ct0;return tt&&ut}var ee=e("X+cX"),ae=function(){function at(tt,ut,Ct,gt,bt){var Gt=this;this._computer=tt,this._state=0,this._hoverTime=bt,this._firstWaitScheduler=new ee.d(function(){return Gt._triggerAsyncComputation()},0),this._secondWaitScheduler=new ee.d(function(){return Gt._triggerSyncComputation()},0),this._loadingMessageScheduler=new ee.d(function(){return Gt._showLoadingMessage()},0),this._asyncComputationPromise=null,this._asyncComputationPromiseDone=!1,this._completeCallback=ut,this._errorCallback=Ct,this._progressCallback=gt}return at.prototype.setHoverTime=function(tt){this._hoverTime=tt},at.prototype._firstWaitTime=function(){return this._hoverTime/2},at.prototype._secondWaitTime=function(){return this._hoverTime/2},at.prototype._loadingMessageTime=function(){return 3*this._hoverTime},at.prototype._triggerAsyncComputation=function(){var tt=this;this._state=2,this._secondWaitScheduler.schedule(this._secondWaitTime()),this._computer.computeAsync?(this._asyncComputationPromiseDone=!1,this._asyncComputationPromise=Object(ee.f)(function(ut){return tt._computer.computeAsync(ut)}),this._asyncComputationPromise.then(function(ut){tt._asyncComputationPromiseDone=!0,tt._withAsyncResult(ut)},function(ut){return tt._onError(ut)})):this._asyncComputationPromiseDone=!0},at.prototype._triggerSyncComputation=function(){this._computer.computeSync&&this._computer.onResult(this._computer.computeSync(),!0),this._asyncComputationPromiseDone?(this._state=0,this._onComplete(this._computer.getResult())):(this._state=3,this._onProgress(this._computer.getResult()))},at.prototype._showLoadingMessage=function(){this._state===3&&this._onProgress(this._computer.getResultWithLoadingMessage())},at.prototype._withAsyncResult=function(tt){tt&&this._computer.onResult(tt,!1),this._state===3&&(this._state=0,this._onComplete(this._computer.getResult()))},at.prototype._onComplete=function(tt){this._completeCallback&&this._completeCallback(tt)},at.prototype._onError=function(tt){this._errorCallback?this._errorCallback(tt):Object(Ue.e)(tt)},at.prototype._onProgress=function(tt){this._progressCallback&&this._progressCallback(tt)},at.prototype.start=function(tt){if(tt===0)this._state===0&&(this._state=1,this._firstWaitScheduler.schedule(this._firstWaitTime()),this._loadingMessageScheduler.schedule(this._loadingMessageTime()));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}},at.prototype.cancel=function(){this._loadingMessageScheduler.cancel(),this._state===1&&this._firstWaitScheduler.cancel(),this._state===2&&(this._secondWaitScheduler.cancel(),this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state===3&&(this._asyncComputationPromise&&(this._asyncComputationPromise.cancel(),this._asyncComputationPromise=null)),this._state=0},at}(),q=e("GJhM"),ue=function(){var at=function(ut,Ct){return at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,bt){gt.__proto__=bt}||function(gt,bt){for(var Gt in bt)bt.hasOwnProperty(Gt)&&(gt[Gt]=bt[Gt])},at(ut,Ct)};return function(tt,ut){at(tt,ut);function Ct(){this.constructor=tt}tt.prototype=ut===null?Object.create(ut):(Ct.prototype=ut.prototype,new Ct)}}(),X=function(){for(var at=0,tt=0,ut=arguments.length;ttthis._editor.getModel().getLineCount())return[];var gt=c.ColorDetector.get(this._editor),bt=ut.getLineMaxColumn(Ct),Gt=this._editor.getLineDecorations(Ct),Nt=!1,Et=this._range,Je=Gt.map(function($e){var ze=$e.range.startLineNumber===Ct?$e.range.startColumn:1,Ke=$e.range.endLineNumber===Ct?$e.range.endColumn:bt;if(ze>Et.startColumn||Et.endColumn>Ke)return null;var fe=new z.a(Et.startLineNumber,ze,Et.startLineNumber,Ke),G=tt._markerDecorationsService.getMarker(ut,$e);if(G)return new be(fe,G);var te=gt.getColorData($e.range.getStartPosition());if(!Nt&&te){Nt=!0;var Y=te.colorInfo,de=Y.color,ke=Y.range;return new oe(ke,de,te.provider)}else{if(Object(_.b)($e.options.hoverMessage))return null;var lt=$e.options.hoverMessage?Object(Fe.b)($e.options.hoverMessage):[];return{contents:lt,range:fe}}});return Object(Fe.d)(Je)},at.prototype.onResult=function(tt,ut){ut?this._result=tt.concat(this._result.sort(function(Ct,gt){return Ct instanceof oe?-1:gt instanceof oe?1:0})):this._result=this._result.concat(tt)},at.prototype.getResult=function(){return this._result.slice(0)},at.prototype.getResultWithLoadingMessage=function(){return this._result.slice(0).concat([this._getLoadingMessage()])},at.prototype._getLoadingMessage=function(){return{range:this._range,contents:[new _.a().appendText(re.a("modesContentHover.loading","Loading..."))]}},at}(),Se={type:2,filter:{include:Q.b.QuickFix}},Ve=function(at){C(tt,at);function tt(ut,Ct,gt,bt,Gt,Nt){Nt===void 0&&(Nt=we.b);var Et=at.call(this,tt.ID,ut)||this;return Et._themeService=gt,Et._keybindingService=bt,Et._modeService=Gt,Et._openerService=Nt,Et.renderDisposable=Et._register(new I.d),Et._messages=[],Et._lastRange=null,Et._computer=new De(Et._editor,Ct),Et._highlightDecorations=[],Et._isChangingDecorations=!1,Et._shouldFocus=!1,Et._colorPicker=null,Et._hoverOperation=new ae(Et._computer,function(Je){return Et._withResult(Je,!0)},null,function(Je){return Et._withResult(Je,!1)},Et._editor.getOption(44).delay),Et._register(x.o(Et.getDomNode(),x.d.FOCUS,function(){Et._colorPicker&&x.f(Et.getDomNode(),"colorpicker-hover")})),Et._register(x.o(Et.getDomNode(),x.d.BLUR,function(){x.P(Et.getDomNode(),"colorpicker-hover")})),Et._register(ut.onDidChangeConfiguration(function(Je){Et._hoverOperation.setHoverTime(Et._editor.getOption(44).delay)})),Et._register(w.B.onDidChange(function(Je){Et.isVisible&&Et._lastRange&&Et._messages.length>0&&(Et._domNode.textContent="",Et._renderMessages(Et._lastRange,Et._messages))})),Et}return tt.prototype.dispose=function(){this._hoverOperation.cancel(),at.prototype.dispose.call(this)},tt.prototype.onModelDecorationsChanged=function(){if(this._isChangingDecorations)return;this.isVisible&&(this._hoverOperation.cancel(),this._computer.clearResult(),this._colorPicker||this._hoverOperation.start(0))},tt.prototype.startShowingAt=function(ut,Ct,gt){if(this._lastRange&&this._lastRange.equalsRange(ut))return;if(this._hoverOperation.cancel(),this.isVisible)if(!this._showAtPosition||this._showAtPosition.lineNumber!==ut.startLineNumber)this.hide();else{for(var bt=[],Gt=0,Nt=this._messages.length;Gt=ut.endColumn&&bt.push(Et)}if(bt.length>0){if(Qe(bt,this._messages))return;this._renderMessages(ut,bt)}else this.hide()}this._lastRange=ut,this._computer.setRange(ut),this._shouldFocus=gt,this._hoverOperation.start(Ct)},tt.prototype.hide=function(){this._lastRange=null,this._hoverOperation.cancel(),at.prototype.hide.call(this),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,[]),this._isChangingDecorations=!1,this.renderDisposable.clear(),this._colorPicker=null},tt.prototype.isColorPickerVisible=function(){return!!this._colorPicker},tt.prototype._withResult=function(ut,Ct){this._messages=ut,this._lastRange&&this._messages.length>0?this._renderMessages(this._lastRange,this._messages):Ct&&this.hide()},tt.prototype._renderMessages=function(ut,Ct){var gt=this;this.renderDisposable.dispose(),this._colorPicker=null;var bt=1073741824,Gt=Ct[0].range?z.a.lift(Ct[0].range):null,Nt=document.createDocumentFragment(),Et=!0,Je=!1,$e=new I.b,ze=[];if(Ct.forEach(function(fe){if(!fe.range)return;if(bt=Math.min(bt,fe.range.startColumn),Gt=Gt?z.a.plusRange(Gt,fe.range):z.a.lift(fe.range),fe instanceof oe){Je=!0;var G=fe.color,te=G.red,Y=G.green,de=G.blue,ke=G.alpha,lt=new y.c(Math.round(te*255),Math.round(Y*255),Math.round(de*255),ke),Tt=new y.a(lt);if(!gt._editor.hasModel())return;var Jt=gt._editor.getModel(),eo=new z.a(fe.range.startLineNumber,fe.range.startColumn,fe.range.endLineNumber,fe.range.endColumn),po={range:fe.range,color:fe.color},co=new l(Tt,[],0),Eo=new Te(Nt,co,gt._editor.getOption(105),gt._themeService);Object(p.a)(Jt,po,fe.provider,u.a.None).then(function(Oo){if(co.colorPresentations=Oo||[],!gt._editor.hasModel())return;var Ao=gt._editor.getModel().getValueInRange(fe.range);co.guessColorPresentation(Tt,Ao);var Zo=function(){var Mo,Qo;co.presentation.textEdit?(Mo=[co.presentation.textEdit],Qo=new z.a(co.presentation.textEdit.range.startLineNumber,co.presentation.textEdit.range.startColumn,co.presentation.textEdit.range.endLineNumber,co.presentation.textEdit.range.endColumn),Qo=Qo.setEndPosition(Qo.endLineNumber,Qo.startColumn+co.presentation.textEdit.text.length)):(Mo=[{identifier:null,range:eo,text:co.presentation.label,forceMoveMarkers:!1}],Qo=eo.setEndPosition(eo.endLineNumber,eo.startColumn+co.presentation.label.length)),gt._editor.pushUndoStop(),gt._editor.executeEdits("colorpicker",Mo),co.presentation.additionalTextEdits&&(Mo=F(co.presentation.additionalTextEdits),gt._editor.executeEdits("colorpicker",Mo),gt.hide()),gt._editor.pushUndoStop(),eo=Qo},Co=function(Mo){return Object(p.a)(Jt,{range:eo,color:{red:Mo.rgba.r/255,green:Mo.rgba.g/255,blue:Mo.rgba.b/255,alpha:Mo.rgba.a}},fe.provider,u.a.None).then(function(Qo){co.colorPresentations=Qo||[]})},Wo=co.onColorFlushed(function(Bo){Co(Bo).then(Zo)}),Go=co.onDidChangeColor(Co);gt._colorPicker=Eo,gt.showAt(eo.getStartPosition(),eo,gt._shouldFocus),gt.updateContents(Nt),gt._colorPicker.layout(),gt.renderDisposable.value=Object(I.e)(Wo,Go,Eo,$e)})}else fe instanceof be?(ze.push(fe),Et=!1):fe.contents.filter(function(Oo){return!Object(_.b)(Oo)}).forEach(function(Oo){var Ao=se("div.hover-row.markdown-hover"),Zo=x.q(Ao,se("div.hover-contents")),Co=$e.add(new Xe.a(gt._editor,gt._modeService,gt._openerService));$e.add(Co.onDidRenderCodeBlock(function(){Zo.className="hover-contents code-hover-contents",gt.onContentsChange()}));var Wo=$e.add(Co.render(Oo));Zo.appendChild(Wo.element),Nt.appendChild(Ao),Et=!1})}),ze.length){ze.forEach(function(fe){return Nt.appendChild(gt.renderMarkerHover(fe))});var Ke=ze.length===1?ze[0]:ze.sort(function(fe,G){return me.c.compare(fe.marker.severity,G.marker.severity)})[0];Nt.appendChild(this.renderMarkerStatusbar(Ke))}!Je&&!Et&&(this.showAt(new f.a(ut.startLineNumber,bt),Gt,this._shouldFocus),this.updateContents(Nt)),this._isChangingDecorations=!0,this._highlightDecorations=this._editor.deltaDecorations(this._highlightDecorations,Gt?[{range:Gt,options:tt._DECORATION_OPTIONS}]:[]),this._isChangingDecorations=!1},tt.prototype.renderMarkerHover=function(ut){var Ct=this,gt=se("div.hover-row"),bt=x.q(gt,se("div.marker.hover-contents")),Gt=ut.marker,Nt=Gt.source,Et=Gt.message,Je=Gt.code,$e=Gt.relatedInformation;this._editor.applyFontInfo(bt);var ze=x.q(bt,se("span"));if(ze.style.whiteSpace="pre-wrap",ze.innerText=Et,Nt||Je){if(typeof Je=="string"){var Ke=x.q(bt,se("span"));Ke.style.opacity="0.6",Ke.style.paddingLeft="6px",Ke.innerText=Nt&&Je?Nt+"("+Je+")":Nt||"("+Je+")"}else if(Je){var fe=se("span");if(Nt){var G=x.q(fe,se("span"));G.innerText=Nt}this._codeLink=x.q(fe,se("a.code-link")),this._codeLink.setAttribute("href",Je.link.toString()),this._codeLink.onclick=function(Oo){Ct._openerService.open(Je.link),Oo.preventDefault(),Oo.stopPropagation()};var te=x.q(this._codeLink,se("span"));te.innerText=Je.value;var Ke=x.q(bt,fe);Ke.style.opacity="0.6",Ke.style.paddingLeft="6px"}}if(Object(Fe.q)($e))for(var Y=function(Oo,Ao,Zo,Co){var Wo=x.q(bt,se("div"));Wo.style.marginTop="8px";var Go=x.q(Wo,se("a"));Go.innerText=Object(ge.b)(Ao)+"("+Zo+", "+Co+"): ",Go.style.cursor="pointer",Go.onclick=function(Mo){Mo.stopPropagation(),Mo.preventDefault(),Ct._openerService&&Ct._openerService.open(Ao.with({fragment:Zo+","+Co}),{fromUserGesture:!0}).catch(Ue.e)};var Bo=x.q(Wo,se("span"));Bo.innerText=Oo,de._editor.applyFontInfo(Bo)},de=this,ke=0,lt=$e;ke0?this._renderMessages(this._lastLineNumber,this._messages):this.hide()},tt.prototype._renderMessages=function(ut,Ct){this._renderDisposeables.clear();for(var gt=document.createDocumentFragment(),bt=0,Gt=Ct;bt=0;Nt--)(Gt=at[Nt])&&(bt=(gt<3?Gt(bt):gt>3?Gt(tt,ut,bt):Gt(tt,ut))||bt);return gt>3&&bt&&Object.defineProperty(tt,ut,bt),bt},Pt=function(at,tt){return function(ut,Ct){tt(ut,Ct,at)}},ft=function(){function at(tt,ut,Ct,gt,bt,Gt){var Nt=this;this._editor=tt,this._openerService=ut,this._modeService=Ct,this._markerDecorationsService=gt,this._keybindingService=bt,this._themeService=Gt,this._toUnhook=new I.b,this._contentWidget=new I.d,this._glyphWidget=new I.d,this._isMouseDown=!1,this._hoverClicked=!1,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(function(Et){Et.hasChanged(44)&&(Nt._hideWidgets(),Nt._unhookEvents(),Nt._hookEvents())})}return Object.defineProperty(at.prototype,"contentWidget",{get:function(){return this._contentWidget.value||this._createHoverWidgets(),this._contentWidget.value},enumerable:!0,configurable:!0}),Object.defineProperty(at.prototype,"glyphWidget",{get:function(){return this._glyphWidget.value||this._createHoverWidgets(),this._glyphWidget.value},enumerable:!0,configurable:!0}),at.get=function(tt){return tt.getContribution(at.ID)},at.prototype._hookEvents=function(){var tt=this,ut=function(){return tt._hideWidgets()},Ct=this._editor.getOption(44);this._isHoverEnabled=Ct.enabled,this._isHoverSticky=Ct.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(function(gt){return tt._onEditorMouseDown(gt)})),this._toUnhook.add(this._editor.onMouseUp(function(gt){return tt._onEditorMouseUp(gt)})),this._toUnhook.add(this._editor.onMouseMove(function(gt){return tt._onEditorMouseMove(gt)})),this._toUnhook.add(this._editor.onKeyDown(function(gt){return tt._onKeyDown(gt)})),this._toUnhook.add(this._editor.onDidChangeModelDecorations(function(){return tt._onModelDecorationsChanged()}))):this._toUnhook.add(this._editor.onMouseMove(ut)),this._toUnhook.add(this._editor.onMouseLeave(ut)),this._toUnhook.add(this._editor.onDidChangeModel(ut)),this._toUnhook.add(this._editor.onDidScrollChange(function(gt){return tt._onEditorScrollChanged(gt)}))},at.prototype._unhookEvents=function(){this._toUnhook.clear()},at.prototype._onModelDecorationsChanged=function(){this.contentWidget.onModelDecorationsChanged(),this.glyphWidget.onModelDecorationsChanged()},at.prototype._onEditorScrollChanged=function(tt){(tt.scrollTopChanged||tt.scrollLeftChanged)&&this._hideWidgets()},at.prototype._onEditorMouseDown=function(tt){this._isMouseDown=!0;var ut=tt.target.type;if(ut===9&&tt.target.detail===Ve.ID){this._hoverClicked=!0;return}if(ut===12&&tt.target.detail===Rt.ID)return;ut!==12&&tt.target.detail!==Rt.ID&&(this._hoverClicked=!1),this._hideWidgets()},at.prototype._onEditorMouseUp=function(tt){this._isMouseDown=!1},at.prototype._onEditorMouseMove=function(tt){var ut=tt.target.type;if(this._isMouseDown&&this._hoverClicked&&this.contentWidget.isColorPickerVisible())return;if(this._isHoverSticky&&ut===9&&tt.target.detail===Ve.ID)return;if(this._isHoverSticky&&ut===12&&tt.target.detail===Rt.ID)return;if(ut===7){var Ct=this._editor.getOption(34).typicalHalfwidthCharacterWidth/2,gt=tt.target.detail;gt&&!gt.isAfterLines&&typeof gt.horizontalDistanceToText=="number"&>.horizontalDistanceToText0)},fe.prototype.getChildren=function(G,te){var Y=this.modelProvider.getModel();return Promise.resolve(Y===te?Y.entries:[])},fe.prototype.getParent=function(G,te){return Promise.resolve(null)},fe}(),u=function(){function fe(G){this.modelProvider=G}return fe.prototype.getAriaLabel=function(G,te){var Y=this.modelProvider.getModel();return Y.accessibilityProvider?Y.accessibilityProvider.getAriaLabel(te):null},fe.prototype.getPosInSet=function(G,te){var Y=this.modelProvider.getModel(),de=0;if(Y.filter)for(var ke=0,lt=Y.entries;ke=0;te--){var Y=this._arr[te];if(G.toChord().equals(Y.keybinding))return Y.callback}return null},fe}(),s=function(){function fe(G){var te=this;G===void 0&&(G={clickBehavior:0,keyboardSupport:!0,openMode:0}),this.options=G,this.downKeyBindingDispatcher=new c,this.upKeyBindingDispatcher=new c,(typeof G.keyboardSupport!="boolean"||G.keyboardSupport)&&(this.downKeyBindingDispatcher.set(16,function(Y,de){return te.onUp(Y,de)}),this.downKeyBindingDispatcher.set(18,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(15,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(17,function(Y,de){return te.onRight(Y,de)}),O.e&&(this.downKeyBindingDispatcher.set(2048|16,function(Y,de){return te.onLeft(Y,de)}),this.downKeyBindingDispatcher.set(256|44,function(Y,de){return te.onDown(Y,de)}),this.downKeyBindingDispatcher.set(256|46,function(Y,de){return te.onUp(Y,de)})),this.downKeyBindingDispatcher.set(11,function(Y,de){return te.onPageUp(Y,de)}),this.downKeyBindingDispatcher.set(12,function(Y,de){return te.onPageDown(Y,de)}),this.downKeyBindingDispatcher.set(14,function(Y,de){return te.onHome(Y,de)}),this.downKeyBindingDispatcher.set(13,function(Y,de){return te.onEnd(Y,de)}),this.downKeyBindingDispatcher.set(10,function(Y,de){return te.onSpace(Y,de)}),this.downKeyBindingDispatcher.set(9,function(Y,de){return te.onEscape(Y,de)}),this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this)),this.upKeyBindingDispatcher.set(2048|3,this.onEnter.bind(this)))}return fe.prototype.onMouseDown=function(G,te,Y,de){if(de===void 0&&(de="mouse"),this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)){if(Y.target){if(Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return!1;if(I.x(Y.target,"scrollbar","monaco-tree"))return!1;if(I.x(Y.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(G,te,Y,de)}return!1},fe.prototype.onClick=function(G,te,Y){var de=O.e;return de&&Y.ctrlKey?(Y.preventDefault(),Y.stopPropagation(),!1):Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||this.options.clickBehavior===0&&(Y.leftButton||Y.middleButton)?!1:this.onLeftClick(G,te,Y)},fe.prototype.onLeftClick=function(G,te,Y,de){de===void 0&&(de="mouse");var ke=Y,lt={origin:de,originalEvent:Y,didClickOnTwistie:this.isClickOnTwistie(ke)};if(G.getInput()===te)G.clearFocus(lt),G.clearSelection(lt);else{var Tt=Y&&ke.browserEvent&&ke.browserEvent.type==="mousedown"&&ke.browserEvent.detail===1;Tt||Y.preventDefault(),Y.stopPropagation(),G.domFocus(),G.setSelection([te],lt),G.setFocus(te,lt),this.shouldToggleExpansion(te,ke,de)&&(G.isExpanded(te)?G.collapse(te).then(void 0,w.e):G.expand(te).then(void 0,w.e))}return!0},fe.prototype.shouldToggleExpansion=function(G,te,Y){var de=Y==="mouse"&&te.detail===2;return this.openOnSingleClick||de||this.isClickOnTwistie(te)},Object.defineProperty(fe.prototype,"openOnSingleClick",{get:function(){return this.options.openMode===0},enumerable:!0,configurable:!0}),fe.prototype.isClickOnTwistie=function(G){var te=G.target;if(!I.I(te,"content"))return!1;var Y=window.getComputedStyle(te,":before");if(Y.backgroundImage==="none"||Y.display==="none")return!1;var de=parseInt(Y.width)+parseInt(Y.paddingRight);return G.browserEvent.offsetX<=de},fe.prototype.onContextMenu=function(G,te,Y){return Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input"||Y&&(Y.preventDefault(),Y.stopPropagation()),!1},fe.prototype.onTap=function(G,te,Y){var de=Y.initialTarget;return de&&de.tagName&&de.tagName.toLowerCase()==="input"?!1:this.onLeftClick(G,te,Y,"touch")},fe.prototype.onKeyDown=function(G,te){return this.onKey(this.downKeyBindingDispatcher,G,te)},fe.prototype.onKeyUp=function(G,te){return this.onKey(this.upKeyBindingDispatcher,G,te)},fe.prototype.onKey=function(G,te,Y){var de=G.dispatch(Y.toKeybinding());return de&&de(te,Y)?(Y.preventDefault(),Y.stopPropagation(),!0):!1},fe.prototype.onUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPrevious(1,Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onPageUp=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusPreviousPage(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNext(1,Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onPageDown=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusNextPage(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onHome=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusFirst(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onEnd=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?G.clearHighlight(Y):(G.focusLast(Y),G.reveal(G.getFocus()).then(void 0,w.e)),!0},fe.prototype.onLeft=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.collapse(de).then(function(ke){return de&&!ke?(G.focusParent(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.e)}return!0},fe.prototype.onRight=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())G.clearHighlight(Y);else{var de=G.getFocus();G.expand(de).then(function(ke){return de&&!ke?(G.focusFirstChild(Y),G.reveal(G.getFocus())):void 0}).then(void 0,w.e)}return!0},fe.prototype.onEnter=function(G,te){var Y={origin:"keyboard",originalEvent:te};if(G.getHighlight())return!1;var de=G.getFocus();return de&&G.setSelection([de],Y),!0},fe.prototype.onSpace=function(G,te){if(G.getHighlight())return!1;var Y=G.getFocus();return Y&&G.toggleExpansion(Y),!0},fe.prototype.onEscape=function(G,te){var Y={origin:"keyboard",originalEvent:te};return G.getHighlight()?(G.clearHighlight(Y),!0):G.getSelection().length?(G.clearSelection(Y),!0):G.getFocus()?(G.clearFocus(Y),!0):!1},fe}(),l=function(){function fe(){}return fe.prototype.getDragURI=function(G,te){return null},fe.prototype.onDragStart=function(G,te,Y){return},fe.prototype.onDragOver=function(G,te,Y,de){return null},fe.prototype.drop=function(G,te,Y,de){return},fe}(),d=function(){function fe(){}return fe.prototype.isVisible=function(G,te){return!0},fe}(),m=function(){function fe(){}return fe.prototype.getAriaLabel=function(G,te){return null},fe}(),E=function(){function fe(G,te){this.styleElement=G,this.selectorSuffix=te}return fe.prototype.style=function(G){var te=this.selectorSuffix?"."+this.selectorSuffix:"",Y=[];G.listFocusBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+G.listFocusBackground+"; }"),G.listFocusForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+G.listFocusForeground+"; }"),G.listActiveSelectionBackground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+G.listActiveSelectionBackground+"; }"),G.listActiveSelectionForeground&&Y.push(".monaco-tree"+te+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+G.listActiveSelectionForeground+"; }"),G.listFocusAndSelectionBackground&&Y.push(` .monaco-tree-drag-image, .monaco-tree`+te+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+G.listFocusAndSelectionBackground+`; } `),G.listFocusAndSelectionForeground&&Y.push(` @@ -199,32 +199,32 @@ Copyright (c) 2014 Forbes Lindesay .monaco-tree`+te+` .monaco-tree-wrapper.drop-target, .monaco-tree`+te+" .monaco-tree-rows > .monaco-tree-row.drop-target { border: 1px dashed "+G.listFocusOutline+`; } `);var de=Y.join(` -`);de!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=de)},fe}(),L=e("FWmy"),A=e("pmY6"),k=e("MI8n"),R=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),$=function(){function fe(G){this._onDispose=new k.a,this.onDispose=this._onDispose.event,this._item=G}return Object.defineProperty(fe.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0}),fe.prototype.dispose=function(){this._onDispose&&(this._onDispose.fire(),this._onDispose.dispose(),this._onDispose=void 0)},fe}(),ie=function(){function fe(){this.locks=Object.create({})}return fe.prototype.isLocked=function(G){return!!this.locks[G.id]},fe.prototype.run=function(G,te){var Y=this,de=this.getLock(G);if(de)return new Promise(function(lt,Tt){k.b.once(de.onDispose)(function(){return Y.run(G,te).then(lt,Tt)})});var ke;return new Promise(function(lt,Tt){if(G.isDisposed())return Tt(new Error("Item is disposed."));var Jt=Y.locks[G.id]=new $(G);return ke=te().then(function(eo){return delete Y.locks[G.id],Jt.dispose(),eo}).then(lt,Tt),ke})},fe.prototype.getLock=function(G){var te;for(te in this.locks){var Y=this.locks[te];if(G.intersects(Y.item))return Y}return null},fe}(),W=function(){function fe(){this._isDisposed=!1,this._onDidRevealItem=new k.d,this.onDidRevealItem=this._onDidRevealItem.event,this._onExpandItem=new k.d,this.onExpandItem=this._onExpandItem.event,this._onDidExpandItem=new k.d,this.onDidExpandItem=this._onDidExpandItem.event,this._onCollapseItem=new k.d,this.onCollapseItem=this._onCollapseItem.event,this._onDidCollapseItem=new k.d,this.onDidCollapseItem=this._onDidCollapseItem.event,this._onDidAddTraitItem=new k.d,this.onDidAddTraitItem=this._onDidAddTraitItem.event,this._onDidRemoveTraitItem=new k.d,this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event,this._onDidRefreshItem=new k.d,this.onDidRefreshItem=this._onDidRefreshItem.event,this._onRefreshItemChildren=new k.d,this.onRefreshItemChildren=this._onRefreshItemChildren.event,this._onDidRefreshItemChildren=new k.d,this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event,this._onDidDisposeItem=new k.d,this.onDidDisposeItem=this._onDidDisposeItem.event,this.items={}}return fe.prototype.register=function(G){L.a(!this.isRegistered(G.id),"item already registered: "+G.id);var te=Object(A.e)(this._onDidRevealItem.add(G.onDidReveal),this._onExpandItem.add(G.onExpand),this._onDidExpandItem.add(G.onDidExpand),this._onCollapseItem.add(G.onCollapse),this._onDidCollapseItem.add(G.onDidCollapse),this._onDidAddTraitItem.add(G.onDidAddTrait),this._onDidRemoveTraitItem.add(G.onDidRemoveTrait),this._onDidRefreshItem.add(G.onDidRefresh),this._onRefreshItemChildren.add(G.onRefreshChildren),this._onDidRefreshItemChildren.add(G.onDidRefreshChildren),this._onDidDisposeItem.add(G.onDidDispose));this.items[G.id]={item:G,disposable:te}},fe.prototype.deregister=function(G){L.a(this.isRegistered(G.id),"item not registered: "+G.id),this.items[G.id].disposable.dispose(),delete this.items[G.id]},fe.prototype.isRegistered=function(G){return this.items.hasOwnProperty(G)},fe.prototype.getItem=function(G){var te=this.items[G];return te?te.item:null},fe.prototype.dispose=function(){this.items={},this._onDidRevealItem.dispose(),this._onExpandItem.dispose(),this._onDidExpandItem.dispose(),this._onCollapseItem.dispose(),this._onDidCollapseItem.dispose(),this._onDidAddTraitItem.dispose(),this._onDidRemoveTraitItem.dispose(),this._onDidRefreshItem.dispose(),this._onRefreshItemChildren.dispose(),this._onDidRefreshItemChildren.dispose(),this._isDisposed=!0},fe.prototype.isDisposed=function(){return this._isDisposed},fe}(),B=function(){function fe(G,te,Y,de,ke){this._onDidCreate=new k.a,this._onDidReveal=new k.a,this.onDidReveal=this._onDidReveal.event,this._onExpand=new k.a,this.onExpand=this._onExpand.event,this._onDidExpand=new k.a,this.onDidExpand=this._onDidExpand.event,this._onCollapse=new k.a,this.onCollapse=this._onCollapse.event,this._onDidCollapse=new k.a,this.onDidCollapse=this._onDidCollapse.event,this._onDidAddTrait=new k.a,this.onDidAddTrait=this._onDidAddTrait.event,this._onDidRemoveTrait=new k.a,this.onDidRemoveTrait=this._onDidRemoveTrait.event,this._onDidRefresh=new k.a,this.onDidRefresh=this._onDidRefresh.event,this._onRefreshChildren=new k.a,this.onRefreshChildren=this._onRefreshChildren.event,this._onDidRefreshChildren=new k.a,this.onDidRefreshChildren=this._onDidRefreshChildren.event,this._onDidDispose=new k.a,this.onDidDispose=this._onDidDispose.event,this.registry=te,this.context=Y,this.lock=de,this.element=ke,this.id=G,this.registry.register(this),this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element),this.needsChildrenRefresh=!0,this.parent=null,this.previous=null,this.next=null,this.firstChild=null,this.lastChild=null,this.traits={},this.depth=0,this.expanded=!!(this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,ke)),this._onDidCreate.fire(this),this.visible=this._isVisible(),this.height=this._getHeight(),this._isDisposed=!1}return fe.prototype.getElement=function(){return this.element},fe.prototype.hasChildren=function(){return this.doesHaveChildren},fe.prototype.getDepth=function(){return this.depth},fe.prototype.isVisible=function(){return this.visible},fe.prototype.setVisible=function(G){this.visible=G},fe.prototype.isExpanded=function(){return this.expanded},fe.prototype._setExpanded=function(G){this.expanded=G},fe.prototype.reveal=function(G){G===void 0&&(G=null);var te={item:this,relativeTop:G};this._onDidReveal.fire(te)},fe.prototype.expand=function(){var G=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return Promise.resolve(!1);var te=this.lock.run(this,function(){if(G.isExpanded()||!G.doesHaveChildren)return Promise.resolve(!1);var Y={item:G},de;return G._onExpand.fire(Y),G.needsChildrenRefresh?de=G.refreshChildren(!1,!0,!0):de=Promise.resolve(null),de.then(function(){return G._setExpanded(!0),G._onDidExpand.fire(Y),!0})});return te.then(function(Y){return G.isDisposed()?!1:G.context.options.autoExpandSingleChildren&&Y&&G.firstChild!==null&&G.firstChild===G.lastChild&&G.firstChild.isVisible()?G.firstChild.expand().then(function(){return!0}):Y})},fe.prototype.collapse=function(G){var te=this;if(G===void 0&&(G=!1),G){var Y=Promise.resolve(null);return this.forEachChild(function(de){Y=Y.then(function(){return de.collapse(!0)})}),Y.then(function(){return te.collapse(!1)})}else return!this.isExpanded()||this.lock.isLocked(this)?Promise.resolve(!1):this.lock.run(this,function(){var de={item:te};return te._onCollapse.fire(de),te._setExpanded(!1),te._onDidCollapse.fire(de),Promise.resolve(!0)})},fe.prototype.addTrait=function(G){var te={item:this,trait:G};this.traits[G]=!0,this._onDidAddTrait.fire(te)},fe.prototype.removeTrait=function(G){var te={item:this,trait:G};delete this.traits[G],this._onDidRemoveTrait.fire(te)},fe.prototype.hasTrait=function(G){return this.traits[G]||!1},fe.prototype.getAllTraits=function(){var G=[],te;for(te in this.traits)this.traits.hasOwnProperty(te)&&this.traits[te]&&G.push(te);return G},fe.prototype.getHeight=function(){return this.height},fe.prototype.refreshChildren=function(G,te,Y){var de=this;if(te===void 0&&(te=!1),Y===void 0&&(Y=!1),!Y&&!this.isExpanded()){var ke=function Tt(Jt){Jt.needsChildrenRefresh=!0,Jt.forEachChild(Tt)};return ke(this),Promise.resolve(this)}this.needsChildrenRefresh=!1;var lt=function(){var Jt={item:de,isNested:te};de._onRefreshChildren.fire(Jt);var eo;de.doesHaveChildren?eo=de.context.dataSource.getChildren(de.context.tree,de.element):eo=Promise.resolve([]);var po=eo.then(function(co){if(de.isDisposed()||de.registry.isDisposed())return Promise.resolve(null);if(!Array.isArray(co))return Promise.reject(new Error("Please return an array of children."));co=co?co.slice(0):[],co=de.sort(co);for(var Eo={};de.firstChild!==null;)Eo[de.firstChild.id]=de.firstChild,de.removeChild(de.firstChild);for(var Oo=0,Ao=co.length;Oo=0;lt--)this.onInsertItem(po[lt]);for(lt=this.heightMap.length-1;lt>=ke;lt--)this.onRefreshItem(this.heightMap[lt]);return Jt},fe.prototype.onInsertItem=function(G){},fe.prototype.onRemoveItems=function(G){for(var te=null,Y,de=null,ke=0,lt=0;te=G.next();){if(ke=this.indexes[te],Y=this.heightMap[ke],!Y){console.error("view item doesnt exist");return}lt-=Y.height,delete this.indexes[te],this.onRemoveItem(Y),de===null&&(de=ke)}if(lt===0||de===null)return;for(this.heightMap.splice(de,ke-de+1),ke=de;ke=ke.top+ke.height){if(te===de)break;te=de}else return de;return this.heightMap.length},fe.prototype.indexAfter=function(G){return Math.min(this.indexAt(G)+1,this.heightMap.length)},fe.prototype.itemAtIndex=function(G){return this.heightMap[G]},fe.prototype.itemAfter=function(G){return this.heightMap[this.indexes[G.model.id]+1]||null},fe.prototype.createViewItem=function(G){throw new Error("not implemented")},fe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},fe}(),Xe=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),me=function(){function fe(G,te,Y){this._posx=G,this._posy=te,this._target=Y}return fe.prototype.preventDefault=function(){},fe.prototype.stopPropagation=function(){},Object.defineProperty(fe.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),fe}(),ge=function(fe){Xe(G,fe);function G(te){var Y=fe.call(this,te.posx,te.posy,te.target)||this;return Y.originalEvent=te,Y}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(me),_e=function(fe){Xe(G,fe);function G(te,Y,de){var ke=fe.call(this,te,Y,de.target)||this;return ke.originalEvent=de,ke}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(me),Re=e("ZQ78"),Ee=e("X+cX"),ve=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}();function Q(fe){try{fe.parentElement.removeChild(fe)}catch(G){}}var C=function(){function fe(G){this.context=G,this._cache={"":[]}}return fe.prototype.alloc=function(G){var te=this.cache(G).pop();if(!te){var Y=document.createElement("div");Y.className="content";var de=document.createElement("div");de.appendChild(Y);var ke=null;try{ke=this.context.renderer.renderTemplate(this.context.tree,G,Y)}catch(lt){console.error("Tree usage error: exception while rendering template"),console.error(lt)}te={element:de,templateId:G,templateData:ke}}return te},fe.prototype.release=function(G,te){Q(te.element),this.cache(G).push(te)},fe.prototype.cache=function(G){return this._cache[G]||(this._cache[G]=[])},fe.prototype.garbageCollect=function(){var G=this;this._cache&&Object.keys(this._cache).forEach(function(te){G._cache[te].forEach(function(Y){G.context.renderer.disposeTemplate(G.context.tree,te,Y.templateData),Y.element=null,Y.templateData=null}),delete G._cache[te]})},fe.prototype.dispose=function(){this.garbageCollect(),this._cache=null},fe}(),F=function(){function fe(G,te){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=A.a.None,this._draggable=!1,this.context=G,this.model=te,this.id=this.model.id,this.row=null,this.top=0,this.height=te.getHeight(),this._styles={},te.getAllTraits().forEach(function(de){return Y._styles[de]=!0}),te.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(fe.prototype,"expanded",{set:function(te){te?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"loading",{set:function(te){te?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"draggable",{get:function(){return this._draggable},set:function(te){this._draggable=te,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"dropTarget",{set:function(te){te?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),fe.prototype.addClass=function(G){this._styles[G]=!0,this.render(!0)},fe.prototype.removeClass=function(G){delete this._styles[G],this.render(!0)},fe.prototype.render=function(G){var te=this;if(G===void 0&&(G=!1),!this.model||!this.element)return;var Y=["monaco-tree-row"];Y.push.apply(Y,Object.keys(this._styles)),this.model.hasChildren()&&Y.push("has-children"),this.element.className=Y.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var de=this.context.accessibilityProvider,ke=de.getAriaLabel(this.context.tree,this.model.getElement());if(ke&&this.element.setAttribute("aria-label",ke),de.getPosInSet&&de.getSetSize&&(this.element.setAttribute("aria-setsize",de.getSetSize()),this.element.setAttribute("aria-posinset",de.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var lt=Pe.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",lt)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var Tt=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(Tt!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),Tt?(this.uri=Tt,this.draggable=!0,this.unbindDragStart=I.j(this.element,"dragstart",function(po){te.onDragStart(po)})):this.uri=null),!G&&this.element){var Jt=0;if(this.context.horizontalScrolling){var eo=window.getComputedStyle(this.element);Jt=parseFloat(eo.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Te.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(po){console.error("Tree usage error: exception while rendering element"),console.error(po)}this.context.horizontalScrolling&&(this.width=I.B(this.element)+Jt,this.element.style.width="")}},fe.prototype.insertInDOM=function(G,te){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[be.BINDING]=this),this.element.parentElement)return;if(te===null)G.appendChild(this.element);else try{G.insertBefore(this.element,te)}catch(Y){console.warn("Failed to locate previous tree element"),G.appendChild(this.element)}this.render()},fe.prototype.removeFromDOM=function(){if(!this.row)return;this.unbindDragStart.dispose(),this.uri=null,this.element[be.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null},fe.prototype.dispose=function(){this.row=null},fe}(),se=function(fe){ve(G,fe);function G(te,Y,de){var ke=fe.call(this,te,Y)||this;return ke.row={element:de,templateData:null,templateId:null},ke}return G.prototype.render=function(){if(!this.model||!this.element)return;var te=["monaco-tree-wrapper"];te.push.apply(te,Object.keys(this._styles)),this.model.hasChildren()&&te.push("has-children"),this.element.className=te.join(" ")},G.prototype.insertInDOM=function(te,Y){},G.prototype.removeFromDOM=function(){},G}(F);function oe(fe,G){return!fe&&!G?!0:!fe||!G||(fe.accept!==G.accept||fe.bubble!==G.bubble)?!1:!(fe.effect!==G.effect)}var be=function(fe){ve(G,fe);function G(te,Y){var de=fe.call(this)||this;de.model=null,de.lastPointerType="",de.lastClickTimeStamp=0,de.contentWidthUpdateDelayer=new Ee.a(50),de.isRefreshing=!1,de.refreshingPreviousChildrenIds={},de.currentDragAndDropData=null,de.currentDropTarget=null,de.currentDropTargets=null,de.currentDropDisposable=A.a.None,de.gestureDisposable=A.a.None,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.dragAndDropMouseY=null,de.highlightedItemWasDraggable=!1,de.onHiddenScrollTop=null,de._onDOMFocus=new k.a,de.onDOMFocus=de._onDOMFocus.event,de._onDOMBlur=new k.a,de._onDidScroll=new k.a,G.counter++,de.instance=G.counter;var ke=typeof te.options.horizontalScrollMode=="undefined"?2:te.options.horizontalScrollMode;de.horizontalScrolling=ke!==2,de.context={dataSource:te.dataSource,renderer:te.renderer,controller:te.controller,dnd:te.dnd,filter:te.filter,sorter:te.sorter,tree:te.tree,accessibilityProvider:te.accessibilityProvider,options:te.options,cache:new C(te),horizontalScrolling:de.horizontalScrolling},de.modelListeners=[],de.viewListeners=[],de.items={},de.domNode=document.createElement("div"),de.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+de.instance,de.domNode.tabIndex=te.options.preventRootFocus?-1:0,de.styleElement=I.w(de.domNode),de.treeStyler=te.styler||new E(de.styleElement,"monaco-tree-instance-"+de.instance),de.domNode.setAttribute("role","tree"),de.context.options.ariaLabel&&de.domNode.setAttribute("aria-label",de.context.options.ariaLabel),de.context.options.alwaysFocused&&I.f(de.domNode,"focused"),de.context.options.paddingOnRow||I.f(de.domNode,"no-row-padding"),de.wrapper=document.createElement("div"),de.wrapper.className="monaco-tree-wrapper",de.scrollableElement=new he.b(de.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:ke,vertical:typeof te.options.verticalScrollMode!="undefined"?te.options.verticalScrollMode:1,useShadows:te.options.useShadows}),de.scrollableElement.onScroll(function(Tt){de.render(Tt.scrollTop,Tt.height,Tt.scrollLeft,Tt.width,Tt.scrollWidth),de._onDidScroll.fire()}),Te.i?(de.wrapper.style.msTouchAction="none",de.wrapper.style.msContentZooming="none"):de.gestureDisposable=He.b.addTarget(de.wrapper),de.rowsContainer=document.createElement("div"),de.rowsContainer.className="monaco-tree-rows",te.options.showTwistie&&(de.rowsContainer.className+=" show-twisties");var lt=I.Z(de.domNode);return de.viewListeners.push(lt.onDidFocus(function(){return de.onFocus()})),de.viewListeners.push(lt.onDidBlur(function(){return de.onBlur()})),de.viewListeners.push(lt),de.viewListeners.push(I.j(de.domNode,"keydown",function(Tt){return de.onKeyDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"keyup",function(Tt){return de.onKeyUp(Tt)})),de.viewListeners.push(I.j(de.domNode,"mousedown",function(Tt){return de.onMouseDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"mouseup",function(Tt){return de.onMouseUp(Tt)})),de.viewListeners.push(I.j(de.wrapper,"auxclick",function(Tt){Tt&&Tt.button===1&&de.onMouseMiddleClick(Tt)})),de.viewListeners.push(I.j(de.wrapper,"click",function(Tt){return de.onClick(Tt)})),de.viewListeners.push(I.j(de.domNode,"contextmenu",function(Tt){return de.onContextMenu(Tt)})),de.viewListeners.push(I.j(de.wrapper,He.a.Tap,function(Tt){return de.onTap(Tt)})),de.viewListeners.push(I.j(de.wrapper,He.a.Change,function(Tt){return de.onTouchChange(Tt)})),Te.i&&(de.viewListeners.push(I.j(de.wrapper,"MSPointerDown",function(Tt){return de.onMsPointerDown(Tt)})),de.viewListeners.push(I.j(de.wrapper,"MSGestureTap",function(Tt){return de.onMsGestureTap(Tt)})),de.viewListeners.push(I.m(de.wrapper,"MSGestureChange",function(Tt){return de.onThrottledMsGestureChange(Tt)},function(Tt,Jt){Jt.stopPropagation(),Jt.preventDefault();var eo={translationY:Jt.translationY,translationX:Jt.translationX};return Tt&&(eo.translationY+=Tt.translationY,eo.translationX+=Tt.translationX),eo}))),de.viewListeners.push(I.j(window,"dragover",function(Tt){return de.onDragOver(Tt)})),de.viewListeners.push(I.j(de.wrapper,"drop",function(Tt){return de.onDrop(Tt)})),de.viewListeners.push(I.j(window,"dragend",function(Tt){return de.onDragEnd(Tt)})),de.viewListeners.push(I.j(window,"dragleave",function(Tt){return de.onDragOver(Tt)})),de.wrapper.appendChild(de.rowsContainer),de.domNode.appendChild(de.scrollableElement.getDomNode()),Y.appendChild(de.domNode),de.lastRenderTop=0,de.lastRenderHeight=0,de.didJustPressContextMenuKey=!1,de.currentDropTarget=null,de.currentDropTargets=[],de.shouldInvalidateDropReaction=!1,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.onRowsChanged(),de.layout(),de.setupMSGesture(),de.applyStyles(te.options),de}return G.prototype.applyStyles=function(te){this.treeStyler.style(te)},G.prototype.createViewItem=function(te){return new F(this.context,te)},G.prototype.getHTMLElement=function(){return this.domNode},G.prototype.focus=function(){this.domNode.focus()},G.prototype.isFocused=function(){return document.activeElement===this.domNode},G.prototype.blur=function(){this.domNode.blur()},G.prototype.setupMSGesture=function(){var te=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return te.msGesture.target=te.wrapper},100))},G.prototype.isTreeVisible=function(){return this.onHiddenScrollTop===null},G.prototype.layout=function(te,Y){if(!this.isTreeVisible())return;this.viewHeight=te||I.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||I.B(this.wrapper))},G.prototype.render=function(te,Y,de,ke,lt){var Tt,Jt,eo=te,po=te+Y,co=this.lastRenderTop+this.lastRenderHeight;for(Tt=this.indexAfter(po)-1,Jt=this.indexAt(Math.max(co,eo));Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(po))-1,Jt=this.indexAt(eo);Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=this.indexAt(this.lastRenderTop),Jt=Math.min(this.indexAt(eo),this.indexAfter(co));Tt1e3,co=[],Eo=!1;if(!po){var Oo=new Fe.a({getElements:function(){return lt}},{getElements:function(){return Tt.map(function(Bo){return Bo.id})}},null);co=Oo.ComputeDiff(!1).changes,Eo=co.some(function(Go){if(Go.modifiedLength>0){for(var Bo=Go.modifiedStart,Mo=Go.modifiedStart+Go.modifiedLength;Bo0&&this.onRemoveItems(new X.a(lt,Co.originalStart,Co.originalStart+Co.originalLength)),Co.modifiedLength>0){var Wo=Tt[Co.modifiedStart-1]||de;Wo=Wo.getDepth()>0?Wo:null,this.onInsertItems(new X.a(Tt,Co.modifiedStart,Co.modifiedStart+Co.modifiedLength),Wo?Wo.id:null)}}else(po||co.length)&&(this.onRemoveItems(new X.a(lt)),this.onInsertItems(new X.a(Tt),de.getDepth()>0?de.id:null));(po||co.length)&&this.onRowsChanged()}},G.prototype.onItemRefresh=function(te){this.onItemsRefresh([te])},G.prototype.onItemsRefresh=function(te){var Y=this;this.onRefreshItemSet(te.filter(function(de){return Y.items.hasOwnProperty(de.id)})),this.onRowsChanged()},G.prototype.onItemExpanding=function(te){var Y=this.items[te.item.id];Y&&(Y.expanded=!0)},G.prototype.onItemExpanded=function(te){var Y=te.item,de=this.items[Y.id];if(de){de.expanded=!0;var ke=this.onInsertItems(Y.getNavigator(),Y.id)||0,lt=this.scrollTop;de.top+de.height<=this.scrollTop&&(lt+=ke),this.onRowsChanged(lt)}},G.prototype.onItemCollapsing=function(te){var Y=te.item,de=this.items[Y.id];de&&(de.expanded=!1,this.onRemoveItems(new X.e(Y.getNavigator(),function(ke){return ke&&ke.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(te){var Y=te.item,de=te.relativeTop,ke=this.items[Y.id];if(ke)if(de!==null){de=de<0?0:de,de=de>1?1:de;var lt=ke.height-this.viewHeight;this.scrollTop=lt*de+ke.top}else{var Tt=ke.top+ke.height,Jt=this.scrollTop+this.viewHeight;ke.top=Jt&&(this.scrollTop=Tt-this.viewHeight)}},G.prototype.onItemAddTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.addClass(de),de==="highlighted"&&(I.f(this.domNode,de),ke&&(this.highlightedItemWasDraggable=!!ke.draggable,ke.draggable&&(ke.draggable=!1)))},G.prototype.onItemRemoveTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.removeClass(de),de==="highlighted"&&(I.P(this.domNode,de),this.highlightedItemWasDraggable&&(ke.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var te=this.model&&this.model.getFocus();I.Y(this.domNode,"no-focused-item",!te),te?this.domNode.setAttribute("aria-activedescendant",Pe.L(this.context.dataSource.getId(this.context.tree,te))):this.domNode.removeAttribute("aria-activedescendant")},G.prototype.onInsertItem=function(te){var Y=this;te.onDragStart=function(de){Y.onDragStart(te,de)},te.needsRender=!0,this.refreshViewItem(te),this.items[te.id]=te},G.prototype.onRefreshItem=function(te,Y){Y===void 0&&(Y=!1),te.needsRender=te.needsRender||Y,this.refreshViewItem(te)},G.prototype.onRemoveItem=function(te){this.removeItemFromDOM(te),te.dispose(),delete this.items[te.id]},G.prototype.refreshViewItem=function(te){te.render(),this.shouldBeRendered(te)?this.insertItemInDOM(te):this.removeItemFromDOM(te)},G.prototype.onClick=function(te){if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te),de=this.getItemAround(Y.target);if(!de)return;Te.i&&Date.now()-this.lastClickTimeStamp<300&&(Y.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseMiddleClick=function(te){if(!this.context.controller.onMouseMiddleClick)return;var Y=new ne.b(te),de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseMiddleClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseDown=function(te){if(this.didJustPressContextMenuKey=!1,!this.context.controller.onMouseDown)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te);if(Y.ctrlKey&&O.f&&O.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseDown(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseUp=function(te){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te);if(Y.ctrlKey&&O.f&&O.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseUp(this.context.tree,de.model.getElement(),Y)},G.prototype.onTap=function(te){var Y=this.getItemAround(te.initialTarget);if(!Y)return;this.context.controller.onTap(this.context.tree,Y.model.getElement(),te)},G.prototype.onTouchChange=function(te){te.preventDefault(),te.stopPropagation(),this.scrollTop-=te.translationY},G.prototype.onContextMenu=function(te){var Y,de;if(te instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var ke=new ee.a(te);de=this.model.getFocus();var lt=void 0;if(!de)de=this.model.getInput(),lt=I.C(this.inputItem.element);else{var Tt=this.context.dataSource.getId(this.context.tree,de),Jt=this.items[Tt];lt=I.C(Jt.element)}Y=new _e(lt.left+lt.width,lt.top,ke)}else{var eo=new ne.b(te),po=this.getItemAround(eo.target);if(!po)return;de=po.model.getElement(),Y=new ge(eo)}this.context.controller.onContextMenu(this.context.tree,de,Y)},G.prototype.onKeyDown=function(te){var Y=new ee.a(te);if(this.didJustPressContextMenuKey=Y.keyCode===58||Y.shiftKey&&Y.keyCode===68,Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return;this.didJustPressContextMenuKey&&(Y.preventDefault(),Y.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,Y)},G.prototype.onKeyUp=function(te){this.didJustPressContextMenuKey&&this.onContextMenu(te),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ee.a(te))},G.prototype.onDragStart=function(te,Y){if(this.model.getHighlight())return;var de=te.model.getElement(),ke=this.model.getSelection(),lt;if(ke.indexOf(de)>-1?lt=ke:lt=[de],Y.dataTransfer.effectAllowed="copyMove",Y.dataTransfer.setData(Re.a.RESOURCES,JSON.stringify([te.uri])),Y.dataTransfer.setDragImage){var Tt=void 0;this.context.dnd.getDragLabel?Tt=this.context.dnd.getDragLabel(this.context.tree,lt):Tt=String(lt.length);var Jt=document.createElement("div");Jt.className="monaco-tree-drag-image",Jt.textContent=Tt,document.body.appendChild(Jt),Y.dataTransfer.setDragImage(Jt,-10,-10),setTimeout(function(){return document.body.removeChild(Jt)},0)}this.currentDragAndDropData=new ae(lt),Re.c.CurrentDragAndDropData=new q(lt),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new ne.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var te=this,Y=I.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(te.dragAndDropMouseY===null)return;var de=te.dragAndDropMouseY-Y,ke=0,lt=te.viewHeight-35;de<35?ke=Math.max(-14,.2*(de-35)):de>lt&&(ke=Math.min(14,.2*(de-lt))),te.scrollTop+=ke},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){te.cancelDragAndDropScrollInterval(),te.dragAndDropScrollTimeout=null},1e3))},G.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},G.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},G.prototype.onDragOver=function(te){var Y=this;te.preventDefault();var de=new ne.a(te),ke=this.getItemAround(de.target);if(!ke||de.posx===0&&de.posy===0&&de.browserEvent.type===I.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=de.posy,!this.currentDragAndDropData)if(Re.c.CurrentDragAndDropData)this.currentDragAndDropData=Re.c.CurrentDragAndDropData;else{if(!de.dataTransfer.types)return!1;this.currentDragAndDropData=new ue}this.currentDragAndDropData.update(de.browserEvent.dataTransfer);var lt,Tt=ke.model,Jt;do{if(lt=Tt?Tt.getElement():this.model.getInput(),Jt=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,lt,de),!Jt||Jt.bubble!==1)break;Tt=Tt&&Tt.parent}while(Tt);if(!Tt)return this.currentDropElement=null,!1;var eo=Jt&&Jt.accept;eo?(this.currentDropElement=Tt.getElement(),de.preventDefault(),de.dataTransfer.dropEffect=Jt.effect===0?"copy":"move"):this.currentDropElement=null;var po=Tt.id===this.inputItem.id?this.inputItem:this.items[Tt.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==po||!oe(this.currentDropElementReaction,Jt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=po,this.currentDropElementReaction=Jt,eo)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Jt.bubble===0)for(var co=Tt.getNavigator(),Eo=void 0;Eo=co.next();)ke=this.items[Eo.id],ke&&(ke.dropTarget=!0,this.currentDropTargets.push(ke));if(Jt.autoExpand){var Oo=Object(Ee.l)(500);this.currentDropDisposable=A.h(function(){return Oo.cancel()}),Oo.then(function(){return Y.context.tree.expand(Y.currentDropElement)}).then(function(){return Y.shouldInvalidateDropReaction=!0})}}return!0},G.prototype.onDrop=function(te){if(this.currentDropElement){var Y=new ne.a(te);Y.preventDefault(),this.currentDragAndDropData.update(Y.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,Y),this.onDragEnd(te)}this.cancelDragAndDropScrollInterval()},G.prototype.onDragEnd=function(te){this.currentDropTarget&&(this.currentDropTargets.forEach(function(Y){return Y.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,Re.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},G.prototype.onFocus=function(){this.context.options.alwaysFocused||I.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||I.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},G.prototype.onMsPointerDown=function(te){if(!this.msGesture)return;var Y=te.pointerType;if(Y===(te.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}else if(Y===(te.MSPOINTER_TYPE_TOUCH||"touch"))this.lastPointerType="touch";else return;te.stopPropagation(),te.preventDefault(),this.msGesture.addPointer(te.pointerId)},G.prototype.onThrottledMsGestureChange=function(te){this.scrollTop-=te.translationY},G.prototype.onMsGestureTap=function(te){te.initialTarget=document.elementFromPoint(te.clientX,te.clientY),this.onTap(te)},G.prototype.insertItemInDOM=function(te){var Y=null,de=this.itemAfter(te);de&&de.element&&(Y=de.element),te.insertInDOM(this.rowsContainer,Y)},G.prototype.removeItemFromDOM=function(te){if(!te)return;te.removeFromDOM()},G.prototype.shouldBeRendered=function(te){return te.topthis.lastRenderTop},G.prototype.getItemAround=function(te){var Y=this.inputItem,de=te;do{if(de[G.BINDING]&&(Y=de[G.BINDING]),de===this.wrapper||de===this.domNode)return Y;if(de===this.scrollableElement.getDomNode()||de===document.body)return}while(de=de.parentElement);return},G.prototype.releaseModel=function(){this.model&&(this.modelListeners=A.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var te=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=A.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(Y){return te.items[Y].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),fe.prototype.dispose.call(this)},G.BINDING="monaco-tree-row",G.LOADING_DECORATION_DELAY=800,G.counter=0,G}(je),De=e("zrhQ"),Se=e("qj0h"),Ve=function(){function fe(G,te,Y){if(Y===void 0&&(Y={}),this.tree=G,this.configuration=te,this.options=Y,!te.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=te.dataSource,this.renderer=te.renderer,this.controller=te.controller||new s({clickBehavior:1,keyboardSupport:typeof Y.keyboardSupport!="boolean"||Y.keyboardSupport}),this.dnd=te.dnd||new l,this.filter=te.filter||new d,this.sorter=te.sorter,this.accessibilityProvider=te.accessibilityProvider||new m,this.styler=te.styler}return fe}(),Qe={listFocusBackground:De.a.fromHex("#073655"),listActiveSelectionBackground:De.a.fromHex("#0E639C"),listActiveSelectionForeground:De.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:De.a.fromHex("#094771"),listFocusAndSelectionForeground:De.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:De.a.fromHex("#3F3F46"),listHoverBackground:De.a.fromHex("#2A2D2E"),listDropBackground:De.a.fromHex("#383B3D")},it=function(){function fe(G,te,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new k.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new k.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new k.f,this._onDidExpandItem=new k.f,this._onDidCollapseItem=new k.f,this._onDispose=new k.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(Se.g)(Y,Qe,!1),Y.twistiePixels=typeof Y.twistiePixels=="number"?Y.twistiePixels:32,Y.showTwistie=!(Y.showTwistie===!1),Y.indentPixels=typeof Y.indentPixels=="number"?Y.indentPixels:12,Y.alwaysFocused=Y.alwaysFocused===!0,Y.useShadows=!(Y.useShadows===!1),Y.paddingOnRow=!(Y.paddingOnRow===!1),Y.showLoading=!(Y.showLoading===!1),this.context=new Ve(this,te,Y),this.model=new Me(this.context),this.view=new be(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return fe.prototype.style=function(G){this.view.applyStyles(G)},Object.defineProperty(fe.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),fe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},fe.prototype.layout=function(G,te){this.view.layout(G,te)},fe.prototype.domFocus=function(){this.view.focus()},fe.prototype.isDOMFocused=function(){return this.view.isFocused()},fe.prototype.domBlur=function(){this.view.blur()},fe.prototype.setInput=function(G){return this.model.setInput(G)},fe.prototype.getInput=function(){return this.model.getInput()},fe.prototype.expand=function(G){return this.model.expand(G)},fe.prototype.collapse=function(G,te){return te===void 0&&(te=!1),this.model.collapse(G,te)},fe.prototype.toggleExpansion=function(G,te){return te===void 0&&(te=!1),this.model.toggleExpansion(G,te)},fe.prototype.isExpanded=function(G){return this.model.isExpanded(G)},fe.prototype.reveal=function(G,te){return te===void 0&&(te=null),this.model.reveal(G,te)},fe.prototype.getHighlight=function(){return this.model.getHighlight()},fe.prototype.clearHighlight=function(G){this.model.setHighlight(null,G)},fe.prototype.setSelection=function(G,te){this.model.setSelection(G,te)},fe.prototype.getSelection=function(){return this.model.getSelection()},fe.prototype.clearSelection=function(G){this.model.setSelection([],G)},fe.prototype.setFocus=function(G,te){this.model.setFocus(G,te)},fe.prototype.getFocus=function(){return this.model.getFocus()},fe.prototype.focusNext=function(G,te){this.model.focusNext(G,te)},fe.prototype.focusPrevious=function(G,te){this.model.focusPrevious(G,te)},fe.prototype.focusParent=function(G){this.model.focusParent(G)},fe.prototype.focusFirstChild=function(G){this.model.focusFirstChild(G)},fe.prototype.focusFirst=function(G,te){this.model.focusFirst(G,te)},fe.prototype.focusNth=function(G,te){this.model.focusNth(G,te)},fe.prototype.focusLast=function(G,te){this.model.focusLast(G,te)},fe.prototype.focusNextPage=function(G){this.view.focusNextPage(G)},fe.prototype.focusPreviousPage=function(G){this.view.focusPreviousPage(G)},fe.prototype.clearFocus=function(G){this.model.setFocus(null,G)},fe.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},fe}(),pt=e("HyZH"),Rt=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),Mt="done",zt="active",uo="infinite",ao="discrete",so="monaco-progress-container",Pt="progress-bit",ft={progressBarBackground:De.a.fromHex("#0E70C0")},vt=function(fe){Rt(G,fe);function G(te,Y){var de=fe.call(this)||this;return de.options=Y||Object.create(null),Object(Se.g)(de.options,ft,!1),de.workedVal=0,de.progressBarBackground=de.options.progressBarBackground,de._register(de.showDelayedScheduler=new Ee.d(function(){return Object(I.X)(de.element)},0)),de.create(te),de}return G.prototype.create=function(te){this.element=document.createElement("div"),Object(I.f)(this.element,so),te.appendChild(this.element),this.bit=document.createElement("div"),Object(I.f)(this.bit,Pt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(I.Q)(this.element,zt,uo,ao),this.workedVal=0,this.totalWork=void 0},G.prototype.stop=function(){return this.doDone(!1)},G.prototype.doDone=function(te){var Y=this;return Object(I.f)(this.element,Mt),Object(I.I)(this.element,uo)?(this.bit.style.opacity="0",te?setTimeout(function(){return Y.off()},200):this.off()):(this.bit.style.width="inherit",te?setTimeout(function(){return Y.off()},200):this.off()),this},G.prototype.hide=function(){Object(I.J)(this.element),this.showDelayedScheduler.cancel()},G.prototype.style=function(te){this.progressBarBackground=te.progressBarBackground,this.applyStyles()},G.prototype.applyStyles=function(){if(this.bit){var te=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=te}},G}(A.a),At=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),at=function(fe){At(G,fe);function G(){return fe!==null&&fe.apply(this,arguments)||this}return G.prototype.onContextMenu=function(te,Y,de){return O.e?this.onLeftClick(te,Y,de):fe.prototype.onContextMenu.call(this,te,Y,de)},G}(s),tt={background:De.a.fromHex("#1E1E1E"),foreground:De.a.fromHex("#CCCCCC"),pickerGroupForeground:De.a.fromHex("#0097FB"),pickerGroupBorder:De.a.fromHex("#3F3F46"),widgetShadow:De.a.fromHex("#000000"),progressBarBackground:De.a.fromHex("#0E70C0")},ut=z.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ct=function(fe){At(G,fe);function G(te,Y,de){var ke=fe.call(this)||this;return ke.isDisposed=!1,ke.container=te,ke.callbacks=Y,ke.options=de,ke.styles=de||Object.create(null),Object(Se.g)(ke.styles,tt,!1),ke.model=null,ke}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var te=this;this.element=document.createElement("div"),I.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(I.j(this.element,I.d.CONTEXT_MENU,function(de){return I.c.stop(de,!0)})),this._register(I.j(this.element,I.d.FOCUS,function(de){return te.gainingFocus()},!0)),this._register(I.j(this.element,I.d.BLUR,function(de){return te.loosingFocus(de)},!0)),this._register(I.j(this.element,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(ke.keyCode===9)I.c.stop(de,!0),te.hide(2);else if(ke.keyCode===2&&!ke.altKey&&!ke.ctrlKey&&!ke.metaKey){var lt=de.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");ke.shiftKey&&ke.target===lt[0]?(I.c.stop(de,!0),lt[lt.length-1].focus()):!ke.shiftKey&&ke.target===lt[lt.length-1]&&(I.c.stop(de,!0),lt[0].focus())}})),this.progressBar=this._register(new vt(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),I.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new f.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ut,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(I.j(this.inputBox.inputElement,I.d.INPUT,function(de){return te.onType()})),this._register(I.j(this.inputBox.inputElement,I.d.KEY_DOWN,function(de){var ke=new ee.a(de),lt=te.shouldOpenInBackground(ke);if(ke.keyCode===2)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.shiftKey),te.inputBox.inputElement.selectionStart===te.inputBox.inputElement.selectionEnd&&(te.inputBox.inputElement.selectionStart=te.inputBox.value.length);else if(ke.keyCode===3||lt){I.c.stop(de,!0);var Tt=te.tree.getFocus();Tt&&te.elementSelected(Tt,de,lt?2:1)}})),this.resultCount=document.createElement("div"),I.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),I.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(de,ke,lt){return new it(de,ke,lt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new x(this),controller:new at({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new w(this,this.styles),filter:new y(this),accessibilityProvider:new u(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:z.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(de){te.elementFocused(de.focus,de)})),this._register(this.tree.onDidChangeSelection(function(de){if(de.selection&&de.selection.length>0){var ke=de.payload&&de.payload.originalEvent instanceof ne.b?de.payload.originalEvent:void 0,lt=ke?te.shouldOpenInBackground(ke):!1;te.elementSelected(de.selection[0],de,lt?2:1)}})),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(!te.quickNavigateConfiguration)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode);else if(ke.keyCode===3){I.c.stop(de,!0);var lt=te.tree.getFocus();lt&&te.elementSelected(lt,de)}})),this._register(I.j(this.treeContainer,I.d.KEY_UP,function(de){var ke=new ee.a(de),lt=ke.keyCode;if(!te.quickNavigateConfiguration)return;var Tt=te.quickNavigateConfiguration.keybindings,Jt=Tt.some(function(po){var co=po.getParts(),Eo=co[0],Oo=co[1];return Oo?!1:Eo.shiftKey&<===4?!(ke.ctrlKey||ke.altKey||ke.metaKey):Eo.altKey&<===6||Eo.ctrlKey&<===5?!0:!!(Eo.metaKey&<===57)});if(Jt){var eo=te.tree.getFocus();eo&&te.elementSelected(eo,de)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(te.quickNavigateConfiguration)return;(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)&&(I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.shiftKey),te.treeElement.focus())})),this.element},G.prototype.style=function(te){this.styles=te,this.applyStyles()},G.prototype.applyStyles=function(){if(this.element){var te=this.styles.foreground?this.styles.foreground.toString():"",Y=this.styles.background?this.styles.background.toString():"",de=this.styles.borderColor?this.styles.borderColor.toString():"",ke=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=te,this.element.style.backgroundColor=Y,this.element.style.borderColor=de,this.element.style.borderWidth=de?"1px":"",this.element.style.borderStyle=de?"solid":"",this.element.style.boxShadow=ke?"0 5px 8px "+ke:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},G.prototype.shouldOpenInBackground=function(te){if(te instanceof ee.a){if(te.keyCode!==17)return!1;if(te.metaKey||te.ctrlKey||te.shiftKey||te.altKey)return!1;var Y=this.inputBox.inputElement;return Y.selectionEnd===this.inputBox.value.length&&Y.selectionStart===Y.selectionEnd}return te.middleButton},G.prototype.onType=function(){var te=this.inputBox.value;this.helpText&&(te?I.J(this.helpText):I.X(this.helpText)),this.callbacks.onType(te)},G.prototype.navigateInTree=function(te,Y){var de=this.tree.getInput(),ke=de?de.entries:[],lt=this.tree.getFocus();switch(te){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:Y?this.tree.focusPrevious():this.tree.focusNext();break}var Tt=this.tree.getFocus();ke.length>1&<===Tt&&(te===16||te===2&&Y?this.tree.focusLast():(te===18||te===2&&!Y)&&this.tree.focusFirst()),Tt=this.tree.getFocus(),Tt&&this.tree.reveal(Tt)},G.prototype.elementFocused=function(te,Y){if(!te||!this.isVisible())return;var de=this.treeElement.getAttribute("aria-activedescendant");de?this.inputElement.setAttribute("aria-activedescendant",de):this.inputElement.removeAttribute("aria-activedescendant");var ke={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(te,0,ke)},G.prototype.elementSelected=function(te,Y,de){var ke=!0;if(this.isVisible()){var lt=de||1,Tt={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};ke=this.model.runner.run(te,lt,Tt)}ke&&this.hide(0)},G.prototype.extractKeyMods=function(te){return{ctrlCmd:te&&(te.ctrlKey||te.metaKey||te.payload&&te.payload.originalEvent&&(te.payload.originalEvent.ctrlKey||te.payload.originalEvent.metaKey)),alt:te&&(te.altKey||te.payload&&te.payload.originalEvent&&te.payload.originalEvent.altKey)}},G.prototype.show=function(te,Y){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=Y?Y.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(I.J(this.inputContainer),I.X(this.element),this.tree.domFocus()):(I.X(this.inputContainer),I.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||U.j(te)?I.J(this.helpText):I.X(this.helpText)),U.j(te)?this.doShowWithPrefix(te):(Y&&Y.value&&this.restoreLastInput(Y.value),this.doShowWithInput(te,Y&&Y.autoFocus?Y.autoFocus:{})),Y&&Y.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(Y.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},G.prototype.restoreLastInput=function(te){this.inputBox.value=te,this.inputBox.select(),this.callbacks.onType(te)},G.prototype.doShowWithPrefix=function(te){this.inputBox.value=te,this.callbacks.onType(te)},G.prototype.doShowWithInput=function(te,Y){this.setInput(te,Y)},G.prototype.setInputAndLayout=function(te,Y){var de=this;this.treeContainer.style.height=this.getHeight(te)+"px",this.tree.setInput(null).then(function(){return de.model=te,de.inputElement.setAttribute("aria-haspopup",String(te&&te.entries&&te.entries.length>0)),de.tree.setInput(te)}).then(function(){de.tree.layout();var ke=te?te.entries.filter(function(lt){return de.isElementVisible(te,lt)}):[];de.updateResultCount(ke.length),ke.length&&de.autoFocus(te,ke,Y)})},G.prototype.isElementVisible=function(te,Y){return te.filter?te.filter.isVisible(Y):!0},G.prototype.autoFocus=function(te,Y,de){if(de===void 0&&(de={}),de.autoFocusPrefixMatch){for(var ke=void 0,lt=void 0,Tt=de.autoFocusPrefixMatch,Jt=Tt.toLowerCase(),eo=0,po=Y;eode.autoFocusIndex&&(this.tree.focusNth(de.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):de.autoFocusSecondEntry?Y.length>1&&this.tree.focusNth(1):de.autoFocusLastEntry&&(Y.length>1&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus())))},G.prototype.getHeight=function(te){var Y=this,de=te.renderer;if(!te){var ke=de.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*ke:0}var lt=0,Tt;this.layoutDimensions&&this.layoutDimensions.height&&(Tt=(this.layoutDimensions.height-50)*.4),(!Tt||Tt>G.MAX_ITEMS_HEIGHT)&&(Tt=G.MAX_ITEMS_HEIGHT);for(var Jt=te.entries.filter(function(Eo){return Y.isElementVisible(te,Eo)}),eo=this.options.maxItemsToShow||Jt.length,po=0;po=0;Tt--)(lt=fe[Tt])&&(ke=(de<3?lt(ke):de>3?lt(G,te,ke):lt(G,te))||ke);return de>3&&ke&&Object.defineProperty(G,te,ke),ke},$e=function(fe,G){return function(te,Y){G(te,Y,fe)}},ze=function(){function fe(G,te){this.themeService=te,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=G}return fe.get=function(G){return G.getContribution(fe.ID)},fe.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},fe.prototype.run=function(G){var te=this;this.widget&&(this.widget.destroy(),this.widget=null);var Y=function(ke){te.clearDecorations(),ke&&te.lastKnownEditorSelection&&(te.editor.setSelection(te.lastKnownEditorSelection),te.editor.revealRangeInCenterIfOutsideViewport(te.lastKnownEditorSelection,0)),te.lastKnownEditorSelection=null,(document.activeElement===document.body||!ke)&&te.editor.focus()};this.widget=new Gt(this.editor,function(){return Y(!1)},function(){return Y(!0)},function(de){te.widget.setInput(G.getModel(de),G.getAutoFocus(de))},{inputAriaLabel:G.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},fe.prototype.decorateLine=function(G,te){var Y=[];this.rangeHighlightDecorationId&&(Y.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var de=[{range:G,options:fe._RANGE_HIGHLIGHT_DECORATION}],ke=te.deltaDecorations(Y,de);this.rangeHighlightDecorationId=ke[0]},fe.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},fe.ID="editor.controller.quickOpenController",fe._RANGE_HIGHLIGHT_DECORATION=J.a.register({className:"rangeHighlight",isWholeLine:!0}),fe=Je([$e(1,Nt.c)],fe),fe}(),Ke=function(fe){Et(G,fe);function G(te,Y){var de=fe.call(this,Y)||this;return de._inputAriaLabel=te,de}return G.prototype.getController=function(te){return ze.get(te)},G.prototype._show=function(te,Y){te.run({inputAriaLabel:this._inputAriaLabel,getModel:function(ke){return Y.getModel(ke)},getAutoFocus:function(ke){return Y.getAutoFocus(ke)}})},G}(re.b);Object(re.h)(ze.ID,ze)},s7Km:function(Lt,j,e){"use strict";e.r(j),e.d(j,"MoveWordCommand",function(){return v}),e.d(j,"WordLeftCommand",function(){return _}),e.d(j,"WordRightCommand",function(){return p}),e.d(j,"CursorWordStartLeft",function(){return c}),e.d(j,"CursorWordEndLeft",function(){return s}),e.d(j,"CursorWordLeft",function(){return l}),e.d(j,"CursorWordStartLeftSelect",function(){return d}),e.d(j,"CursorWordEndLeftSelect",function(){return m}),e.d(j,"CursorWordLeftSelect",function(){return E}),e.d(j,"CursorWordAccessibilityLeft",function(){return L}),e.d(j,"CursorWordAccessibilityLeftSelect",function(){return A}),e.d(j,"CursorWordStartRight",function(){return k}),e.d(j,"CursorWordEndRight",function(){return R}),e.d(j,"CursorWordRight",function(){return $}),e.d(j,"CursorWordStartRightSelect",function(){return ie}),e.d(j,"CursorWordEndRightSelect",function(){return W}),e.d(j,"CursorWordRightSelect",function(){return B}),e.d(j,"CursorWordAccessibilityRight",function(){return le}),e.d(j,"CursorWordAccessibilityRightSelect",function(){return Ce}),e.d(j,"DeleteWordCommand",function(){return Me}),e.d(j,"DeleteWordLeftCommand",function(){return Te}),e.d(j,"DeleteWordRightCommand",function(){return Fe}),e.d(j,"DeleteWordStartLeft",function(){return He}),e.d(j,"DeleteWordEndLeft",function(){return Pe}),e.d(j,"DeleteWordLeft",function(){return ne}),e.d(j,"DeleteWordStartRight",function(){return ee}),e.d(j,"DeleteWordEndRight",function(){return ae}),e.d(j,"DeleteWordRight",function(){return q});var T=e("sswD"),re=e("LCkn"),J=e("Ll0s"),I=e("1I1M"),H=e("5v8Y"),z=e("cGHE"),O=e("aokT"),U=e("gCVg"),x=e("wQH0"),u=e("R3nR"),y=e("T8No"),w=e("/UlZ"),f=function(){var ue=function(he,je){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xe,me){Xe.__proto__=me}||function(Xe,me){for(var ge in me)me.hasOwnProperty(ge)&&(Xe[ge]=me[ge])},ue(he,je)};return function(X,he){ue(X,he);function je(){this.constructor=X}X.prototype=he===null?Object.create(he):(je.prototype=he.prototype,new je)}}(),v=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._inSelectionMode=he.inSelectionMode,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(H.a)(je.getOption(96)),_e=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(Q){var C=new z.a(Q.positionLineNumber,Q.positionColumn),F=me._move(ge,_e,C,me._wordNavigationType);return me._moveTo(Q,F,me._inSelectionMode)});if(je._getCursors().setStates("moveWordCommand",0,Ee.map(function(Q){return J.d.fromModelSelection(Q)})),Ee.length===1){var ve=new z.a(Ee[0].positionLineNumber,Ee[0].positionColumn);je.revealPosition(ve,0)}},X.prototype._moveTo=function(he,je,Xe){return Xe?new U.a(he.selectionStartLineNumber,he.selectionStartColumn,je.lineNumber,je.column):new U.a(je.lineNumber,je.column,je.lineNumber,je.column)},X}(T.c),_=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordLeft(he,je,Xe,me)},X}(v),p=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordRight(he,je,Xe,me)},X}(v),c=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return X}(_),s=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return X}(_),l=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return X}(_),d=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return X}(_),m=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return X}(_),E=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return X}(_),L=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(H.a)(w.e.wordSeparators.defaultValue),je,Xe,me)},X}(_),A=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(H.a)(w.e.wordSeparators.defaultValue),je,Xe,me)},X}(_),k=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return X}(p),R=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return X}(p),$=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return X}(p),ie=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return X}(p),W=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return X}(p),B=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return X}(p),le=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(H.a)(w.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Ce=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(H.a)(w.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Me=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._whitespaceHeuristics=he.whitespaceHeuristics,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(H.a)(je.getOption(96)),_e=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(ve){var Q=me._delete(ge,_e,ve,me._whitespaceHeuristics,me._wordNavigationType);return new re.a(Q,"")});je.pushUndoStop(),je.executeCommands(this.id,Ee),je.pushUndoStop()},X}(T.c),Te=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var _e=I.a.deleteWordLeft(he,je,Xe,me,ge);return _e||new O.a(1,1,1,1)},X}(Me),Fe=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var _e=I.a.deleteWordRight(he,je,Xe,me,ge);if(_e)return _e;var Re=je.getLineCount(),Ee=je.getLineMaxColumn(Re);return new O.a(Re,Ee,Re,Ee)},X}(Me),He=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:x.a.writable})||this}return X}(Te),Pe=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:x.a.writable})||this}return X}(Te),ne=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return X}(Te),ee=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:x.a.writable})||this}return X}(Fe),ae=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:x.a.writable})||this}return X}(Fe),q=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return X}(Fe);Object(T.g)(new c),Object(T.g)(new s),Object(T.g)(new l),Object(T.g)(new d),Object(T.g)(new m),Object(T.g)(new E),Object(T.g)(new k),Object(T.g)(new R),Object(T.g)(new $),Object(T.g)(new ie),Object(T.g)(new W),Object(T.g)(new B),Object(T.g)(new L),Object(T.g)(new A),Object(T.g)(new le),Object(T.g)(new Ce),Object(T.g)(new He),Object(T.g)(new Pe),Object(T.g)(new ne),Object(T.g)(new ee),Object(T.g)(new ae),Object(T.g)(new q)},sFUC:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("iuje");function re(J){return J&&typeof J.getEditorType=="function"?J.getEditorType()===T.a.ICodeEditor:!1}},sM1p:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return H});var T=e("S3by"),re=e("Cg/j"),J=T.a,I=Object(re.c)("notificationService"),H=function(){function z(){}return z}()},sStQ:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(301).then(e.bind(null,"QKwv"))}})},scqD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("themeService")},siPX:function(Lt,j,e){},snIX:function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("N0LK"),re=e("LCkn"),J=e("Ll0s"),I=e("+Fos"),H=e("aokT"),z=function(){function O(){}return O.deleteRight=function(U,x,u,y){for(var w=[],f=U!==3,v=0,_=y.length;v<_;v++){var p=y[v],c=p;if(c.isEmpty()){var s=p.getPosition(),l=I.a.right(x,u,s.lineNumber,s.column);c=new H.a(l.lineNumber,l.column,s.lineNumber,s.column)}if(c.isEmpty()){w[v]=null;continue}c.startLineNumber!==c.endLineNumber&&(f=!0),w[v]=new re.a(c,"")}return[f,w]},O._isAutoClosingPairDelete=function(U,x,u){if(U.autoClosingBrackets==="never"&&U.autoClosingQuotes==="never")return!1;for(var y=0,w=u.length;y1){var l=u.getLineContent(s.lineNumber),d=T.q(l),m=d===-1?l.length+1:d+1;if(s.column<=m){var E=J.a.visibleColumnFromColumn2(x,u,s),L=J.a.prevIndentTabStop(E,x.indentSize),A=J.a.columnFromVisibleColumn2(x,u,s.lineNumber,L);c=new H.a(s.lineNumber,A,s.lineNumber,s.column)}else c=new H.a(s.lineNumber,s.column-1,s.lineNumber,s.column)}else{var k=I.a.left(x,u,s.lineNumber,s.column);c=new H.a(k.lineNumber,k.column,s.lineNumber,s.column)}}if(c.isEmpty()){w[v]=null;continue}c.startLineNumber!==c.endLineNumber&&(f=!0),w[v]=new re.a(c,"")}return[f,w]},O.cut=function(U,x,u){for(var y=[],w=0,f=u.length;w1?(p=_.lineNumber-1,c=x.getLineMaxColumn(_.lineNumber-1),s=_.lineNumber,l=x.getLineMaxColumn(_.lineNumber)):(p=_.lineNumber,c=1,s=_.lineNumber,l=x.getLineMaxColumn(_.lineNumber));var d=new H.a(p,c,s,l);d.isEmpty()?y[w]=null:y[w]=new re.a(d,"")}else y[w]=null;else y[w]=new re.a(v,"")}return new J.e(0,y,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},O}()},sswD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return _}),e.d(j,"c",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"j",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"k",function(){return d}),e.d(j,"l",function(){return m}),e.d(j,"g",function(){return E}),e.d(j,"f",function(){return L}),e.d(j,"i",function(){return A}),e.d(j,"h",function(){return k}),e.d(j,"d",function(){return R});var T=e("/cxE"),re=e("bY76"),J=e("Vxe3"),I=e("cGHE"),H=e("G2kB"),z=e("t49l"),O=e("fjLI"),U=e("nnTU"),x=e("T8No"),u=e("nrhi"),y=e("ic2d"),w=e("XXUj"),f=e("746U"),v=function(){var W=function(le,Ce){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Te){Me.__proto__=Te}||function(Me,Te){for(var Fe in Te)Te.hasOwnProperty(Fe)&&(Me[Fe]=Te[Fe])},W(le,Ce)};return function(B,le){W(B,le);function Ce(){this.constructor=B}B.prototype=le===null?Object.create(le):(Ce.prototype=le.prototype,new Ce)}}(),_=function(){function W(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this._description=B.description}return W.prototype.register=function(){var B=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var le=this._kbOpts.kbExpr;this.precondition&&(le?le=x.a.and(le,this.precondition):le=this.precondition),u.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Me,Te){return B.runCommand(Me,Te)},weight:this._kbOpts.weight,when:le,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else U.a.registerCommand({id:this.id,handler:function(Me,Te){return B.runCommand(Me,Te)},description:this._description})},W.prototype._registerMenuItem=function(B){O.c.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title},when:B.when,order:B.order})},W}(),p=function(W){v(B,W);function B(){return W!==null&&W.apply(this,arguments)||this}return B.bindToContribution=function(le){return function(Ce){v(Me,Ce);function Me(Te){var Fe=Ce.call(this,Te)||this;return Fe._callback=Te.handler,Fe}return Me.prototype.runEditorCommand=function(Te,Fe,He){var Pe=le(Fe);Pe&&this._callback(le(Fe),He)},Me}(B)},B.prototype.runCommand=function(le,Ce){var Me=this,Te=le.get(J.a),Fe=Te.getFocusedCodeEditor()||Te.getActiveCodeEditor();return Fe?Fe.invokeWithinContext(function(He){var Pe=He.get(x.c);return Pe.contextMatchesRules(Object(f.n)(Me.precondition))?Me.runEditorCommand(He,Fe,Ce):void 0}):void 0},B}(_),c=function(W){v(B,W);function B(le){var Ce=W.call(this,B.convertOptions(le))||this;return Ce.label=le.label,Ce.alias=le.alias,Ce}return B.convertOptions=function(le){var Ce;Array.isArray(le.menuOpts)?Ce=le.menuOpts:le.menuOpts?Ce=[le.menuOpts]:Ce=[];function Me(Te){return Te.menuId||(Te.menuId=7),Te.title||(Te.title=le.label),Te.when=x.a.and(le.precondition,Te.when),Te}return Array.isArray(le.contextMenuOpts)?Ce.push.apply(Ce,le.contextMenuOpts.map(Me)):le.contextMenuOpts&&Ce.push(Me(le.contextMenuOpts)),le.menuOpts=Ce,le},B.prototype.runEditorCommand=function(le,Ce,Me){return this.reportTelemetry(le,Ce),this.run(le,Ce,Me||{})},B.prototype.reportTelemetry=function(le,Ce){le.get(w.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},B}(p);function s(W,B){U.a.registerCommand(W,function(le,Ce){return B(le,Ce||{})})}function l(W,B){s(W,function(le,Ce){var Me=Ce.resource,Te=Ce.position;if(!(Me instanceof re.a))throw Object(T.b)("resource");if(!I.a.isIPosition(Te))throw Object(T.b)("position");var Fe=le.get(H.a).getModel(Me);if(Fe){var He=I.a.lift(Te);return B(Fe,He,Ce)}return le.get(z.a).createModelReference(Me).then(function(Pe){return new Promise(function(ne,ee){try{var ae=B(Pe.object.textEditorModel,I.a.lift(Te),Ce);ne(ae)}catch(q){ee(q)}}).finally(function(){Pe.dispose()})})})}function d(W,B){U.a.registerCommand(W,function(le){for(var Ce=[],Me=1;Me=0})}W.getSomeEditorContributions=Me;function Te(){return ie.INSTANCE.getDiffEditorContributions()}W.getDiffEditorContributions=Te})(R||(R={}));var $={EditorCommonContributions:"editor.contributions"},ie=function(){function W(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return W.prototype.registerEditorContribution=function(B,le){this.editorContributions.push({id:B,ctor:le})},W.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},W.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},W.prototype.registerEditorAction=function(B){B.register(),this.editorActions.push(B)},W.prototype.getEditorActions=function(){return this.editorActions.slice(0)},W.prototype.registerEditorCommand=function(B){B.register(),this.editorCommands[B.id]=B},W.prototype.getEditorCommand=function(B){return this.editorCommands[B]||null},W.INSTANCE=new W,W}();y.a.add($.EditorCommonContributions,ie.INSTANCE)},synD:function(Lt,j,e){},t49l:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("textModelService")},t9D7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return H}),e.d(j,"f",function(){return z}),e.d(j,"b",function(){return U}),e.d(j,"d",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"e",function(){return f});var T=e("Cg/j"),re=e("pmY6"),J=e("ic2d"),I=e("MI8n"),H=Object(T.c)("themeService");function z(v){return{id:v}}var O="dark",U="hc";function x(v){switch(v){case O:return"vs-dark";case U:return"hc-black";default:return"vs"}}var u={ThemingContribution:"base.contributions.theming"},y=function(){function v(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new I.a}return v.prototype.onThemeChange=function(_){var p=this;return this.themingParticipants.push(_),this.onThemingParticipantAddedEmitter.fire(_),Object(re.h)(function(){var c=p.themingParticipants.indexOf(_);p.themingParticipants.splice(c,1)})},v.prototype.getThemingParticipants=function(){return this.themingParticipants},v}(),w=new y;J.a.add(u.ThemingContribution,w);function f(v){return w.onThemeChange(v)}},tADe:function(Lt,j,e){"use strict";e.d(j,"c",function(){return I}),e.d(j,"a",function(){return H}),e.d(j,"b",function(){return z});var T=e("Cg/j"),re=e("3/fG"),J=e("S3by"),I;(function(O){O[O.Hint=1]="Hint",O[O.Info=2]="Info",O[O.Warning=4]="Warning",O[O.Error=8]="Error"})(I||(I={})),function(O){function U(f,v){return v-f}O.compare=U;var x=Object.create(null);x[O.Error]=Object(re.a)("sev.error","Error"),x[O.Warning]=Object(re.a)("sev.warning","Warning"),x[O.Info]=Object(re.a)("sev.info","Info");function u(f){return x[f]||""}O.toString=u;function y(f){switch(f){case J.a.Error:return O.Error;case J.a.Warning:return O.Warning;case J.a.Info:return O.Info;case J.a.Ignore:return O.Hint}}O.fromSeverity=y;function w(f){switch(f){case O.Error:return J.a.Error;case O.Warning:return J.a.Warning;case O.Info:return J.a.Info;case O.Hint:return J.a.Ignore}}O.toSeverity=w}(I||(I={}));var H;(function(O){var U="";function x(y){return u(y,!0)}O.makeKey=x;function u(y,w){var f=[U];return y.source?f.push(y.source.replace("\xA6","\xA6")):f.push(U),y.code?typeof y.code=="string"?f.push(y.code.replace("\xA6","\xA6")):f.push(y.code.value.replace("\xA6","\xA6")):f.push(U),y.severity!==void 0&&y.severity!==null?f.push(I.toString(y.severity)):f.push(U),y.message&&w?f.push(y.message.replace("\xA6","\xA6")):f.push(U),y.startLineNumber!==void 0&&y.startLineNumber!==null?f.push(y.startLineNumber.toString()):f.push(U),y.startColumn!==void 0&&y.startColumn!==null?f.push(y.startColumn.toString()):f.push(U),y.endLineNumber!==void 0&&y.endLineNumber!==null?f.push(y.endLineNumber.toString()):f.push(U),y.endColumn!==void 0&&y.endColumn!==null?f.push(y.endColumn.toString()):f.push(U),f.push(U),f.join("\xA6")}O.makeKeyOptionalMessage=u})(H||(H={}));var z=Object(T.c)("markerService")},tTk5:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("editorProgressService")},tX9W:function(Lt,j,e){"use strict";e.d(j,"b",function(){return mn}),e.d(j,"a",function(){return Uo});var T=e("/cxE"),re=e("MI8n"),J=e("pmY6"),I=e("N0LK"),H=e("bY76"),z=e("/UlZ"),O=e("cGHE"),U=e("aokT"),x=e("gCVg"),u=e("M1Kb"),y=function(){function we(M,P){this.beforeVersionId=M,this.beforeCursorState=P,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return we.prototype.undo=function(M){for(var P=this.editOperations.length-1;P>=0;P--)this.editOperations[P]={operations:M.applyEdits(this.editOperations[P].operations)}},we.prototype.redo=function(M){for(var P=0;P0){var M=this.past.pop();try{M.undo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.future.push(M),{selections:M.beforeCursorState,recordedVersionId:M.beforeVersionId}}return null},we.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},we.prototype.redo=function(){if(this.future.length>0){var M=this.future.pop();try{M.redo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.past.push(M),{selections:M.afterCursorState,recordedVersionId:M.afterVersionId}}return null},we.prototype.canRedo=function(){return this.future.length>0},we}(),_=function(){function we(){this.spacesDiff=0,this.looksLikeAlignment=!1}return we}();function p(we,M,P,Z,Ae){Ae.spacesDiff=0,Ae.looksLikeAlignment=!1;var xe;for(xe=0;xe0&&xt>0)return;if(Ut>0&&Ht>0)return;var oo=Math.abs(xt-Ht),Zt=Math.abs(ht-Ut);if(oo===0){Ae.spacesDiff=Zt,Zt>0&&0<=Ut-1&&Ut-10?Ae++:Oe>1&&xe++,p(Ne,dt,Zt,Ue,Ut),Ut.looksLikeAlignment&&!(P&&M===Ut.spacesDiff))continue;var ye=Ut.spacesDiff;ye<=xt&&Bt[ye]++,Ne=Zt,dt=Ue}var We=P;Ae!==xe&&(We=Aest&&(st=Kt,Ze=mt)}),Ze===4&&Bt[4]>0&&Bt[2]>0&&Bt[2]>=Bt[4]/2&&(Ze=2)}return{insertSpaces:We,tabSize:Ze}}function s(we){return(we.metadata&1)>>>0}function l(we,M){we.metadata=we.metadata&254|M<<0}function d(we){return(we.metadata&2)>>>1===1}function m(we,M){we.metadata=we.metadata&253|(M?1:0)<<1}function E(we){return(we.metadata&4)>>>2===1}function L(we,M){we.metadata=we.metadata&251|(M?1:0)<<2}function A(we){return(we.metadata&8)>>>3===1}function k(we,M){we.metadata=we.metadata&247|(M?1:0)<<3}function R(we){return(we.metadata&48)>>>4}function $(we,M){we.metadata=we.metadata&207|M<<4}function ie(we){return(we.metadata&64)>>>6===1}function W(we,M){we.metadata=we.metadata&191|(M?1:0)<<6}var B=function(){function we(M,P,Z){this.metadata=0,this.parent=this,this.left=this,this.right=this,l(this,1),this.start=P,this.end=Z,this.delta=0,this.maxEnd=Z,this.id=M,this.ownerId=0,this.options=null,L(this,!1),$(this,1),k(this,!1),W(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=null,m(this,!1)}return we.prototype.reset=function(M,P,Z,Ae){this.start=P,this.end=Z,this.maxEnd=Z,this.cachedVersionId=M,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=Ae},we.prototype.setOptions=function(M){this.options=M;var P=this.options.className;L(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),$(this,this.options.stickiness),k(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),W(this,this.options.collapseOnReplaceEdit)},we.prototype.setCachedOffsets=function(M,P,Z){this.cachedVersionId!==Z&&(this.range=null),this.cachedVersionId=Z,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=P},we.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},we}(),le=new B(null,0,0);le.parent=le,le.left=le,le.right=le,l(le,0);var Ce=function(){function we(){this.root=le,this.requestNormalizeDelta=!1}return we.prototype.intervalSearch=function(M,P,Z,Ae,xe){return this.root===le?[]:q(this,M,P,Z,Ae,xe)},we.prototype.search=function(M,P,Z){return this.root===le?[]:ae(this,M,P,Z)},we.prototype.collectNodesFromOwner=function(M){return ne(this,M)},we.prototype.collectNodesPostOrder=function(){return ee(this)},we.prototype.insert=function(M){ue(this,M),this._normalizeDeltaIfNecessary()},we.prototype.delete=function(M){he(this,M),this._normalizeDeltaIfNecessary()},we.prototype.resolveNode=function(M,P){for(var Z=M,Ae=0;M!==this.root;)M===M.parent.right&&(Ae+=M.parent.delta),M=M.parent;var xe=Z.start+Ae,Ne=Z.end+Ae;Z.setCachedOffsets(xe,Ne,P)},we.prototype.acceptReplace=function(M,P,Z,Ae){for(var xe=He(this,M,M+P),Ne=0,dt=xe.length;NeP||Z===1?!1:Z===2?!0:M}function Fe(we,M,P,Z,Ae){var xe=R(we),Ne=xe===0||xe===2,dt=xe===1||xe===2,ht=P-M,xt=Z,Bt=Math.min(ht,xt),Ut=we.start,Ht=!1,oo=we.end,Zt=!1;M<=Ut&&oo<=P&&ie(we)&&(we.start=M,Ht=!0,we.end=M,Zt=!0);{var fo=Ae?1:ht>0?2:0;!Ht&&Te(Ut,Ne,M,fo)&&(Ht=!0),!Zt&&Te(oo,dt,M,fo)&&(Zt=!0)}if(Bt>0&&!Ae){var fo=ht>xt?2:0;!Ht&&Te(Ut,Ne,M+Bt,fo)&&(Ht=!0),!Zt&&Te(oo,dt,M+Bt,fo)&&(Zt=!0)}{var fo=Ae?1:0;!Ht&&Te(Ut,Ne,P,fo)&&(we.start=M+xt,Ht=!0),!Zt&&Te(oo,dt,P,fo)&&(we.end=M+xt,Zt=!0)}var yt=xt-ht;Ht||(we.start=Math.max(0,Ut+yt)),Zt||(we.end=Math.max(0,oo+yt)),we.start>we.end&&(we.end=we.start)}function He(we,M,P){for(var Z=we.root,Ae=0,xe=0,Ne=0,dt=0,ht=[],xt=0;Z!==le;){if(d(Z)){m(Z.left,!1),m(Z.right,!1),Z===Z.parent.right&&(Ae-=Z.parent.delta),Z=Z.parent;continue}if(!d(Z.left)){if(xe=Ae+Z.maxEnd,xeP){m(Z,!0);continue}if(dt=Ae+Z.end,dt>=M&&(Z.setCachedOffsets(Ne,dt,0),ht[xt++]=Z),m(Z,!0),Z.right!==le&&!d(Z.right)){Ae+=Z.delta,Z=Z.right;continue}}return m(we.root,!1),ht}function Pe(we,M,P,Z){for(var Ae=we.root,xe=0,Ne=0,dt=0,ht=Z-(P-M);Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Re(Ae),Ae=Ae.parent;continue}if(!d(Ae.left)){if(Ne=xe+Ae.maxEnd,NeP){Ae.start+=ht,Ae.end+=ht,Ae.delta+=ht,(Ae.delta<-1073741824||Ae.delta>1073741824)&&(we.requestNormalizeDelta=!0),m(Ae,!0);continue}if(m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}m(we.root,!1)}function ne(we,M){for(var P=we.root,Z=[],Ae=0;P!==le;){if(d(P)){m(P.left,!1),m(P.right,!1),P=P.parent;continue}if(P.left!==le&&!d(P.left)){P=P.left;continue}if(P.ownerId===M&&(Z[Ae++]=P),m(P,!0),P.right!==le&&!d(P.right)){P=P.right;continue}}return m(we.root,!1),Z}function ee(we){for(var M=we.root,P=[],Z=0;M!==le;){if(d(M)){m(M.left,!1),m(M.right,!1),M=M.parent;continue}if(M.left!==le&&!d(M.left)){M=M.left;continue}if(M.right!==le&&!d(M.right)){M=M.right;continue}P[Z++]=M,m(M,!0)}return m(we.root,!1),P}function ae(we,M,P,Z){for(var Ae=we.root,xe=0,Ne=0,dt=0,ht=[],xt=0;Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Ae=Ae.parent;continue}if(Ae.left!==le&&!d(Ae.left)){Ae=Ae.left;continue}Ne=xe+Ae.start,dt=xe+Ae.end,Ae.setCachedOffsets(Ne,dt,Z);var Bt=!0;if(M&&Ae.ownerId&&Ae.ownerId!==M&&(Bt=!1),P&&E(Ae)&&(Bt=!1),Bt&&(ht[xt++]=Ae),m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}return m(we.root,!1),ht}function q(we,M,P,Z,Ae,xe){for(var Ne=we.root,dt=0,ht=0,xt=0,Bt=0,Ut=[],Ht=0;Ne!==le;){if(d(Ne)){m(Ne.left,!1),m(Ne.right,!1),Ne===Ne.parent.right&&(dt-=Ne.parent.delta),Ne=Ne.parent;continue}if(!d(Ne.left)){if(ht=dt+Ne.maxEnd,htP){m(Ne,!0);continue}if(Bt=dt+Ne.end,Bt>=M){Ne.setCachedOffsets(xt,Bt,xe);var oo=!0;Z&&Ne.ownerId&&Ne.ownerId!==Z&&(oo=!1),Ae&&E(Ne)&&(oo=!1),oo&&(Ut[Ht++]=Ne)}if(m(Ne,!0),Ne.right!==le&&!d(Ne.right)){dt+=Ne.delta,Ne=Ne.right;continue}}return m(we.root,!1),Ut}function ue(we,M){if(we.root===le)return M.parent=le,M.left=le,M.right=le,l(M,0),we.root=M,we.root;X(we,M),Ee(M.parent);for(var P=M;P!==we.root&&s(P.parent)===1;)if(P.parent===P.parent.parent.left){var Z=P.parent.parent.right;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,me(we,P)),l(P.parent,0),l(P.parent.parent,1),ge(we,P.parent.parent))}else{var Z=P.parent.parent.left;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,ge(we,P)),l(P.parent,0),l(P.parent.parent,1),me(we,P.parent.parent))}return l(we.root,0),M}function X(we,M){for(var P=0,Z=we.root,Ae=M.start,xe=M.end;;){var Ne=ve(Ae,xe,Z.start+P,Z.end+P);if(Ne<0)if(Z.left===le){M.start-=P,M.end-=P,M.maxEnd-=P,Z.left=M;break}else Z=Z.left;else if(Z.right===le){M.start-=P+Z.delta,M.end-=P+Z.delta,M.maxEnd-=P+Z.delta,Z.right=M;break}else P+=Z.delta,Z=Z.right}M.parent=Z,M.left=le,M.right=le,l(M,1)}function he(we,M){var P,Z;if(M.left===le?(P=M.right,Z=M,P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(we.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta):M.right===le?(P=M.left,Z=M):(Z=je(M.right),P=Z.right,P.start+=Z.delta,P.end+=Z.delta,P.delta+=Z.delta,(P.delta<-1073741824||P.delta>1073741824)&&(we.requestNormalizeDelta=!0),Z.start+=M.delta,Z.end+=M.delta,Z.delta=M.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&(we.requestNormalizeDelta=!0)),Z===we.root){we.root=P,l(P,0),M.detach(),Xe(),Re(P),we.root.parent=le;return}var Ae=s(Z)===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?P.parent=Z.parent:(Z.parent===M?P.parent=Z:P.parent=Z.parent,Z.left=M.left,Z.right=M.right,Z.parent=M.parent,l(Z,s(M)),M===we.root?we.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==le&&(Z.left.parent=Z),Z.right!==le&&(Z.right.parent=Z)),M.detach(),Ae){Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent)),Xe();return}Ee(P),Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent));for(var xe;P!==we.root&&s(P)===0;)P===P.parent.left?(xe=P.parent.right,s(xe)===1&&(l(xe,0),l(P.parent,1),me(we,P.parent),xe=P.parent.right),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.right)===0&&(l(xe.left,0),l(xe,1),ge(we,xe),xe=P.parent.right),l(xe,s(P.parent)),l(P.parent,0),l(xe.right,0),me(we,P.parent),P=we.root)):(xe=P.parent.left,s(xe)===1&&(l(xe,0),l(P.parent,1),ge(we,P.parent),xe=P.parent.left),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.left)===0&&(l(xe.right,0),l(xe,1),me(we,xe),xe=P.parent.left),l(xe,s(P.parent)),l(P.parent,0),l(xe.left,0),ge(we,P.parent),P=we.root));l(P,0),Xe()}function je(we){for(;we.left!==le;)we=we.left;return we}function Xe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(we,M){var P=M.right;P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(we.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta,M.right=P.left,P.left!==le&&(P.left.parent=M),P.parent=M.parent,M.parent===le?we.root=P:M===M.parent.left?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P,Re(M),Re(P)}function ge(we,M){var P=M.left;M.delta-=P.delta,(M.delta<-1073741824||M.delta>1073741824)&&(we.requestNormalizeDelta=!0),M.start-=P.delta,M.end-=P.delta,M.left=P.right,P.right!==le&&(P.right.parent=M),P.parent=M.parent,M.parent===le?we.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P,Re(M),Re(P)}function _e(we){var M=we.end;if(we.left!==le){var P=we.left.maxEnd;P>M&&(M=P)}if(we.right!==le){var Z=we.right.maxEnd+we.delta;Z>M&&(M=Z)}return M}function Re(we){we.maxEnd=_e(we)}function Ee(we){for(;we!==le;){var M=_e(we);if(we.maxEnd===M)return;we.maxEnd=M,we=we.parent}}function ve(we,M,P,Z){return we===P?M-Z:we-P}var Q=function(){function we(M,P){this.piece=M,this.color=P,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return we.prototype.next=function(){if(this.right!==C)return F(this.right);for(var M=this;M.parent!==C&&!(M.parent.left===M);)M=M.parent;return M.parent===C?C:M.parent},we.prototype.prev=function(){if(this.left!==C)return se(this.left);for(var M=this;M.parent!==C&&!(M.parent.right===M);)M=M.parent;return M.parent===C?C:M.parent},we.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},we}(),C=new Q(null,0);C.parent=C,C.left=C,C.right=C,C.color=0;function F(we){for(;we.left!==C;)we=we.left;return we}function se(we){for(;we.right!==C;)we=we.right;return we}function oe(we){return we===C?0:we.size_left+we.piece.length+oe(we.right)}function be(we){return we===C?0:we.lf_left+we.piece.lineFeedCnt+be(we.right)}function De(){C.parent=C}function Se(we,M){var P=M.right;P.size_left+=M.size_left+(M.piece?M.piece.length:0),P.lf_left+=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),M.right=P.left,P.left!==C&&(P.left.parent=M),P.parent=M.parent,M.parent===C?we.root=P:M.parent.left===M?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P}function Ve(we,M){var P=M.left;M.left=P.right,P.right!==C&&(P.right.parent=M),P.parent=M.parent,M.size_left-=P.size_left+(P.piece?P.piece.length:0),M.lf_left-=P.lf_left+(P.piece?P.piece.lineFeedCnt:0),M.parent===C?we.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P}function Qe(we,M){var P,Z;if(M.left===C?(Z=M,P=Z.right):M.right===C?(Z=M,P=Z.left):(Z=F(M.right),P=Z.right),Z===we.root){we.root=P,P.color=0,M.detach(),De(),we.root.parent=C;return}var Ae=Z.color===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?(P.parent=Z.parent,Rt(we,P)):(Z.parent===M?P.parent=Z:P.parent=Z.parent,Rt(we,P),Z.left=M.left,Z.right=M.right,Z.parent=M.parent,Z.color=M.color,M===we.root?we.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==C&&(Z.left.parent=Z),Z.right!==C&&(Z.right.parent=Z),Z.size_left=M.size_left,Z.lf_left=M.lf_left,Rt(we,Z)),M.detach(),P.parent.left===P){var xe=oe(P),Ne=be(P);if(xe!==P.parent.size_left||Ne!==P.parent.lf_left){var dt=xe-P.parent.size_left,ht=Ne-P.parent.lf_left;P.parent.size_left=xe,P.parent.lf_left=Ne,pt(we,P.parent,dt,ht)}}if(Rt(we,P.parent),Ae){De();return}for(var xt;P!==we.root&&P.color===0;)P===P.parent.left?(xt=P.parent.right,xt.color===1&&(xt.color=0,P.parent.color=1,Se(we,P.parent),xt=P.parent.right),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.right.color===0&&(xt.left.color=0,xt.color=1,Ve(we,xt),xt=P.parent.right),xt.color=P.parent.color,P.parent.color=0,xt.right.color=0,Se(we,P.parent),P=we.root)):(xt=P.parent.left,xt.color===1&&(xt.color=0,P.parent.color=1,Ve(we,P.parent),xt=P.parent.left),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.left.color===0&&(xt.right.color=0,xt.color=1,Se(we,xt),xt=P.parent.left),xt.color=P.parent.color,P.parent.color=0,xt.left.color=0,Ve(we,P.parent),P=we.root));P.color=0,De()}function it(we,M){for(Rt(we,M);M!==we.root&&M.parent.color===1;)if(M.parent===M.parent.parent.left){var P=M.parent.parent.right;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Se(we,M)),M.parent.color=0,M.parent.parent.color=1,Ve(we,M.parent.parent))}else{var P=M.parent.parent.left;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Ve(we,M)),M.parent.color=0,M.parent.parent.color=1,Se(we,M.parent.parent))}we.root.color=0}function pt(we,M,P,Z){for(;M!==we.root&&M!==C;)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}function Rt(we,M){var P=0,Z=0;if(M===we.root)return;if(P===0){for(;M!==we.root&&M===M.parent.right;)M=M.parent;if(M===we.root)return;M=M.parent,P=oe(M.left)-M.size_left,Z=be(M.left)-M.lf_left,M.size_left+=P,M.lf_left+=Z}for(;M!==we.root&&(P!==0||Z!==0);)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}var Mt=e("jAJ/"),zt=65535;function uo(we){var M;return we[we.length-1]<65536?M=new Uint16Array(we.length):M=new Uint32Array(we.length),M.set(we,0),M}var ao=function(){function we(M,P,Z,Ae,xe){this.lineStarts=M,this.cr=P,this.lf=Z,this.crlf=Ae,this.isBasicASCII=xe}return we}();function so(we,M){M===void 0&&(M=!0);for(var P=[0],Z=1,Ae=0,xe=we.length;Ae126)&&(Ne=!1))}var Bt=new ao(uo(we),Z,Ae,xe,Ne);return we.length=0,Bt}var ft=function(){function we(M,P,Z,Ae,xe){this.bufferIndex=M,this.start=P,this.end=Z,this.lineFeedCnt=Ae,this.length=xe}return we}(),vt=function(){function we(M,P){this.buffer=M,this.lineStarts=P}return we}(),At=function(){function we(M){this._limit=M,this._cache=[]}return we.prototype.get=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartOffset<=M&&Z.nodeStartOffset+Z.node.piece.length>=M)return Z}return null},we.prototype.get2=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartLineNumber&&Z.nodeStartLineNumber=M)return Z}return null},we.prototype.set=function(M){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(M)},we.prototype.valdiate=function(M){for(var P=!1,Z=this._cache,Ae=0;Ae=M){Z[Ae]=null,P=!0;continue}}if(P){for(var Ne=[],dt=0,ht=Z;dt0){M[xe].lineStarts||(M[xe].lineStarts=so(M[xe].buffer));var dt=new ft(xe+1,{line:0,column:0},{line:M[xe].lineStarts.length-1,column:M[xe].buffer.length-M[xe].lineStarts[M[xe].lineStarts.length-1]},M[xe].lineStarts.length-1,M[xe].buffer.length);this._buffers.push(M[xe]),Ae=this.rbInsertRight(Ae,dt)}this._searchCache=new At(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},we.prototype.normalizeEOL=function(M){var P=this,Z=zt,Ae=Z-Math.floor(Z/3),xe=Ae*2,Ne="",dt=0,ht=[];if(this.iterate(this.root,function(Bt){var Ut=P.getNodeContent(Bt),Ht=Ut.length;if(dt<=Ae||dt+Ht0){var xt=Ne.replace(/\r\n|\r|\n/g,M);ht.push(new vt(xt,so(xt)))}this.create(ht,M,!0)},we.prototype.getEOL=function(){return this._EOL},we.prototype.setEOL=function(M){this._EOL=M,this._EOLLength=this._EOL.length,this.normalizeEOL(M)},we.prototype.getOffsetAt=function(M,P){for(var Z=0,Ae=this.root;Ae!==C;)if(Ae.left!==C&&Ae.lf_left+1>=M)Ae=Ae.left;else if(Ae.lf_left+Ae.piece.lineFeedCnt+1>=M){Z+=Ae.size_left;var xe=this.getAccumulatedValue(Ae,M-Ae.lf_left-2);return Z+=xe+P-1}else M-=Ae.lf_left+Ae.piece.lineFeedCnt,Z+=Ae.size_left+Ae.piece.length,Ae=Ae.right;return Z},we.prototype.getPositionAt=function(M){M=Math.floor(M),M=Math.max(0,M);for(var P=this.root,Z=0,Ae=M;P!==C;)if(P.size_left!==0&&P.size_left>=M)P=P.left;else if(P.size_left+P.piece.length>=M){var xe=this.getIndexOf(P,M-P.size_left);if(Z+=P.lf_left+xe.index,xe.index===0){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-Ne;return new O.a(Z+1,dt+1)}return new O.a(Z+1,xe.remainder+1)}else if(M-=P.size_left+P.piece.length,Z+=P.lf_left+P.piece.lineFeedCnt,P.right===C){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-M-Ne;return new O.a(Z+1,dt+1)}else P=P.right;return new O.a(1,1)},we.prototype.getValueInRange=function(M,P){if(M.startLineNumber===M.endLineNumber&&M.startColumn===M.endColumn)return"";var Z=this.nodeAt2(M.startLineNumber,M.startColumn),Ae=this.nodeAt2(M.endLineNumber,M.endColumn),xe=this.getValueInRange2(Z,Ae);return P?P!==this._EOL||!this._EOLNormalized?xe.replace(/\r\n|\r|\n/g,P):P===this.getEOL()&&this._EOLNormalized?(P===`\r -`,xe):xe.replace(/\r\n|\r|\n/g,P):xe},we.prototype.getValueInRange2=function(M,P){if(M.node===P.node){var Z=M.node,Ae=this._buffers[Z.piece.bufferIndex].buffer,xe=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae.substring(xe+M.remainder,xe+P.remainder)}var Ne=M.node,dt=this._buffers[Ne.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start),xt=dt.substring(ht+M.remainder,ht+Ne.piece.length);for(Ne=Ne.next();Ne!==C;){var Bt=this._buffers[Ne.piece.bufferIndex].buffer,Ut=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start);if(Ne===P.node){xt+=Bt.substring(Ut,Ut+P.remainder);break}else xt+=Bt.substr(Ut,Ne.piece.length);Ne=Ne.next()}return xt},we.prototype.getLinesContent=function(){var M=this,P=[],Z=0,Ae="",xe=!1;return this.iterate(this.root,function(Ne){if(Ne===C)return!0;var dt=Ne.piece,ht=dt.length;if(ht===0)return!0;var xt=M._buffers[dt.bufferIndex].buffer,Bt=M._buffers[dt.bufferIndex].lineStarts,Ut=dt.start.line,Ht=dt.end.line,oo=Bt[Ut]+dt.start.column;if(xe&&(xt.charCodeAt(oo)===10&&(oo++,ht--),P[Z++]=Ae,Ae="",xe=!1,ht===0))return!0;if(Ut===Ht)return!M._EOLNormalized&&xt.charCodeAt(oo+ht-1)===13?(xe=!0,Ae+=xt.substr(oo,ht-1)):Ae+=xt.substr(oo,ht),!0;Ae+=M._EOLNormalized?xt.substring(oo,Math.max(oo,Bt[Ut+1]-M._EOLLength)):xt.substring(oo,Bt[Ut+1]).replace(/(\r\n|\r|\n)$/,""),P[Z++]=Ae;for(var Zt=Ut+1;Zt=fo)return Bt;this.positionInBuffer(M,rt(yt.index)-oo,Ue);var It=this.getLineFeedCnt(M.piece.bufferIndex,xe,Ue),pe=Ue.line===xe.line?Ue.column-xe.column+Ae:Ue.column+1,D=pe+yt[0].length;if(Ut[Bt++]=Object(Mt.d)(new U.a(Z+It,pe,Z+It,D),yt,ht),rt(yt.index)+yt[0].length>=fo)return Bt;if(Bt>=xt)return Bt}while(yt);return Bt},we.prototype.findMatchesLineByLine=function(M,P,Z,Ae){var xe=[],Ne=0,dt=new Mt.b(P.wordSeparators,P.regex),ht=this.nodeAt2(M.startLineNumber,M.startColumn);if(ht===null)return[];var xt=this.nodeAt2(M.endLineNumber,M.endColumn);if(xt===null)return[];var Bt=this.positionInBuffer(ht.node,ht.remainder),Ut=this.positionInBuffer(xt.node,xt.remainder);if(ht.node===xt.node)return this.findMatchesInNode(ht.node,dt,M.startLineNumber,M.startColumn,Bt,Ut,P,Z,Ae,Ne,xe),xe;for(var Ht=M.startLineNumber,oo=ht.node;oo!==xt.node;){var Zt=this.getLineFeedCnt(oo.piece.bufferIndex,Bt,oo.piece.end);if(Zt>=1){var fo=this._buffers[oo.piece.bufferIndex].lineStarts,yt=this.offsetInBuffer(oo.piece.bufferIndex,oo.piece.start),Ue=fo[Bt.line+Zt],Oe=Ht===M.startLineNumber?M.startColumn:1;if(Ne=this.findMatchesInNode(oo,dt,Ht,Oe,Bt,this.positionInBuffer(oo,Ue-yt),P,Z,Ae,Ne,xe),Ne>=Ae)return xe;Ht+=Zt}var rt=Ht===M.startLineNumber?M.startColumn-1:0;if(Ht===M.endLineNumber){var It=this.getLineContent(Ht).substring(rt,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,rt,Ne,xe,Z,Ae),xe}if(Ne=this._findMatchesInLine(P,dt,this.getLineContent(Ht).substr(rt),Ht,rt,Ne,xe,Z,Ae),Ne>=Ae)return xe;Ht++,ht=this.nodeAt2(Ht,1),oo=ht.node,Bt=this.positionInBuffer(ht.node,ht.remainder)}if(Ht===M.endLineNumber){var pe=Ht===M.startLineNumber?M.startColumn-1:0,It=this.getLineContent(Ht).substring(pe,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,pe,Ne,xe,Z,Ae),xe}var D=Ht===M.startLineNumber?M.startColumn:1;return Ne=this.findMatchesInNode(xt.node,dt,Ht,D,Bt,Ut,P,Z,Ae,Ne,xe),xe},we.prototype._findMatchesInLine=function(M,P,Z,Ae,xe,Ne,dt,ht,xt){var Bt=M.wordSeparators;if(!ht&&M.simpleSearch){for(var Ut=M.simpleSearch,Ht=Ut.length,oo=Z.length,Zt=-Ht;(Zt=Z.indexOf(Ut,Zt+Ht))!==-1;)if((!Bt||Object(Mt.e)(Bt,Z,oo,Zt,Ht))&&(dt[Ne++]=new u.b(new U.a(Ae,Zt+1+xe,Ae,Zt+1+Ht+xe),null),Ne>=xt))return Ne;return Ne}var fo;P.reset(0);do if(fo=P.next(Z),fo&&(dt[Ne++]=Object(Mt.d)(new U.a(Ae,fo.index+1+xe,Ae,fo.index+1+fo[0].length+xe),fo,ht),Ne>=xt))return Ne;while(fo);return Ne},we.prototype.insert=function(M,P,Z){if(Z===void 0&&(Z=!1),this._EOLNormalized=this._EOLNormalized&&Z,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==C){var Ae=this.nodeAt(M),xe=Ae.node,Ne=Ae.remainder,dt=Ae.nodeStartOffset,ht=xe.piece,xt=ht.bufferIndex,Bt=this.positionInBuffer(xe,Ne);if(xe.piece.bufferIndex===0&&ht.end.line===this._lastChangeBufferPos.line&&ht.end.column===this._lastChangeBufferPos.column&&dt+ht.length===M&&P.lengthM){var Ut=[],Ht=new ft(ht.bufferIndex,Bt,ht.end,this.getLineFeedCnt(ht.bufferIndex,Bt,ht.end),this.offsetInBuffer(xt,ht.end)-this.offsetInBuffer(xt,Bt));if(this.shouldCheckCRLF()&&this.endWithCR(P)){var oo=this.nodeCharCodeAt(xe,Ne);if(oo===10){var Zt={line:Ht.start.line+1,column:0};Ht=new ft(Ht.bufferIndex,Zt,Ht.end,this.getLineFeedCnt(Ht.bufferIndex,Zt,Ht.end),Ht.length-1),P+=` -`}}if(this.shouldCheckCRLF()&&this.startWithLF(P)){var fo=this.nodeCharCodeAt(xe,Ne-1);if(fo===13){var yt=this.positionInBuffer(xe,Ne-1);this.deleteNodeTail(xe,yt),P="\r"+P,xe.piece.length===0&&Ut.push(xe)}else this.deleteNodeTail(xe,Bt)}else this.deleteNodeTail(xe,Bt);var Ue=this.createNewPieces(P);Ht.length>0&&this.rbInsertRight(xe,Ht);for(var Oe=xe,rt=0;rt=0;xt--)ht=this.rbInsertLeft(ht,dt[xt]);this.validateCRLFWithPrevNode(ht),this.deleteNodes(Z)},we.prototype.insertContentToNodeRight=function(M,P){this.adjustCarriageReturnFromNext(M,P)&&(M+=` -`);for(var Z=this.createNewPieces(M),Ae=this.rbInsertRight(P,Z[0]),xe=Ae,Ne=1;Ne=Ht)xt=Ut+1;else break;return Z?(Z.line=Ut,Z.column=ht-oo,null):{line:Ut,column:ht-oo}},we.prototype.getLineFeedCnt=function(M,P,Z){if(Z.column===0)return Z.line-P.line;var Ae=this._buffers[M].lineStarts;if(Z.line===Ae.length-1)return Z.line-P.line;var xe=Ae[Z.line+1],Ne=Ae[Z.line]+Z.column;if(xe>Ne+1)return Z.line-P.line;var dt=Ne-1,ht=this._buffers[M].buffer;return ht.charCodeAt(dt)===13?Z.line-P.line+1:Z.line-P.line},we.prototype.offsetInBuffer=function(M,P){var Z=this._buffers[M].lineStarts;return Z[P.line]+P.column},we.prototype.deleteNodes=function(M){for(var P=0;Pzt){for(var P=[];M.length>zt;){var Z=M.charCodeAt(zt-1),Ae=void 0;Z===13||Z>=55296&&Z<=56319?(Ae=M.substring(0,zt-1),M=M.substring(zt-1)):(Ae=M.substring(0,zt),M=M.substring(zt));var xe=so(Ae);P.push(new ft(this._buffers.length,{line:0,column:0},{line:xe.length-1,column:Ae.length-xe[xe.length-1]},xe.length-1,Ae.length)),this._buffers.push(new vt(Ae,xe))}var Ne=so(M);return P.push(new ft(this._buffers.length,{line:0,column:0},{line:Ne.length-1,column:M.length-Ne[Ne.length-1]},Ne.length-1,M.length)),this._buffers.push(new vt(M,Ne)),P}var dt=this._buffers[0].buffer.length,ht=so(M,!1),xt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===dt&&dt!==0&&this.startWithLF(M)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},xt=this._lastChangeBufferPos;for(var Bt=0;Bt=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),xt=this.getAccumulatedValue(Z,M-Z.lf_left-1),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Bt+=Z.size_left,this._searchCache.set({node:Z,nodeStartOffset:Bt,nodeStartLineNumber:Ut-(M-1-Z.lf_left)}),dt.substring(ht+Ne,ht+xt-P)}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae=dt.substring(ht+Ne,ht+Z.piece.length);break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Bt+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){var dt=this._buffers[Z.piece.bufferIndex].buffer;if(Z.piece.lineFeedCnt>0){var xt=this.getAccumulatedValue(Z,0),ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae+=dt.substring(ht,ht+xt-P),Ae}else{var ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae+=dt.substr(ht,Z.piece.length)}Z=Z.next()}return Ae},we.prototype.computeBufferMetadata=function(){for(var M=this.root,P=1,Z=0;M!==C;)P+=M.lf_left+M.piece.lineFeedCnt,Z+=M.size_left+M.piece.length,M=M.right;this._lineCnt=P,this._length=Z,this._searchCache.valdiate(this._length)},we.prototype.getIndexOf=function(M,P){var Z=M.piece,Ae=this.positionInBuffer(M,P),xe=Ae.line-Z.start.line;if(this.offsetInBuffer(Z.bufferIndex,Z.end)-this.offsetInBuffer(Z.bufferIndex,Z.start)===P){var Ne=this.getLineFeedCnt(M.piece.bufferIndex,Z.start,Ae);if(Ne!==xe)return{index:Ne,remainder:0}}return{index:xe,remainder:Ae.column}},we.prototype.getAccumulatedValue=function(M,P){if(P<0)return 0;var Z=M.piece,Ae=this._buffers[Z.bufferIndex].lineStarts,xe=Z.start.line+P+1;return xe>Z.end.line?Ae[Z.end.line]+Z.end.column-Ae[Z.start.line]-Z.start.column:Ae[xe]-Ae[Z.start.line]-Z.start.column},we.prototype.deleteNodeTail=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.end),Ne=P,dt=this.offsetInBuffer(Z.bufferIndex,Ne),ht=this.getLineFeedCnt(Z.bufferIndex,Z.start,Ne),xt=ht-Ae,Bt=dt-xe,Ut=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Z.start,Ne,ht,Ut),pt(this,M,Bt,xt)},we.prototype.deleteNodeHead=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.start),Ne=P,dt=this.getLineFeedCnt(Z.bufferIndex,Ne,Z.end),ht=this.offsetInBuffer(Z.bufferIndex,Ne),xt=dt-Ae,Bt=xe-ht,Ut=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Ne,Z.end,dt,Ut),pt(this,M,Bt,xt)},we.prototype.shrinkNode=function(M,P,Z){var Ae=M.piece,xe=Ae.start,Ne=Ae.end,dt=Ae.length,ht=Ae.lineFeedCnt,xt=P,Bt=this.getLineFeedCnt(Ae.bufferIndex,Ae.start,xt),Ut=this.offsetInBuffer(Ae.bufferIndex,P)-this.offsetInBuffer(Ae.bufferIndex,xe);M.piece=new ft(Ae.bufferIndex,Ae.start,xt,Bt,Ut),pt(this,M,Ut-dt,Bt-ht);var Ht=new ft(Ae.bufferIndex,Z,Ne,this.getLineFeedCnt(Ae.bufferIndex,Z,Ne),this.offsetInBuffer(Ae.bufferIndex,Ne)-this.offsetInBuffer(Ae.bufferIndex,Z)),oo=this.rbInsertRight(M,Ht);this.validateCRLFWithPrevNode(oo)},we.prototype.appendToNode=function(M,P){this.adjustCarriageReturnFromNext(P,M)&&(P+=` -`);var Z=this.shouldCheckCRLF()&&this.startWithLF(P)&&this.endWithCR(M),Ae=this._buffers[0].buffer.length;this._buffers[0].buffer+=P;for(var xe=so(P,!1),Ne=0;NeM)P=P.left;else if(P.size_left+P.piece.length>=M){Ae+=P.size_left;var xe={node:P,remainder:M-P.size_left,nodeStartOffset:Ae};return this._searchCache.set(xe),xe}else M-=P.size_left+P.piece.length,Ae+=P.size_left+P.piece.length,P=P.right;return null},we.prototype.nodeAt2=function(M,P){for(var Z=this.root,Ae=0;Z!==C;)if(Z.left!==C&&Z.lf_left>=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2),Ne=this.getAccumulatedValue(Z,M-Z.lf_left-1);return Ae+=Z.size_left,{node:Z,remainder:Math.min(xe+P-1,Ne),nodeStartOffset:Ae}}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2);if(xe+P-1<=Z.piece.length)return{node:Z,remainder:xe+P-1,nodeStartOffset:Ae};P-=Z.piece.length-xe;break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Ae+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){if(Z.piece.lineFeedCnt>0){var Ne=this.getAccumulatedValue(Z,0),dt=this.offsetOfNode(Z);return{node:Z,remainder:Math.min(P-1,Ne),nodeStartOffset:dt}}else if(Z.piece.length>=P-1){var ht=this.offsetOfNode(Z);return{node:Z,remainder:P-1,nodeStartOffset:ht}}else P-=Z.piece.length;Z=Z.next()}return null},we.prototype.nodeCharCodeAt=function(M,P){if(M.piece.lineFeedCnt<1)return-1;var Z=this._buffers[M.piece.bufferIndex],Ae=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start)+P;return Z.buffer.charCodeAt(Ae)},we.prototype.offsetOfNode=function(M){if(!M)return 0;for(var P=M.size_left;M!==this.root;)M.parent.right===M&&(P+=M.parent.size_left+M.parent.piece.length),M=M.parent;return P},we.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===` -`)},we.prototype.startWithLF=function(M){if(typeof M=="string")return M.charCodeAt(0)===10;if(M===C||M.piece.lineFeedCnt===0)return!1;var P=M.piece,Z=this._buffers[P.bufferIndex].lineStarts,Ae=P.start.line,xe=Z[Ae]+P.start.column;if(Ae===Z.length-1)return!1;var Ne=Z[Ae+1];return Ne>xe+1?!1:this._buffers[P.bufferIndex].buffer.charCodeAt(xe)===10},we.prototype.endWithCR=function(M){return typeof M=="string"?M.charCodeAt(M.length-1)===13:M===C||M.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(M,M.piece.length-1)===13},we.prototype.validateCRLFWithPrevNode=function(M){if(this.shouldCheckCRLF()&&this.startWithLF(M)){var P=M.prev();this.endWithCR(P)&&this.fixCRLF(P,M)}},we.prototype.validateCRLFWithNextNode=function(M){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var P=M.next();this.startWithLF(P)&&this.fixCRLF(M,P)}},we.prototype.fixCRLF=function(M,P){var Z=[],Ae=this._buffers[M.piece.bufferIndex].lineStarts,xe;M.piece.end.column===0?xe={line:M.piece.end.line-1,column:Ae[M.piece.end.line]-Ae[M.piece.end.line-1]-1}:xe={line:M.piece.end.line,column:M.piece.end.column-1};var Ne=M.piece.length-1,dt=M.piece.lineFeedCnt-1;M.piece=new ft(M.piece.bufferIndex,M.piece.start,xe,dt,Ne),pt(this,M,-1,-1),M.piece.length===0&&Z.push(M);var ht={line:P.piece.start.line+1,column:0},xt=P.piece.length-1,Bt=this.getLineFeedCnt(P.piece.bufferIndex,ht,P.piece.end);P.piece=new ft(P.piece.bufferIndex,ht,P.piece.end,Bt,xt),pt(this,P,-1,-1),P.piece.length===0&&Z.push(P);var Ut=this.createNewPieces(`\r -`);this.rbInsertRight(M,Ut[0]);for(var Ht=0;Ht=0;lt--)this.onInsertItem(po[lt]);for(lt=this.heightMap.length-1;lt>=ke;lt--)this.onRefreshItem(this.heightMap[lt]);return Jt},fe.prototype.onInsertItem=function(G){},fe.prototype.onRemoveItems=function(G){for(var te=null,Y,de=null,ke=0,lt=0;te=G.next();){if(ke=this.indexes[te],Y=this.heightMap[ke],!Y){console.error("view item doesnt exist");return}lt-=Y.height,delete this.indexes[te],this.onRemoveItem(Y),de===null&&(de=ke)}if(lt===0||de===null)return;for(this.heightMap.splice(de,ke-de+1),ke=de;ke=ke.top+ke.height){if(te===de)break;te=de}else return de;return this.heightMap.length},fe.prototype.indexAfter=function(G){return Math.min(this.indexAt(G)+1,this.heightMap.length)},fe.prototype.itemAtIndex=function(G){return this.heightMap[G]},fe.prototype.itemAfter=function(G){return this.heightMap[this.indexes[G.model.id]+1]||null},fe.prototype.createViewItem=function(G){throw new Error("not implemented")},fe.prototype.dispose=function(){this.heightMap=[],this.indexes={}},fe}(),Xe=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),me=function(){function fe(G,te,Y){this._posx=G,this._posy=te,this._target=Y}return fe.prototype.preventDefault=function(){},fe.prototype.stopPropagation=function(){},Object.defineProperty(fe.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0}),fe}(),ge=function(fe){Xe(G,fe);function G(te){var Y=fe.call(this,te.posx,te.posy,te.target)||this;return Y.originalEvent=te,Y}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(me),we=function(fe){Xe(G,fe);function G(te,Y,de){var ke=fe.call(this,te,Y,de.target)||this;return ke.originalEvent=de,ke}return G.prototype.preventDefault=function(){this.originalEvent.preventDefault()},G.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()},G}(me),Re=e("ZQ78"),Ee=e("X+cX"),ve=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}();function Q(fe){try{fe.parentElement.removeChild(fe)}catch(G){}}var C=function(){function fe(G){this.context=G,this._cache={"":[]}}return fe.prototype.alloc=function(G){var te=this.cache(G).pop();if(!te){var Y=document.createElement("div");Y.className="content";var de=document.createElement("div");de.appendChild(Y);var ke=null;try{ke=this.context.renderer.renderTemplate(this.context.tree,G,Y)}catch(lt){console.error("Tree usage error: exception while rendering template"),console.error(lt)}te={element:de,templateId:G,templateData:ke}}return te},fe.prototype.release=function(G,te){Q(te.element),this.cache(G).push(te)},fe.prototype.cache=function(G){return this._cache[G]||(this._cache[G]=[])},fe.prototype.garbageCollect=function(){var G=this;this._cache&&Object.keys(this._cache).forEach(function(te){G._cache[te].forEach(function(Y){G.context.renderer.disposeTemplate(G.context.tree,te,Y.templateData),Y.element=null,Y.templateData=null}),delete G._cache[te]})},fe.prototype.dispose=function(){this.garbageCollect(),this._cache=null},fe}(),F=function(){function fe(G,te){var Y=this;this.width=0,this.needsRender=!1,this.uri=null,this.unbindDragStart=A.a.None,this._draggable=!1,this.context=G,this.model=te,this.id=this.model.id,this.row=null,this.top=0,this.height=te.getHeight(),this._styles={},te.getAllTraits().forEach(function(de){return Y._styles[de]=!0}),te.isExpanded()&&this.addClass("expanded")}return Object.defineProperty(fe.prototype,"expanded",{set:function(te){te?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"loading",{set:function(te){te?this.addClass("codicon-loading"):this.removeClass("codicon-loading")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"draggable",{get:function(){return this._draggable},set:function(te){this._draggable=te,this.render(!0)},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"dropTarget",{set:function(te){te?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0}),Object.defineProperty(fe.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0}),fe.prototype.addClass=function(G){this._styles[G]=!0,this.render(!0)},fe.prototype.removeClass=function(G){delete this._styles[G],this.render(!0)},fe.prototype.render=function(G){var te=this;if(G===void 0&&(G=!1),!this.model||!this.element)return;var Y=["monaco-tree-row"];Y.push.apply(Y,Object.keys(this._styles)),this.model.hasChildren()&&Y.push("has-children"),this.element.className=Y.join(" "),this.element.draggable=this.draggable,this.element.style.height=this.height+"px",this.element.setAttribute("role","treeitem");var de=this.context.accessibilityProvider,ke=de.getAriaLabel(this.context.tree,this.model.getElement());if(ke&&this.element.setAttribute("aria-label",ke),de.getPosInSet&&de.getSetSize&&(this.element.setAttribute("aria-setsize",de.getSetSize()),this.element.setAttribute("aria-posinset",de.getPosInSet(this.context.tree,this.model.getElement()))),this.model.hasTrait("focused")){var lt=Pe.L(this.model.id);this.element.setAttribute("aria-selected","true"),this.element.setAttribute("id",lt)}else this.element.setAttribute("aria-selected","false"),this.element.removeAttribute("id");this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles.expanded)):this.element.removeAttribute("aria-expanded"),this.element.setAttribute("aria-level",String(this.model.getDepth())),this.context.options.paddingOnRow?this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px":(this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px",this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px");var Tt=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(Tt!==this.uri&&(this.unbindDragStart&&this.unbindDragStart.dispose(),Tt?(this.uri=Tt,this.draggable=!0,this.unbindDragStart=I.j(this.element,"dragstart",function(po){te.onDragStart(po)})):this.uri=null),!G&&this.element){var Jt=0;if(this.context.horizontalScrolling){var eo=window.getComputedStyle(this.element);Jt=parseFloat(eo.paddingLeft)}this.context.horizontalScrolling&&(this.element.style.width=Te.h?"-moz-fit-content":"fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(po){console.error("Tree usage error: exception while rendering element"),console.error(po)}this.context.horizontalScrolling&&(this.width=I.B(this.element)+Jt,this.element.style.width="")}},fe.prototype.insertInDOM=function(G,te){if(this.row||(this.row=this.context.cache.alloc(this.templateId),this.element[be.BINDING]=this),this.element.parentElement)return;if(te===null)G.appendChild(this.element);else try{G.insertBefore(this.element,te)}catch(Y){console.warn("Failed to locate previous tree element"),G.appendChild(this.element)}this.render()},fe.prototype.removeFromDOM=function(){if(!this.row)return;this.unbindDragStart.dispose(),this.uri=null,this.element[be.BINDING]=null,this.context.cache.release(this.templateId,this.row),this.row=null},fe.prototype.dispose=function(){this.row=null},fe}(),se=function(fe){ve(G,fe);function G(te,Y,de){var ke=fe.call(this,te,Y)||this;return ke.row={element:de,templateData:null,templateId:null},ke}return G.prototype.render=function(){if(!this.model||!this.element)return;var te=["monaco-tree-wrapper"];te.push.apply(te,Object.keys(this._styles)),this.model.hasChildren()&&te.push("has-children"),this.element.className=te.join(" ")},G.prototype.insertInDOM=function(te,Y){},G.prototype.removeFromDOM=function(){},G}(F);function oe(fe,G){return!fe&&!G?!0:!fe||!G||(fe.accept!==G.accept||fe.bubble!==G.bubble)?!1:!(fe.effect!==G.effect)}var be=function(fe){ve(G,fe);function G(te,Y){var de=fe.call(this)||this;de.model=null,de.lastPointerType="",de.lastClickTimeStamp=0,de.contentWidthUpdateDelayer=new Ee.a(50),de.isRefreshing=!1,de.refreshingPreviousChildrenIds={},de.currentDragAndDropData=null,de.currentDropTarget=null,de.currentDropTargets=null,de.currentDropDisposable=A.a.None,de.gestureDisposable=A.a.None,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.dragAndDropMouseY=null,de.highlightedItemWasDraggable=!1,de.onHiddenScrollTop=null,de._onDOMFocus=new k.a,de.onDOMFocus=de._onDOMFocus.event,de._onDOMBlur=new k.a,de._onDidScroll=new k.a,G.counter++,de.instance=G.counter;var ke=typeof te.options.horizontalScrollMode=="undefined"?2:te.options.horizontalScrollMode;de.horizontalScrolling=ke!==2,de.context={dataSource:te.dataSource,renderer:te.renderer,controller:te.controller,dnd:te.dnd,filter:te.filter,sorter:te.sorter,tree:te.tree,accessibilityProvider:te.accessibilityProvider,options:te.options,cache:new C(te),horizontalScrolling:de.horizontalScrolling},de.modelListeners=[],de.viewListeners=[],de.items={},de.domNode=document.createElement("div"),de.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+de.instance,de.domNode.tabIndex=te.options.preventRootFocus?-1:0,de.styleElement=I.w(de.domNode),de.treeStyler=te.styler||new E(de.styleElement,"monaco-tree-instance-"+de.instance),de.domNode.setAttribute("role","tree"),de.context.options.ariaLabel&&de.domNode.setAttribute("aria-label",de.context.options.ariaLabel),de.context.options.alwaysFocused&&I.f(de.domNode,"focused"),de.context.options.paddingOnRow||I.f(de.domNode,"no-row-padding"),de.wrapper=document.createElement("div"),de.wrapper.className="monaco-tree-wrapper",de.scrollableElement=new he.b(de.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:ke,vertical:typeof te.options.verticalScrollMode!="undefined"?te.options.verticalScrollMode:1,useShadows:te.options.useShadows}),de.scrollableElement.onScroll(function(Tt){de.render(Tt.scrollTop,Tt.height,Tt.scrollLeft,Tt.width,Tt.scrollWidth),de._onDidScroll.fire()}),Te.i?(de.wrapper.style.msTouchAction="none",de.wrapper.style.msContentZooming="none"):de.gestureDisposable=Ue.b.addTarget(de.wrapper),de.rowsContainer=document.createElement("div"),de.rowsContainer.className="monaco-tree-rows",te.options.showTwistie&&(de.rowsContainer.className+=" show-twisties");var lt=I.Z(de.domNode);return de.viewListeners.push(lt.onDidFocus(function(){return de.onFocus()})),de.viewListeners.push(lt.onDidBlur(function(){return de.onBlur()})),de.viewListeners.push(lt),de.viewListeners.push(I.j(de.domNode,"keydown",function(Tt){return de.onKeyDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"keyup",function(Tt){return de.onKeyUp(Tt)})),de.viewListeners.push(I.j(de.domNode,"mousedown",function(Tt){return de.onMouseDown(Tt)})),de.viewListeners.push(I.j(de.domNode,"mouseup",function(Tt){return de.onMouseUp(Tt)})),de.viewListeners.push(I.j(de.wrapper,"auxclick",function(Tt){Tt&&Tt.button===1&&de.onMouseMiddleClick(Tt)})),de.viewListeners.push(I.j(de.wrapper,"click",function(Tt){return de.onClick(Tt)})),de.viewListeners.push(I.j(de.domNode,"contextmenu",function(Tt){return de.onContextMenu(Tt)})),de.viewListeners.push(I.j(de.wrapper,Ue.a.Tap,function(Tt){return de.onTap(Tt)})),de.viewListeners.push(I.j(de.wrapper,Ue.a.Change,function(Tt){return de.onTouchChange(Tt)})),Te.i&&(de.viewListeners.push(I.j(de.wrapper,"MSPointerDown",function(Tt){return de.onMsPointerDown(Tt)})),de.viewListeners.push(I.j(de.wrapper,"MSGestureTap",function(Tt){return de.onMsGestureTap(Tt)})),de.viewListeners.push(I.m(de.wrapper,"MSGestureChange",function(Tt){return de.onThrottledMsGestureChange(Tt)},function(Tt,Jt){Jt.stopPropagation(),Jt.preventDefault();var eo={translationY:Jt.translationY,translationX:Jt.translationX};return Tt&&(eo.translationY+=Tt.translationY,eo.translationX+=Tt.translationX),eo}))),de.viewListeners.push(I.j(window,"dragover",function(Tt){return de.onDragOver(Tt)})),de.viewListeners.push(I.j(de.wrapper,"drop",function(Tt){return de.onDrop(Tt)})),de.viewListeners.push(I.j(window,"dragend",function(Tt){return de.onDragEnd(Tt)})),de.viewListeners.push(I.j(window,"dragleave",function(Tt){return de.onDragOver(Tt)})),de.wrapper.appendChild(de.rowsContainer),de.domNode.appendChild(de.scrollableElement.getDomNode()),Y.appendChild(de.domNode),de.lastRenderTop=0,de.lastRenderHeight=0,de.didJustPressContextMenuKey=!1,de.currentDropTarget=null,de.currentDropTargets=[],de.shouldInvalidateDropReaction=!1,de.dragAndDropScrollInterval=null,de.dragAndDropScrollTimeout=null,de.onRowsChanged(),de.layout(),de.setupMSGesture(),de.applyStyles(te.options),de}return G.prototype.applyStyles=function(te){this.treeStyler.style(te)},G.prototype.createViewItem=function(te){return new F(this.context,te)},G.prototype.getHTMLElement=function(){return this.domNode},G.prototype.focus=function(){this.domNode.focus()},G.prototype.isFocused=function(){return document.activeElement===this.domNode},G.prototype.blur=function(){this.domNode.blur()},G.prototype.setupMSGesture=function(){var te=this;window.MSGesture&&(this.msGesture=new MSGesture,setTimeout(function(){return te.msGesture.target=te.wrapper},100))},G.prototype.isTreeVisible=function(){return this.onHiddenScrollTop===null},G.prototype.layout=function(te,Y){if(!this.isTreeVisible())return;this.viewHeight=te||I.A(this.wrapper),this.scrollHeight=this.getContentHeight(),this.horizontalScrolling&&(this.viewWidth=Y||I.B(this.wrapper))},G.prototype.render=function(te,Y,de,ke,lt){var Tt,Jt,eo=te,po=te+Y,co=this.lastRenderTop+this.lastRenderHeight;for(Tt=this.indexAfter(po)-1,Jt=this.indexAt(Math.max(co,eo));Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(po))-1,Jt=this.indexAt(eo);Tt>=Jt;Tt--)this.insertItemInDOM(this.itemAtIndex(Tt));for(Tt=this.indexAt(this.lastRenderTop),Jt=Math.min(this.indexAt(eo),this.indexAfter(co));Tt1e3,co=[],Eo=!1;if(!po){var Oo=new Fe.a({getElements:function(){return lt}},{getElements:function(){return Tt.map(function(Bo){return Bo.id})}},null);co=Oo.ComputeDiff(!1).changes,Eo=co.some(function(Go){if(Go.modifiedLength>0){for(var Bo=Go.modifiedStart,Mo=Go.modifiedStart+Go.modifiedLength;Bo0&&this.onRemoveItems(new X.a(lt,Co.originalStart,Co.originalStart+Co.originalLength)),Co.modifiedLength>0){var Wo=Tt[Co.modifiedStart-1]||de;Wo=Wo.getDepth()>0?Wo:null,this.onInsertItems(new X.a(Tt,Co.modifiedStart,Co.modifiedStart+Co.modifiedLength),Wo?Wo.id:null)}}else(po||co.length)&&(this.onRemoveItems(new X.a(lt)),this.onInsertItems(new X.a(Tt),de.getDepth()>0?de.id:null));(po||co.length)&&this.onRowsChanged()}},G.prototype.onItemRefresh=function(te){this.onItemsRefresh([te])},G.prototype.onItemsRefresh=function(te){var Y=this;this.onRefreshItemSet(te.filter(function(de){return Y.items.hasOwnProperty(de.id)})),this.onRowsChanged()},G.prototype.onItemExpanding=function(te){var Y=this.items[te.item.id];Y&&(Y.expanded=!0)},G.prototype.onItemExpanded=function(te){var Y=te.item,de=this.items[Y.id];if(de){de.expanded=!0;var ke=this.onInsertItems(Y.getNavigator(),Y.id)||0,lt=this.scrollTop;de.top+de.height<=this.scrollTop&&(lt+=ke),this.onRowsChanged(lt)}},G.prototype.onItemCollapsing=function(te){var Y=te.item,de=this.items[Y.id];de&&(de.expanded=!1,this.onRemoveItems(new X.e(Y.getNavigator(),function(ke){return ke&&ke.id})),this.onRowsChanged())},G.prototype.onItemReveal=function(te){var Y=te.item,de=te.relativeTop,ke=this.items[Y.id];if(ke)if(de!==null){de=de<0?0:de,de=de>1?1:de;var lt=ke.height-this.viewHeight;this.scrollTop=lt*de+ke.top}else{var Tt=ke.top+ke.height,Jt=this.scrollTop+this.viewHeight;ke.top=Jt&&(this.scrollTop=Tt-this.viewHeight)}},G.prototype.onItemAddTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.addClass(de),de==="highlighted"&&(I.f(this.domNode,de),ke&&(this.highlightedItemWasDraggable=!!ke.draggable,ke.draggable&&(ke.draggable=!1)))},G.prototype.onItemRemoveTrait=function(te){var Y=te.item,de=te.trait,ke=this.items[Y.id];ke&&ke.removeClass(de),de==="highlighted"&&(I.P(this.domNode,de),this.highlightedItemWasDraggable&&(ke.draggable=!0),this.highlightedItemWasDraggable=!1)},G.prototype.onModelFocusChange=function(){var te=this.model&&this.model.getFocus();I.Y(this.domNode,"no-focused-item",!te),te?this.domNode.setAttribute("aria-activedescendant",Pe.L(this.context.dataSource.getId(this.context.tree,te))):this.domNode.removeAttribute("aria-activedescendant")},G.prototype.onInsertItem=function(te){var Y=this;te.onDragStart=function(de){Y.onDragStart(te,de)},te.needsRender=!0,this.refreshViewItem(te),this.items[te.id]=te},G.prototype.onRefreshItem=function(te,Y){Y===void 0&&(Y=!1),te.needsRender=te.needsRender||Y,this.refreshViewItem(te)},G.prototype.onRemoveItem=function(te){this.removeItemFromDOM(te),te.dispose(),delete this.items[te.id]},G.prototype.refreshViewItem=function(te){te.render(),this.shouldBeRendered(te)?this.insertItemInDOM(te):this.removeItemFromDOM(te)},G.prototype.onClick=function(te){if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te),de=this.getItemAround(Y.target);if(!de)return;Te.i&&Date.now()-this.lastClickTimeStamp<300&&(Y.detail=2),this.lastClickTimeStamp=Date.now(),this.context.controller.onClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseMiddleClick=function(te){if(!this.context.controller.onMouseMiddleClick)return;var Y=new ne.b(te),de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseMiddleClick(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseDown=function(te){if(this.didJustPressContextMenuKey=!1,!this.context.controller.onMouseDown)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te);if(Y.ctrlKey&&O.f&&O.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseDown(this.context.tree,de.model.getElement(),Y)},G.prototype.onMouseUp=function(te){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&this.lastPointerType!=="mouse")return;var Y=new ne.b(te);if(Y.ctrlKey&&O.f&&O.e)return;var de=this.getItemAround(Y.target);if(!de)return;this.context.controller.onMouseUp(this.context.tree,de.model.getElement(),Y)},G.prototype.onTap=function(te){var Y=this.getItemAround(te.initialTarget);if(!Y)return;this.context.controller.onTap(this.context.tree,Y.model.getElement(),te)},G.prototype.onTouchChange=function(te){te.preventDefault(),te.stopPropagation(),this.scrollTop-=te.translationY},G.prototype.onContextMenu=function(te){var Y,de;if(te instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var ke=new ee.a(te);de=this.model.getFocus();var lt=void 0;if(!de)de=this.model.getInput(),lt=I.C(this.inputItem.element);else{var Tt=this.context.dataSource.getId(this.context.tree,de),Jt=this.items[Tt];lt=I.C(Jt.element)}Y=new we(lt.left+lt.width,lt.top,ke)}else{var eo=new ne.b(te),po=this.getItemAround(eo.target);if(!po)return;de=po.model.getElement(),Y=new ge(eo)}this.context.controller.onContextMenu(this.context.tree,de,Y)},G.prototype.onKeyDown=function(te){var Y=new ee.a(te);if(this.didJustPressContextMenuKey=Y.keyCode===58||Y.shiftKey&&Y.keyCode===68,Y.target&&Y.target.tagName&&Y.target.tagName.toLowerCase()==="input")return;this.didJustPressContextMenuKey&&(Y.preventDefault(),Y.stopPropagation()),this.context.controller.onKeyDown(this.context.tree,Y)},G.prototype.onKeyUp=function(te){this.didJustPressContextMenuKey&&this.onContextMenu(te),this.didJustPressContextMenuKey=!1,this.context.controller.onKeyUp(this.context.tree,new ee.a(te))},G.prototype.onDragStart=function(te,Y){if(this.model.getHighlight())return;var de=te.model.getElement(),ke=this.model.getSelection(),lt;if(ke.indexOf(de)>-1?lt=ke:lt=[de],Y.dataTransfer.effectAllowed="copyMove",Y.dataTransfer.setData(Re.a.RESOURCES,JSON.stringify([te.uri])),Y.dataTransfer.setDragImage){var Tt=void 0;this.context.dnd.getDragLabel?Tt=this.context.dnd.getDragLabel(this.context.tree,lt):Tt=String(lt.length);var Jt=document.createElement("div");Jt.className="monaco-tree-drag-image",Jt.textContent=Tt,document.body.appendChild(Jt),Y.dataTransfer.setDragImage(Jt,-10,-10),setTimeout(function(){return document.body.removeChild(Jt)},0)}this.currentDragAndDropData=new ae(lt),Re.c.CurrentDragAndDropData=new q(lt),this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new ne.a(Y))},G.prototype.setupDragAndDropScrollInterval=function(){var te=this,Y=I.F(this.wrapper).top;this.dragAndDropScrollInterval||(this.dragAndDropScrollInterval=window.setInterval(function(){if(te.dragAndDropMouseY===null)return;var de=te.dragAndDropMouseY-Y,ke=0,lt=te.viewHeight-35;de<35?ke=Math.max(-14,.2*(de-35)):de>lt&&(ke=Math.min(14,.2*(de-lt))),te.scrollTop+=ke},10),this.cancelDragAndDropScrollTimeout(),this.dragAndDropScrollTimeout=window.setTimeout(function(){te.cancelDragAndDropScrollInterval(),te.dragAndDropScrollTimeout=null},1e3))},G.prototype.cancelDragAndDropScrollInterval=function(){this.dragAndDropScrollInterval&&(window.clearInterval(this.dragAndDropScrollInterval),this.dragAndDropScrollInterval=null),this.cancelDragAndDropScrollTimeout()},G.prototype.cancelDragAndDropScrollTimeout=function(){this.dragAndDropScrollTimeout&&(window.clearTimeout(this.dragAndDropScrollTimeout),this.dragAndDropScrollTimeout=null)},G.prototype.onDragOver=function(te){var Y=this;te.preventDefault();var de=new ne.a(te),ke=this.getItemAround(de.target);if(!ke||de.posx===0&&de.posy===0&&de.browserEvent.type===I.d.DRAG_LEAVE)return this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.cancelDragAndDropScrollInterval(),this.currentDropTarget=null,this.currentDropElement=null,this.dragAndDropMouseY=null,!1;if(this.setupDragAndDropScrollInterval(),this.dragAndDropMouseY=de.posy,!this.currentDragAndDropData)if(Re.c.CurrentDragAndDropData)this.currentDragAndDropData=Re.c.CurrentDragAndDropData;else{if(!de.dataTransfer.types)return!1;this.currentDragAndDropData=new ue}this.currentDragAndDropData.update(de.browserEvent.dataTransfer);var lt,Tt=ke.model,Jt;do{if(lt=Tt?Tt.getElement():this.model.getInput(),Jt=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,lt,de),!Jt||Jt.bubble!==1)break;Tt=Tt&&Tt.parent}while(Tt);if(!Tt)return this.currentDropElement=null,!1;var eo=Jt&&Jt.accept;eo?(this.currentDropElement=Tt.getElement(),de.preventDefault(),de.dataTransfer.dropEffect=Jt.effect===0?"copy":"move"):this.currentDropElement=null;var po=Tt.id===this.inputItem.id?this.inputItem:this.items[Tt.id];if((this.shouldInvalidateDropReaction||this.currentDropTarget!==po||!oe(this.currentDropElementReaction,Jt))&&(this.shouldInvalidateDropReaction=!1,this.currentDropTarget&&(this.currentDropTargets.forEach(function(Ao){return Ao.dropTarget=!1}),this.currentDropTargets=[],this.currentDropDisposable.dispose()),this.currentDropTarget=po,this.currentDropElementReaction=Jt,eo)){if(this.currentDropTarget&&(this.currentDropTarget.dropTarget=!0,this.currentDropTargets.push(this.currentDropTarget)),Jt.bubble===0)for(var co=Tt.getNavigator(),Eo=void 0;Eo=co.next();)ke=this.items[Eo.id],ke&&(ke.dropTarget=!0,this.currentDropTargets.push(ke));if(Jt.autoExpand){var Oo=Object(Ee.l)(500);this.currentDropDisposable=A.h(function(){return Oo.cancel()}),Oo.then(function(){return Y.context.tree.expand(Y.currentDropElement)}).then(function(){return Y.shouldInvalidateDropReaction=!0})}}return!0},G.prototype.onDrop=function(te){if(this.currentDropElement){var Y=new ne.a(te);Y.preventDefault(),this.currentDragAndDropData.update(Y.browserEvent.dataTransfer),this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,Y),this.onDragEnd(te)}this.cancelDragAndDropScrollInterval()},G.prototype.onDragEnd=function(te){this.currentDropTarget&&(this.currentDropTargets.forEach(function(Y){return Y.dropTarget=!1}),this.currentDropTargets=[]),this.currentDropDisposable.dispose(),this.cancelDragAndDropScrollInterval(),this.currentDragAndDropData=null,Re.c.CurrentDragAndDropData=void 0,this.currentDropElement=null,this.currentDropTarget=null,this.dragAndDropMouseY=null},G.prototype.onFocus=function(){this.context.options.alwaysFocused||I.f(this.domNode,"focused"),this._onDOMFocus.fire()},G.prototype.onBlur=function(){this.context.options.alwaysFocused||I.P(this.domNode,"focused"),this.domNode.removeAttribute("aria-activedescendant"),this._onDOMBlur.fire()},G.prototype.onMsPointerDown=function(te){if(!this.msGesture)return;var Y=te.pointerType;if(Y===(te.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}else if(Y===(te.MSPOINTER_TYPE_TOUCH||"touch"))this.lastPointerType="touch";else return;te.stopPropagation(),te.preventDefault(),this.msGesture.addPointer(te.pointerId)},G.prototype.onThrottledMsGestureChange=function(te){this.scrollTop-=te.translationY},G.prototype.onMsGestureTap=function(te){te.initialTarget=document.elementFromPoint(te.clientX,te.clientY),this.onTap(te)},G.prototype.insertItemInDOM=function(te){var Y=null,de=this.itemAfter(te);de&&de.element&&(Y=de.element),te.insertInDOM(this.rowsContainer,Y)},G.prototype.removeItemFromDOM=function(te){if(!te)return;te.removeFromDOM()},G.prototype.shouldBeRendered=function(te){return te.topthis.lastRenderTop},G.prototype.getItemAround=function(te){var Y=this.inputItem,de=te;do{if(de[G.BINDING]&&(Y=de[G.BINDING]),de===this.wrapper||de===this.domNode)return Y;if(de===this.scrollableElement.getDomNode()||de===document.body)return}while(de=de.parentElement);return},G.prototype.releaseModel=function(){this.model&&(this.modelListeners=A.f(this.modelListeners),this.model=null)},G.prototype.dispose=function(){var te=this;this.scrollableElement.dispose(),this.releaseModel(),this.viewListeners=A.f(this.viewListeners),this._onDOMFocus.dispose(),this._onDOMBlur.dispose(),this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.items&&Object.keys(this.items).forEach(function(Y){return te.items[Y].removeFromDOM()}),this.context.cache&&this.context.cache.dispose(),this.gestureDisposable.dispose(),fe.prototype.dispose.call(this)},G.BINDING="monaco-tree-row",G.LOADING_DECORATION_DELAY=800,G.counter=0,G}(je),De=e("zrhQ"),Se=e("qj0h"),Ve=function(){function fe(G,te,Y){if(Y===void 0&&(Y={}),this.tree=G,this.configuration=te,this.options=Y,!te.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=te.dataSource,this.renderer=te.renderer,this.controller=te.controller||new s({clickBehavior:1,keyboardSupport:typeof Y.keyboardSupport!="boolean"||Y.keyboardSupport}),this.dnd=te.dnd||new l,this.filter=te.filter||new d,this.sorter=te.sorter,this.accessibilityProvider=te.accessibilityProvider||new m,this.styler=te.styler}return fe}(),Qe={listFocusBackground:De.a.fromHex("#073655"),listActiveSelectionBackground:De.a.fromHex("#0E639C"),listActiveSelectionForeground:De.a.fromHex("#FFFFFF"),listFocusAndSelectionBackground:De.a.fromHex("#094771"),listFocusAndSelectionForeground:De.a.fromHex("#FFFFFF"),listInactiveSelectionBackground:De.a.fromHex("#3F3F46"),listHoverBackground:De.a.fromHex("#2A2D2E"),listDropBackground:De.a.fromHex("#383B3D")},it=function(){function fe(G,te,Y){Y===void 0&&(Y={}),this._onDidChangeFocus=new k.f,this.onDidChangeFocus=this._onDidChangeFocus.event,this._onDidChangeSelection=new k.f,this.onDidChangeSelection=this._onDidChangeSelection.event,this._onHighlightChange=new k.f,this._onDidExpandItem=new k.f,this._onDidCollapseItem=new k.f,this._onDispose=new k.a,this.onDidDispose=this._onDispose.event,this.container=G,Object(Se.g)(Y,Qe,!1),Y.twistiePixels=typeof Y.twistiePixels=="number"?Y.twistiePixels:32,Y.showTwistie=!(Y.showTwistie===!1),Y.indentPixels=typeof Y.indentPixels=="number"?Y.indentPixels:12,Y.alwaysFocused=Y.alwaysFocused===!0,Y.useShadows=!(Y.useShadows===!1),Y.paddingOnRow=!(Y.paddingOnRow===!1),Y.showLoading=!(Y.showLoading===!1),this.context=new Ve(this,te,Y),this.model=new Me(this.context),this.view=new be(this.context,this.container),this.view.setModel(this.model),this._onDidChangeFocus.input=this.model.onDidFocus,this._onDidChangeSelection.input=this.model.onDidSelect,this._onHighlightChange.input=this.model.onDidHighlight,this._onDidExpandItem.input=this.model.onDidExpandItem,this._onDidCollapseItem.input=this.model.onDidCollapseItem}return fe.prototype.style=function(G){this.view.applyStyles(G)},Object.defineProperty(fe.prototype,"onDidFocus",{get:function(){return this.view.onDOMFocus},enumerable:!0,configurable:!0}),fe.prototype.getHTMLElement=function(){return this.view.getHTMLElement()},fe.prototype.layout=function(G,te){this.view.layout(G,te)},fe.prototype.domFocus=function(){this.view.focus()},fe.prototype.isDOMFocused=function(){return this.view.isFocused()},fe.prototype.domBlur=function(){this.view.blur()},fe.prototype.setInput=function(G){return this.model.setInput(G)},fe.prototype.getInput=function(){return this.model.getInput()},fe.prototype.expand=function(G){return this.model.expand(G)},fe.prototype.collapse=function(G,te){return te===void 0&&(te=!1),this.model.collapse(G,te)},fe.prototype.toggleExpansion=function(G,te){return te===void 0&&(te=!1),this.model.toggleExpansion(G,te)},fe.prototype.isExpanded=function(G){return this.model.isExpanded(G)},fe.prototype.reveal=function(G,te){return te===void 0&&(te=null),this.model.reveal(G,te)},fe.prototype.getHighlight=function(){return this.model.getHighlight()},fe.prototype.clearHighlight=function(G){this.model.setHighlight(null,G)},fe.prototype.setSelection=function(G,te){this.model.setSelection(G,te)},fe.prototype.getSelection=function(){return this.model.getSelection()},fe.prototype.clearSelection=function(G){this.model.setSelection([],G)},fe.prototype.setFocus=function(G,te){this.model.setFocus(G,te)},fe.prototype.getFocus=function(){return this.model.getFocus()},fe.prototype.focusNext=function(G,te){this.model.focusNext(G,te)},fe.prototype.focusPrevious=function(G,te){this.model.focusPrevious(G,te)},fe.prototype.focusParent=function(G){this.model.focusParent(G)},fe.prototype.focusFirstChild=function(G){this.model.focusFirstChild(G)},fe.prototype.focusFirst=function(G,te){this.model.focusFirst(G,te)},fe.prototype.focusNth=function(G,te){this.model.focusNth(G,te)},fe.prototype.focusLast=function(G,te){this.model.focusLast(G,te)},fe.prototype.focusNextPage=function(G){this.view.focusNextPage(G)},fe.prototype.focusPreviousPage=function(G){this.view.focusPreviousPage(G)},fe.prototype.clearFocus=function(G){this.model.setFocus(null,G)},fe.prototype.dispose=function(){this._onDispose.fire(),this.model.dispose(),this.view.dispose(),this._onDidChangeFocus.dispose(),this._onDidChangeSelection.dispose(),this._onHighlightChange.dispose(),this._onDidExpandItem.dispose(),this._onDidCollapseItem.dispose(),this._onDispose.dispose()},fe}(),pt=e("HyZH"),Rt=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),Mt="done",zt="active",uo="infinite",ao="discrete",so="monaco-progress-container",Pt="progress-bit",ft={progressBarBackground:De.a.fromHex("#0E70C0")},vt=function(fe){Rt(G,fe);function G(te,Y){var de=fe.call(this)||this;return de.options=Y||Object.create(null),Object(Se.g)(de.options,ft,!1),de.workedVal=0,de.progressBarBackground=de.options.progressBarBackground,de._register(de.showDelayedScheduler=new Ee.d(function(){return Object(I.X)(de.element)},0)),de.create(te),de}return G.prototype.create=function(te){this.element=document.createElement("div"),Object(I.f)(this.element,so),te.appendChild(this.element),this.bit=document.createElement("div"),Object(I.f)(this.bit,Pt),this.element.appendChild(this.bit),this.applyStyles()},G.prototype.off=function(){this.bit.style.width="inherit",this.bit.style.opacity="1",Object(I.Q)(this.element,zt,uo,ao),this.workedVal=0,this.totalWork=void 0},G.prototype.stop=function(){return this.doDone(!1)},G.prototype.doDone=function(te){var Y=this;return Object(I.f)(this.element,Mt),Object(I.I)(this.element,uo)?(this.bit.style.opacity="0",te?setTimeout(function(){return Y.off()},200):this.off()):(this.bit.style.width="inherit",te?setTimeout(function(){return Y.off()},200):this.off()),this},G.prototype.hide=function(){Object(I.J)(this.element),this.showDelayedScheduler.cancel()},G.prototype.style=function(te){this.progressBarBackground=te.progressBarBackground,this.applyStyles()},G.prototype.applyStyles=function(){if(this.bit){var te=this.progressBarBackground?this.progressBarBackground.toString():"";this.bit.style.backgroundColor=te}},G}(A.a),At=function(){var fe=function(te,Y){return fe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(de,ke){de.__proto__=ke}||function(de,ke){for(var lt in ke)ke.hasOwnProperty(lt)&&(de[lt]=ke[lt])},fe(te,Y)};return function(G,te){fe(G,te);function Y(){this.constructor=G}G.prototype=te===null?Object.create(te):(Y.prototype=te.prototype,new Y)}}(),at=function(fe){At(G,fe);function G(){return fe!==null&&fe.apply(this,arguments)||this}return G.prototype.onContextMenu=function(te,Y,de){return O.e?this.onLeftClick(te,Y,de):fe.prototype.onContextMenu.call(this,te,Y,de)},G}(s),tt={background:De.a.fromHex("#1E1E1E"),foreground:De.a.fromHex("#CCCCCC"),pickerGroupForeground:De.a.fromHex("#0097FB"),pickerGroupBorder:De.a.fromHex("#3F3F46"),widgetShadow:De.a.fromHex("#000000"),progressBarBackground:De.a.fromHex("#0E70C0")},ut=z.a("quickOpenAriaLabel","Quick picker. Type to narrow down results."),Ct=function(fe){At(G,fe);function G(te,Y,de){var ke=fe.call(this)||this;return ke.isDisposed=!1,ke.container=te,ke.callbacks=Y,ke.options=de,ke.styles=de||Object.create(null),Object(Se.g)(ke.styles,tt,!1),ke.model=null,ke}return G.prototype.getModel=function(){return this.model},G.prototype.create=function(){var te=this;this.element=document.createElement("div"),I.f(this.element,"monaco-quick-open-widget"),this.container.appendChild(this.element),this._register(I.j(this.element,I.d.CONTEXT_MENU,function(de){return I.c.stop(de,!0)})),this._register(I.j(this.element,I.d.FOCUS,function(de){return te.gainingFocus()},!0)),this._register(I.j(this.element,I.d.BLUR,function(de){return te.loosingFocus(de)},!0)),this._register(I.j(this.element,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(ke.keyCode===9)I.c.stop(de,!0),te.hide(2);else if(ke.keyCode===2&&!ke.altKey&&!ke.ctrlKey&&!ke.metaKey){var lt=de.currentTarget.querySelectorAll("input, .monaco-tree, .monaco-tree-row.focused .action-label.icon");ke.shiftKey&&ke.target===lt[0]?(I.c.stop(de,!0),lt[lt.length-1].focus()):!ke.shiftKey&&ke.target===lt[lt.length-1]&&(I.c.stop(de,!0),lt[0].focus())}})),this.progressBar=this._register(new vt(this.element,{progressBarBackground:this.styles.progressBarBackground})),this.progressBar.hide(),this.inputContainer=document.createElement("div"),I.f(this.inputContainer,"quick-open-input"),this.element.appendChild(this.inputContainer),this.inputBox=this._register(new f.b(this.inputContainer,void 0,{placeholder:this.options.inputPlaceHolder||"",ariaLabel:ut,inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder})),this.inputElement=this.inputBox.inputElement,this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-haspopup","false"),this.inputElement.setAttribute("aria-autocomplete","list"),this._register(I.j(this.inputBox.inputElement,I.d.INPUT,function(de){return te.onType()})),this._register(I.j(this.inputBox.inputElement,I.d.KEY_DOWN,function(de){var ke=new ee.a(de),lt=te.shouldOpenInBackground(ke);if(ke.keyCode===2)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.shiftKey),te.inputBox.inputElement.selectionStart===te.inputBox.inputElement.selectionEnd&&(te.inputBox.inputElement.selectionStart=te.inputBox.value.length);else if(ke.keyCode===3||lt){I.c.stop(de,!0);var Tt=te.tree.getFocus();Tt&&te.elementSelected(Tt,de,lt?2:1)}})),this.resultCount=document.createElement("div"),I.f(this.resultCount,"quick-open-result-count"),this.resultCount.setAttribute("aria-live","polite"),this.resultCount.setAttribute("aria-atomic","true"),this.element.appendChild(this.resultCount),this.treeContainer=document.createElement("div"),I.f(this.treeContainer,"quick-open-tree"),this.element.appendChild(this.treeContainer);var Y=this.options.treeCreator||function(de,ke,lt){return new it(de,ke,lt)};return this.tree=this._register(Y(this.treeContainer,{dataSource:new x(this),controller:new at({clickBehavior:1,keyboardSupport:this.options.keyboardSupport}),renderer:this.renderer=new _(this,this.styles),filter:new y(this),accessibilityProvider:new u(this)},{twistiePixels:11,indentPixels:0,alwaysFocused:!0,verticalScrollMode:3,horizontalScrollMode:2,ariaLabel:z.a("treeAriaLabel","Quick Picker"),keyboardSupport:this.options.keyboardSupport,preventRootFocus:!1})),this.treeElement=this.tree.getHTMLElement(),this._register(this.tree.onDidChangeFocus(function(de){te.elementFocused(de.focus,de)})),this._register(this.tree.onDidChangeSelection(function(de){if(de.selection&&de.selection.length>0){var ke=de.payload&&de.payload.originalEvent instanceof ne.b?de.payload.originalEvent:void 0,lt=ke?te.shouldOpenInBackground(ke):!1;te.elementSelected(de.selection[0],de,lt?2:1)}})),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(!te.quickNavigateConfiguration)return;if(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)I.c.stop(de,!0),te.navigateInTree(ke.keyCode);else if(ke.keyCode===3){I.c.stop(de,!0);var lt=te.tree.getFocus();lt&&te.elementSelected(lt,de)}})),this._register(I.j(this.treeContainer,I.d.KEY_UP,function(de){var ke=new ee.a(de),lt=ke.keyCode;if(!te.quickNavigateConfiguration)return;var Tt=te.quickNavigateConfiguration.keybindings,Jt=Tt.some(function(po){var co=po.getParts(),Eo=co[0],Oo=co[1];return Oo?!1:Eo.shiftKey&<===4?!(ke.ctrlKey||ke.altKey||ke.metaKey):Eo.altKey&<===6||Eo.ctrlKey&<===5?!0:!!(Eo.metaKey&<===57)});if(Jt){var eo=te.tree.getFocus();eo&&te.elementSelected(eo,de)}})),this.layoutDimensions&&this.layout(this.layoutDimensions),this.applyStyles(),this._register(I.j(this.treeContainer,I.d.KEY_DOWN,function(de){var ke=new ee.a(de);if(te.quickNavigateConfiguration)return;(ke.keyCode===18||ke.keyCode===16||ke.keyCode===12||ke.keyCode===11)&&(I.c.stop(de,!0),te.navigateInTree(ke.keyCode,ke.shiftKey),te.treeElement.focus())})),this.element},G.prototype.style=function(te){this.styles=te,this.applyStyles()},G.prototype.applyStyles=function(){if(this.element){var te=this.styles.foreground?this.styles.foreground.toString():"",Y=this.styles.background?this.styles.background.toString():"",de=this.styles.borderColor?this.styles.borderColor.toString():"",ke=this.styles.widgetShadow?this.styles.widgetShadow.toString():"";this.element.style.color=te,this.element.style.backgroundColor=Y,this.element.style.borderColor=de,this.element.style.borderWidth=de?"1px":"",this.element.style.borderStyle=de?"solid":"",this.element.style.boxShadow=ke?"0 5px 8px "+ke:""}this.progressBar&&this.progressBar.style({progressBarBackground:this.styles.progressBarBackground}),this.inputBox&&this.inputBox.style({inputBackground:this.styles.inputBackground,inputForeground:this.styles.inputForeground,inputBorder:this.styles.inputBorder,inputValidationInfoBackground:this.styles.inputValidationInfoBackground,inputValidationInfoForeground:this.styles.inputValidationInfoForeground,inputValidationInfoBorder:this.styles.inputValidationInfoBorder,inputValidationWarningBackground:this.styles.inputValidationWarningBackground,inputValidationWarningForeground:this.styles.inputValidationWarningForeground,inputValidationWarningBorder:this.styles.inputValidationWarningBorder,inputValidationErrorBackground:this.styles.inputValidationErrorBackground,inputValidationErrorForeground:this.styles.inputValidationErrorForeground,inputValidationErrorBorder:this.styles.inputValidationErrorBorder}),this.tree&&!this.options.treeCreator&&this.tree.style(this.styles),this.renderer&&this.renderer.updateStyles(this.styles)},G.prototype.shouldOpenInBackground=function(te){if(te instanceof ee.a){if(te.keyCode!==17)return!1;if(te.metaKey||te.ctrlKey||te.shiftKey||te.altKey)return!1;var Y=this.inputBox.inputElement;return Y.selectionEnd===this.inputBox.value.length&&Y.selectionStart===Y.selectionEnd}return te.middleButton},G.prototype.onType=function(){var te=this.inputBox.value;this.helpText&&(te?I.J(this.helpText):I.X(this.helpText)),this.callbacks.onType(te)},G.prototype.navigateInTree=function(te,Y){var de=this.tree.getInput(),ke=de?de.entries:[],lt=this.tree.getFocus();switch(te){case 18:this.tree.focusNext();break;case 16:this.tree.focusPrevious();break;case 12:this.tree.focusNextPage();break;case 11:this.tree.focusPreviousPage();break;case 2:Y?this.tree.focusPrevious():this.tree.focusNext();break}var Tt=this.tree.getFocus();ke.length>1&<===Tt&&(te===16||te===2&&Y?this.tree.focusLast():(te===18||te===2&&!Y)&&this.tree.focusFirst()),Tt=this.tree.getFocus(),Tt&&this.tree.reveal(Tt)},G.prototype.elementFocused=function(te,Y){if(!te||!this.isVisible())return;var de=this.treeElement.getAttribute("aria-activedescendant");de?this.inputElement.setAttribute("aria-activedescendant",de):this.inputElement.removeAttribute("aria-activedescendant");var ke={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};this.model.runner.run(te,0,ke)},G.prototype.elementSelected=function(te,Y,de){var ke=!0;if(this.isVisible()){var lt=de||1,Tt={event:Y,keymods:this.extractKeyMods(Y),quickNavigateConfiguration:this.quickNavigateConfiguration};ke=this.model.runner.run(te,lt,Tt)}ke&&this.hide(0)},G.prototype.extractKeyMods=function(te){return{ctrlCmd:te&&(te.ctrlKey||te.metaKey||te.payload&&te.payload.originalEvent&&(te.payload.originalEvent.ctrlKey||te.payload.originalEvent.metaKey)),alt:te&&(te.altKey||te.payload&&te.payload.originalEvent&&te.payload.originalEvent.altKey)}},G.prototype.show=function(te,Y){this.visible=!0,this.isLoosingFocus=!1,this.quickNavigateConfiguration=Y?Y.quickNavigateConfiguration:void 0,this.quickNavigateConfiguration?(I.J(this.inputContainer),I.X(this.element),this.tree.domFocus()):(I.X(this.inputContainer),I.X(this.element),this.inputBox.focus()),this.helpText&&(this.quickNavigateConfiguration||H.j(te)?I.J(this.helpText):I.X(this.helpText)),H.j(te)?this.doShowWithPrefix(te):(Y&&Y.value&&this.restoreLastInput(Y.value),this.doShowWithInput(te,Y&&Y.autoFocus?Y.autoFocus:{})),Y&&Y.inputSelection&&!this.quickNavigateConfiguration&&this.inputBox.select(Y.inputSelection),this.callbacks.onShow&&this.callbacks.onShow()},G.prototype.restoreLastInput=function(te){this.inputBox.value=te,this.inputBox.select(),this.callbacks.onType(te)},G.prototype.doShowWithPrefix=function(te){this.inputBox.value=te,this.callbacks.onType(te)},G.prototype.doShowWithInput=function(te,Y){this.setInput(te,Y)},G.prototype.setInputAndLayout=function(te,Y){var de=this;this.treeContainer.style.height=this.getHeight(te)+"px",this.tree.setInput(null).then(function(){return de.model=te,de.inputElement.setAttribute("aria-haspopup",String(te&&te.entries&&te.entries.length>0)),de.tree.setInput(te)}).then(function(){de.tree.layout();var ke=te?te.entries.filter(function(lt){return de.isElementVisible(te,lt)}):[];de.updateResultCount(ke.length),ke.length&&de.autoFocus(te,ke,Y)})},G.prototype.isElementVisible=function(te,Y){return te.filter?te.filter.isVisible(Y):!0},G.prototype.autoFocus=function(te,Y,de){if(de===void 0&&(de={}),de.autoFocusPrefixMatch){for(var ke=void 0,lt=void 0,Tt=de.autoFocusPrefixMatch,Jt=Tt.toLowerCase(),eo=0,po=Y;eode.autoFocusIndex&&(this.tree.focusNth(de.autoFocusIndex),this.tree.reveal(this.tree.getFocus())):de.autoFocusSecondEntry?Y.length>1&&this.tree.focusNth(1):de.autoFocusLastEntry&&(Y.length>1&&(this.tree.focusLast(),this.tree.reveal(this.tree.getFocus())))},G.prototype.getHeight=function(te){var Y=this,de=te.renderer;if(!te){var ke=de.getHeight(null);return this.options.minItemsToShow?this.options.minItemsToShow*ke:0}var lt=0,Tt;this.layoutDimensions&&this.layoutDimensions.height&&(Tt=(this.layoutDimensions.height-50)*.4),(!Tt||Tt>G.MAX_ITEMS_HEIGHT)&&(Tt=G.MAX_ITEMS_HEIGHT);for(var Jt=te.entries.filter(function(Eo){return Y.isElementVisible(te,Eo)}),eo=this.options.maxItemsToShow||Jt.length,po=0;po=0;Tt--)(lt=fe[Tt])&&(ke=(de<3?lt(ke):de>3?lt(G,te,ke):lt(G,te))||ke);return de>3&&ke&&Object.defineProperty(G,te,ke),ke},$e=function(fe,G){return function(te,Y){G(te,Y,fe)}},ze=function(){function fe(G,te){this.themeService=te,this.widget=null,this.rangeHighlightDecorationId=null,this.lastKnownEditorSelection=null,this.editor=G}return fe.get=function(G){return G.getContribution(fe.ID)},fe.prototype.dispose=function(){this.widget&&(this.widget.destroy(),this.widget=null)},fe.prototype.run=function(G){var te=this;this.widget&&(this.widget.destroy(),this.widget=null);var Y=function(ke){te.clearDecorations(),ke&&te.lastKnownEditorSelection&&(te.editor.setSelection(te.lastKnownEditorSelection),te.editor.revealRangeInCenterIfOutsideViewport(te.lastKnownEditorSelection,0)),te.lastKnownEditorSelection=null,(document.activeElement===document.body||!ke)&&te.editor.focus()};this.widget=new Gt(this.editor,function(){return Y(!1)},function(){return Y(!0)},function(de){te.widget.setInput(G.getModel(de),G.getAutoFocus(de))},{inputAriaLabel:G.inputAriaLabel},this.themeService),this.lastKnownEditorSelection||(this.lastKnownEditorSelection=this.editor.getSelection()),this.widget.show("")},fe.prototype.decorateLine=function(G,te){var Y=[];this.rangeHighlightDecorationId&&(Y.push(this.rangeHighlightDecorationId),this.rangeHighlightDecorationId=null);var de=[{range:G,options:fe._RANGE_HIGHLIGHT_DECORATION}],ke=te.deltaDecorations(Y,de);this.rangeHighlightDecorationId=ke[0]},fe.prototype.clearDecorations=function(){this.rangeHighlightDecorationId&&(this.editor.deltaDecorations([this.rangeHighlightDecorationId],[]),this.rangeHighlightDecorationId=null)},fe.ID="editor.controller.quickOpenController",fe._RANGE_HIGHLIGHT_DECORATION=J.a.register({className:"rangeHighlight",isWholeLine:!0}),fe=Je([$e(1,Nt.c)],fe),fe}(),Ke=function(fe){Et(G,fe);function G(te,Y){var de=fe.call(this,Y)||this;return de._inputAriaLabel=te,de}return G.prototype.getController=function(te){return ze.get(te)},G.prototype._show=function(te,Y){te.run({inputAriaLabel:this._inputAriaLabel,getModel:function(ke){return Y.getModel(ke)},getAutoFocus:function(ke){return Y.getAutoFocus(ke)}})},G}(re.b);Object(re.h)(ze.ID,ze)},s7Km:function(Lt,j,e){"use strict";e.r(j),e.d(j,"MoveWordCommand",function(){return v}),e.d(j,"WordLeftCommand",function(){return w}),e.d(j,"WordRightCommand",function(){return p}),e.d(j,"CursorWordStartLeft",function(){return c}),e.d(j,"CursorWordEndLeft",function(){return s}),e.d(j,"CursorWordLeft",function(){return l}),e.d(j,"CursorWordStartLeftSelect",function(){return d}),e.d(j,"CursorWordEndLeftSelect",function(){return m}),e.d(j,"CursorWordLeftSelect",function(){return E}),e.d(j,"CursorWordAccessibilityLeft",function(){return L}),e.d(j,"CursorWordAccessibilityLeftSelect",function(){return A}),e.d(j,"CursorWordStartRight",function(){return k}),e.d(j,"CursorWordEndRight",function(){return R}),e.d(j,"CursorWordRight",function(){return $}),e.d(j,"CursorWordStartRightSelect",function(){return ie}),e.d(j,"CursorWordEndRightSelect",function(){return W}),e.d(j,"CursorWordRightSelect",function(){return B}),e.d(j,"CursorWordAccessibilityRight",function(){return le}),e.d(j,"CursorWordAccessibilityRightSelect",function(){return Ce}),e.d(j,"DeleteWordCommand",function(){return Me}),e.d(j,"DeleteWordLeftCommand",function(){return Te}),e.d(j,"DeleteWordRightCommand",function(){return Fe}),e.d(j,"DeleteWordStartLeft",function(){return Ue}),e.d(j,"DeleteWordEndLeft",function(){return Pe}),e.d(j,"DeleteWordLeft",function(){return ne}),e.d(j,"DeleteWordStartRight",function(){return ee}),e.d(j,"DeleteWordEndRight",function(){return ae}),e.d(j,"DeleteWordRight",function(){return q});var T=e("sswD"),re=e("LCkn"),J=e("Ll0s"),I=e("1I1M"),U=e("5v8Y"),z=e("cGHE"),O=e("aokT"),H=e("gCVg"),x=e("wQH0"),u=e("R3nR"),y=e("T8No"),_=e("/UlZ"),f=function(){var ue=function(he,je){return ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Xe,me){Xe.__proto__=me}||function(Xe,me){for(var ge in me)me.hasOwnProperty(ge)&&(Xe[ge]=me[ge])},ue(he,je)};return function(X,he){ue(X,he);function je(){this.constructor=X}X.prototype=he===null?Object.create(he):(je.prototype=he.prototype,new je)}}(),v=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._inSelectionMode=he.inSelectionMode,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(U.a)(je.getOption(96)),we=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(Q){var C=new z.a(Q.positionLineNumber,Q.positionColumn),F=me._move(ge,we,C,me._wordNavigationType);return me._moveTo(Q,F,me._inSelectionMode)});if(je._getCursors().setStates("moveWordCommand",0,Ee.map(function(Q){return J.d.fromModelSelection(Q)})),Ee.length===1){var ve=new z.a(Ee[0].positionLineNumber,Ee[0].positionColumn);je.revealPosition(ve,0)}},X.prototype._moveTo=function(he,je,Xe){return Xe?new H.a(he.selectionStartLineNumber,he.selectionStartColumn,je.lineNumber,je.column):new H.a(je.lineNumber,je.column,je.lineNumber,je.column)},X}(T.c),w=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordLeft(he,je,Xe,me)},X}(v),p=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._move=function(he,je,Xe,me){return I.a.moveWordRight(he,je,Xe,me)},X}(v),c=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|15,mac:{primary:512|15},weight:100}})||this}return X}(w),s=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})||this}return X}(w),l=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0})||this}return X}(w),d=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|15,mac:{primary:512|1024|15},weight:100}})||this}return X}(w),m=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})||this}return X}(w),E=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0})||this}return X}(w),L=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(w),A=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|15},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(w),k=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})||this}return X}(p),R=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|17,mac:{primary:512|17},weight:100}})||this}return X}(p),$=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})||this}return X}(p),ie=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})||this}return X}(p),W=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1024|17,mac:{primary:512|1024|17},weight:100}})||this}return X}(p),B=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})||this}return X}(p),le=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Ce=function(ue){f(X,ue);function X(){return ue.call(this,{inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0,kbOpts:{kbExpr:y.a.and(x.a.textInputFocus,u.a),win:{primary:2048|1024|17},weight:100+1}})||this}return X.prototype._move=function(he,je,Xe,me){return ue.prototype._move.call(this,Object(U.a)(_.e.wordSeparators.defaultValue),je,Xe,me)},X}(p),Me=function(ue){f(X,ue);function X(he){var je=ue.call(this,he)||this;return je._whitespaceHeuristics=he.whitespaceHeuristics,je._wordNavigationType=he.wordNavigationType,je}return X.prototype.runEditorCommand=function(he,je,Xe){var me=this;if(!je.hasModel())return;var ge=Object(U.a)(je.getOption(96)),we=je.getModel(),Re=je.getSelections(),Ee=Re.map(function(ve){var Q=me._delete(ge,we,ve,me._whitespaceHeuristics,me._wordNavigationType);return new re.a(Q,"")});je.pushUndoStop(),je.executeCommands(this.id,Ee),je.pushUndoStop()},X}(T.c),Te=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var we=I.a.deleteWordLeft(he,je,Xe,me,ge);return we||new O.a(1,1,1,1)},X}(Me),Fe=function(ue){f(X,ue);function X(){return ue!==null&&ue.apply(this,arguments)||this}return X.prototype._delete=function(he,je,Xe,me,ge){var we=I.a.deleteWordRight(he,je,Xe,me,ge);if(we)return we;var Re=je.getLineCount(),Ee=je.getLineMaxColumn(Re);return new O.a(Re,Ee,Re,Ee)},X}(Me),Ue=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:x.a.writable})||this}return X}(Te),Pe=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:x.a.writable})||this}return X}(Te),ne=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|1,mac:{primary:512|1},weight:100}})||this}return X}(Te),ee=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:x.a.writable})||this}return X}(Fe),ae=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:x.a.writable})||this}return X}(Fe),q=function(ue){f(X,ue);function X(){return ue.call(this,{whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:x.a.writable,kbOpts:{kbExpr:x.a.textInputFocus,primary:2048|20,mac:{primary:512|20},weight:100}})||this}return X}(Fe);Object(T.g)(new c),Object(T.g)(new s),Object(T.g)(new l),Object(T.g)(new d),Object(T.g)(new m),Object(T.g)(new E),Object(T.g)(new k),Object(T.g)(new R),Object(T.g)(new $),Object(T.g)(new ie),Object(T.g)(new W),Object(T.g)(new B),Object(T.g)(new L),Object(T.g)(new A),Object(T.g)(new le),Object(T.g)(new Ce),Object(T.g)(new Ue),Object(T.g)(new Pe),Object(T.g)(new ne),Object(T.g)(new ee),Object(T.g)(new ae),Object(T.g)(new q)},sFUC:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("iuje");function re(J){return J&&typeof J.getEditorType=="function"?J.getEditorType()===T.a.ICodeEditor:!1}},sM1p:function(Lt,j,e){"use strict";e.d(j,"a",function(){return I}),e.d(j,"b",function(){return U});var T=e("S3by"),re=e("Cg/j"),J=T.a,I=Object(re.c)("notificationService"),U=function(){function z(){}return z}()},sStQ:function(Lt,j,e){"use strict";e.r(j);var T=e("+hIS");Object(T.a)({id:"perl",extensions:[".pl"],aliases:["Perl","pl"],loader:function(){return e.e(301).then(e.bind(null,"QKwv"))}})},scqD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("themeService")},siPX:function(Lt,j,e){},snIX:function(Lt,j,e){"use strict";e.d(j,"a",function(){return z});var T=e("N0LK"),re=e("LCkn"),J=e("Ll0s"),I=e("+Fos"),U=e("aokT"),z=function(){function O(){}return O.deleteRight=function(H,x,u,y){for(var _=[],f=H!==3,v=0,w=y.length;v1){var l=u.getLineContent(s.lineNumber),d=T.q(l),m=d===-1?l.length+1:d+1;if(s.column<=m){var E=J.a.visibleColumnFromColumn2(x,u,s),L=J.a.prevIndentTabStop(E,x.indentSize),A=J.a.columnFromVisibleColumn2(x,u,s.lineNumber,L);c=new U.a(s.lineNumber,A,s.lineNumber,s.column)}else c=new U.a(s.lineNumber,s.column-1,s.lineNumber,s.column)}else{var k=I.a.left(x,u,s.lineNumber,s.column);c=new U.a(k.lineNumber,k.column,s.lineNumber,s.column)}}if(c.isEmpty()){_[v]=null;continue}c.startLineNumber!==c.endLineNumber&&(f=!0),_[v]=new re.a(c,"")}return[f,_]},O.cut=function(H,x,u){for(var y=[],_=0,f=u.length;_1?(p=w.lineNumber-1,c=x.getLineMaxColumn(w.lineNumber-1),s=w.lineNumber,l=x.getLineMaxColumn(w.lineNumber)):(p=w.lineNumber,c=1,s=w.lineNumber,l=x.getLineMaxColumn(w.lineNumber));var d=new U.a(p,c,s,l);d.isEmpty()?y[_]=null:y[_]=new re.a(d,"")}else y[_]=null;else y[_]=new re.a(v,"")}return new J.e(0,y,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})},O}()},sswD:function(Lt,j,e){"use strict";e.d(j,"a",function(){return w}),e.d(j,"c",function(){return p}),e.d(j,"b",function(){return c}),e.d(j,"j",function(){return s}),e.d(j,"e",function(){return l}),e.d(j,"k",function(){return d}),e.d(j,"l",function(){return m}),e.d(j,"g",function(){return E}),e.d(j,"f",function(){return L}),e.d(j,"i",function(){return A}),e.d(j,"h",function(){return k}),e.d(j,"d",function(){return R});var T=e("/cxE"),re=e("bY76"),J=e("Vxe3"),I=e("cGHE"),U=e("G2kB"),z=e("t49l"),O=e("fjLI"),H=e("nnTU"),x=e("T8No"),u=e("nrhi"),y=e("ic2d"),_=e("XXUj"),f=e("746U"),v=function(){var W=function(le,Ce){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Me,Te){Me.__proto__=Te}||function(Me,Te){for(var Fe in Te)Te.hasOwnProperty(Fe)&&(Me[Fe]=Te[Fe])},W(le,Ce)};return function(B,le){W(B,le);function Ce(){this.constructor=B}B.prototype=le===null?Object.create(le):(Ce.prototype=le.prototype,new Ce)}}(),w=function(){function W(B){this.id=B.id,this.precondition=B.precondition,this._kbOpts=B.kbOpts,this._menuOpts=B.menuOpts,this._description=B.description}return W.prototype.register=function(){var B=this;if(Array.isArray(this._menuOpts)?this._menuOpts.forEach(this._registerMenuItem,this):this._menuOpts&&this._registerMenuItem(this._menuOpts),this._kbOpts){var le=this._kbOpts.kbExpr;this.precondition&&(le?le=x.a.and(le,this.precondition):le=this.precondition),u.a.registerCommandAndKeybindingRule({id:this.id,handler:function(Me,Te){return B.runCommand(Me,Te)},weight:this._kbOpts.weight,when:le,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else H.a.registerCommand({id:this.id,handler:function(Me,Te){return B.runCommand(Me,Te)},description:this._description})},W.prototype._registerMenuItem=function(B){O.c.appendMenuItem(B.menuId,{group:B.group,command:{id:this.id,title:B.title},when:B.when,order:B.order})},W}(),p=function(W){v(B,W);function B(){return W!==null&&W.apply(this,arguments)||this}return B.bindToContribution=function(le){return function(Ce){v(Me,Ce);function Me(Te){var Fe=Ce.call(this,Te)||this;return Fe._callback=Te.handler,Fe}return Me.prototype.runEditorCommand=function(Te,Fe,Ue){var Pe=le(Fe);Pe&&this._callback(le(Fe),Ue)},Me}(B)},B.prototype.runCommand=function(le,Ce){var Me=this,Te=le.get(J.a),Fe=Te.getFocusedCodeEditor()||Te.getActiveCodeEditor();return Fe?Fe.invokeWithinContext(function(Ue){var Pe=Ue.get(x.c);return Pe.contextMatchesRules(Object(f.n)(Me.precondition))?Me.runEditorCommand(Ue,Fe,Ce):void 0}):void 0},B}(w),c=function(W){v(B,W);function B(le){var Ce=W.call(this,B.convertOptions(le))||this;return Ce.label=le.label,Ce.alias=le.alias,Ce}return B.convertOptions=function(le){var Ce;Array.isArray(le.menuOpts)?Ce=le.menuOpts:le.menuOpts?Ce=[le.menuOpts]:Ce=[];function Me(Te){return Te.menuId||(Te.menuId=7),Te.title||(Te.title=le.label),Te.when=x.a.and(le.precondition,Te.when),Te}return Array.isArray(le.contextMenuOpts)?Ce.push.apply(Ce,le.contextMenuOpts.map(Me)):le.contextMenuOpts&&Ce.push(Me(le.contextMenuOpts)),le.menuOpts=Ce,le},B.prototype.runEditorCommand=function(le,Ce,Me){return this.reportTelemetry(le,Ce),this.run(le,Ce,Me||{})},B.prototype.reportTelemetry=function(le,Ce){le.get(_.a).publicLog2("editorActionInvoked",{name:this.label,id:this.id})},B}(p);function s(W,B){H.a.registerCommand(W,function(le,Ce){return B(le,Ce||{})})}function l(W,B){s(W,function(le,Ce){var Me=Ce.resource,Te=Ce.position;if(!(Me instanceof re.a))throw Object(T.b)("resource");if(!I.a.isIPosition(Te))throw Object(T.b)("position");var Fe=le.get(U.a).getModel(Me);if(Fe){var Ue=I.a.lift(Te);return B(Fe,Ue,Ce)}return le.get(z.a).createModelReference(Me).then(function(Pe){return new Promise(function(ne,ee){try{var ae=B(Pe.object.textEditorModel,I.a.lift(Te),Ce);ne(ae)}catch(q){ee(q)}}).finally(function(){Pe.dispose()})})})}function d(W,B){H.a.registerCommand(W,function(le){for(var Ce=[],Me=1;Me=0})}W.getSomeEditorContributions=Me;function Te(){return ie.INSTANCE.getDiffEditorContributions()}W.getDiffEditorContributions=Te})(R||(R={}));var $={EditorCommonContributions:"editor.contributions"},ie=function(){function W(){this.editorContributions=[],this.diffEditorContributions=[],this.editorActions=[],this.editorCommands=Object.create(null)}return W.prototype.registerEditorContribution=function(B,le){this.editorContributions.push({id:B,ctor:le})},W.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)},W.prototype.getDiffEditorContributions=function(){return this.diffEditorContributions.slice(0)},W.prototype.registerEditorAction=function(B){B.register(),this.editorActions.push(B)},W.prototype.getEditorActions=function(){return this.editorActions.slice(0)},W.prototype.registerEditorCommand=function(B){B.register(),this.editorCommands[B.id]=B},W.prototype.getEditorCommand=function(B){return this.editorCommands[B]||null},W.INSTANCE=new W,W}();y.a.add($.EditorCommonContributions,ie.INSTANCE)},synD:function(Lt,j,e){},t49l:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("textModelService")},t9D7:function(Lt,j,e){"use strict";e.d(j,"c",function(){return U}),e.d(j,"f",function(){return z}),e.d(j,"b",function(){return H}),e.d(j,"d",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"e",function(){return f});var T=e("Cg/j"),re=e("pmY6"),J=e("ic2d"),I=e("MI8n"),U=Object(T.c)("themeService");function z(v){return{id:v}}var O="dark",H="hc";function x(v){switch(v){case O:return"vs-dark";case H:return"hc-black";default:return"vs"}}var u={ThemingContribution:"base.contributions.theming"},y=function(){function v(){this.themingParticipants=[],this.themingParticipants=[],this.onThemingParticipantAddedEmitter=new I.a}return v.prototype.onThemeChange=function(w){var p=this;return this.themingParticipants.push(w),this.onThemingParticipantAddedEmitter.fire(w),Object(re.h)(function(){var c=p.themingParticipants.indexOf(w);p.themingParticipants.splice(c,1)})},v.prototype.getThemingParticipants=function(){return this.themingParticipants},v}(),_=new y;J.a.add(u.ThemingContribution,_);function f(v){return _.onThemeChange(v)}},tADe:function(Lt,j,e){"use strict";e.d(j,"c",function(){return I}),e.d(j,"a",function(){return U}),e.d(j,"b",function(){return z});var T=e("Cg/j"),re=e("3/fG"),J=e("S3by"),I;(function(O){O[O.Hint=1]="Hint",O[O.Info=2]="Info",O[O.Warning=4]="Warning",O[O.Error=8]="Error"})(I||(I={})),function(O){function H(f,v){return v-f}O.compare=H;var x=Object.create(null);x[O.Error]=Object(re.a)("sev.error","Error"),x[O.Warning]=Object(re.a)("sev.warning","Warning"),x[O.Info]=Object(re.a)("sev.info","Info");function u(f){return x[f]||""}O.toString=u;function y(f){switch(f){case J.a.Error:return O.Error;case J.a.Warning:return O.Warning;case J.a.Info:return O.Info;case J.a.Ignore:return O.Hint}}O.fromSeverity=y;function _(f){switch(f){case O.Error:return J.a.Error;case O.Warning:return J.a.Warning;case O.Info:return J.a.Info;case O.Hint:return J.a.Ignore}}O.toSeverity=_}(I||(I={}));var U;(function(O){var H="";function x(y){return u(y,!0)}O.makeKey=x;function u(y,_){var f=[H];return y.source?f.push(y.source.replace("\xA6","\xA6")):f.push(H),y.code?typeof y.code=="string"?f.push(y.code.replace("\xA6","\xA6")):f.push(y.code.value.replace("\xA6","\xA6")):f.push(H),y.severity!==void 0&&y.severity!==null?f.push(I.toString(y.severity)):f.push(H),y.message&&_?f.push(y.message.replace("\xA6","\xA6")):f.push(H),y.startLineNumber!==void 0&&y.startLineNumber!==null?f.push(y.startLineNumber.toString()):f.push(H),y.startColumn!==void 0&&y.startColumn!==null?f.push(y.startColumn.toString()):f.push(H),y.endLineNumber!==void 0&&y.endLineNumber!==null?f.push(y.endLineNumber.toString()):f.push(H),y.endColumn!==void 0&&y.endColumn!==null?f.push(y.endColumn.toString()):f.push(H),f.push(H),f.join("\xA6")}O.makeKeyOptionalMessage=u})(U||(U={}));var z=Object(T.c)("markerService")},tTk5:function(Lt,j,e){"use strict";e.d(j,"a",function(){return re});var T=e("Cg/j"),re=Object(T.c)("editorProgressService")},tX9W:function(Lt,j,e){"use strict";e.d(j,"b",function(){return mn}),e.d(j,"a",function(){return Ho});var T=e("/cxE"),re=e("MI8n"),J=e("pmY6"),I=e("N0LK"),U=e("bY76"),z=e("/UlZ"),O=e("cGHE"),H=e("aokT"),x=e("gCVg"),u=e("M1Kb"),y=function(){function _e(M,P){this.beforeVersionId=M,this.beforeCursorState=P,this.afterCursorState=null,this.afterVersionId=-1,this.editOperations=[]}return _e.prototype.undo=function(M){for(var P=this.editOperations.length-1;P>=0;P--)this.editOperations[P]={operations:M.applyEdits(this.editOperations[P].operations)}},_e.prototype.redo=function(M){for(var P=0;P0){var M=this.past.pop();try{M.undo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.future.push(M),{selections:M.beforeCursorState,recordedVersionId:M.beforeVersionId}}return null},_e.prototype.canUndo=function(){return this.past.length>0||this.currentOpenStackElement!==null},_e.prototype.redo=function(){if(this.future.length>0){var M=this.future.pop();try{M.redo(this.model)}catch(P){return Object(T.e)(P),this.clear(),null}return this.past.push(M),{selections:M.afterCursorState,recordedVersionId:M.afterVersionId}}return null},_e.prototype.canRedo=function(){return this.future.length>0},_e}(),w=function(){function _e(){this.spacesDiff=0,this.looksLikeAlignment=!1}return _e}();function p(_e,M,P,Z,Ae){Ae.spacesDiff=0,Ae.looksLikeAlignment=!1;var xe;for(xe=0;xe0&&xt>0)return;if(Ht>0&&Ut>0)return;var oo=Math.abs(xt-Ut),Zt=Math.abs(ht-Ht);if(oo===0){Ae.spacesDiff=Zt,Zt>0&&0<=Ht-1&&Ht-1<_e.length&&Ht0?Ae++:Oe>1&&xe++,p(Ne,dt,Zt,He,Ht),Ht.looksLikeAlignment&&!(P&&M===Ht.spacesDiff))continue;var ye=Ht.spacesDiff;ye<=xt&&Bt[ye]++,Ne=Zt,dt=He}var We=P;Ae!==xe&&(We=Aest&&(st=Kt,Ze=mt)}),Ze===4&&Bt[4]>0&&Bt[2]>0&&Bt[2]>=Bt[4]/2&&(Ze=2)}return{insertSpaces:We,tabSize:Ze}}function s(_e){return(_e.metadata&1)>>>0}function l(_e,M){_e.metadata=_e.metadata&254|M<<0}function d(_e){return(_e.metadata&2)>>>1===1}function m(_e,M){_e.metadata=_e.metadata&253|(M?1:0)<<1}function E(_e){return(_e.metadata&4)>>>2===1}function L(_e,M){_e.metadata=_e.metadata&251|(M?1:0)<<2}function A(_e){return(_e.metadata&8)>>>3===1}function k(_e,M){_e.metadata=_e.metadata&247|(M?1:0)<<3}function R(_e){return(_e.metadata&48)>>>4}function $(_e,M){_e.metadata=_e.metadata&207|M<<4}function ie(_e){return(_e.metadata&64)>>>6===1}function W(_e,M){_e.metadata=_e.metadata&191|(M?1:0)<<6}var B=function(){function _e(M,P,Z){this.metadata=0,this.parent=this,this.left=this,this.right=this,l(this,1),this.start=P,this.end=Z,this.delta=0,this.maxEnd=Z,this.id=M,this.ownerId=0,this.options=null,L(this,!1),$(this,1),k(this,!1),W(this,!1),this.cachedVersionId=0,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=null,m(this,!1)}return _e.prototype.reset=function(M,P,Z,Ae){this.start=P,this.end=Z,this.maxEnd=Z,this.cachedVersionId=M,this.cachedAbsoluteStart=P,this.cachedAbsoluteEnd=Z,this.range=Ae},_e.prototype.setOptions=function(M){this.options=M;var P=this.options.className;L(this,P==="squiggly-error"||P==="squiggly-warning"||P==="squiggly-info"),$(this,this.options.stickiness),k(this,!!(this.options.overviewRuler&&this.options.overviewRuler.color)),W(this,this.options.collapseOnReplaceEdit)},_e.prototype.setCachedOffsets=function(M,P,Z){this.cachedVersionId!==Z&&(this.range=null),this.cachedVersionId=Z,this.cachedAbsoluteStart=M,this.cachedAbsoluteEnd=P},_e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},_e}(),le=new B(null,0,0);le.parent=le,le.left=le,le.right=le,l(le,0);var Ce=function(){function _e(){this.root=le,this.requestNormalizeDelta=!1}return _e.prototype.intervalSearch=function(M,P,Z,Ae,xe){return this.root===le?[]:q(this,M,P,Z,Ae,xe)},_e.prototype.search=function(M,P,Z){return this.root===le?[]:ae(this,M,P,Z)},_e.prototype.collectNodesFromOwner=function(M){return ne(this,M)},_e.prototype.collectNodesPostOrder=function(){return ee(this)},_e.prototype.insert=function(M){ue(this,M),this._normalizeDeltaIfNecessary()},_e.prototype.delete=function(M){he(this,M),this._normalizeDeltaIfNecessary()},_e.prototype.resolveNode=function(M,P){for(var Z=M,Ae=0;M!==this.root;)M===M.parent.right&&(Ae+=M.parent.delta),M=M.parent;var xe=Z.start+Ae,Ne=Z.end+Ae;Z.setCachedOffsets(xe,Ne,P)},_e.prototype.acceptReplace=function(M,P,Z,Ae){for(var xe=Ue(this,M,M+P),Ne=0,dt=xe.length;NeP||Z===1?!1:Z===2?!0:M}function Fe(_e,M,P,Z,Ae){var xe=R(_e),Ne=xe===0||xe===2,dt=xe===1||xe===2,ht=P-M,xt=Z,Bt=Math.min(ht,xt),Ht=_e.start,Ut=!1,oo=_e.end,Zt=!1;M<=Ht&&oo<=P&&ie(_e)&&(_e.start=M,Ut=!0,_e.end=M,Zt=!0);{var fo=Ae?1:ht>0?2:0;!Ut&&Te(Ht,Ne,M,fo)&&(Ut=!0),!Zt&&Te(oo,dt,M,fo)&&(Zt=!0)}if(Bt>0&&!Ae){var fo=ht>xt?2:0;!Ut&&Te(Ht,Ne,M+Bt,fo)&&(Ut=!0),!Zt&&Te(oo,dt,M+Bt,fo)&&(Zt=!0)}{var fo=Ae?1:0;!Ut&&Te(Ht,Ne,P,fo)&&(_e.start=M+xt,Ut=!0),!Zt&&Te(oo,dt,P,fo)&&(_e.end=M+xt,Zt=!0)}var yt=xt-ht;Ut||(_e.start=Math.max(0,Ht+yt)),Zt||(_e.end=Math.max(0,oo+yt)),_e.start>_e.end&&(_e.end=_e.start)}function Ue(_e,M,P){for(var Z=_e.root,Ae=0,xe=0,Ne=0,dt=0,ht=[],xt=0;Z!==le;){if(d(Z)){m(Z.left,!1),m(Z.right,!1),Z===Z.parent.right&&(Ae-=Z.parent.delta),Z=Z.parent;continue}if(!d(Z.left)){if(xe=Ae+Z.maxEnd,xeP){m(Z,!0);continue}if(dt=Ae+Z.end,dt>=M&&(Z.setCachedOffsets(Ne,dt,0),ht[xt++]=Z),m(Z,!0),Z.right!==le&&!d(Z.right)){Ae+=Z.delta,Z=Z.right;continue}}return m(_e.root,!1),ht}function Pe(_e,M,P,Z){for(var Ae=_e.root,xe=0,Ne=0,dt=0,ht=Z-(P-M);Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Re(Ae),Ae=Ae.parent;continue}if(!d(Ae.left)){if(Ne=xe+Ae.maxEnd,NeP){Ae.start+=ht,Ae.end+=ht,Ae.delta+=ht,(Ae.delta<-1073741824||Ae.delta>1073741824)&&(_e.requestNormalizeDelta=!0),m(Ae,!0);continue}if(m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}m(_e.root,!1)}function ne(_e,M){for(var P=_e.root,Z=[],Ae=0;P!==le;){if(d(P)){m(P.left,!1),m(P.right,!1),P=P.parent;continue}if(P.left!==le&&!d(P.left)){P=P.left;continue}if(P.ownerId===M&&(Z[Ae++]=P),m(P,!0),P.right!==le&&!d(P.right)){P=P.right;continue}}return m(_e.root,!1),Z}function ee(_e){for(var M=_e.root,P=[],Z=0;M!==le;){if(d(M)){m(M.left,!1),m(M.right,!1),M=M.parent;continue}if(M.left!==le&&!d(M.left)){M=M.left;continue}if(M.right!==le&&!d(M.right)){M=M.right;continue}P[Z++]=M,m(M,!0)}return m(_e.root,!1),P}function ae(_e,M,P,Z){for(var Ae=_e.root,xe=0,Ne=0,dt=0,ht=[],xt=0;Ae!==le;){if(d(Ae)){m(Ae.left,!1),m(Ae.right,!1),Ae===Ae.parent.right&&(xe-=Ae.parent.delta),Ae=Ae.parent;continue}if(Ae.left!==le&&!d(Ae.left)){Ae=Ae.left;continue}Ne=xe+Ae.start,dt=xe+Ae.end,Ae.setCachedOffsets(Ne,dt,Z);var Bt=!0;if(M&&Ae.ownerId&&Ae.ownerId!==M&&(Bt=!1),P&&E(Ae)&&(Bt=!1),Bt&&(ht[xt++]=Ae),m(Ae,!0),Ae.right!==le&&!d(Ae.right)){xe+=Ae.delta,Ae=Ae.right;continue}}return m(_e.root,!1),ht}function q(_e,M,P,Z,Ae,xe){for(var Ne=_e.root,dt=0,ht=0,xt=0,Bt=0,Ht=[],Ut=0;Ne!==le;){if(d(Ne)){m(Ne.left,!1),m(Ne.right,!1),Ne===Ne.parent.right&&(dt-=Ne.parent.delta),Ne=Ne.parent;continue}if(!d(Ne.left)){if(ht=dt+Ne.maxEnd,htP){m(Ne,!0);continue}if(Bt=dt+Ne.end,Bt>=M){Ne.setCachedOffsets(xt,Bt,xe);var oo=!0;Z&&Ne.ownerId&&Ne.ownerId!==Z&&(oo=!1),Ae&&E(Ne)&&(oo=!1),oo&&(Ht[Ut++]=Ne)}if(m(Ne,!0),Ne.right!==le&&!d(Ne.right)){dt+=Ne.delta,Ne=Ne.right;continue}}return m(_e.root,!1),Ht}function ue(_e,M){if(_e.root===le)return M.parent=le,M.left=le,M.right=le,l(M,0),_e.root=M,_e.root;X(_e,M),Ee(M.parent);for(var P=M;P!==_e.root&&s(P.parent)===1;)if(P.parent===P.parent.parent.left){var Z=P.parent.parent.right;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.right&&(P=P.parent,me(_e,P)),l(P.parent,0),l(P.parent.parent,1),ge(_e,P.parent.parent))}else{var Z=P.parent.parent.left;s(Z)===1?(l(P.parent,0),l(Z,0),l(P.parent.parent,1),P=P.parent.parent):(P===P.parent.left&&(P=P.parent,ge(_e,P)),l(P.parent,0),l(P.parent.parent,1),me(_e,P.parent.parent))}return l(_e.root,0),M}function X(_e,M){for(var P=0,Z=_e.root,Ae=M.start,xe=M.end;;){var Ne=ve(Ae,xe,Z.start+P,Z.end+P);if(Ne<0)if(Z.left===le){M.start-=P,M.end-=P,M.maxEnd-=P,Z.left=M;break}else Z=Z.left;else if(Z.right===le){M.start-=P+Z.delta,M.end-=P+Z.delta,M.maxEnd-=P+Z.delta,Z.right=M;break}else P+=Z.delta,Z=Z.right}M.parent=Z,M.left=le,M.right=le,l(M,1)}function he(_e,M){var P,Z;if(M.left===le?(P=M.right,Z=M,P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta):M.right===le?(P=M.left,Z=M):(Z=je(M.right),P=Z.right,P.start+=Z.delta,P.end+=Z.delta,P.delta+=Z.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),Z.start+=M.delta,Z.end+=M.delta,Z.delta=M.delta,(Z.delta<-1073741824||Z.delta>1073741824)&&(_e.requestNormalizeDelta=!0)),Z===_e.root){_e.root=P,l(P,0),M.detach(),Xe(),Re(P),_e.root.parent=le;return}var Ae=s(Z)===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?P.parent=Z.parent:(Z.parent===M?P.parent=Z:P.parent=Z.parent,Z.left=M.left,Z.right=M.right,Z.parent=M.parent,l(Z,s(M)),M===_e.root?_e.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==le&&(Z.left.parent=Z),Z.right!==le&&(Z.right.parent=Z)),M.detach(),Ae){Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent)),Xe();return}Ee(P),Ee(P.parent),Z!==M&&(Ee(Z),Ee(Z.parent));for(var xe;P!==_e.root&&s(P)===0;)P===P.parent.left?(xe=P.parent.right,s(xe)===1&&(l(xe,0),l(P.parent,1),me(_e,P.parent),xe=P.parent.right),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.right)===0&&(l(xe.left,0),l(xe,1),ge(_e,xe),xe=P.parent.right),l(xe,s(P.parent)),l(P.parent,0),l(xe.right,0),me(_e,P.parent),P=_e.root)):(xe=P.parent.left,s(xe)===1&&(l(xe,0),l(P.parent,1),ge(_e,P.parent),xe=P.parent.left),s(xe.left)===0&&s(xe.right)===0?(l(xe,1),P=P.parent):(s(xe.left)===0&&(l(xe.right,0),l(xe,1),me(_e,xe),xe=P.parent.left),l(xe,s(P.parent)),l(P.parent,0),l(xe.left,0),ge(_e,P.parent),P=_e.root));l(P,0),Xe()}function je(_e){for(;_e.left!==le;)_e=_e.left;return _e}function Xe(){le.parent=le,le.delta=0,le.start=0,le.end=0}function me(_e,M){var P=M.right;P.delta+=M.delta,(P.delta<-1073741824||P.delta>1073741824)&&(_e.requestNormalizeDelta=!0),P.start+=M.delta,P.end+=M.delta,M.right=P.left,P.left!==le&&(P.left.parent=M),P.parent=M.parent,M.parent===le?_e.root=P:M===M.parent.left?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P,Re(M),Re(P)}function ge(_e,M){var P=M.left;M.delta-=P.delta,(M.delta<-1073741824||M.delta>1073741824)&&(_e.requestNormalizeDelta=!0),M.start-=P.delta,M.end-=P.delta,M.left=P.right,P.right!==le&&(P.right.parent=M),P.parent=M.parent,M.parent===le?_e.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P,Re(M),Re(P)}function we(_e){var M=_e.end;if(_e.left!==le){var P=_e.left.maxEnd;P>M&&(M=P)}if(_e.right!==le){var Z=_e.right.maxEnd+_e.delta;Z>M&&(M=Z)}return M}function Re(_e){_e.maxEnd=we(_e)}function Ee(_e){for(;_e!==le;){var M=we(_e);if(_e.maxEnd===M)return;_e.maxEnd=M,_e=_e.parent}}function ve(_e,M,P,Z){return _e===P?M-Z:_e-P}var Q=function(){function _e(M,P){this.piece=M,this.color=P,this.size_left=0,this.lf_left=0,this.parent=this,this.left=this,this.right=this}return _e.prototype.next=function(){if(this.right!==C)return F(this.right);for(var M=this;M.parent!==C&&!(M.parent.left===M);)M=M.parent;return M.parent===C?C:M.parent},_e.prototype.prev=function(){if(this.left!==C)return se(this.left);for(var M=this;M.parent!==C&&!(M.parent.right===M);)M=M.parent;return M.parent===C?C:M.parent},_e.prototype.detach=function(){this.parent=null,this.left=null,this.right=null},_e}(),C=new Q(null,0);C.parent=C,C.left=C,C.right=C,C.color=0;function F(_e){for(;_e.left!==C;)_e=_e.left;return _e}function se(_e){for(;_e.right!==C;)_e=_e.right;return _e}function oe(_e){return _e===C?0:_e.size_left+_e.piece.length+oe(_e.right)}function be(_e){return _e===C?0:_e.lf_left+_e.piece.lineFeedCnt+be(_e.right)}function De(){C.parent=C}function Se(_e,M){var P=M.right;P.size_left+=M.size_left+(M.piece?M.piece.length:0),P.lf_left+=M.lf_left+(M.piece?M.piece.lineFeedCnt:0),M.right=P.left,P.left!==C&&(P.left.parent=M),P.parent=M.parent,M.parent===C?_e.root=P:M.parent.left===M?M.parent.left=P:M.parent.right=P,P.left=M,M.parent=P}function Ve(_e,M){var P=M.left;M.left=P.right,P.right!==C&&(P.right.parent=M),P.parent=M.parent,M.size_left-=P.size_left+(P.piece?P.piece.length:0),M.lf_left-=P.lf_left+(P.piece?P.piece.lineFeedCnt:0),M.parent===C?_e.root=P:M===M.parent.right?M.parent.right=P:M.parent.left=P,P.right=M,M.parent=P}function Qe(_e,M){var P,Z;if(M.left===C?(Z=M,P=Z.right):M.right===C?(Z=M,P=Z.left):(Z=F(M.right),P=Z.right),Z===_e.root){_e.root=P,P.color=0,M.detach(),De(),_e.root.parent=C;return}var Ae=Z.color===1;if(Z===Z.parent.left?Z.parent.left=P:Z.parent.right=P,Z===M?(P.parent=Z.parent,Rt(_e,P)):(Z.parent===M?P.parent=Z:P.parent=Z.parent,Rt(_e,P),Z.left=M.left,Z.right=M.right,Z.parent=M.parent,Z.color=M.color,M===_e.root?_e.root=Z:M===M.parent.left?M.parent.left=Z:M.parent.right=Z,Z.left!==C&&(Z.left.parent=Z),Z.right!==C&&(Z.right.parent=Z),Z.size_left=M.size_left,Z.lf_left=M.lf_left,Rt(_e,Z)),M.detach(),P.parent.left===P){var xe=oe(P),Ne=be(P);if(xe!==P.parent.size_left||Ne!==P.parent.lf_left){var dt=xe-P.parent.size_left,ht=Ne-P.parent.lf_left;P.parent.size_left=xe,P.parent.lf_left=Ne,pt(_e,P.parent,dt,ht)}}if(Rt(_e,P.parent),Ae){De();return}for(var xt;P!==_e.root&&P.color===0;)P===P.parent.left?(xt=P.parent.right,xt.color===1&&(xt.color=0,P.parent.color=1,Se(_e,P.parent),xt=P.parent.right),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.right.color===0&&(xt.left.color=0,xt.color=1,Ve(_e,xt),xt=P.parent.right),xt.color=P.parent.color,P.parent.color=0,xt.right.color=0,Se(_e,P.parent),P=_e.root)):(xt=P.parent.left,xt.color===1&&(xt.color=0,P.parent.color=1,Ve(_e,P.parent),xt=P.parent.left),xt.left.color===0&&xt.right.color===0?(xt.color=1,P=P.parent):(xt.left.color===0&&(xt.right.color=0,xt.color=1,Se(_e,xt),xt=P.parent.left),xt.color=P.parent.color,P.parent.color=0,xt.left.color=0,Ve(_e,P.parent),P=_e.root));P.color=0,De()}function it(_e,M){for(Rt(_e,M);M!==_e.root&&M.parent.color===1;)if(M.parent===M.parent.parent.left){var P=M.parent.parent.right;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.right&&(M=M.parent,Se(_e,M)),M.parent.color=0,M.parent.parent.color=1,Ve(_e,M.parent.parent))}else{var P=M.parent.parent.left;P.color===1?(M.parent.color=0,P.color=0,M.parent.parent.color=1,M=M.parent.parent):(M===M.parent.left&&(M=M.parent,Ve(_e,M)),M.parent.color=0,M.parent.parent.color=1,Se(_e,M.parent.parent))}_e.root.color=0}function pt(_e,M,P,Z){for(;M!==_e.root&&M!==C;)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}function Rt(_e,M){var P=0,Z=0;if(M===_e.root)return;if(P===0){for(;M!==_e.root&&M===M.parent.right;)M=M.parent;if(M===_e.root)return;M=M.parent,P=oe(M.left)-M.size_left,Z=be(M.left)-M.lf_left,M.size_left+=P,M.lf_left+=Z}for(;M!==_e.root&&(P!==0||Z!==0);)M.parent.left===M&&(M.parent.size_left+=P,M.parent.lf_left+=Z),M=M.parent}var Mt=e("jAJ/"),zt=65535;function uo(_e){var M;return _e[_e.length-1]<65536?M=new Uint16Array(_e.length):M=new Uint32Array(_e.length),M.set(_e,0),M}var ao=function(){function _e(M,P,Z,Ae,xe){this.lineStarts=M,this.cr=P,this.lf=Z,this.crlf=Ae,this.isBasicASCII=xe}return _e}();function so(_e,M){M===void 0&&(M=!0);for(var P=[0],Z=1,Ae=0,xe=_e.length;Ae126)&&(Ne=!1))}var Bt=new ao(uo(_e),Z,Ae,xe,Ne);return _e.length=0,Bt}var ft=function(){function _e(M,P,Z,Ae,xe){this.bufferIndex=M,this.start=P,this.end=Z,this.lineFeedCnt=Ae,this.length=xe}return _e}(),vt=function(){function _e(M,P){this.buffer=M,this.lineStarts=P}return _e}(),At=function(){function _e(M){this._limit=M,this._cache=[]}return _e.prototype.get=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartOffset<=M&&Z.nodeStartOffset+Z.node.piece.length>=M)return Z}return null},_e.prototype.get2=function(M){for(var P=this._cache.length-1;P>=0;P--){var Z=this._cache[P];if(Z.nodeStartLineNumber&&Z.nodeStartLineNumber=M)return Z}return null},_e.prototype.set=function(M){this._cache.length>=this._limit&&this._cache.shift(),this._cache.push(M)},_e.prototype.valdiate=function(M){for(var P=!1,Z=this._cache,Ae=0;Ae=M){Z[Ae]=null,P=!0;continue}}if(P){for(var Ne=[],dt=0,ht=Z;dt0){M[xe].lineStarts||(M[xe].lineStarts=so(M[xe].buffer));var dt=new ft(xe+1,{line:0,column:0},{line:M[xe].lineStarts.length-1,column:M[xe].buffer.length-M[xe].lineStarts[M[xe].lineStarts.length-1]},M[xe].lineStarts.length-1,M[xe].buffer.length);this._buffers.push(M[xe]),Ae=this.rbInsertRight(Ae,dt)}this._searchCache=new At(1),this._lastVisitedLine={lineNumber:0,value:""},this.computeBufferMetadata()},_e.prototype.normalizeEOL=function(M){var P=this,Z=zt,Ae=Z-Math.floor(Z/3),xe=Ae*2,Ne="",dt=0,ht=[];if(this.iterate(this.root,function(Bt){var Ht=P.getNodeContent(Bt),Ut=Ht.length;if(dt<=Ae||dt+Ut0){var xt=Ne.replace(/\r\n|\r|\n/g,M);ht.push(new vt(xt,so(xt)))}this.create(ht,M,!0)},_e.prototype.getEOL=function(){return this._EOL},_e.prototype.setEOL=function(M){this._EOL=M,this._EOLLength=this._EOL.length,this.normalizeEOL(M)},_e.prototype.getOffsetAt=function(M,P){for(var Z=0,Ae=this.root;Ae!==C;)if(Ae.left!==C&&Ae.lf_left+1>=M)Ae=Ae.left;else if(Ae.lf_left+Ae.piece.lineFeedCnt+1>=M){Z+=Ae.size_left;var xe=this.getAccumulatedValue(Ae,M-Ae.lf_left-2);return Z+=xe+P-1}else M-=Ae.lf_left+Ae.piece.lineFeedCnt,Z+=Ae.size_left+Ae.piece.length,Ae=Ae.right;return Z},_e.prototype.getPositionAt=function(M){M=Math.floor(M),M=Math.max(0,M);for(var P=this.root,Z=0,Ae=M;P!==C;)if(P.size_left!==0&&P.size_left>=M)P=P.left;else if(P.size_left+P.piece.length>=M){var xe=this.getIndexOf(P,M-P.size_left);if(Z+=P.lf_left+xe.index,xe.index===0){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-Ne;return new O.a(Z+1,dt+1)}return new O.a(Z+1,xe.remainder+1)}else if(M-=P.size_left+P.piece.length,Z+=P.lf_left+P.piece.lineFeedCnt,P.right===C){var Ne=this.getOffsetAt(Z+1,1),dt=Ae-M-Ne;return new O.a(Z+1,dt+1)}else P=P.right;return new O.a(1,1)},_e.prototype.getValueInRange=function(M,P){if(M.startLineNumber===M.endLineNumber&&M.startColumn===M.endColumn)return"";var Z=this.nodeAt2(M.startLineNumber,M.startColumn),Ae=this.nodeAt2(M.endLineNumber,M.endColumn),xe=this.getValueInRange2(Z,Ae);return P?P!==this._EOL||!this._EOLNormalized?xe.replace(/\r\n|\r|\n/g,P):P===this.getEOL()&&this._EOLNormalized?(P===`\r +`,xe):xe.replace(/\r\n|\r|\n/g,P):xe},_e.prototype.getValueInRange2=function(M,P){if(M.node===P.node){var Z=M.node,Ae=this._buffers[Z.piece.bufferIndex].buffer,xe=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae.substring(xe+M.remainder,xe+P.remainder)}var Ne=M.node,dt=this._buffers[Ne.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start),xt=dt.substring(ht+M.remainder,ht+Ne.piece.length);for(Ne=Ne.next();Ne!==C;){var Bt=this._buffers[Ne.piece.bufferIndex].buffer,Ht=this.offsetInBuffer(Ne.piece.bufferIndex,Ne.piece.start);if(Ne===P.node){xt+=Bt.substring(Ht,Ht+P.remainder);break}else xt+=Bt.substr(Ht,Ne.piece.length);Ne=Ne.next()}return xt},_e.prototype.getLinesContent=function(){var M=this,P=[],Z=0,Ae="",xe=!1;return this.iterate(this.root,function(Ne){if(Ne===C)return!0;var dt=Ne.piece,ht=dt.length;if(ht===0)return!0;var xt=M._buffers[dt.bufferIndex].buffer,Bt=M._buffers[dt.bufferIndex].lineStarts,Ht=dt.start.line,Ut=dt.end.line,oo=Bt[Ht]+dt.start.column;if(xe&&(xt.charCodeAt(oo)===10&&(oo++,ht--),P[Z++]=Ae,Ae="",xe=!1,ht===0))return!0;if(Ht===Ut)return!M._EOLNormalized&&xt.charCodeAt(oo+ht-1)===13?(xe=!0,Ae+=xt.substr(oo,ht-1)):Ae+=xt.substr(oo,ht),!0;Ae+=M._EOLNormalized?xt.substring(oo,Math.max(oo,Bt[Ht+1]-M._EOLLength)):xt.substring(oo,Bt[Ht+1]).replace(/(\r\n|\r|\n)$/,""),P[Z++]=Ae;for(var Zt=Ht+1;Zt=fo)return Bt;this.positionInBuffer(M,rt(yt.index)-oo,He);var It=this.getLineFeedCnt(M.piece.bufferIndex,xe,He),pe=He.line===xe.line?He.column-xe.column+Ae:He.column+1,D=pe+yt[0].length;if(Ht[Bt++]=Object(Mt.d)(new H.a(Z+It,pe,Z+It,D),yt,ht),rt(yt.index)+yt[0].length>=fo)return Bt;if(Bt>=xt)return Bt}while(yt);return Bt},_e.prototype.findMatchesLineByLine=function(M,P,Z,Ae){var xe=[],Ne=0,dt=new Mt.b(P.wordSeparators,P.regex),ht=this.nodeAt2(M.startLineNumber,M.startColumn);if(ht===null)return[];var xt=this.nodeAt2(M.endLineNumber,M.endColumn);if(xt===null)return[];var Bt=this.positionInBuffer(ht.node,ht.remainder),Ht=this.positionInBuffer(xt.node,xt.remainder);if(ht.node===xt.node)return this.findMatchesInNode(ht.node,dt,M.startLineNumber,M.startColumn,Bt,Ht,P,Z,Ae,Ne,xe),xe;for(var Ut=M.startLineNumber,oo=ht.node;oo!==xt.node;){var Zt=this.getLineFeedCnt(oo.piece.bufferIndex,Bt,oo.piece.end);if(Zt>=1){var fo=this._buffers[oo.piece.bufferIndex].lineStarts,yt=this.offsetInBuffer(oo.piece.bufferIndex,oo.piece.start),He=fo[Bt.line+Zt],Oe=Ut===M.startLineNumber?M.startColumn:1;if(Ne=this.findMatchesInNode(oo,dt,Ut,Oe,Bt,this.positionInBuffer(oo,He-yt),P,Z,Ae,Ne,xe),Ne>=Ae)return xe;Ut+=Zt}var rt=Ut===M.startLineNumber?M.startColumn-1:0;if(Ut===M.endLineNumber){var It=this.getLineContent(Ut).substring(rt,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,rt,Ne,xe,Z,Ae),xe}if(Ne=this._findMatchesInLine(P,dt,this.getLineContent(Ut).substr(rt),Ut,rt,Ne,xe,Z,Ae),Ne>=Ae)return xe;Ut++,ht=this.nodeAt2(Ut,1),oo=ht.node,Bt=this.positionInBuffer(ht.node,ht.remainder)}if(Ut===M.endLineNumber){var pe=Ut===M.startLineNumber?M.startColumn-1:0,It=this.getLineContent(Ut).substring(pe,M.endColumn-1);return Ne=this._findMatchesInLine(P,dt,It,M.endLineNumber,pe,Ne,xe,Z,Ae),xe}var D=Ut===M.startLineNumber?M.startColumn:1;return Ne=this.findMatchesInNode(xt.node,dt,Ut,D,Bt,Ht,P,Z,Ae,Ne,xe),xe},_e.prototype._findMatchesInLine=function(M,P,Z,Ae,xe,Ne,dt,ht,xt){var Bt=M.wordSeparators;if(!ht&&M.simpleSearch){for(var Ht=M.simpleSearch,Ut=Ht.length,oo=Z.length,Zt=-Ut;(Zt=Z.indexOf(Ht,Zt+Ut))!==-1;)if((!Bt||Object(Mt.e)(Bt,Z,oo,Zt,Ut))&&(dt[Ne++]=new u.b(new H.a(Ae,Zt+1+xe,Ae,Zt+1+Ut+xe),null),Ne>=xt))return Ne;return Ne}var fo;P.reset(0);do if(fo=P.next(Z),fo&&(dt[Ne++]=Object(Mt.d)(new H.a(Ae,fo.index+1+xe,Ae,fo.index+1+fo[0].length+xe),fo,ht),Ne>=xt))return Ne;while(fo);return Ne},_e.prototype.insert=function(M,P,Z){if(Z===void 0&&(Z=!1),this._EOLNormalized=this._EOLNormalized&&Z,this._lastVisitedLine.lineNumber=0,this._lastVisitedLine.value="",this.root!==C){var Ae=this.nodeAt(M),xe=Ae.node,Ne=Ae.remainder,dt=Ae.nodeStartOffset,ht=xe.piece,xt=ht.bufferIndex,Bt=this.positionInBuffer(xe,Ne);if(xe.piece.bufferIndex===0&&ht.end.line===this._lastChangeBufferPos.line&&ht.end.column===this._lastChangeBufferPos.column&&dt+ht.length===M&&P.lengthM){var Ht=[],Ut=new ft(ht.bufferIndex,Bt,ht.end,this.getLineFeedCnt(ht.bufferIndex,Bt,ht.end),this.offsetInBuffer(xt,ht.end)-this.offsetInBuffer(xt,Bt));if(this.shouldCheckCRLF()&&this.endWithCR(P)){var oo=this.nodeCharCodeAt(xe,Ne);if(oo===10){var Zt={line:Ut.start.line+1,column:0};Ut=new ft(Ut.bufferIndex,Zt,Ut.end,this.getLineFeedCnt(Ut.bufferIndex,Zt,Ut.end),Ut.length-1),P+=` +`}}if(this.shouldCheckCRLF()&&this.startWithLF(P)){var fo=this.nodeCharCodeAt(xe,Ne-1);if(fo===13){var yt=this.positionInBuffer(xe,Ne-1);this.deleteNodeTail(xe,yt),P="\r"+P,xe.piece.length===0&&Ht.push(xe)}else this.deleteNodeTail(xe,Bt)}else this.deleteNodeTail(xe,Bt);var He=this.createNewPieces(P);Ut.length>0&&this.rbInsertRight(xe,Ut);for(var Oe=xe,rt=0;rt=0;xt--)ht=this.rbInsertLeft(ht,dt[xt]);this.validateCRLFWithPrevNode(ht),this.deleteNodes(Z)},_e.prototype.insertContentToNodeRight=function(M,P){this.adjustCarriageReturnFromNext(M,P)&&(M+=` +`);for(var Z=this.createNewPieces(M),Ae=this.rbInsertRight(P,Z[0]),xe=Ae,Ne=1;Ne=Ut)xt=Ht+1;else break;return Z?(Z.line=Ht,Z.column=ht-oo,null):{line:Ht,column:ht-oo}},_e.prototype.getLineFeedCnt=function(M,P,Z){if(Z.column===0)return Z.line-P.line;var Ae=this._buffers[M].lineStarts;if(Z.line===Ae.length-1)return Z.line-P.line;var xe=Ae[Z.line+1],Ne=Ae[Z.line]+Z.column;if(xe>Ne+1)return Z.line-P.line;var dt=Ne-1,ht=this._buffers[M].buffer;return ht.charCodeAt(dt)===13?Z.line-P.line+1:Z.line-P.line},_e.prototype.offsetInBuffer=function(M,P){var Z=this._buffers[M].lineStarts;return Z[P.line]+P.column},_e.prototype.deleteNodes=function(M){for(var P=0;Pzt){for(var P=[];M.length>zt;){var Z=M.charCodeAt(zt-1),Ae=void 0;Z===13||Z>=55296&&Z<=56319?(Ae=M.substring(0,zt-1),M=M.substring(zt-1)):(Ae=M.substring(0,zt),M=M.substring(zt));var xe=so(Ae);P.push(new ft(this._buffers.length,{line:0,column:0},{line:xe.length-1,column:Ae.length-xe[xe.length-1]},xe.length-1,Ae.length)),this._buffers.push(new vt(Ae,xe))}var Ne=so(M);return P.push(new ft(this._buffers.length,{line:0,column:0},{line:Ne.length-1,column:M.length-Ne[Ne.length-1]},Ne.length-1,M.length)),this._buffers.push(new vt(M,Ne)),P}var dt=this._buffers[0].buffer.length,ht=so(M,!1),xt=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===dt&&dt!==0&&this.startWithLF(M)&&this.endWithCR(this._buffers[0].buffer)){this._lastChangeBufferPos={line:this._lastChangeBufferPos.line,column:this._lastChangeBufferPos.column+1},xt=this._lastChangeBufferPos;for(var Bt=0;Bt=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),xt=this.getAccumulatedValue(Z,M-Z.lf_left-1),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Bt+=Z.size_left,this._searchCache.set({node:Z,nodeStartOffset:Bt,nodeStartLineNumber:Ht-(M-1-Z.lf_left)}),dt.substring(ht+Ne,ht+xt-P)}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var Ne=this.getAccumulatedValue(Z,M-Z.lf_left-2),dt=this._buffers[Z.piece.bufferIndex].buffer,ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae=dt.substring(ht+Ne,ht+Z.piece.length);break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Bt+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){var dt=this._buffers[Z.piece.bufferIndex].buffer;if(Z.piece.lineFeedCnt>0){var xt=this.getAccumulatedValue(Z,0),ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);return Ae+=dt.substring(ht,ht+xt-P),Ae}else{var ht=this.offsetInBuffer(Z.piece.bufferIndex,Z.piece.start);Ae+=dt.substr(ht,Z.piece.length)}Z=Z.next()}return Ae},_e.prototype.computeBufferMetadata=function(){for(var M=this.root,P=1,Z=0;M!==C;)P+=M.lf_left+M.piece.lineFeedCnt,Z+=M.size_left+M.piece.length,M=M.right;this._lineCnt=P,this._length=Z,this._searchCache.valdiate(this._length)},_e.prototype.getIndexOf=function(M,P){var Z=M.piece,Ae=this.positionInBuffer(M,P),xe=Ae.line-Z.start.line;if(this.offsetInBuffer(Z.bufferIndex,Z.end)-this.offsetInBuffer(Z.bufferIndex,Z.start)===P){var Ne=this.getLineFeedCnt(M.piece.bufferIndex,Z.start,Ae);if(Ne!==xe)return{index:Ne,remainder:0}}return{index:xe,remainder:Ae.column}},_e.prototype.getAccumulatedValue=function(M,P){if(P<0)return 0;var Z=M.piece,Ae=this._buffers[Z.bufferIndex].lineStarts,xe=Z.start.line+P+1;return xe>Z.end.line?Ae[Z.end.line]+Z.end.column-Ae[Z.start.line]-Z.start.column:Ae[xe]-Ae[Z.start.line]-Z.start.column},_e.prototype.deleteNodeTail=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.end),Ne=P,dt=this.offsetInBuffer(Z.bufferIndex,Ne),ht=this.getLineFeedCnt(Z.bufferIndex,Z.start,Ne),xt=ht-Ae,Bt=dt-xe,Ht=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Z.start,Ne,ht,Ht),pt(this,M,Bt,xt)},_e.prototype.deleteNodeHead=function(M,P){var Z=M.piece,Ae=Z.lineFeedCnt,xe=this.offsetInBuffer(Z.bufferIndex,Z.start),Ne=P,dt=this.getLineFeedCnt(Z.bufferIndex,Ne,Z.end),ht=this.offsetInBuffer(Z.bufferIndex,Ne),xt=dt-Ae,Bt=xe-ht,Ht=Z.length+Bt;M.piece=new ft(Z.bufferIndex,Ne,Z.end,dt,Ht),pt(this,M,Bt,xt)},_e.prototype.shrinkNode=function(M,P,Z){var Ae=M.piece,xe=Ae.start,Ne=Ae.end,dt=Ae.length,ht=Ae.lineFeedCnt,xt=P,Bt=this.getLineFeedCnt(Ae.bufferIndex,Ae.start,xt),Ht=this.offsetInBuffer(Ae.bufferIndex,P)-this.offsetInBuffer(Ae.bufferIndex,xe);M.piece=new ft(Ae.bufferIndex,Ae.start,xt,Bt,Ht),pt(this,M,Ht-dt,Bt-ht);var Ut=new ft(Ae.bufferIndex,Z,Ne,this.getLineFeedCnt(Ae.bufferIndex,Z,Ne),this.offsetInBuffer(Ae.bufferIndex,Ne)-this.offsetInBuffer(Ae.bufferIndex,Z)),oo=this.rbInsertRight(M,Ut);this.validateCRLFWithPrevNode(oo)},_e.prototype.appendToNode=function(M,P){this.adjustCarriageReturnFromNext(P,M)&&(P+=` +`);var Z=this.shouldCheckCRLF()&&this.startWithLF(P)&&this.endWithCR(M),Ae=this._buffers[0].buffer.length;this._buffers[0].buffer+=P;for(var xe=so(P,!1),Ne=0;NeM)P=P.left;else if(P.size_left+P.piece.length>=M){Ae+=P.size_left;var xe={node:P,remainder:M-P.size_left,nodeStartOffset:Ae};return this._searchCache.set(xe),xe}else M-=P.size_left+P.piece.length,Ae+=P.size_left+P.piece.length,P=P.right;return null},_e.prototype.nodeAt2=function(M,P){for(var Z=this.root,Ae=0;Z!==C;)if(Z.left!==C&&Z.lf_left>=M-1)Z=Z.left;else if(Z.lf_left+Z.piece.lineFeedCnt>M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2),Ne=this.getAccumulatedValue(Z,M-Z.lf_left-1);return Ae+=Z.size_left,{node:Z,remainder:Math.min(xe+P-1,Ne),nodeStartOffset:Ae}}else if(Z.lf_left+Z.piece.lineFeedCnt===M-1){var xe=this.getAccumulatedValue(Z,M-Z.lf_left-2);if(xe+P-1<=Z.piece.length)return{node:Z,remainder:xe+P-1,nodeStartOffset:Ae};P-=Z.piece.length-xe;break}else M-=Z.lf_left+Z.piece.lineFeedCnt,Ae+=Z.size_left+Z.piece.length,Z=Z.right;for(Z=Z.next();Z!==C;){if(Z.piece.lineFeedCnt>0){var Ne=this.getAccumulatedValue(Z,0),dt=this.offsetOfNode(Z);return{node:Z,remainder:Math.min(P-1,Ne),nodeStartOffset:dt}}else if(Z.piece.length>=P-1){var ht=this.offsetOfNode(Z);return{node:Z,remainder:P-1,nodeStartOffset:ht}}else P-=Z.piece.length;Z=Z.next()}return null},_e.prototype.nodeCharCodeAt=function(M,P){if(M.piece.lineFeedCnt<1)return-1;var Z=this._buffers[M.piece.bufferIndex],Ae=this.offsetInBuffer(M.piece.bufferIndex,M.piece.start)+P;return Z.buffer.charCodeAt(Ae)},_e.prototype.offsetOfNode=function(M){if(!M)return 0;for(var P=M.size_left;M!==this.root;)M.parent.right===M&&(P+=M.parent.size_left+M.parent.piece.length),M=M.parent;return P},_e.prototype.shouldCheckCRLF=function(){return!(this._EOLNormalized&&this._EOL===` +`)},_e.prototype.startWithLF=function(M){if(typeof M=="string")return M.charCodeAt(0)===10;if(M===C||M.piece.lineFeedCnt===0)return!1;var P=M.piece,Z=this._buffers[P.bufferIndex].lineStarts,Ae=P.start.line,xe=Z[Ae]+P.start.column;if(Ae===Z.length-1)return!1;var Ne=Z[Ae+1];return Ne>xe+1?!1:this._buffers[P.bufferIndex].buffer.charCodeAt(xe)===10},_e.prototype.endWithCR=function(M){return typeof M=="string"?M.charCodeAt(M.length-1)===13:M===C||M.piece.lineFeedCnt===0?!1:this.nodeCharCodeAt(M,M.piece.length-1)===13},_e.prototype.validateCRLFWithPrevNode=function(M){if(this.shouldCheckCRLF()&&this.startWithLF(M)){var P=M.prev();this.endWithCR(P)&&this.fixCRLF(P,M)}},_e.prototype.validateCRLFWithNextNode=function(M){if(this.shouldCheckCRLF()&&this.endWithCR(M)){var P=M.next();this.startWithLF(P)&&this.fixCRLF(M,P)}},_e.prototype.fixCRLF=function(M,P){var Z=[],Ae=this._buffers[M.piece.bufferIndex].lineStarts,xe;M.piece.end.column===0?xe={line:M.piece.end.line-1,column:Ae[M.piece.end.line]-Ae[M.piece.end.line-1]-1}:xe={line:M.piece.end.line,column:M.piece.end.column-1};var Ne=M.piece.length-1,dt=M.piece.lineFeedCnt-1;M.piece=new ft(M.piece.bufferIndex,M.piece.start,xe,dt,Ne),pt(this,M,-1,-1),M.piece.length===0&&Z.push(M);var ht={line:P.piece.start.line+1,column:0},xt=P.piece.length-1,Bt=this.getLineFeedCnt(P.piece.bufferIndex,ht,P.piece.end);P.piece=new ft(P.piece.bufferIndex,ht,P.piece.end,Bt,xt),pt(this,P,-1,-1),P.piece.length===0&&Z.push(P);var Ht=this.createNewPieces(`\r +`);this.rbInsertRight(M,Ht[0]);for(var Ut=0;Ut0){fo.sort(function(Ze,st){return st.lineNumber-Ze.lineNumber}),pe=[];for(var dt=0,D=fo.length;dt0&&fo[dt-1].lineNumber===Ue)continue;var ye=fo[dt].oldContent,We=this.getLineContent(Ue);if(We.length===0||We===ye||I.q(We)!==-1)continue;pe.push(Ue)}}return new u.a(rt,It,pe)},we.prototype._reduceOperations=function(M){return M.length<1e3?M:[this._toSingleEditOperation(M)]},we.prototype._toSingleEditOperation=function(M){for(var P=!1,Z=M[0].range,Ae=M[M.length-1].range,xe=new U.a(Z.startLineNumber,Z.startColumn,Ae.endLineNumber,Ae.endColumn),Ne=Z.startLineNumber,dt=Z.startColumn,ht=[],xt=0,Bt=M.length;xt0){var Ht=ht.lines.length,oo=ht.lines[0],Zt=ht.lines[Ht-1];Ht===1?Ut=new U.a(xt,Bt,xt,Bt+oo.length):Ut=new U.a(xt,Bt,xt+Ht-1,Zt.length+1)}else Ut=new U.a(xt,Bt,xt,Bt);Z=Ut.endLineNumber,Ae=Ut.endColumn,P.push(Ut),xe=ht}return P},we._sortOpsAscending=function(M,P){var Z=U.a.compareRangesUsingEnds(M.range,P.range);return Z===0?M.sortIndex-P.sortIndex:Z},we._sortOpsDescending=function(M,P){var Z=U.a.compareRangesUsingEnds(M.range,P.range);return Z===0?P.sortIndex-M.sortIndex:-Z},we}(),ut=function(){function we(M,P,Z,Ae,xe,Ne,dt,ht){this._chunks=M,this._bom=P,this._cr=Z,this._lf=Ae,this._crlf=xe,this._containsRTL=Ne,this._isBasicASCII=dt,this._normalizeEOL=ht}return we.prototype._getEOL=function(M){var P=this._cr+this._lf+this._crlf,Z=this._cr+this._crlf;return P===0?M===1?` +`;case 0:return this.getEOL()}throw new Error("Unknown EOL preference")},_e.prototype.setEOL=function(M){this._pieceTree.setEOL(M)},_e.prototype.applyEdits=function(M,P){for(var Z=this._mightContainRTL,Ae=this._mightContainNonBasicASCII,xe=!0,Ne=[],dt=0;dt0){fo.sort(function(Ze,st){return st.lineNumber-Ze.lineNumber}),pe=[];for(var dt=0,D=fo.length;dt0&&fo[dt-1].lineNumber===He)continue;var ye=fo[dt].oldContent,We=this.getLineContent(He);if(We.length===0||We===ye||I.q(We)!==-1)continue;pe.push(He)}}return new u.a(rt,It,pe)},_e.prototype._reduceOperations=function(M){return M.length<1e3?M:[this._toSingleEditOperation(M)]},_e.prototype._toSingleEditOperation=function(M){for(var P=!1,Z=M[0].range,Ae=M[M.length-1].range,xe=new H.a(Z.startLineNumber,Z.startColumn,Ae.endLineNumber,Ae.endColumn),Ne=Z.startLineNumber,dt=Z.startColumn,ht=[],xt=0,Bt=M.length;xt0){var Ut=ht.lines.length,oo=ht.lines[0],Zt=ht.lines[Ut-1];Ut===1?Ht=new H.a(xt,Bt,xt,Bt+oo.length):Ht=new H.a(xt,Bt,xt+Ut-1,Zt.length+1)}else Ht=new H.a(xt,Bt,xt,Bt);Z=Ht.endLineNumber,Ae=Ht.endColumn,P.push(Ht),xe=ht}return P},_e._sortOpsAscending=function(M,P){var Z=H.a.compareRangesUsingEnds(M.range,P.range);return Z===0?M.sortIndex-P.sortIndex:Z},_e._sortOpsDescending=function(M,P){var Z=H.a.compareRangesUsingEnds(M.range,P.range);return Z===0?P.sortIndex-M.sortIndex:-Z},_e}(),ut=function(){function _e(M,P,Z,Ae,xe,Ne,dt,ht){this._chunks=M,this._bom=P,this._cr=Z,this._lf=Ae,this._crlf=xe,this._containsRTL=Ne,this._isBasicASCII=dt,this._normalizeEOL=ht}return _e.prototype._getEOL=function(M){var P=this._cr+this._lf+this._crlf,Z=this._cr+this._crlf;return P===0?M===1?` `:`\r `:Z>P/2?`\r `:` -`},we.prototype.create=function(M){var P=this._getEOL(M),Z=this._chunks;if(this._normalizeEOL&&(P===`\r +`},_e.prototype.create=function(M){var P=this._getEOL(M),Z=this._chunks;if(this._normalizeEOL&&(P===`\r `&&(this._cr>0||this._lf>0)||P===` -`&&(this._cr>0||this._crlf>0)))for(var Ae=0,xe=Z.length;Ae=55296&&P<=56319?(this._acceptChunk1(M.substr(0,M.length-1),!1),this._hasPreviousChar=!0,this._previousChar=P):(this._acceptChunk1(M,!1),this._hasPreviousChar=!1,this._previousChar=P)},we.prototype._acceptChunk1=function(M,P){if(!P&&M.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+M):this._acceptChunk2(M)},we.prototype._acceptChunk2=function(M){var P=Pt(this._tmpLineStarts,M);this.chunks.push(new vt(M,P.lineStarts)),this.cr+=P.cr,this.lf+=P.lf,this.crlf+=P.crlf,this.isBasicASCII&&(this.isBasicASCII=P.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=I.i(M))},we.prototype.finish=function(M){return M===void 0&&(M=!0),this._finish(),new ut(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,M)},we.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var M=this.chunks[this.chunks.length-1];M.buffer+=String.fromCharCode(this._previousChar);var P=so(M.buffer);M.lineStarts=P,this._previousChar===13&&this.cr++}},we}(),gt=function(){function we(){this.changeType=1}return we}(),bt=function(){function we(M,P){this.changeType=2,this.lineNumber=M,this.detail=P}return we}(),Gt=function(){function we(M,P){this.changeType=3,this.fromLineNumber=M,this.toLineNumber=P}return we}(),Nt=function(){function we(M,P,Z){this.changeType=4,this.fromLineNumber=M,this.toLineNumber=P,this.detail=Z}return we}(),Et=function(){function we(){this.changeType=5}return we}(),Je=function(){function we(M,P,Z,Ae){this.changes=M,this.versionId=P,this.isUndoing=Z,this.isRedoing=Ae}return we.prototype.containsEvent=function(M){for(var P=0,Z=this.changes.length;P=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},we.prototype._deleteLines=function(M,P){if(P===0)return;M+P>this._len&&(P=this._len-M),this._beginState.splice(M,P),this._valid.splice(M,P),this._len-=P},we.prototype._insertLines=function(M,P){if(P===0)return;for(var Z=[],Ae=[],xe=0;xe=0;Ne--)this._invalidateLine(M.startLineNumber+Ne-1);this._acceptDeleteRange(M),this._acceptInsertText(new O.a(M.startLineNumber,M.startColumn),P)},we.prototype._acceptDeleteRange=function(M){var P=M.startLineNumber-1;if(P>=this._len)return;this._deleteLines(M.startLineNumber,M.endLineNumber-M.startLineNumber)},we.prototype._acceptInsertText=function(M,P){var Z=M.lineNumber-1;if(Z>=this._len)return;this._insertLines(M.lineNumber,P)},we}(),Tt=function(we){ke(M,we);function M(P){var Z=we.call(this)||this;return Z._isDisposed=!1,Z._textModel=P,Z._tokenizationStateStore=new lt,Z._tokenizationSupport=null,Z._register(fe.B.onDidChange(function(Ae){var xe=Z._textModel.getLanguageIdentifier();if(Ae.changedLanguages.indexOf(xe.language)===-1)return;Z._resetTokenizationState(),Z._textModel.clearTokens()})),Z._register(Z._textModel.onDidChangeRawContentFast(function(Ae){if(Ae.containsEvent(1)){Z._resetTokenizationState();return}})),Z._register(Z._textModel.onDidChangeContentFast(function(Ae){for(var xe=0,Ne=Ae.changes.length;xeZ);){var Ne=this._tokenizeOneInvalidLine(Ae);if(Ne>=P)break}this._beginBackgroundTokenization(),this._textModel.setTokens(Ae.tokens)},M.prototype.tokenizeViewport=function(P,Z){var Ae=new Y.b;this._tokenizeViewport(Ae,P,Z),this._textModel.setTokens(Ae.tokens)},M.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},M.prototype.forceTokenization=function(P){var Z=new Y.b;this._updateTokensUntilLine(Z,P),this._textModel.setTokens(Z.tokens)},M.prototype.isCheapToTokenize=function(P){if(!this._tokenizationSupport)return!0;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return P>Z?!1:P0&&ht>=1;ht--){var xt=this._textModel.getLineFirstNonWhitespaceColumn(ht);if(xt===0)continue;if(xt=0;ht--){var Ht=eo(Bt,this._tokenizationSupport,Ne[ht],Ut);Ut=Ht.endState}for(var oo=Z;oo<=Ae;oo++){var Zt=this._textModel.getLineContent(oo),Ht=eo(Bt,this._tokenizationSupport,Zt,Ut);P.add(oo,Ht.tokens),this._tokenizationStateStore.setFakeTokens(oo-1),Ut=Ht.endState}},M}(J.a);function Jt(we){var M=we.getLanguageIdentifier(),P=we.isTooLargeForTokenization()?null:fe.B.get(M.language),Z=null;if(P)try{Z=P.getInitialState()}catch(Ae){Object(T.e)(Ae),P=null}return[P,Z]}function eo(we,M,P,Z){var Ae=null;if(M)try{Ae=M.tokenize2(P,Z.clone(),0)}catch(xe){Object(T.e)(xe)}return Ae||(Ae=Object(G.e)(we.id,P,Z,0)),Ke.a.convertToEndOffset(Ae.tokens,P.length),Ae}var po=e("0JNc"),co=e("cMvZ"),Eo=e("BFtn"),Oo=e("EIAu"),Ao=e("746U"),Zo=e("zrhQ"),Co=function(){var we=function(P,Z){return we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,xe){Ae.__proto__=xe}||function(Ae,xe){for(var Ne in xe)xe.hasOwnProperty(Ne)&&(Ae[Ne]=xe[Ne])},we(P,Z)};return function(M,P){we(M,P);function Z(){this.constructor=M}M.prototype=P===null?Object.create(P):(Z.prototype=P.prototype,new Z)}}();function Wo(){return new Ct}function Go(we){var M=Wo();return M.acceptChunk(we),M.finish()}function Bo(we,M){var P=typeof we=="string"?Go(we):we;return P.create(M)}var Mo=0,Qo=999,fn=1e4,Vo=function(){throw new Error("Invalid change accessor")},mn=function(we){Co(M,we);function M(P,Z,Ae,xe){xe===void 0&&(xe=null);var Ne=we.call(this)||this;Ne._onWillDispose=Ne._register(new re.a),Ne.onWillDispose=Ne._onWillDispose.event,Ne._onDidChangeDecorations=Ne._register(new nt),Ne.onDidChangeDecorations=Ne._onDidChangeDecorations.event,Ne._onDidChangeLanguage=Ne._register(new re.a),Ne.onDidChangeLanguage=Ne._onDidChangeLanguage.event,Ne._onDidChangeLanguageConfiguration=Ne._register(new re.a),Ne.onDidChangeLanguageConfiguration=Ne._onDidChangeLanguageConfiguration.event,Ne._onDidChangeTokens=Ne._register(new re.a),Ne.onDidChangeTokens=Ne._onDidChangeTokens.event,Ne._onDidChangeOptions=Ne._register(new re.a),Ne.onDidChangeOptions=Ne._onDidChangeOptions.event,Ne._onDidChangeAttached=Ne._register(new re.a),Ne.onDidChangeAttached=Ne._onDidChangeAttached.event,Ne._eventEmitter=Ne._register(new Dt),Mo++,Ne.id="$model"+Mo,Ne.isForSimpleWidget=Z.isForSimpleWidget,typeof xe=="undefined"||xe===null?Ne._associatedResource=H.a.parse("inmemory://model/"+Mo):Ne._associatedResource=xe,Ne._attachedEditorCount=0,Ne._buffer=Bo(P,Z.defaultEOL),Ne._options=M.resolveOptions(Ne._buffer,Z);var dt=Ne._buffer.getLineCount(),ht=Ne._buffer.getValueLengthInRange(new U.a(1,1,dt,Ne._buffer.getLineLength(dt)+1),0);return Z.largeFileOptimizations?Ne._isTooLargeForTokenization=ht>M.LARGE_FILE_SIZE_THRESHOLD||dt>M.LARGE_FILE_LINE_COUNT_THRESHOLD:Ne._isTooLargeForTokenization=!1,Ne._isTooLargeForSyncing=ht>M.MODEL_SYNC_LIMIT,Ne._versionId=1,Ne._alternativeVersionId=1,Ne._isDisposed=!1,Ne._isDisposing=!1,Ne._languageIdentifier=Ae||G.a,Ne._languageRegistryListener=co.a.onDidChange(function(xt){xt.languageIdentifier.id===Ne._languageIdentifier.id&&Ne._onDidChangeLanguageConfiguration.fire({})}),Ne._instanceId=I.M(Mo),Ne._lastDecorationId=0,Ne._decorations=Object.create(null),Ne._decorationsTree=new yn,Ne._commandManager=new v(Ne),Ne._isUndoing=!1,Ne._isRedoing=!1,Ne._trimAutoWhitespaceLines=null,Ne._tokens=new Y.d,Ne._tokens2=new Y.e,Ne._tokenization=new Tt(Ne),Ne}return M.createFromString=function(P,Z,Ae,xe){return Z===void 0&&(Z=M.DEFAULT_CREATION_OPTIONS),Ae===void 0&&(Ae=null),xe===void 0&&(xe=null),new M(P,Z,Ae,xe)},M.resolveOptions=function(P,Z){if(Z.detectIndentation){var Ae=c(P,Z.tabSize,Z.insertSpaces);return new u.e({tabSize:Ae.tabSize,indentSize:Ae.tabSize,insertSpaces:Ae.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new u.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})},M.prototype.onDidChangeRawContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeRawContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.onDidChangeContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,we.prototype.dispose.call(this),this._isDisposing=!1},M.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},M.prototype._emitContentChangedEvent=function(P,Z){if(this._isDisposing)return;this._eventEmitter.fire(new $e(P,Z))},M.prototype.setValue=function(P){if(this._assertNotDisposed(),P===null)return;var Z=Bo(P,this._options.defaultEOL);this.setValueFromTextBuffer(Z)},M.prototype._createContentChanged2=function(P,Z,Ae,xe,Ne,dt,ht){return{changes:[{range:P,rangeOffset:Z,rangeLength:Ae,text:xe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ne,isRedoing:dt,isFlush:ht}},M.prototype.setValueFromTextBuffer=function(P){if(this._assertNotDisposed(),P===null)return;var Z=this.getFullModelRange(),Ae=this.getValueLengthInRange(Z),xe=this.getLineCount(),Ne=this.getLineMaxColumn(xe);this._buffer=P,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new yn,this._commandManager=new v(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Je([new gt],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,xe,Ne),0,Ae,this.getValue(),!1,!1,!0))},M.prototype.setEOL=function(P){this._assertNotDisposed();var Z=P===1?`\r +`&&(this._cr>0||this._crlf>0)))for(var Ae=0,xe=Z.length;Ae=55296&&P<=56319?(this._acceptChunk1(M.substr(0,M.length-1),!1),this._hasPreviousChar=!0,this._previousChar=P):(this._acceptChunk1(M,!1),this._hasPreviousChar=!1,this._previousChar=P)},_e.prototype._acceptChunk1=function(M,P){if(!P&&M.length===0)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+M):this._acceptChunk2(M)},_e.prototype._acceptChunk2=function(M){var P=Pt(this._tmpLineStarts,M);this.chunks.push(new vt(M,P.lineStarts)),this.cr+=P.cr,this.lf+=P.lf,this.crlf+=P.crlf,this.isBasicASCII&&(this.isBasicASCII=P.isBasicASCII),!this.isBasicASCII&&!this.containsRTL&&(this.containsRTL=I.i(M))},_e.prototype.finish=function(M){return M===void 0&&(M=!0),this._finish(),new ut(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,M)},_e.prototype._finish=function(){if(this.chunks.length===0&&this._acceptChunk1("",!0),this._hasPreviousChar){this._hasPreviousChar=!1;var M=this.chunks[this.chunks.length-1];M.buffer+=String.fromCharCode(this._previousChar);var P=so(M.buffer);M.lineStarts=P,this._previousChar===13&&this.cr++}},_e}(),gt=function(){function _e(){this.changeType=1}return _e}(),bt=function(){function _e(M,P){this.changeType=2,this.lineNumber=M,this.detail=P}return _e}(),Gt=function(){function _e(M,P){this.changeType=3,this.fromLineNumber=M,this.toLineNumber=P}return _e}(),Nt=function(){function _e(M,P,Z){this.changeType=4,this.fromLineNumber=M,this.toLineNumber=P,this.detail=Z}return _e}(),Et=function(){function _e(){this.changeType=5}return _e}(),Je=function(){function _e(M,P,Z,Ae){this.changes=M,this.versionId=P,this.isUndoing=Z,this.isRedoing=Ae}return _e.prototype.containsEvent=function(M){for(var P=0,Z=this.changes.length;P=this._len;)this._beginState[this._len]=null,this._valid[this._len]=!1,this._len++},_e.prototype._deleteLines=function(M,P){if(P===0)return;M+P>this._len&&(P=this._len-M),this._beginState.splice(M,P),this._valid.splice(M,P),this._len-=P},_e.prototype._insertLines=function(M,P){if(P===0)return;for(var Z=[],Ae=[],xe=0;xe=0;Ne--)this._invalidateLine(M.startLineNumber+Ne-1);this._acceptDeleteRange(M),this._acceptInsertText(new O.a(M.startLineNumber,M.startColumn),P)},_e.prototype._acceptDeleteRange=function(M){var P=M.startLineNumber-1;if(P>=this._len)return;this._deleteLines(M.startLineNumber,M.endLineNumber-M.startLineNumber)},_e.prototype._acceptInsertText=function(M,P){var Z=M.lineNumber-1;if(Z>=this._len)return;this._insertLines(M.lineNumber,P)},_e}(),Tt=function(_e){ke(M,_e);function M(P){var Z=_e.call(this)||this;return Z._isDisposed=!1,Z._textModel=P,Z._tokenizationStateStore=new lt,Z._tokenizationSupport=null,Z._register(fe.B.onDidChange(function(Ae){var xe=Z._textModel.getLanguageIdentifier();if(Ae.changedLanguages.indexOf(xe.language)===-1)return;Z._resetTokenizationState(),Z._textModel.clearTokens()})),Z._register(Z._textModel.onDidChangeRawContentFast(function(Ae){if(Ae.containsEvent(1)){Z._resetTokenizationState();return}})),Z._register(Z._textModel.onDidChangeContentFast(function(Ae){for(var xe=0,Ne=Ae.changes.length;xeZ);){var Ne=this._tokenizeOneInvalidLine(Ae);if(Ne>=P)break}this._beginBackgroundTokenization(),this._textModel.setTokens(Ae.tokens)},M.prototype.tokenizeViewport=function(P,Z){var Ae=new Y.b;this._tokenizeViewport(Ae,P,Z),this._textModel.setTokens(Ae.tokens)},M.prototype.reset=function(){this._resetTokenizationState(),this._textModel.clearTokens()},M.prototype.forceTokenization=function(P){var Z=new Y.b;this._updateTokensUntilLine(Z,P),this._textModel.setTokens(Z.tokens)},M.prototype.isCheapToTokenize=function(P){if(!this._tokenizationSupport)return!0;var Z=this._tokenizationStateStore.invalidLineStartIndex+1;return P>Z?!1:P0&&ht>=1;ht--){var xt=this._textModel.getLineFirstNonWhitespaceColumn(ht);if(xt===0)continue;if(xt=0;ht--){var Ut=eo(Bt,this._tokenizationSupport,Ne[ht],Ht);Ht=Ut.endState}for(var oo=Z;oo<=Ae;oo++){var Zt=this._textModel.getLineContent(oo),Ut=eo(Bt,this._tokenizationSupport,Zt,Ht);P.add(oo,Ut.tokens),this._tokenizationStateStore.setFakeTokens(oo-1),Ht=Ut.endState}},M}(J.a);function Jt(_e){var M=_e.getLanguageIdentifier(),P=_e.isTooLargeForTokenization()?null:fe.B.get(M.language),Z=null;if(P)try{Z=P.getInitialState()}catch(Ae){Object(T.e)(Ae),P=null}return[P,Z]}function eo(_e,M,P,Z){var Ae=null;if(M)try{Ae=M.tokenize2(P,Z.clone(),0)}catch(xe){Object(T.e)(xe)}return Ae||(Ae=Object(G.e)(_e.id,P,Z,0)),Ke.a.convertToEndOffset(Ae.tokens,P.length),Ae}var po=e("0JNc"),co=e("cMvZ"),Eo=e("BFtn"),Oo=e("EIAu"),Ao=e("746U"),Zo=e("zrhQ"),Co=function(){var _e=function(P,Z){return _e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,xe){Ae.__proto__=xe}||function(Ae,xe){for(var Ne in xe)xe.hasOwnProperty(Ne)&&(Ae[Ne]=xe[Ne])},_e(P,Z)};return function(M,P){_e(M,P);function Z(){this.constructor=M}M.prototype=P===null?Object.create(P):(Z.prototype=P.prototype,new Z)}}();function Wo(){return new Ct}function Go(_e){var M=Wo();return M.acceptChunk(_e),M.finish()}function Bo(_e,M){var P=typeof _e=="string"?Go(_e):_e;return P.create(M)}var Mo=0,Qo=999,fn=1e4,Vo=function(){throw new Error("Invalid change accessor")},mn=function(_e){Co(M,_e);function M(P,Z,Ae,xe){xe===void 0&&(xe=null);var Ne=_e.call(this)||this;Ne._onWillDispose=Ne._register(new re.a),Ne.onWillDispose=Ne._onWillDispose.event,Ne._onDidChangeDecorations=Ne._register(new nt),Ne.onDidChangeDecorations=Ne._onDidChangeDecorations.event,Ne._onDidChangeLanguage=Ne._register(new re.a),Ne.onDidChangeLanguage=Ne._onDidChangeLanguage.event,Ne._onDidChangeLanguageConfiguration=Ne._register(new re.a),Ne.onDidChangeLanguageConfiguration=Ne._onDidChangeLanguageConfiguration.event,Ne._onDidChangeTokens=Ne._register(new re.a),Ne.onDidChangeTokens=Ne._onDidChangeTokens.event,Ne._onDidChangeOptions=Ne._register(new re.a),Ne.onDidChangeOptions=Ne._onDidChangeOptions.event,Ne._onDidChangeAttached=Ne._register(new re.a),Ne.onDidChangeAttached=Ne._onDidChangeAttached.event,Ne._eventEmitter=Ne._register(new Dt),Mo++,Ne.id="$model"+Mo,Ne.isForSimpleWidget=Z.isForSimpleWidget,typeof xe=="undefined"||xe===null?Ne._associatedResource=U.a.parse("inmemory://model/"+Mo):Ne._associatedResource=xe,Ne._attachedEditorCount=0,Ne._buffer=Bo(P,Z.defaultEOL),Ne._options=M.resolveOptions(Ne._buffer,Z);var dt=Ne._buffer.getLineCount(),ht=Ne._buffer.getValueLengthInRange(new H.a(1,1,dt,Ne._buffer.getLineLength(dt)+1),0);return Z.largeFileOptimizations?Ne._isTooLargeForTokenization=ht>M.LARGE_FILE_SIZE_THRESHOLD||dt>M.LARGE_FILE_LINE_COUNT_THRESHOLD:Ne._isTooLargeForTokenization=!1,Ne._isTooLargeForSyncing=ht>M.MODEL_SYNC_LIMIT,Ne._versionId=1,Ne._alternativeVersionId=1,Ne._isDisposed=!1,Ne._isDisposing=!1,Ne._languageIdentifier=Ae||G.a,Ne._languageRegistryListener=co.a.onDidChange(function(xt){xt.languageIdentifier.id===Ne._languageIdentifier.id&&Ne._onDidChangeLanguageConfiguration.fire({})}),Ne._instanceId=I.M(Mo),Ne._lastDecorationId=0,Ne._decorations=Object.create(null),Ne._decorationsTree=new yn,Ne._commandManager=new v(Ne),Ne._isUndoing=!1,Ne._isRedoing=!1,Ne._trimAutoWhitespaceLines=null,Ne._tokens=new Y.d,Ne._tokens2=new Y.e,Ne._tokenization=new Tt(Ne),Ne}return M.createFromString=function(P,Z,Ae,xe){return Z===void 0&&(Z=M.DEFAULT_CREATION_OPTIONS),Ae===void 0&&(Ae=null),xe===void 0&&(xe=null),new M(P,Z,Ae,xe)},M.resolveOptions=function(P,Z){if(Z.detectIndentation){var Ae=c(P,Z.tabSize,Z.insertSpaces);return new u.e({tabSize:Ae.tabSize,indentSize:Ae.tabSize,insertSpaces:Ae.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})}return new u.e({tabSize:Z.tabSize,indentSize:Z.indentSize,insertSpaces:Z.insertSpaces,trimAutoWhitespace:Z.trimAutoWhitespace,defaultEOL:Z.defaultEOL})},M.prototype.onDidChangeRawContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeRawContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.rawContentChangedEvent)})},M.prototype.onDidChangeContentFast=function(P){return this._eventEmitter.fastEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.onDidChangeContent=function(P){return this._eventEmitter.slowEvent(function(Z){return P(Z.contentChangedEvent)})},M.prototype.dispose=function(){this._isDisposing=!0,this._onWillDispose.fire(),this._languageRegistryListener.dispose(),this._tokenization.dispose(),this._isDisposed=!0,_e.prototype.dispose.call(this),this._isDisposing=!1},M.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")},M.prototype._emitContentChangedEvent=function(P,Z){if(this._isDisposing)return;this._eventEmitter.fire(new $e(P,Z))},M.prototype.setValue=function(P){if(this._assertNotDisposed(),P===null)return;var Z=Bo(P,this._options.defaultEOL);this.setValueFromTextBuffer(Z)},M.prototype._createContentChanged2=function(P,Z,Ae,xe,Ne,dt,ht){return{changes:[{range:P,rangeOffset:Z,rangeLength:Ae,text:xe}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:Ne,isRedoing:dt,isFlush:ht}},M.prototype.setValueFromTextBuffer=function(P){if(this._assertNotDisposed(),P===null)return;var Z=this.getFullModelRange(),Ae=this.getValueLengthInRange(Z),xe=this.getLineCount(),Ne=this.getLineMaxColumn(xe);this._buffer=P,this._increaseVersionId(),this._tokens.flush(),this._tokens2.flush(),this._decorations=Object.create(null),this._decorationsTree=new yn,this._commandManager=new v(this),this._trimAutoWhitespaceLines=null,this._emitContentChangedEvent(new Je([new gt],this._versionId,!1,!1),this._createContentChanged2(new H.a(1,1,xe,Ne),0,Ae,this.getValue(),!1,!1,!0))},M.prototype.setEOL=function(P){this._assertNotDisposed();var Z=P===1?`\r `:` -`;if(this._buffer.getEOL()===Z)return;var Ae=this.getFullModelRange(),xe=this.getValueLengthInRange(Ae),Ne=this.getLineCount(),dt=this.getLineMaxColumn(Ne);this._onBeforeEOLChange(),this._buffer.setEOL(Z),this._increaseVersionId(),this._onAfterEOLChange(),this._emitContentChangedEvent(new Je([new Et],this._versionId,!1,!1),this._createContentChanged2(new U.a(1,1,Ne,dt),0,xe,this.getValue(),!1,!1,!1))},M.prototype._onBeforeEOLChange=function(){var P=this.getVersionId(),Z=this._decorationsTree.search(0,!1,!1,P);this._ensureNodesHaveRanges(Z)},M.prototype._onAfterEOLChange=function(){for(var P=this.getVersionId(),Z=this._decorationsTree.collectNodesPostOrder(),Ae=0,xe=Z.length;Ae0},M.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},M.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},M.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},M.prototype.isDisposed=function(){return this._isDisposed},M.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var P=0,Z=0,Ae=this._buffer.getLineCount(),xe=1;xe<=Ae;xe++){var Ne=this._buffer.getLineLength(xe);Ne>=fn?Z+=Ne:P+=Ne}return Z>P},Object.defineProperty(M.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),M.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},M.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},M.prototype.updateOptions=function(P){this._assertNotDisposed();var Z=typeof P.tabSize!="undefined"?P.tabSize:this._options.tabSize,Ae=typeof P.indentSize!="undefined"?P.indentSize:this._options.indentSize,xe=typeof P.insertSpaces!="undefined"?P.insertSpaces:this._options.insertSpaces,Ne=typeof P.trimAutoWhitespace!="undefined"?P.trimAutoWhitespace:this._options.trimAutoWhitespace,dt=new u.e({tabSize:Z,indentSize:Ae,insertSpaces:xe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ne});if(this._options.equals(dt))return;var ht=this._options.createChangeEvent(dt);this._options=dt,this._onDidChangeOptions.fire(ht)},M.prototype.detectIndentation=function(P,Z){this._assertNotDisposed();var Ae=c(this._buffer,Z,P);this.updateOptions({insertSpaces:Ae.insertSpaces,tabSize:Ae.tabSize,indentSize:Ae.tabSize})},M._normalizeIndentationFromWhitespace=function(P,Z,Ae){for(var xe=0,Ne=0;Nethis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(P)},M.prototype.getLineLength=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)},M.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},M.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},M.prototype.getLineMinColumn=function(P){return this._assertNotDisposed(),1},M.prototype.getLineMaxColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)+1},M.prototype.getLineFirstNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(P)},M.prototype.getLineLastNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(P)},M.prototype._validateRangeRelaxedNoAllocations=function(P){var Z=this._buffer.getLineCount(),Ae=P.startLineNumber,xe=P.startColumn,Ne,dt;if(Ae<1)Ne=1,dt=1;else if(Ae>Z)Ne=Z,dt=this.getLineMaxColumn(Ne);else if(Ne=Ae|0,xe<=1)dt=1;else{var ht=this.getLineMaxColumn(Ne);xe>=ht?dt=ht:dt=xe|0}var xt=P.endLineNumber,Bt=P.endColumn,Ut,Ht;if(xt<1)Ut=1,Ht=1;else if(xt>Z)Ut=Z,Ht=this.getLineMaxColumn(Ut);else if(Ut=xt|0,Bt<=1)Ht=1;else{var ht=this.getLineMaxColumn(Ut);Bt>=ht?Ht=ht:Ht=Bt|0}return Ae===Ne&&xe===dt&&xt===Ut&&Bt===Ht&&P instanceof U.a&&!(P instanceof x.a)?P:new U.a(Ne,dt,Ut,Ht)},M.prototype._isValidPosition=function(P,Z,Ae){if(typeof P!="number"||typeof Z!="number")return!1;if(isNaN(P)||isNaN(Z))return!1;if(P<1||Z<1)return!1;if((P|0)!==P||(Z|0)!==Z)return!1;var xe=this._buffer.getLineCount();if(P>xe)return!1;if(Z===1)return!0;var Ne=this.getLineMaxColumn(P);if(Z>Ne)return!1;if(Ae===1){var dt=this._buffer.getLineCharCode(P,Z-2);if(I.z(dt))return!1}return!0},M.prototype._validatePosition=function(P,Z,Ae){var xe=Math.floor(typeof P=="number"&&!isNaN(P)?P:1),Ne=Math.floor(typeof Z=="number"&&!isNaN(Z)?Z:1),dt=this._buffer.getLineCount();if(xe<1)return new O.a(1,1);if(xe>dt)return new O.a(dt,this.getLineMaxColumn(dt));if(Ne<=1)return new O.a(xe,1);var ht=this.getLineMaxColumn(xe);if(Ne>=ht)return new O.a(xe,ht);if(Ae===1){var xt=this._buffer.getLineCharCode(xe,Ne-2);if(I.z(xt))return new O.a(xe,Ne-1)}return new O.a(xe,Ne)},M.prototype.validatePosition=function(P){var Z=1;return this._assertNotDisposed(),P instanceof O.a&&this._isValidPosition(P.lineNumber,P.column,Z)?P:this._validatePosition(P.lineNumber,P.column,Z)},M.prototype._isValidRange=function(P,Z){var Ae=P.startLineNumber,xe=P.startColumn,Ne=P.endLineNumber,dt=P.endColumn;if(!this._isValidPosition(Ae,xe,0))return!1;if(!this._isValidPosition(Ne,dt,0))return!1;if(Z===1){var ht=xe>1?this._buffer.getLineCharCode(Ae,xe-2):0,xt=dt>1&&dt<=this._buffer.getLineLength(Ne)?this._buffer.getLineCharCode(Ne,dt-2):0,Bt=I.z(ht),Ut=I.z(xt);return!Bt&&!Ut}return!0},M.prototype.validateRange=function(P){var Z=1;if(this._assertNotDisposed(),P instanceof U.a&&!(P instanceof x.a)&&this._isValidRange(P,Z))return P;var Ae=this._validatePosition(P.startLineNumber,P.startColumn,0),xe=this._validatePosition(P.endLineNumber,P.endColumn,0),Ne=Ae.lineNumber,dt=Ae.column,ht=xe.lineNumber,xt=xe.column;if(Z===1){var Bt=dt>1?this._buffer.getLineCharCode(Ne,dt-2):0,Ut=xt>1&&xt<=this._buffer.getLineLength(ht)?this._buffer.getLineCharCode(ht,xt-2):0,Ht=I.z(Bt),oo=I.z(Ut);return!Ht&&!oo?new U.a(Ne,dt,ht,xt):Ne===ht&&dt===xt?new U.a(Ne,dt-1,ht,xt-1):Ht&&oo?new U.a(Ne,dt-1,ht,xt+1):Ht?new U.a(Ne,dt-1,ht,xt):new U.a(Ne,dt,ht,xt+1)}return new U.a(Ne,dt,ht,xt)},M.prototype.modifyPosition=function(P,Z){this._assertNotDisposed();var Ae=this.getOffsetAt(P)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,Ae)))},M.prototype.getFullModelRange=function(){this._assertNotDisposed();var P=this.getLineCount();return new U.a(1,1,P,this.getLineMaxColumn(P))},M.prototype.findMatchesLineByLine=function(P,Z,Ae,xe){return this._buffer.findMatchesLineByLine(P,Z,Ae,xe)},M.prototype.findMatches=function(P,Z,Ae,xe,Ne,dt,ht){ht===void 0&&(ht=Qo),this._assertNotDisposed();var xt;if(U.a.isIRange(Z)?xt=this.validateRange(Z):xt=this.getFullModelRange(),!Ae&&P.indexOf(` -`)<0){var Bt=new Mt.a(P,Ae,xe,Ne),Ut=Bt.parseSearchRequest();return Ut?this.findMatchesLineByLine(xt,Ut,dt,ht):[]}return Mt.c.findMatches(this,new Mt.a(P,Ae,xe,Ne),xt,dt,ht)},M.prototype.findNextMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);if(!Ae&&P.indexOf(` -`)<0){var xt=new Mt.a(P,Ae,xe,Ne),Bt=xt.parseSearchRequest();if(!Bt)return null;var Ut=this.getLineCount(),Ht=new U.a(ht.lineNumber,ht.column,Ut,this.getLineMaxColumn(Ut)),oo=this.findMatchesLineByLine(Ht,Bt,dt,1);return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt),oo.length>0?oo[0]:(Ht=new U.a(1,1,ht.lineNumber,this.getLineMaxColumn(ht.lineNumber)),oo=this.findMatchesLineByLine(Ht,Bt,dt,1),oo.length>0?oo[0]:null)}return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.findPreviousMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);return Mt.c.findPreviousMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},M.prototype.pushEOL=function(P){var Z=this.getEOL()===` -`?0:1;if(Z===P)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.pushEditOperations=function(P,Z,Ae){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(P,Z,Ae)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._pushEditOperations=function(P,Z,Ae){var xe=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ne=Z.map(function(pe){return{range:xe.validateRange(pe.range),text:pe.text}}),dt=!0,ht=0,xt=P.length;htBt.endLineNumber,yt=Bt.startLineNumber>Zt.endLineNumber;if(!fo&&!yt){Ut=!0;break}}if(!Ut){dt=!1;break}}if(dt)for(var ht=0,xt=this._trimAutoWhitespaceLines.length;htZt.endLineNumber)continue;if(Ue===Zt.startLineNumber&&Zt.startColumn===Oe&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(0)===` -`)continue;if(Ue===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(It.length-1)===` -`)continue;rt=!1;break}rt&&Z.push({range:new U.a(Ue,1,Ue,Oe),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(P,Z,Ae)},M.prototype.applyEdits=function(P){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._applyEdits=function(P){for(var Z=0,Ae=P.length;Z0?Ut.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ut.rangeOffset,Ut.rangeLength,Ut.text.length,Ut.forceMoveMarkers);for(var yt=Ut.range.startLineNumber,Ue=Ut.range.endLineNumber,Oe=Ue-yt,rt=oo,It=Math.min(Oe,rt),pe=rt-Oe,D=It;D>=0;D--){var ye=yt+D,We=dt-Bt-pe+ye;xt.push(new bt(ye,this.getLineContent(We)))}if(Itthis.getLineCount()?[]:this.getLinesDecorations(P,P,Z,Ae)},M.prototype.getLinesDecorations=function(P,Z,Ae,xe){Ae===void 0&&(Ae=0),xe===void 0&&(xe=!1);var Ne=this.getLineCount(),dt=Math.min(Ne,Math.max(1,P)),ht=Math.min(Ne,Math.max(1,Z)),xt=this.getLineMaxColumn(ht);return this._getDecorationsInRange(new U.a(dt,1,ht,xt),Ae,xe)},M.prototype.getDecorationsInRange=function(P,Z,Ae){Z===void 0&&(Z=0),Ae===void 0&&(Ae=!1);var xe=this.validateRange(P);return this._getDecorationsInRange(xe,Z,Ae)},M.prototype.getOverviewRulerDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!0,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype.getAllDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!1,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype._getDecorationsInRange=function(P,Z,Ae){var xe=this._buffer.getOffsetAt(P.startLineNumber,P.startColumn),Ne=this._buffer.getOffsetAt(P.endLineNumber,P.endColumn),dt=this.getVersionId(),ht=this._decorationsTree.intervalSearch(xe,Ne,Z,Ae,dt);return this._ensureNodesHaveRanges(ht)},M.prototype._ensureNodesHaveRanges=function(P){for(var Z=0,Ae=P.length;Zthis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,P-1,this._buffer.getLineLength(P),Z)},M.prototype.setTokens=function(P){if(P.length===0)return;for(var Z=[],Ae=0,xe=P.length;Aethis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(P)},M.prototype.isCheapToTokenize=function(P){return this._tokenization.isCheapToTokenize(P)},M.prototype.tokenizeIfCheap=function(P){this.isCheapToTokenize(P)&&this.forceTokenization(P)},M.prototype.getLineTokens=function(P){if(P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(P)},M.prototype._getLineTokens=function(P){var Z=this.getLineContent(P),Ae=this._tokens.getTokens(this._languageIdentifier.id,P-1,Z);return this._tokens2.addSemanticTokens(P,Ae)},M.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},M.prototype.getModeId=function(){return this._languageIdentifier.language},M.prototype.setMode=function(P){if(this._languageIdentifier.id===P.id)return;var Z={oldLanguage:this._languageIdentifier.language,newLanguage:P.language};this._languageIdentifier=P,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})},M.prototype.getLanguageIdAtPosition=function(P,Z){var Ae=this.validatePosition(new O.a(P,Z)),xe=this.getLineTokens(Ae.lineNumber);return xe.getLanguageId(xe.findTokenIndexAtOffset(Ae.column-1))},M.prototype.getWordAtPosition=function(P){this._assertNotDisposed();var Z=this.validatePosition(P),Ae=this.getLineContent(Z.lineNumber),xe=this._getLineTokens(Z.lineNumber),Ne=xe.findTokenIndexAtOffset(Z.column-1),dt=M._findLanguageBoundaries(xe,Ne),ht=dt[0],xt=dt[1],Bt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne)),Ae.substring(ht,xt),ht);if(Bt&&Bt.startColumn<=P.column&&P.column<=Bt.endColumn)return Bt;if(Ne>0&&ht===Z.column-1){var Ut=M._findLanguageBoundaries(xe,Ne-1),Ht=Ut[0],oo=Ut[1],Zt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne-1)),Ae.substring(Ht,oo),Ht);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn)return Zt}return null},M._findLanguageBoundaries=function(P,Z){for(var Ae=P.getLanguageId(Z),xe=0,Ne=Z;Ne>=0&&P.getLanguageId(Ne)===Ae;Ne--)xe=P.getStartOffset(Ne);for(var dt=P.getLineContent().length,Ne=Z,ht=P.getCount();Ne=0;Bt--){var Ut=Ae.getEndOffset(Bt);if(Ut<=xt)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(xt=Ut)}for(var Ht=Math.min(Ne.length,P.column-1+ht.maxBracketLength),oo=null;;){var Zt=Oo.a.findNextBracketInRange(ht.forwardRegex,Z,Ne,xt,Ht);if(!Zt)break;if(Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,ht.textIsBracket[fo],ht.textIsOpenBracket[fo]);yt&&(oo=yt)}xt=Zt.endColumn-1}if(oo)return oo}if(dt>0&&Ae.getStartOffset(dt)===P.column-1){var Ue=dt-1,Oe=co.a.getBracketsSupport(Ae.getLanguageId(Ue));if(Oe&&!Object(Eo.b)(Ae.getStandardTokenType(Ue))){for(var xt=Math.max(0,P.column-1-Oe.maxBracketLength),Ht=Math.min(Ne.length,P.column-1+Oe.maxBracketLength),Bt=Ue+1;Bt=Ht)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(Ht=rt)}var Zt=Oo.a.findPrevBracketInRange(Oe.reversedRegex,Z,Ne,xt,Ht);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,Oe.textIsBracket[fo],Oe.textIsOpenBracket[fo]);if(yt)return yt}}}return null},M.prototype._matchFoundBracket=function(P,Z,Ae){if(!Z)return null;if(Ae){var xe=this._findMatchingBracketDown(Z,P.getEndPosition());if(xe)return[P,xe]}else{var xe=this._findMatchingBracketUp(Z,P.getStartPosition());if(xe)return[P,xe]}return null},M.prototype._findMatchingBracketUp=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.reversedRegex,Ne=-1,dt=function(rt,It,pe,D){for(;;){var ye=Oo.a.findPrevBracketInRange(xe,rt,It,pe,D);if(!ye)break;var We=It.substring(ye.startColumn-1,ye.endColumn-1).toLowerCase();if(P.isOpen(We)?Ne++:P.isClose(We)&&Ne--,Ne===0)return ye;D=ye.startColumn-1}return null},ht=Z.lineNumber;ht>=1;ht--){var xt=this._getLineTokens(ht),Bt=xt.getCount(),Ut=this._buffer.getLineContent(ht),Ht=Bt-1,oo=Ut.length,Zt=Ut.length;ht===Z.lineNumber&&(Ht=xt.findTokenIndexAtOffset(Z.column-1),oo=Z.column-1,Zt=Z.column-1);for(var fo=!0;Ht>=0;Ht--){var yt=xt.getLanguageId(Ht)===Ae&&!Object(Eo.b)(xt.getStandardTokenType(Ht));if(yt)fo?oo=xt.getStartOffset(Ht):(oo=xt.getStartOffset(Ht),Zt=xt.getEndOffset(Ht));else if(fo&&oo!==Zt){var Ue=dt(ht,Ut,oo,Zt);if(Ue)return Ue}fo=yt}if(fo&&oo!==Zt){var Ue=dt(ht,Ut,oo,Zt);if(Ue)return Ue}}return null},M.prototype._findMatchingBracketDown=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.forwardRegex,Ne=1,dt=function(It,pe,D,ye){for(;;){var We=Oo.a.findNextBracketInRange(xe,It,pe,D,ye);if(!We)break;var Ze=pe.substring(We.startColumn-1,We.endColumn-1).toLowerCase();if(P.isOpen(Ze)?Ne++:P.isClose(Ze)&&Ne--,Ne===0)return We;D=We.endColumn-1}return null},ht=this.getLineCount(),xt=Z.lineNumber;xt<=ht;xt++){var Bt=this._getLineTokens(xt),Ut=Bt.getCount(),Ht=this._buffer.getLineContent(xt),oo=0,Zt=0,fo=0;xt===Z.lineNumber&&(oo=Bt.findTokenIndexAtOffset(Z.column-1),Zt=Z.column-1,fo=Z.column-1);for(var yt=!0;oo=1;Ne--){var dt=this._getLineTokens(Ne),ht=dt.getCount(),xt=this._buffer.getLineContent(Ne),Bt=ht-1,Ut=xt.length,Ht=xt.length;if(Ne===Z.lineNumber){Bt=dt.findTokenIndexAtOffset(Z.column-1),Ut=Z.column-1,Ht=Z.column-1;var oo=dt.getLanguageId(Bt);Ae!==oo&&(Ae=oo,xe=co.a.getBracketsSupport(Ae))}for(var Zt=!0;Bt>=0;Bt--){var oo=dt.getLanguageId(Bt);if(Ae!==oo){if(xe&&Zt&&Ut!==Ht){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ut,Ht);if(fo)return this._toFoundBracket(xe,fo);Zt=!1}Ae=oo,xe=co.a.getBracketsSupport(Ae)}var yt=!!xe&&!Object(Eo.b)(dt.getStandardTokenType(Bt));if(yt)Zt?Ut=dt.getStartOffset(Bt):(Ut=dt.getStartOffset(Bt),Ht=dt.getEndOffset(Bt));else if(xe&&Zt&&Ut!==Ht){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ut,Ht);if(fo)return this._toFoundBracket(xe,fo)}Zt=yt}if(xe&&Zt&&Ut!==Ht){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ut,Ht);if(fo)return this._toFoundBracket(xe,fo)}}return null},M.prototype.findNextBracket=function(P){for(var Z=this.validatePosition(P),Ae=this.getLineCount(),xe=-1,Ne=null,dt=Z.lineNumber;dt<=Ae;dt++){var ht=this._getLineTokens(dt),xt=ht.getCount(),Bt=this._buffer.getLineContent(dt),Ut=0,Ht=0,oo=0;if(dt===Z.lineNumber){Ut=ht.findTokenIndexAtOffset(Z.column-1),Ht=Z.column-1,oo=Z.column-1;var Zt=ht.getLanguageId(Ut);xe!==Zt&&(xe=Zt,Ne=co.a.getBracketsSupport(xe))}for(var fo=!0;UtZ)return null;var yt=this._getLineTokens(Zt),Ue=yt.getCount(),Oe=this._buffer.getLineContent(Zt),rt=0,It=0,pe=0;if(Zt===xe.lineNumber){rt=yt.findTokenIndexAtOffset(xe.column-1),It=xe.column-1,pe=xe.column-1;var D=yt.getLanguageId(rt);Ut!==D&&(Ut=D,Ht=co.a.getBracketsSupport(Ut),xt(Ut,Ht))}for(var ye=!0;rtNe)throw new Error("Illegal value for lineNumber");for(var dt=co.a.getFoldingRules(this._languageIdentifier.id),ht=Boolean(dt&&dt.offSide),xt=-2,Bt=-1,Ut=-2,Ht=-1,oo=function(vo){if(xt!==-1&&(xt===-2||xt>vo-1)){xt=-1,Bt=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){xt=lo,Bt=Ro;break}}}if(Ut===-2){Ut=-1,Ht=-1;for(var lo=vo;lo=0){Ut=lo,Ht=_o;break}}}},Zt=-2,fo=-1,yt=-2,Ue=-1,Oe=function(vo){if(Zt===-2){Zt=-1,fo=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){Zt=lo,fo=Ro;break}}}if(yt!==-1&&(yt===-2||yt=0){yt=lo,Ue=_o;break}}}},rt=0,It=!0,pe=0,D=!0,ye=0,We=0;It||D;We++){var Ze=P-We,st=P+We;if(We!==0&&(Ze<1||ZeNe||st>Ae)&&(D=!1),We>5e4&&(It=!1,D=!1),It){var mt=void 0,Kt=this._computeIndentLevel(Ze-1);if(Kt>=0?(Ut=Ze-1,Ht=Kt,mt=Math.ceil(Kt/this._options.indentSize)):(oo(Ze),mt=this._getIndentLevelForWhitespaceLine(ht,Bt,Ht)),We===0){if(rt=Ze,pe=st,ye=mt,ye===0)return{startLineNumber:rt,endLineNumber:pe,indent:ye};continue}mt>=ye?rt=Ze:It=!1}if(D){var Xt=void 0,Kt=this._computeIndentLevel(st-1);Kt>=0?(Zt=st-1,fo=Kt,Xt=Math.ceil(Kt/this._options.indentSize)):(Oe(st),Xt=this._getIndentLevelForWhitespaceLine(ht,fo,Ue)),Xt>=ye?pe=st:D=!1}}return{startLineNumber:rt,endLineNumber:pe,indent:ye}},M.prototype.getLinesIndentGuides=function(P,Z){this._assertNotDisposed();var Ae=this.getLineCount();if(P<1||P>Ae)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>Ae)throw new Error("Illegal value for endLineNumber");for(var xe=co.a.getFoldingRules(this._languageIdentifier.id),Ne=Boolean(xe&&xe.offSide),dt=new Array(Z-P+1),ht=-2,xt=-1,Bt=-2,Ut=-1,Ht=P;Ht<=Z;Ht++){var oo=Ht-P,Zt=this._computeIndentLevel(Ht-1);if(Zt>=0){ht=Ht-1,xt=Zt,dt[oo]=Math.ceil(Zt/this._options.indentSize);continue}if(ht===-2){ht=-1,xt=-1;for(var fo=Ht-2;fo>=0;fo--){var yt=this._computeIndentLevel(fo);if(yt>=0){ht=fo,xt=yt;break}}}if(Bt!==-1&&(Bt===-2||Bt=0){Bt=fo,Ut=yt;break}}}dt[oo]=this._getIndentLevelForWhitespaceLine(Ne,xt,Ut)}return dt},M.prototype._getIndentLevelForWhitespaceLine=function(P,Z,Ae){return Z===-1||Ae===-1?0:Z0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(P):this._deferredEvent=P;return}this._fastEmitter.fire(P),this._slowEmitter.fire(P)},M}(J.a)},tXSY:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SnippetController2",function(){return je});var T=e("pmY6"),re=e("N0LK"),J=e("sswD"),I=e("aokT"),H=e("gCVg"),z=e("wQH0"),O=e("QVNv"),U=e("T8No"),x=e("09fa"),u=e("6OMU"),y=e("dFcq"),w=e("0/Sa"),f=e("tX9W"),v=e("9XeP"),_=e("EWX2"),p=e("Cg/j"),c=e("uACm"),s=e("3/fG"),l=e("MrjW"),d=e("gslv"),m=e("cMvZ"),E=e("bY76"),L="code-workspace";function A(me){return me instanceof E.a}function k(me){return me.configuration?{configPath:me.configuration,id:me.id}:me.folders.length===1?me.folders[0].uri:void 0}var R=e("3rx1"),$=function(){function me(ge){this._delegates=ge}return me.prototype.resolve=function(ge){for(var _e=0,Re=this._delegates;_e=0){for(var Re=[],Ee=0,ve=this._placeholderGroups[this._placeholderGroupsIdx];Ee0&&this._editor.executeEdits("snippet.placeholderTransform",Re)}var oe=!1;ge===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,oe=!0);var be=this._editor.getModel().changeDecorations(function(De){for(var Se=new Set,Ve=[],Qe=0,it=_e._placeholderGroups[_e._placeholderGroupsIdx];Qe0)return!0}_e=_e.parent}return!1},Object.defineProperty(me.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),me.prototype.computePossibleSelections=function(){for(var ge=new Map,_e=0,Re=this._placeholderGroups;_e0&&Rt!==oe.getLineFirstNonWhitespaceColumn(so.positionLineNumber),!0),at.resolveVariables(new $([De,new B(Ve,Pt,Mt.length,ge.getOption(60)==="spread"),new ie(oe,so),new le(oe),new Ce,new Me(be),new Te]));var ut=oe.getOffsetAt(tt)+Qe;Qe+=at.toString().length-oe.getValueLengthInRange(At),F[Pt]=w.a.replace(At,at.toString()),se[Pt]=new ne(ge,at,ut)}return{edits:F,snippets:se}},me.prototype.dispose=function(){Object(T.f)(this._snippets)},me.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},me.prototype.insert=function(){var ge=this;if(!this._editor.hasModel())return;var _e=me.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Re=_e.edits,Ee=_e.snippets;this._snippets=Ee,this._editor.executeEdits("snippet",Re,function(ve){return ge._snippets[0].hasPlaceholder?ge._move(!0):ve.map(function(Q){return H.a.fromPositions(Q.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},me.prototype.merge=function(ge,_e){var Re=this;if(_e===void 0&&(_e=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,ge]);var Ee=me.createEditsAndSnippets(this._editor,ge,_e.overwriteBefore,_e.overwriteAfter,!0,_e.adjustWhitespace,_e.clipboardText),ve=Ee.edits,Q=Ee.snippets;this._editor.executeEdits("snippet",ve,function(C){for(var F=0,se=Re._snippets;F0},me}(),q=function(){return q=Object.assign||function(me){for(var ge,_e=1,Re=arguments.length;_e=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,_e,ve):Q(ge,_e))||ve);return Ee>3&&ve&&Object.defineProperty(ge,_e,ve),ve},X=function(me,ge){return function(_e,Re){ge(_e,Re,me)}},he={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},je=function(){function me(ge,_e,Re){this._editor=ge,this._logService=_e,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=me.InSnippetMode.bindTo(Re),this._hasNextTabstop=me.HasNextTabstop.bindTo(Re),this._hasPrevTabstop=me.HasPrevTabstop.bindTo(Re)}return me.get=function(ge){return ge.getContribution(me.ID)},me.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},me.prototype.insert=function(ge,_e){try{this._doInsert(ge,typeof _e=="undefined"?he:q(q({},he),_e))}catch(Re){this.cancel(),this._logService.error(Re),this._logService.error("snippet_error"),this._logService.error("insert_template=",ge),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}},me.prototype._doInsert=function(ge,_e){var Re=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),_e.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(ge,_e):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ae(this._editor,ge,_e),this._session.insert()),_e.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Ee){return Ee.isFlush&&Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Re._updateState()}))},me.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},me.prototype._handleChoice=function(){var ge=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var _e=this._session.choice;if(!_e){this._currentChoice=void 0;return}if(this._currentChoice!==_e){this._currentChoice=_e,this._editor.setSelections(this._editor.getSelections().map(function(Ee){return H.a.fromPositions(Ee.getStartPosition())}));var Re=_e.options[0];Object(O.f)(this._editor,_e.options.map(function(Ee,ve){return{kind:13,label:Ee.value,insertText:Ee.value,sortText:Object(re.J)("a",ve+1),range:I.a.fromPositions(ge._editor.getPosition(),ge._editor.getPosition().delta(0,Re.value.length))}}))}},me.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},me.prototype.cancel=function(ge){ge===void 0&&(ge=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(T.f)(this._session),this._session=void 0,this._modelVersionId=-1,ge&&this._editor.setSelections([this._editor.getSelection()])},me.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},me.prototype.next=function(){this._session&&this._session.next(),this._updateState()},me.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},me.ID="snippetController2",me.InSnippetMode=new U.d("inSnippetMode",!1),me.HasNextTabstop=new U.d("hasNextTabstop",!1),me.HasPrevTabstop=new U.d("hasPrevTabstop",!1),me=ue([X(1,x.a),X(2,U.c)],me),me}();Object(J.h)(je.ID,je);var Xe=J.c.bindToContribution(je.get);Object(J.g)(new Xe({id:"jumpToNextSnippetPlaceholder",precondition:U.a.and(je.InSnippetMode,je.HasNextTabstop),handler:function(ge){return ge.next()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:2}})),Object(J.g)(new Xe({id:"jumpToPrevSnippetPlaceholder",precondition:U.a.and(je.InSnippetMode,je.HasPrevTabstop),handler:function(ge){return ge.prev()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:1024|2}})),Object(J.g)(new Xe({id:"leaveSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.cancel(!0)},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(J.g)(new Xe({id:"acceptSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.finish()}}))},tYmi:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return H});var T=e("bY76"),re=e("MNsG"),J;(function(z){z.inMemory="inmemory",z.vscode="vscode",z.internal="private",z.walkThrough="walkThrough",z.walkThroughSnippet="walkThroughSnippet",z.http="http",z.https="https",z.file="file",z.mailto="mailto",z.untitled="untitled",z.data="data",z.command="command",z.vscodeRemote="vscode-remote",z.vscodeRemoteResource="vscode-remote-resource",z.userData="vscode-userdata"})(J||(J={}));var I=function(){function z(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return z.prototype.setPreferredWebSchema=function(O){this._preferredWebSchema=O},z.prototype.rewrite=function(O){if(this._delegate)return this._delegate(O);var U=O.authority,x=this._hosts[U];x&&x.indexOf(":")!==-1&&(x="["+x+"]");var u=this._ports[U],y=this._connectionTokens[U],w="path="+encodeURIComponent(O.path);return typeof y=="string"&&(w+="&tkn="+encodeURIComponent(y)),T.a.from({scheme:re.g?this._preferredWebSchema:J.vscodeRemoteResource,authority:x+":"+u,path:"/vscode-remote-resource",query:w})},z}(),H=new I},twdY:function(Lt,j,e){"use strict";e.d(j,"r",function(){return f}),e.d(j,"A",function(){return v}),e.d(j,"F",function(){return _}),e.d(j,"E",function(){return p}),e.d(j,"y",function(){return c}),e.d(j,"h",function(){return s}),e.d(j,"G",function(){return l}),e.d(j,"z",function(){return d}),e.d(j,"n",function(){return m}),e.d(j,"D",function(){return L}),e.d(j,"u",function(){return A}),e.d(j,"v",function(){return k}),e.d(j,"d",function(){return R}),e.d(j,"x",function(){return $}),e.d(j,"p",function(){return ie}),e.d(j,"m",function(){return W}),e.d(j,"i",function(){return B}),e.d(j,"f",function(){return le}),e.d(j,"e",function(){return Ce}),e.d(j,"q",function(){return Me}),e.d(j,"C",function(){return Te}),e.d(j,"b",function(){return Fe}),e.d(j,"a",function(){return He}),e.d(j,"g",function(){return Pe}),e.d(j,"j",function(){return ne}),e.d(j,"t",function(){return ee}),e.d(j,"s",function(){return ae}),e.d(j,"c",function(){return q}),e.d(j,"w",function(){return ue}),e.d(j,"o",function(){return X}),e.d(j,"l",function(){return he}),e.d(j,"k",function(){return je}),e.d(j,"B",function(){return Xe});var T=e("746U"),re=e("bY76"),J=e("aokT"),I=e("MI8n"),H=e("pmY6"),z=e("l2gE");function O(me,ge,_e,Re){if(Array.isArray(me)){for(var Ee=0,ve=0,Q=me;veEe&&(Ee=F)}return Ee}else{if(typeof me=="string")return Re?me==="*"?5:me===_e?10:0:0;if(me){var se=me.language,oe=me.pattern,be=me.scheme,De=me.hasAccessToAllModels;if(!Re&&!De)return 0;var Ee=0;if(be)if(be===ge.scheme)Ee=10;else if(be==="*")Ee=5;else return 0;if(se)if(se===_e)Ee=10;else if(se==="*")Ee=Math.max(Ee,5);else return 0;if(oe)if(oe===ge.fsPath||Object(z.a)(oe,ge.fsPath))Ee=10;else return 0;return Ee}else return 0}}var U=e("G2kB");function x(me){return typeof me=="string"?!1:Array.isArray(me)?me.every(x):!!me.exclusive}var u=function(){function me(){this._clock=0,this._entries=[],this._onDidChange=new I.a}return Object.defineProperty(me.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),me.prototype.register=function(ge,_e){var Re=this,Ee={selector:ge,provider:_e,_score:-1,_time:this._clock++};return this._entries.push(Ee),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(H.h)(function(){if(Ee){var ve=Re._entries.indexOf(Ee);ve>=0&&(Re._entries.splice(ve,1),Re._lastCandidate=void 0,Re._onDidChange.fire(Re._entries.length),Ee=void 0)}})},me.prototype.has=function(ge){return this.all(ge).length>0},me.prototype.all=function(ge){if(!ge)return[];this._updateScores(ge);for(var _e=[],Re=0,Ee=this._entries;Re0&&_e.push(ve.provider)}return _e},me.prototype.ordered=function(ge){var _e=[];return this._orderedForEach(ge,function(Re){return _e.push(Re.provider)}),_e},me.prototype.orderedGroups=function(ge){var _e=[],Re,Ee;return this._orderedForEach(ge,function(ve){Re&&Ee===ve._score?Re.push(ve.provider):(Ee=ve._score,Re=[ve.provider],_e.push(Re))}),_e},me.prototype._orderedForEach=function(ge,_e){if(!ge)return;this._updateScores(ge);for(var Re=0,Ee=this._entries;Re0&&_e(ve)}},me.prototype._updateScores=function(ge){var _e={uri:ge.uri.toString(),language:ge.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===_e.language&&this._lastCandidate.uri===_e.uri)return;this._lastCandidate=_e;for(var Re=0,Ee=this._entries;Re0){for(var Q=0,C=this._entries;Q_e._score?-1:ge._time<_e._time?1:ge._time>_e._time?-1:0},me}(),y=e("QDVR"),w=function(){function me(){this._map=new Map,this._promises=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return me.prototype.fire=function(ge){this._onDidChange.fire({changedLanguages:ge,changedColorMap:!1})},me.prototype.register=function(ge,_e){var Re=this;return this._map.set(ge,_e),this.fire([ge]),Object(H.h)(function(){if(Re._map.get(ge)!==_e)return;Re._map.delete(ge),Re.fire([ge])})},me.prototype.registerPromise=function(ge,_e){var Re=this,Ee=null,ve=!1;return this._promises.set(ge,_e.then(function(Q){if(Re._promises.delete(ge),ve||!Q)return;Ee=Re.register(ge,Q)})),Object(H.h)(function(){ve=!0,Ee&&Ee.dispose()})},me.prototype.getPromise=function(ge){var _e=this,Re=this.get(ge);if(Re)return Promise.resolve(Re);var Ee=this._promises.get(ge);return Ee?Ee.then(function(ve){return _e.get(ge)}):null},me.prototype.get=function(ge){return Object(T.o)(this._map.get(ge))},me.prototype.setColorMap=function(ge){this._colorMap=ge,this._onDidChange.fire({changedLanguages:Object(y.d)(this._map),changedColorMap:!0})},me.prototype.getColorMap=function(){return this._colorMap},me.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},me}(),f=function(){function me(ge,_e){this.language=ge,this.id=_e}return me}(),v=function(){function me(){}return me.getLanguageId=function(ge){return(ge&255)>>>0},me.getTokenType=function(ge){return(ge&1792)>>>8},me.getFontStyle=function(ge){return(ge&14336)>>>11},me.getForeground=function(ge){return(ge&8372224)>>>14},me.getBackground=function(ge){return(ge&4286578688)>>>23},me.getClassNameFromMetadata=function(ge){var _e=this.getForeground(ge),Re="mtk"+_e,Ee=this.getFontStyle(ge);return Ee&1&&(Re+=" mtki"),Ee&2&&(Re+=" mtkb"),Ee&4&&(Re+=" mtku"),Re},me.getInlineStyleFromMetadata=function(ge,_e){var Re=this.getForeground(ge),Ee=this.getFontStyle(ge),ve="color: "+_e[Re]+";";return Ee&1&&(ve+="font-style: italic;"),Ee&2&&(ve+="font-weight: bold;"),Ee&4&&(ve+="text-decoration: underline;"),ve},me}(),_=function(){var me=Object.create(null);return me[0]="method",me[1]="function",me[2]="constructor",me[3]="field",me[4]="variable",me[5]="class",me[6]="struct",me[7]="interface",me[8]="module",me[9]="property",me[10]="event",me[11]="operator",me[12]="unit",me[13]="value",me[14]="constant",me[15]="enum",me[16]="enum-member",me[17]="keyword",me[25]="snippet",me[18]="text",me[19]="color",me[20]="file",me[21]="reference",me[22]="customcolor",me[23]="folder",me[24]="type-parameter",function(ge){return me[ge]||"property"}}(),p=function(){var me=Object.create(null);return me.method=0,me.function=1,me.constructor=2,me.field=3,me.variable=4,me.class=5,me.struct=6,me.interface=7,me.module=8,me.property=9,me.event=10,me.operator=11,me.unit=12,me.value=13,me.constant=14,me.enum=15,me["enum-member"]=16,me.enumMember=16,me.keyword=17,me.snippet=25,me.text=18,me.color=19,me.file=20,me.reference=21,me.customcolor=22,me.folder=23,me["type-parameter"]=24,me.typeParameter=24,function(ge,_e){var Re=me[ge];return typeof Re=="undefined"&&!_e&&(Re=9),Re}}(),c;(function(me){me[me.Invoke=1]="Invoke",me[me.TriggerCharacter=2]="TriggerCharacter",me[me.ContentChange=3]="ContentChange"})(c||(c={}));var s;(function(me){me[me.Text=0]="Text",me[me.Read=1]="Read",me[me.Write=2]="Write"})(s||(s={}));function l(me){return me&&re.a.isUri(me.uri)&&J.a.isIRange(me.range)&&(J.a.isIRange(me.originSelectionRange)||J.a.isIRange(me.targetSelectionRange))}var d;(function(me){var ge=new Map;ge.set("file",0),ge.set("module",1),ge.set("namespace",2),ge.set("package",3),ge.set("class",4),ge.set("method",5),ge.set("property",6),ge.set("field",7),ge.set("constructor",8),ge.set("enum",9),ge.set("interface",10),ge.set("function",11),ge.set("variable",12),ge.set("constant",13),ge.set("string",14),ge.set("number",15),ge.set("boolean",16),ge.set("array",17),ge.set("object",18),ge.set("key",19),ge.set("null",20),ge.set("enum-member",21),ge.set("struct",22),ge.set("event",23),ge.set("operator",24),ge.set("type-parameter",25);var _e=new Map;_e.set(0,"file"),_e.set(1,"module"),_e.set(2,"namespace"),_e.set(3,"package"),_e.set(4,"class"),_e.set(5,"method"),_e.set(6,"property"),_e.set(7,"field"),_e.set(8,"constructor"),_e.set(9,"enum"),_e.set(10,"interface"),_e.set(11,"function"),_e.set(12,"variable"),_e.set(13,"constant"),_e.set(14,"string"),_e.set(15,"number"),_e.set(16,"boolean"),_e.set(17,"array"),_e.set(18,"object"),_e.set(19,"key"),_e.set(20,"null"),_e.set(21,"enum-member"),_e.set(22,"struct"),_e.set(23,"event"),_e.set(24,"operator"),_e.set(25,"type-parameter");function Re(Q){return ge.get(Q)}me.fromString=Re;function Ee(Q){return _e.get(Q)}me.toString=Ee;function ve(Q,C){return"codicon "+(C?"inline":"block")+" codicon-symbol-"+(_e.get(Q)||"property")}me.toCssClassName=ve})(d||(d={}));var m=function(){function me(ge){this.value=ge}return me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me}(),E;(function(me){function ge(_e){return Object(T.i)(_e)&&(Boolean(_e.newUri)||Boolean(_e.oldUri))}me.is=ge})(E||(E={}));var L;(function(me){function ge(_e){return Object(T.i)(_e)&&re.a.isUri(_e.resource)&&Object(T.i)(_e.edit)}me.is=ge})(L||(L={}));var A=new u,k=new u,R=new u,$=new u,ie=new u,W=new u,B=new u,le=new u,Ce=new u,Me=new u,Te=new u,Fe=new u,He=new u,Pe=new u,ne=new u,ee=new u,ae=new u,q=new u,ue=new u,X=new u,he=new u,je=new u,Xe=new w},uACm:function(Lt,j,e){"use strict";e.d(j,"d",function(){return z}),e.d(j,"b",function(){return U}),e.d(j,"a",function(){return x}),e.d(j,"c",function(){return _});var T=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),re=function(){for(var p=0,c=0,s=arguments.length;c=48&&c<=57},p.isVariableCharacter=function(c){return c===95||c>=97&&c<=122||c>=65&&c<=90},p.prototype.text=function(c){this.value=c,this.pos=0},p.prototype.tokenText=function(c){return this.value.substr(c.pos,c.len)},p.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var c=this.pos,s=0,l=this.value.charCodeAt(c),d;if(d=p._table[l],typeof d=="number")return this.pos+=1,{type:d,pos:c,len:1};if(p.isDigitCharacter(l)){d=8;do s+=1,l=this.value.charCodeAt(c+s);while(p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}if(p.isVariableCharacter(l)){d=9;do l=this.value.charCodeAt(c+ ++s);while(p.isVariableCharacter(l)||p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}d=10;do s+=1,l=this.value.charCodeAt(c+s);while(!isNaN(l)&&typeof p._table[l]=="undefined"&&!p.isDigitCharacter(l)&&!p.isVariableCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}},p._table=(J={},J[36]=0,J[58]=1,J[44]=2,J[123]=3,J[125]=4,J[92]=5,J[47]=6,J[124]=7,J[43]=11,J[45]=12,J[63]=13,J),p}(),H=function(){function p(){this._children=[]}return p.prototype.appendChild=function(c){return c instanceof z&&this._children[this._children.length-1]instanceof z?this._children[this._children.length-1].value+=c.value:(c.parent=this,this._children.push(c)),this},p.prototype.replace=function(c,s){var l=c.parent,d=l.children.indexOf(c),m=l.children.slice(0);m.splice.apply(m,re([d,1],s)),l._children=m,function E(L,A){for(var k=0,R=L;kl.index?1:0},Object.defineProperty(c.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof x?this._children[0]:void 0},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var s=new c(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},c}(O),x=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.options=[],s}return c.prototype.appendChild=function(s){return s instanceof z&&(s.parent=this,this.options.push(s)),this},c.prototype.toString=function(){return this.options[0].value},c.prototype.len=function(){return this.options[0].len()},c.prototype.clone=function(){var s=new c;return this.options.forEach(s.appendChild,s),s},c}(H),u=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.regexp=new RegExp(""),s}return c.prototype.resolve=function(s){var l=this,d=!1,m=s.replace(this.regexp,function(){return d=!0,l._replace(Array.prototype.slice.call(arguments,0,-2))});return!d&&this._children.some(function(E){return E instanceof y&&Boolean(E.elseValue)})&&(m=this._replace([])),m},c.prototype._replace=function(s){for(var l="",d=0,m=this._children;d0;){var l=s.shift(),d=c(l);if(!d)break;s.unshift.apply(s,l.children)}}var v=function(p){T(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(c.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var l=[],d;this.walk(function(m){return m instanceof U&&(l.push(m),d=!d||d.index0?m.set(Ce.index,Ce.children):E.push(Ce)),!0});for(var A=0,k=E;A0&&s),!m.has(0)&&l&&d.appendChild(new U(0)),d},p.prototype._accept=function(c,s){if(c===void 0||this._token.type===c){var l=s?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1},p.prototype._backTo=function(c){return this._scanner.pos=c.pos+c.len,this._token=c,!1},p.prototype._until=function(c){for(var s=this._token;this._token.type!==c;){if(this._token.type===14)return!1;if(this._token.type===5){var l=this._scanner.next();if(l.type!==0&&l.type!==4&&l.type!==5)return!1}this._token=this._scanner.next()}var d=this._scanner.value.substring(s.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),d},p.prototype._parse=function(c){return this._parseEscaped(c)||this._parseTabstopOrVariableName(c)||this._parseComplexPlaceholder(c)||this._parseComplexVariable(c)||this._parseAnything(c)},p.prototype._parseEscaped=function(c){var s;return(s=this._accept(5,!0))?(s=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||s,c.appendChild(new z(s)),!0):!1},p.prototype._parseTabstopOrVariableName=function(c){var s,l=this._token,d=this._accept(0)&&(s=this._accept(9,!0)||this._accept(8,!0));return d?(c.appendChild(/^\d+$/.test(s)?new U(Number(s)):new w(s)),!0):this._backTo(l)},p.prototype._parseComplexPlaceholder=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(8,!0));if(!d)return this._backTo(l);var m=new U(Number(s));if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else if(m.index>0&&this._accept(7))for(var E=new x;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(E),this._accept(4)))return c.appendChild(m),!0}return this._backTo(l),!1}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseChoiceElement=function(c){for(var s=this._token,l=[];!(this._token.type===2||this._token.type===7);){var d=void 0;if((d=this._accept(5,!0))?d=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||d:d=this._accept(void 0,!0),!d)return this._backTo(s),!1;l.push(d)}return l.length===0?(this._backTo(s),!1):(c.appendChild(new z(l.join(""))),!0)},p.prototype._parseComplexVariable=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(9,!0));if(!d)return this._backTo(l);var m=new w(s);if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseTransform=function(c){for(var s=new u,l="",d="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,l+=m;continue}if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,s.appendChild(new z(m));continue}if(this._parseFormatString(s)||this._parseAnything(s))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){d+=this._accept(void 0,!0);continue}return!1}try{s.regexp=new RegExp(l,d)}catch(E){return!1}return c.transform=s,!0},p.prototype._parseFormatString=function(c){var s=this._token;if(!this._accept(0))return!1;var l=!1;this._accept(3)&&(l=!0);var d=this._accept(8,!0);if(d)if(l){if(this._accept(4))return c.appendChild(new y(Number(d))),!0;if(!this._accept(1))return this._backTo(s),!1}else return c.appendChild(new y(Number(d))),!0;else return this._backTo(s),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(s),!1):(c.appendChild(new y(Number(d),m)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return c.appendChild(new y(Number(d),void 0,E,void 0)),!0}else if(this._accept(12)){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,E,L)),!0}}else{var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}return this._backTo(s),!1},p.prototype._parseAnything=function(c){return this._token.type!==14?(c.appendChild(new z(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},p}()},uAX5:function(Lt,j,e){},uDWl:function(Lt,j,e){"use strict";e.d(j,"a",function(){return y});var T=e("D3Dy"),re=e("/kV6"),J=e("MNsG"),I=new Array(230),H=new Array(112);(function(){for(var w=0;w0){d=E[0].getStartPosition();var L=l.getTopForPosition(d.lineNumber,d.column);m=l.getScrollTop()-L}}return new s(d,m)},s.prototype.restore=function(l){if(this._visiblePosition){var d=l.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);l.setScrollTop(d+this._visiblePositionScrollDelta)}},s}()},vMFT:function(Lt,j,e){},vRMv:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y}),e.d(j,"e",function(){return w}),e.d(j,"d",function(){return f});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),I=e("sswD"),H=e("twdY"),z=function(v,_,p,c){function s(l){return l instanceof p?l:new p(function(d){d(l)})}return new(p||(p=Promise))(function(l,d){function m(A){try{L(c.next(A))}catch(k){d(k)}}function E(A){try{L(c.throw(A))}catch(k){d(k)}}function L(A){A.done?l(A.value):s(A.value).then(m,E)}L((c=c.apply(v,_||[])).next())})},O=function(v,_){var p={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,s,l,d;return d={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(L){return function(A){return E([L,A])}}function E(L){if(c)throw new TypeError("Generator is already executing.");for(;p;)try{if(c=1,s&&(l=L[0]&2?s.return:L[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,L[1])).done)return l;(s=0,l)&&(L=[L[0]&2,l.value]);switch(L[0]){case 0:case 1:l=L;break;case 4:return p.label++,{value:L[1],done:!1};case 5:p.label++,s=L[1],L=[0];continue;case 7:L=p.ops.pop(),p.trys.pop();continue;default:if(!(l=p.trys,l=l.length>0&&l[l.length-1])&&(L[0]===6||L[0]===2)){p=0;continue}if(L[0]===3&&(!l||L[1]>l[0]&&L[1]0)for(var s=0,l=c;s1){var A=re.a.visibleColumnFromColumn(E,L+1,_);if(A%p!==0&&u.isCheapToTokenize(m-1)){var k=H.a.getEnterAction(this._opts.autoIndent,u,new J.a(m-1,u.getLineMaxColumn(m-1),m-1,u.getLineMaxColumn(m-1)));if(k){if(d=l,k.appendText)for(var R=0,$=k.appendText.length;R<$&&d0){_=Math.min(p<=.5?c/(2*p):c/(2-2*p),1);switch(w){case U:v=(x-u)/c+(x1&&(x-=1),x<1/6?O+(U-O)*6*x:x<1/2?U:x<2/3?O+(U-O)*(2/3-x)*6:O},z.toRGBA=function(O){var U=O.h/360,x=O.s,u=O.l,y=O.a,w,f,v;if(x===0)w=f=v=u;else{var _=u<.5?u*(1+x):u+x-u*x,p=2*u-_;w=z._hue2rgb(p,_,U+1/3),f=z._hue2rgb(p,_,U),v=z._hue2rgb(p,_,U-1/3)}return new re(Math.round(w*255),Math.round(f*255),Math.round(v*255),y)},z}(),I=function(){function z(O,U,x,u){this.h=Math.max(Math.min(360,O),0)|0,this.s=T(Math.max(Math.min(1,U),0),3),this.v=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,u),0),3)}return z.equals=function(O,U){return O.h===U.h&&O.s===U.s&&O.v===U.v&&O.a===U.a},z.fromRGBA=function(O){var U=O.r/255,x=O.g/255,u=O.b/255,y=Math.max(U,x,u),w=Math.min(U,x,u),f=y-w,v=y===0?0:f/y,_;return f===0?_=0:y===U?_=((x-u)/f%6+6)%6:y===x?_=(u-U)/f+2:_=(U-x)/f+4,new z(Math.round(_*60),v,y,O.a)},z.toRGBA=function(O){var U=O.h,x=O.s,u=O.v,y=O.a,w=u*x,f=w*(1-Math.abs(U/60%2-1)),v=u-w,_=[0,0,0],p=_[0],c=_[1],s=_[2];return U<60?(p=w,c=f):U<120?(p=f,c=w):U<180?(c=w,s=f):U<240?(c=f,s=w):U<300?(p=f,s=w):U<360&&(p=w,s=f),p=Math.round((p+v)*255),c=Math.round((c+v)*255),s=Math.round((s+v)*255),new re(p,c,s,y)},z}(),H=function(){function z(O){if(O)if(O instanceof re)this.rgba=O;else if(O instanceof J)this._hsla=O,this.rgba=J.toRGBA(O);else if(O instanceof I)this._hsva=O,this.rgba=I.toRGBA(O);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return z.fromHex=function(O){return z.Format.CSS.parseHex(O)||z.red},Object.defineProperty(z.prototype,"hsla",{get:function(){return this._hsla?this._hsla:J.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"hsva",{get:function(){return this._hsva?this._hsva:I.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),z.prototype.equals=function(O){return!!O&&re.equals(this.rgba,O.rgba)&&J.equals(this.hsla,O.hsla)&&I.equals(this.hsva,O.hsva)},z.prototype.getRelativeLuminance=function(){var O=z._relativeLuminanceForComponent(this.rgba.r),U=z._relativeLuminanceForComponent(this.rgba.g),x=z._relativeLuminanceForComponent(this.rgba.b),u=.2126*O+.7152*U+.0722*x;return T(u,4)},z._relativeLuminanceForComponent=function(O){var U=O/255;return U<=.03928?U/12.92:Math.pow((U+.055)/1.055,2.4)},z.prototype.isLighter=function(){var O=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return O>=128},z.prototype.isLighterThan=function(O){var U=this.getRelativeLuminance(),x=O.getRelativeLuminance();return U>x},z.prototype.isDarkerThan=function(O){var U=this.getRelativeLuminance(),x=O.getRelativeLuminance();return U0},M.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount},M.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing},M.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization},M.prototype.isDisposed=function(){return this._isDisposed},M.prototype.isDominatedByLongLines=function(){if(this._assertNotDisposed(),this.isTooLargeForTokenization())return!1;for(var P=0,Z=0,Ae=this._buffer.getLineCount(),xe=1;xe<=Ae;xe++){var Ne=this._buffer.getLineLength(xe);Ne>=fn?Z+=Ne:P+=Ne}return Z>P},Object.defineProperty(M.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0}),M.prototype.getOptions=function(){return this._assertNotDisposed(),this._options},M.prototype.getFormattingOptions=function(){return{tabSize:this._options.indentSize,insertSpaces:this._options.insertSpaces}},M.prototype.updateOptions=function(P){this._assertNotDisposed();var Z=typeof P.tabSize!="undefined"?P.tabSize:this._options.tabSize,Ae=typeof P.indentSize!="undefined"?P.indentSize:this._options.indentSize,xe=typeof P.insertSpaces!="undefined"?P.insertSpaces:this._options.insertSpaces,Ne=typeof P.trimAutoWhitespace!="undefined"?P.trimAutoWhitespace:this._options.trimAutoWhitespace,dt=new u.e({tabSize:Z,indentSize:Ae,insertSpaces:xe,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:Ne});if(this._options.equals(dt))return;var ht=this._options.createChangeEvent(dt);this._options=dt,this._onDidChangeOptions.fire(ht)},M.prototype.detectIndentation=function(P,Z){this._assertNotDisposed();var Ae=c(this._buffer,Z,P);this.updateOptions({insertSpaces:Ae.insertSpaces,tabSize:Ae.tabSize,indentSize:Ae.tabSize})},M._normalizeIndentationFromWhitespace=function(P,Z,Ae){for(var xe=0,Ne=0;Nethis.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(P)},M.prototype.getLineLength=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)},M.prototype.getLinesContent=function(){return this._assertNotDisposed(),this._buffer.getLinesContent()},M.prototype.getEOL=function(){return this._assertNotDisposed(),this._buffer.getEOL()},M.prototype.getLineMinColumn=function(P){return this._assertNotDisposed(),1},M.prototype.getLineMaxColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(P)+1},M.prototype.getLineFirstNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(P)},M.prototype.getLineLastNonWhitespaceColumn=function(P){if(this._assertNotDisposed(),P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(P)},M.prototype._validateRangeRelaxedNoAllocations=function(P){var Z=this._buffer.getLineCount(),Ae=P.startLineNumber,xe=P.startColumn,Ne,dt;if(Ae<1)Ne=1,dt=1;else if(Ae>Z)Ne=Z,dt=this.getLineMaxColumn(Ne);else if(Ne=Ae|0,xe<=1)dt=1;else{var ht=this.getLineMaxColumn(Ne);xe>=ht?dt=ht:dt=xe|0}var xt=P.endLineNumber,Bt=P.endColumn,Ht,Ut;if(xt<1)Ht=1,Ut=1;else if(xt>Z)Ht=Z,Ut=this.getLineMaxColumn(Ht);else if(Ht=xt|0,Bt<=1)Ut=1;else{var ht=this.getLineMaxColumn(Ht);Bt>=ht?Ut=ht:Ut=Bt|0}return Ae===Ne&&xe===dt&&xt===Ht&&Bt===Ut&&P instanceof H.a&&!(P instanceof x.a)?P:new H.a(Ne,dt,Ht,Ut)},M.prototype._isValidPosition=function(P,Z,Ae){if(typeof P!="number"||typeof Z!="number")return!1;if(isNaN(P)||isNaN(Z))return!1;if(P<1||Z<1)return!1;if((P|0)!==P||(Z|0)!==Z)return!1;var xe=this._buffer.getLineCount();if(P>xe)return!1;if(Z===1)return!0;var Ne=this.getLineMaxColumn(P);if(Z>Ne)return!1;if(Ae===1){var dt=this._buffer.getLineCharCode(P,Z-2);if(I.z(dt))return!1}return!0},M.prototype._validatePosition=function(P,Z,Ae){var xe=Math.floor(typeof P=="number"&&!isNaN(P)?P:1),Ne=Math.floor(typeof Z=="number"&&!isNaN(Z)?Z:1),dt=this._buffer.getLineCount();if(xe<1)return new O.a(1,1);if(xe>dt)return new O.a(dt,this.getLineMaxColumn(dt));if(Ne<=1)return new O.a(xe,1);var ht=this.getLineMaxColumn(xe);if(Ne>=ht)return new O.a(xe,ht);if(Ae===1){var xt=this._buffer.getLineCharCode(xe,Ne-2);if(I.z(xt))return new O.a(xe,Ne-1)}return new O.a(xe,Ne)},M.prototype.validatePosition=function(P){var Z=1;return this._assertNotDisposed(),P instanceof O.a&&this._isValidPosition(P.lineNumber,P.column,Z)?P:this._validatePosition(P.lineNumber,P.column,Z)},M.prototype._isValidRange=function(P,Z){var Ae=P.startLineNumber,xe=P.startColumn,Ne=P.endLineNumber,dt=P.endColumn;if(!this._isValidPosition(Ae,xe,0))return!1;if(!this._isValidPosition(Ne,dt,0))return!1;if(Z===1){var ht=xe>1?this._buffer.getLineCharCode(Ae,xe-2):0,xt=dt>1&&dt<=this._buffer.getLineLength(Ne)?this._buffer.getLineCharCode(Ne,dt-2):0,Bt=I.z(ht),Ht=I.z(xt);return!Bt&&!Ht}return!0},M.prototype.validateRange=function(P){var Z=1;if(this._assertNotDisposed(),P instanceof H.a&&!(P instanceof x.a)&&this._isValidRange(P,Z))return P;var Ae=this._validatePosition(P.startLineNumber,P.startColumn,0),xe=this._validatePosition(P.endLineNumber,P.endColumn,0),Ne=Ae.lineNumber,dt=Ae.column,ht=xe.lineNumber,xt=xe.column;if(Z===1){var Bt=dt>1?this._buffer.getLineCharCode(Ne,dt-2):0,Ht=xt>1&&xt<=this._buffer.getLineLength(ht)?this._buffer.getLineCharCode(ht,xt-2):0,Ut=I.z(Bt),oo=I.z(Ht);return!Ut&&!oo?new H.a(Ne,dt,ht,xt):Ne===ht&&dt===xt?new H.a(Ne,dt-1,ht,xt-1):Ut&&oo?new H.a(Ne,dt-1,ht,xt+1):Ut?new H.a(Ne,dt-1,ht,xt):new H.a(Ne,dt,ht,xt+1)}return new H.a(Ne,dt,ht,xt)},M.prototype.modifyPosition=function(P,Z){this._assertNotDisposed();var Ae=this.getOffsetAt(P)+Z;return this.getPositionAt(Math.min(this._buffer.getLength(),Math.max(0,Ae)))},M.prototype.getFullModelRange=function(){this._assertNotDisposed();var P=this.getLineCount();return new H.a(1,1,P,this.getLineMaxColumn(P))},M.prototype.findMatchesLineByLine=function(P,Z,Ae,xe){return this._buffer.findMatchesLineByLine(P,Z,Ae,xe)},M.prototype.findMatches=function(P,Z,Ae,xe,Ne,dt,ht){ht===void 0&&(ht=Qo),this._assertNotDisposed();var xt;if(H.a.isIRange(Z)?xt=this.validateRange(Z):xt=this.getFullModelRange(),!Ae&&P.indexOf(` +`)<0){var Bt=new Mt.a(P,Ae,xe,Ne),Ht=Bt.parseSearchRequest();return Ht?this.findMatchesLineByLine(xt,Ht,dt,ht):[]}return Mt.c.findMatches(this,new Mt.a(P,Ae,xe,Ne),xt,dt,ht)},M.prototype.findNextMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);if(!Ae&&P.indexOf(` +`)<0){var xt=new Mt.a(P,Ae,xe,Ne),Bt=xt.parseSearchRequest();if(!Bt)return null;var Ht=this.getLineCount(),Ut=new H.a(ht.lineNumber,ht.column,Ht,this.getLineMaxColumn(Ht)),oo=this.findMatchesLineByLine(Ut,Bt,dt,1);return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt),oo.length>0?oo[0]:(Ut=new H.a(1,1,ht.lineNumber,this.getLineMaxColumn(ht.lineNumber)),oo=this.findMatchesLineByLine(Ut,Bt,dt,1),oo.length>0?oo[0]:null)}return Mt.c.findNextMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.findPreviousMatch=function(P,Z,Ae,xe,Ne,dt){this._assertNotDisposed();var ht=this.validatePosition(Z);return Mt.c.findPreviousMatch(this,new Mt.a(P,Ae,xe,Ne),ht,dt)},M.prototype.pushStackElement=function(){this._commandManager.pushStackElement()},M.prototype.pushEOL=function(P){var Z=this.getEOL()===` +`?0:1;if(Z===P)return;try{this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._commandManager.pushEOL(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype.pushEditOperations=function(P,Z,Ae){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._pushEditOperations(P,Z,Ae)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._pushEditOperations=function(P,Z,Ae){var xe=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){for(var Ne=Z.map(function(pe){return{range:xe.validateRange(pe.range),text:pe.text}}),dt=!0,ht=0,xt=P.length;htBt.endLineNumber,yt=Bt.startLineNumber>Zt.endLineNumber;if(!fo&&!yt){Ht=!0;break}}if(!Ht){dt=!1;break}}if(dt)for(var ht=0,xt=this._trimAutoWhitespaceLines.length;htZt.endLineNumber)continue;if(He===Zt.startLineNumber&&Zt.startColumn===Oe&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(0)===` +`)continue;if(He===Zt.startLineNumber&&Zt.startColumn===1&&Zt.isEmpty()&&It&&It.length>0&&It.charAt(It.length-1)===` +`)continue;rt=!1;break}rt&&Z.push({range:new H.a(He,1,He,Oe),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(P,Z,Ae)},M.prototype.applyEdits=function(P){try{return this._onDidChangeDecorations.beginDeferredEmit(),this._eventEmitter.beginDeferredEmit(),this._applyEdits(P)}finally{this._eventEmitter.endDeferredEmit(),this._onDidChangeDecorations.endDeferredEmit()}},M.prototype._applyEdits=function(P){for(var Z=0,Ae=P.length;Z0?Ht.text.charCodeAt(0):0),this._onDidChangeDecorations.fire(),this._decorationsTree.acceptReplace(Ht.rangeOffset,Ht.rangeLength,Ht.text.length,Ht.forceMoveMarkers);for(var yt=Ht.range.startLineNumber,He=Ht.range.endLineNumber,Oe=He-yt,rt=oo,It=Math.min(Oe,rt),pe=rt-Oe,D=It;D>=0;D--){var ye=yt+D,We=dt-Bt-pe+ye;xt.push(new bt(ye,this.getLineContent(We)))}if(Itthis.getLineCount()?[]:this.getLinesDecorations(P,P,Z,Ae)},M.prototype.getLinesDecorations=function(P,Z,Ae,xe){Ae===void 0&&(Ae=0),xe===void 0&&(xe=!1);var Ne=this.getLineCount(),dt=Math.min(Ne,Math.max(1,P)),ht=Math.min(Ne,Math.max(1,Z)),xt=this.getLineMaxColumn(ht);return this._getDecorationsInRange(new H.a(dt,1,ht,xt),Ae,xe)},M.prototype.getDecorationsInRange=function(P,Z,Ae){Z===void 0&&(Z=0),Ae===void 0&&(Ae=!1);var xe=this.validateRange(P);return this._getDecorationsInRange(xe,Z,Ae)},M.prototype.getOverviewRulerDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!0,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype.getAllDecorations=function(P,Z){P===void 0&&(P=0),Z===void 0&&(Z=!1);var Ae=this.getVersionId(),xe=this._decorationsTree.search(P,Z,!1,Ae);return this._ensureNodesHaveRanges(xe)},M.prototype._getDecorationsInRange=function(P,Z,Ae){var xe=this._buffer.getOffsetAt(P.startLineNumber,P.startColumn),Ne=this._buffer.getOffsetAt(P.endLineNumber,P.endColumn),dt=this.getVersionId(),ht=this._decorationsTree.intervalSearch(xe,Ne,Z,Ae,dt);return this._ensureNodesHaveRanges(ht)},M.prototype._ensureNodesHaveRanges=function(P){for(var Z=0,Ae=P.length;Zthis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokens.setTokens(this._languageIdentifier.id,P-1,this._buffer.getLineLength(P),Z)},M.prototype.setTokens=function(P){if(P.length===0)return;for(var Z=[],Ae=0,xe=P.length;Aethis.getLineCount())throw new Error("Illegal value for lineNumber");this._tokenization.forceTokenization(P)},M.prototype.isCheapToTokenize=function(P){return this._tokenization.isCheapToTokenize(P)},M.prototype.tokenizeIfCheap=function(P){this.isCheapToTokenize(P)&&this.forceTokenization(P)},M.prototype.getLineTokens=function(P){if(P<1||P>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(P)},M.prototype._getLineTokens=function(P){var Z=this.getLineContent(P),Ae=this._tokens.getTokens(this._languageIdentifier.id,P-1,Z);return this._tokens2.addSemanticTokens(P,Ae)},M.prototype.getLanguageIdentifier=function(){return this._languageIdentifier},M.prototype.getModeId=function(){return this._languageIdentifier.language},M.prototype.setMode=function(P){if(this._languageIdentifier.id===P.id)return;var Z={oldLanguage:this._languageIdentifier.language,newLanguage:P.language};this._languageIdentifier=P,this._onDidChangeLanguage.fire(Z),this._onDidChangeLanguageConfiguration.fire({})},M.prototype.getLanguageIdAtPosition=function(P,Z){var Ae=this.validatePosition(new O.a(P,Z)),xe=this.getLineTokens(Ae.lineNumber);return xe.getLanguageId(xe.findTokenIndexAtOffset(Ae.column-1))},M.prototype.getWordAtPosition=function(P){this._assertNotDisposed();var Z=this.validatePosition(P),Ae=this.getLineContent(Z.lineNumber),xe=this._getLineTokens(Z.lineNumber),Ne=xe.findTokenIndexAtOffset(Z.column-1),dt=M._findLanguageBoundaries(xe,Ne),ht=dt[0],xt=dt[1],Bt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne)),Ae.substring(ht,xt),ht);if(Bt&&Bt.startColumn<=P.column&&P.column<=Bt.endColumn)return Bt;if(Ne>0&&ht===Z.column-1){var Ht=M._findLanguageBoundaries(xe,Ne-1),Ut=Ht[0],oo=Ht[1],Zt=Object(po.d)(Z.column,co.a.getWordDefinition(xe.getLanguageId(Ne-1)),Ae.substring(Ut,oo),Ut);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn)return Zt}return null},M._findLanguageBoundaries=function(P,Z){for(var Ae=P.getLanguageId(Z),xe=0,Ne=Z;Ne>=0&&P.getLanguageId(Ne)===Ae;Ne--)xe=P.getStartOffset(Ne);for(var dt=P.getLineContent().length,Ne=Z,ht=P.getCount();Ne=0;Bt--){var Ht=Ae.getEndOffset(Bt);if(Ht<=xt)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(xt=Ht)}for(var Ut=Math.min(Ne.length,P.column-1+ht.maxBracketLength),oo=null;;){var Zt=Oo.a.findNextBracketInRange(ht.forwardRegex,Z,Ne,xt,Ut);if(!Zt)break;if(Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,ht.textIsBracket[fo],ht.textIsOpenBracket[fo]);yt&&(oo=yt)}xt=Zt.endColumn-1}if(oo)return oo}if(dt>0&&Ae.getStartOffset(dt)===P.column-1){var He=dt-1,Oe=co.a.getBracketsSupport(Ae.getLanguageId(He));if(Oe&&!Object(Eo.b)(Ae.getStandardTokenType(He))){for(var xt=Math.max(0,P.column-1-Oe.maxBracketLength),Ut=Math.min(Ne.length,P.column-1+Oe.maxBracketLength),Bt=He+1;Bt=Ut)break;Object(Eo.b)(Ae.getStandardTokenType(Bt))&&(Ut=rt)}var Zt=Oo.a.findPrevBracketInRange(Oe.reversedRegex,Z,Ne,xt,Ut);if(Zt&&Zt.startColumn<=P.column&&P.column<=Zt.endColumn){var fo=Ne.substring(Zt.startColumn-1,Zt.endColumn-1).toLowerCase(),yt=this._matchFoundBracket(Zt,Oe.textIsBracket[fo],Oe.textIsOpenBracket[fo]);if(yt)return yt}}}return null},M.prototype._matchFoundBracket=function(P,Z,Ae){if(!Z)return null;if(Ae){var xe=this._findMatchingBracketDown(Z,P.getEndPosition());if(xe)return[P,xe]}else{var xe=this._findMatchingBracketUp(Z,P.getStartPosition());if(xe)return[P,xe]}return null},M.prototype._findMatchingBracketUp=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.reversedRegex,Ne=-1,dt=function(rt,It,pe,D){for(;;){var ye=Oo.a.findPrevBracketInRange(xe,rt,It,pe,D);if(!ye)break;var We=It.substring(ye.startColumn-1,ye.endColumn-1).toLowerCase();if(P.isOpen(We)?Ne++:P.isClose(We)&&Ne--,Ne===0)return ye;D=ye.startColumn-1}return null},ht=Z.lineNumber;ht>=1;ht--){var xt=this._getLineTokens(ht),Bt=xt.getCount(),Ht=this._buffer.getLineContent(ht),Ut=Bt-1,oo=Ht.length,Zt=Ht.length;ht===Z.lineNumber&&(Ut=xt.findTokenIndexAtOffset(Z.column-1),oo=Z.column-1,Zt=Z.column-1);for(var fo=!0;Ut>=0;Ut--){var yt=xt.getLanguageId(Ut)===Ae&&!Object(Eo.b)(xt.getStandardTokenType(Ut));if(yt)fo?oo=xt.getStartOffset(Ut):(oo=xt.getStartOffset(Ut),Zt=xt.getEndOffset(Ut));else if(fo&&oo!==Zt){var He=dt(ht,Ht,oo,Zt);if(He)return He}fo=yt}if(fo&&oo!==Zt){var He=dt(ht,Ht,oo,Zt);if(He)return He}}return null},M.prototype._findMatchingBracketDown=function(P,Z){for(var Ae=P.languageIdentifier.id,xe=P.forwardRegex,Ne=1,dt=function(It,pe,D,ye){for(;;){var We=Oo.a.findNextBracketInRange(xe,It,pe,D,ye);if(!We)break;var Ze=pe.substring(We.startColumn-1,We.endColumn-1).toLowerCase();if(P.isOpen(Ze)?Ne++:P.isClose(Ze)&&Ne--,Ne===0)return We;D=We.endColumn-1}return null},ht=this.getLineCount(),xt=Z.lineNumber;xt<=ht;xt++){var Bt=this._getLineTokens(xt),Ht=Bt.getCount(),Ut=this._buffer.getLineContent(xt),oo=0,Zt=0,fo=0;xt===Z.lineNumber&&(oo=Bt.findTokenIndexAtOffset(Z.column-1),Zt=Z.column-1,fo=Z.column-1);for(var yt=!0;oo=1;Ne--){var dt=this._getLineTokens(Ne),ht=dt.getCount(),xt=this._buffer.getLineContent(Ne),Bt=ht-1,Ht=xt.length,Ut=xt.length;if(Ne===Z.lineNumber){Bt=dt.findTokenIndexAtOffset(Z.column-1),Ht=Z.column-1,Ut=Z.column-1;var oo=dt.getLanguageId(Bt);Ae!==oo&&(Ae=oo,xe=co.a.getBracketsSupport(Ae))}for(var Zt=!0;Bt>=0;Bt--){var oo=dt.getLanguageId(Bt);if(Ae!==oo){if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo);Zt=!1}Ae=oo,xe=co.a.getBracketsSupport(Ae)}var yt=!!xe&&!Object(Eo.b)(dt.getStandardTokenType(Bt));if(yt)Zt?Ht=dt.getStartOffset(Bt):(Ht=dt.getStartOffset(Bt),Ut=dt.getEndOffset(Bt));else if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo)}Zt=yt}if(xe&&Zt&&Ht!==Ut){var fo=Oo.a.findPrevBracketInRange(xe.reversedRegex,Ne,xt,Ht,Ut);if(fo)return this._toFoundBracket(xe,fo)}}return null},M.prototype.findNextBracket=function(P){for(var Z=this.validatePosition(P),Ae=this.getLineCount(),xe=-1,Ne=null,dt=Z.lineNumber;dt<=Ae;dt++){var ht=this._getLineTokens(dt),xt=ht.getCount(),Bt=this._buffer.getLineContent(dt),Ht=0,Ut=0,oo=0;if(dt===Z.lineNumber){Ht=ht.findTokenIndexAtOffset(Z.column-1),Ut=Z.column-1,oo=Z.column-1;var Zt=ht.getLanguageId(Ht);xe!==Zt&&(xe=Zt,Ne=co.a.getBracketsSupport(xe))}for(var fo=!0;HtZ)return null;var yt=this._getLineTokens(Zt),He=yt.getCount(),Oe=this._buffer.getLineContent(Zt),rt=0,It=0,pe=0;if(Zt===xe.lineNumber){rt=yt.findTokenIndexAtOffset(xe.column-1),It=xe.column-1,pe=xe.column-1;var D=yt.getLanguageId(rt);Ht!==D&&(Ht=D,Ut=co.a.getBracketsSupport(Ht),xt(Ht,Ut))}for(var ye=!0;rtNe)throw new Error("Illegal value for lineNumber");for(var dt=co.a.getFoldingRules(this._languageIdentifier.id),ht=Boolean(dt&&dt.offSide),xt=-2,Bt=-1,Ht=-2,Ut=-1,oo=function(vo){if(xt!==-1&&(xt===-2||xt>vo-1)){xt=-1,Bt=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){xt=lo,Bt=Ro;break}}}if(Ht===-2){Ht=-1,Ut=-1;for(var lo=vo;lo=0){Ht=lo,Ut=wo;break}}}},Zt=-2,fo=-1,yt=-2,He=-1,Oe=function(vo){if(Zt===-2){Zt=-1,fo=-1;for(var lo=vo-2;lo>=0;lo--){var Ro=xe._computeIndentLevel(lo);if(Ro>=0){Zt=lo,fo=Ro;break}}}if(yt!==-1&&(yt===-2||yt=0){yt=lo,He=wo;break}}}},rt=0,It=!0,pe=0,D=!0,ye=0,We=0;It||D;We++){var Ze=P-We,st=P+We;if(We!==0&&(Ze<1||ZeNe||st>Ae)&&(D=!1),We>5e4&&(It=!1,D=!1),It){var mt=void 0,Kt=this._computeIndentLevel(Ze-1);if(Kt>=0?(Ht=Ze-1,Ut=Kt,mt=Math.ceil(Kt/this._options.indentSize)):(oo(Ze),mt=this._getIndentLevelForWhitespaceLine(ht,Bt,Ut)),We===0){if(rt=Ze,pe=st,ye=mt,ye===0)return{startLineNumber:rt,endLineNumber:pe,indent:ye};continue}mt>=ye?rt=Ze:It=!1}if(D){var Xt=void 0,Kt=this._computeIndentLevel(st-1);Kt>=0?(Zt=st-1,fo=Kt,Xt=Math.ceil(Kt/this._options.indentSize)):(Oe(st),Xt=this._getIndentLevelForWhitespaceLine(ht,fo,He)),Xt>=ye?pe=st:D=!1}}return{startLineNumber:rt,endLineNumber:pe,indent:ye}},M.prototype.getLinesIndentGuides=function(P,Z){this._assertNotDisposed();var Ae=this.getLineCount();if(P<1||P>Ae)throw new Error("Illegal value for startLineNumber");if(Z<1||Z>Ae)throw new Error("Illegal value for endLineNumber");for(var xe=co.a.getFoldingRules(this._languageIdentifier.id),Ne=Boolean(xe&&xe.offSide),dt=new Array(Z-P+1),ht=-2,xt=-1,Bt=-2,Ht=-1,Ut=P;Ut<=Z;Ut++){var oo=Ut-P,Zt=this._computeIndentLevel(Ut-1);if(Zt>=0){ht=Ut-1,xt=Zt,dt[oo]=Math.ceil(Zt/this._options.indentSize);continue}if(ht===-2){ht=-1,xt=-1;for(var fo=Ut-2;fo>=0;fo--){var yt=this._computeIndentLevel(fo);if(yt>=0){ht=fo,xt=yt;break}}}if(Bt!==-1&&(Bt===-2||Bt=0){Bt=fo,Ht=yt;break}}}dt[oo]=this._getIndentLevelForWhitespaceLine(Ne,xt,Ht)}return dt},M.prototype._getIndentLevelForWhitespaceLine=function(P,Z,Ae){return Z===-1||Ae===-1?0:Z0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(P):this._deferredEvent=P;return}this._fastEmitter.fire(P),this._slowEmitter.fire(P)},M}(J.a)},tXSY:function(Lt,j,e){"use strict";e.r(j),e.d(j,"SnippetController2",function(){return je});var T=e("pmY6"),re=e("N0LK"),J=e("sswD"),I=e("aokT"),U=e("gCVg"),z=e("wQH0"),O=e("QVNv"),H=e("T8No"),x=e("09fa"),u=e("6OMU"),y=e("dFcq"),_=e("0/Sa"),f=e("tX9W"),v=e("9XeP"),w=e("EWX2"),p=e("Cg/j"),c=e("uACm"),s=e("3/fG"),l=e("MrjW"),d=e("gslv"),m=e("cMvZ"),E=e("bY76"),L="code-workspace";function A(me){return me instanceof E.a}function k(me){return me.configuration?{configPath:me.configuration,id:me.id}:me.folders.length===1?me.folders[0].uri:void 0}var R=e("3rx1"),$=function(){function me(ge){this._delegates=ge}return me.prototype.resolve=function(ge){for(var we=0,Re=this._delegates;we=0){for(var Re=[],Ee=0,ve=this._placeholderGroups[this._placeholderGroupsIdx];Ee0&&this._editor.executeEdits("snippet.placeholderTransform",Re)}var oe=!1;ge===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,oe=!0);var be=this._editor.getModel().changeDecorations(function(De){for(var Se=new Set,Ve=[],Qe=0,it=we._placeholderGroups[we._placeholderGroupsIdx];Qe0)return!0}we=we.parent}return!1},Object.defineProperty(me.prototype,"isAtFirstPlaceholder",{get:function(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"isAtLastPlaceholder",{get:function(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1},enumerable:!0,configurable:!0}),Object.defineProperty(me.prototype,"hasPlaceholder",{get:function(){return this._snippet.placeholders.length>0},enumerable:!0,configurable:!0}),me.prototype.computePossibleSelections=function(){for(var ge=new Map,we=0,Re=this._placeholderGroups;we0&&Rt!==oe.getLineFirstNonWhitespaceColumn(so.positionLineNumber),!0),at.resolveVariables(new $([De,new B(Ve,Pt,Mt.length,ge.getOption(60)==="spread"),new ie(oe,so),new le(oe),new Ce,new Me(be),new Te]));var ut=oe.getOffsetAt(tt)+Qe;Qe+=at.toString().length-oe.getValueLengthInRange(At),F[Pt]=_.a.replace(At,at.toString()),se[Pt]=new ne(ge,at,ut)}return{edits:F,snippets:se}},me.prototype.dispose=function(){Object(T.f)(this._snippets)},me.prototype._logInfo=function(){return'template="'+this._template+'", merged_templates="'+this._templateMerges.join(" -> ")+'"'},me.prototype.insert=function(){var ge=this;if(!this._editor.hasModel())return;var we=me.createEditsAndSnippets(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText),Re=we.edits,Ee=we.snippets;this._snippets=Ee,this._editor.executeEdits("snippet",Re,function(ve){return ge._snippets[0].hasPlaceholder?ge._move(!0):ve.map(function(Q){return U.a.fromPositions(Q.range.getEndPosition())})}),this._editor.revealRange(this._editor.getSelections()[0])},me.prototype.merge=function(ge,we){var Re=this;if(we===void 0&&(we=ee),!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,ge]);var Ee=me.createEditsAndSnippets(this._editor,ge,we.overwriteBefore,we.overwriteAfter,!0,we.adjustWhitespace,we.clipboardText),ve=Ee.edits,Q=Ee.snippets;this._editor.executeEdits("snippet",ve,function(C){for(var F=0,se=Re._snippets;F0},me}(),q=function(){return q=Object.assign||function(me){for(var ge,we=1,Re=arguments.length;we=0;C--)(Q=me[C])&&(ve=(Ee<3?Q(ve):Ee>3?Q(ge,we,ve):Q(ge,we))||ve);return Ee>3&&ve&&Object.defineProperty(ge,we,ve),ve},X=function(me,ge){return function(we,Re){ge(we,Re,me)}},he={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0},je=function(){function me(ge,we,Re){this._editor=ge,this._logService=we,this._snippetListener=new T.b,this._modelVersionId=-1,this._inSnippet=me.InSnippetMode.bindTo(Re),this._hasNextTabstop=me.HasNextTabstop.bindTo(Re),this._hasPrevTabstop=me.HasPrevTabstop.bindTo(Re)}return me.get=function(ge){return ge.getContribution(me.ID)},me.prototype.dispose=function(){this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),Object(T.f)(this._session),this._snippetListener.dispose()},me.prototype.insert=function(ge,we){try{this._doInsert(ge,typeof we=="undefined"?he:q(q({},he),we))}catch(Re){this.cancel(),this._logService.error(Re),this._logService.error("snippet_error"),this._logService.error("insert_template=",ge),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}},me.prototype._doInsert=function(ge,we){var Re=this;if(!this._editor.hasModel())return;this._snippetListener.clear(),we.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session?this._session.merge(ge,we):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new ae(this._editor,ge,we),this._session.insert()),we.undoStopAfter&&this._editor.getModel().pushStackElement(),this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(function(Ee){return Ee.isFlush&&Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeModel(function(){return Re.cancel()})),this._snippetListener.add(this._editor.onDidChangeCursorSelection(function(){return Re._updateState()}))},me.prototype._updateState=function(){if(!this._session||!this._editor.hasModel())return;if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()},me.prototype._handleChoice=function(){var ge=this;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}var we=this._session.choice;if(!we){this._currentChoice=void 0;return}if(this._currentChoice!==we){this._currentChoice=we,this._editor.setSelections(this._editor.getSelections().map(function(Ee){return U.a.fromPositions(Ee.getStartPosition())}));var Re=we.options[0];Object(O.f)(this._editor,we.options.map(function(Ee,ve){return{kind:13,label:Ee.value,insertText:Ee.value,sortText:Object(re.J)("a",ve+1),range:I.a.fromPositions(ge._editor.getPosition(),ge._editor.getPosition().delta(0,Re.value.length))}}))}},me.prototype.finish=function(){for(;this._inSnippet.get();)this.next()},me.prototype.cancel=function(ge){ge===void 0&&(ge=!1),this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),Object(T.f)(this._session),this._session=void 0,this._modelVersionId=-1,ge&&this._editor.setSelections([this._editor.getSelection()])},me.prototype.prev=function(){this._session&&this._session.prev(),this._updateState()},me.prototype.next=function(){this._session&&this._session.next(),this._updateState()},me.prototype.isInSnippet=function(){return Boolean(this._inSnippet.get())},me.ID="snippetController2",me.InSnippetMode=new H.d("inSnippetMode",!1),me.HasNextTabstop=new H.d("hasNextTabstop",!1),me.HasPrevTabstop=new H.d("hasPrevTabstop",!1),me=ue([X(1,x.a),X(2,H.c)],me),me}();Object(J.h)(je.ID,je);var Xe=J.c.bindToContribution(je.get);Object(J.g)(new Xe({id:"jumpToNextSnippetPlaceholder",precondition:H.a.and(je.InSnippetMode,je.HasNextTabstop),handler:function(ge){return ge.next()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:2}})),Object(J.g)(new Xe({id:"jumpToPrevSnippetPlaceholder",precondition:H.a.and(je.InSnippetMode,je.HasPrevTabstop),handler:function(ge){return ge.prev()},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:1024|2}})),Object(J.g)(new Xe({id:"leaveSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.cancel(!0)},kbOpts:{weight:100+30,kbExpr:z.a.editorTextFocus,primary:9,secondary:[1024|9]}})),Object(J.g)(new Xe({id:"acceptSnippet",precondition:je.InSnippetMode,handler:function(ge){return ge.finish()}}))},tYmi:function(Lt,j,e){"use strict";e.d(j,"b",function(){return J}),e.d(j,"a",function(){return U});var T=e("bY76"),re=e("MNsG"),J;(function(z){z.inMemory="inmemory",z.vscode="vscode",z.internal="private",z.walkThrough="walkThrough",z.walkThroughSnippet="walkThroughSnippet",z.http="http",z.https="https",z.file="file",z.mailto="mailto",z.untitled="untitled",z.data="data",z.command="command",z.vscodeRemote="vscode-remote",z.vscodeRemoteResource="vscode-remote-resource",z.userData="vscode-userdata"})(J||(J={}));var I=function(){function z(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}return z.prototype.setPreferredWebSchema=function(O){this._preferredWebSchema=O},z.prototype.rewrite=function(O){if(this._delegate)return this._delegate(O);var H=O.authority,x=this._hosts[H];x&&x.indexOf(":")!==-1&&(x="["+x+"]");var u=this._ports[H],y=this._connectionTokens[H],_="path="+encodeURIComponent(O.path);return typeof y=="string"&&(_+="&tkn="+encodeURIComponent(y)),T.a.from({scheme:re.g?this._preferredWebSchema:J.vscodeRemoteResource,authority:x+":"+u,path:"/vscode-remote-resource",query:_})},z}(),U=new I},twdY:function(Lt,j,e){"use strict";e.d(j,"r",function(){return f}),e.d(j,"A",function(){return v}),e.d(j,"F",function(){return w}),e.d(j,"E",function(){return p}),e.d(j,"y",function(){return c}),e.d(j,"h",function(){return s}),e.d(j,"G",function(){return l}),e.d(j,"z",function(){return d}),e.d(j,"n",function(){return m}),e.d(j,"D",function(){return L}),e.d(j,"u",function(){return A}),e.d(j,"v",function(){return k}),e.d(j,"d",function(){return R}),e.d(j,"x",function(){return $}),e.d(j,"p",function(){return ie}),e.d(j,"m",function(){return W}),e.d(j,"i",function(){return B}),e.d(j,"f",function(){return le}),e.d(j,"e",function(){return Ce}),e.d(j,"q",function(){return Me}),e.d(j,"C",function(){return Te}),e.d(j,"b",function(){return Fe}),e.d(j,"a",function(){return Ue}),e.d(j,"g",function(){return Pe}),e.d(j,"j",function(){return ne}),e.d(j,"t",function(){return ee}),e.d(j,"s",function(){return ae}),e.d(j,"c",function(){return q}),e.d(j,"w",function(){return ue}),e.d(j,"o",function(){return X}),e.d(j,"l",function(){return he}),e.d(j,"k",function(){return je}),e.d(j,"B",function(){return Xe});var T=e("746U"),re=e("bY76"),J=e("aokT"),I=e("MI8n"),U=e("pmY6"),z=e("l2gE");function O(me,ge,we,Re){if(Array.isArray(me)){for(var Ee=0,ve=0,Q=me;veEe&&(Ee=F)}return Ee}else{if(typeof me=="string")return Re?me==="*"?5:me===we?10:0:0;if(me){var se=me.language,oe=me.pattern,be=me.scheme,De=me.hasAccessToAllModels;if(!Re&&!De)return 0;var Ee=0;if(be)if(be===ge.scheme)Ee=10;else if(be==="*")Ee=5;else return 0;if(se)if(se===we)Ee=10;else if(se==="*")Ee=Math.max(Ee,5);else return 0;if(oe)if(oe===ge.fsPath||Object(z.a)(oe,ge.fsPath))Ee=10;else return 0;return Ee}else return 0}}var H=e("G2kB");function x(me){return typeof me=="string"?!1:Array.isArray(me)?me.every(x):!!me.exclusive}var u=function(){function me(){this._clock=0,this._entries=[],this._onDidChange=new I.a}return Object.defineProperty(me.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),me.prototype.register=function(ge,we){var Re=this,Ee={selector:ge,provider:we,_score:-1,_time:this._clock++};return this._entries.push(Ee),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),Object(U.h)(function(){if(Ee){var ve=Re._entries.indexOf(Ee);ve>=0&&(Re._entries.splice(ve,1),Re._lastCandidate=void 0,Re._onDidChange.fire(Re._entries.length),Ee=void 0)}})},me.prototype.has=function(ge){return this.all(ge).length>0},me.prototype.all=function(ge){if(!ge)return[];this._updateScores(ge);for(var we=[],Re=0,Ee=this._entries;Re0&&we.push(ve.provider)}return we},me.prototype.ordered=function(ge){var we=[];return this._orderedForEach(ge,function(Re){return we.push(Re.provider)}),we},me.prototype.orderedGroups=function(ge){var we=[],Re,Ee;return this._orderedForEach(ge,function(ve){Re&&Ee===ve._score?Re.push(ve.provider):(Ee=ve._score,Re=[ve.provider],we.push(Re))}),we},me.prototype._orderedForEach=function(ge,we){if(!ge)return;this._updateScores(ge);for(var Re=0,Ee=this._entries;Re0&&we(ve)}},me.prototype._updateScores=function(ge){var we={uri:ge.uri.toString(),language:ge.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===we.language&&this._lastCandidate.uri===we.uri)return;this._lastCandidate=we;for(var Re=0,Ee=this._entries;Re0){for(var Q=0,C=this._entries;Qwe._score?-1:ge._timewe._time?-1:0},me}(),y=e("QDVR"),_=function(){function me(){this._map=new Map,this._promises=new Map,this._onDidChange=new I.a,this.onDidChange=this._onDidChange.event,this._colorMap=null}return me.prototype.fire=function(ge){this._onDidChange.fire({changedLanguages:ge,changedColorMap:!1})},me.prototype.register=function(ge,we){var Re=this;return this._map.set(ge,we),this.fire([ge]),Object(U.h)(function(){if(Re._map.get(ge)!==we)return;Re._map.delete(ge),Re.fire([ge])})},me.prototype.registerPromise=function(ge,we){var Re=this,Ee=null,ve=!1;return this._promises.set(ge,we.then(function(Q){if(Re._promises.delete(ge),ve||!Q)return;Ee=Re.register(ge,Q)})),Object(U.h)(function(){ve=!0,Ee&&Ee.dispose()})},me.prototype.getPromise=function(ge){var we=this,Re=this.get(ge);if(Re)return Promise.resolve(Re);var Ee=this._promises.get(ge);return Ee?Ee.then(function(ve){return we.get(ge)}):null},me.prototype.get=function(ge){return Object(T.o)(this._map.get(ge))},me.prototype.setColorMap=function(ge){this._colorMap=ge,this._onDidChange.fire({changedLanguages:Object(y.d)(this._map),changedColorMap:!0})},me.prototype.getColorMap=function(){return this._colorMap},me.prototype.getDefaultBackground=function(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null},me}(),f=function(){function me(ge,we){this.language=ge,this.id=we}return me}(),v=function(){function me(){}return me.getLanguageId=function(ge){return(ge&255)>>>0},me.getTokenType=function(ge){return(ge&1792)>>>8},me.getFontStyle=function(ge){return(ge&14336)>>>11},me.getForeground=function(ge){return(ge&8372224)>>>14},me.getBackground=function(ge){return(ge&4286578688)>>>23},me.getClassNameFromMetadata=function(ge){var we=this.getForeground(ge),Re="mtk"+we,Ee=this.getFontStyle(ge);return Ee&1&&(Re+=" mtki"),Ee&2&&(Re+=" mtkb"),Ee&4&&(Re+=" mtku"),Re},me.getInlineStyleFromMetadata=function(ge,we){var Re=this.getForeground(ge),Ee=this.getFontStyle(ge),ve="color: "+we[Re]+";";return Ee&1&&(ve+="font-style: italic;"),Ee&2&&(ve+="font-weight: bold;"),Ee&4&&(ve+="text-decoration: underline;"),ve},me}(),w=function(){var me=Object.create(null);return me[0]="method",me[1]="function",me[2]="constructor",me[3]="field",me[4]="variable",me[5]="class",me[6]="struct",me[7]="interface",me[8]="module",me[9]="property",me[10]="event",me[11]="operator",me[12]="unit",me[13]="value",me[14]="constant",me[15]="enum",me[16]="enum-member",me[17]="keyword",me[25]="snippet",me[18]="text",me[19]="color",me[20]="file",me[21]="reference",me[22]="customcolor",me[23]="folder",me[24]="type-parameter",function(ge){return me[ge]||"property"}}(),p=function(){var me=Object.create(null);return me.method=0,me.function=1,me.constructor=2,me.field=3,me.variable=4,me.class=5,me.struct=6,me.interface=7,me.module=8,me.property=9,me.event=10,me.operator=11,me.unit=12,me.value=13,me.constant=14,me.enum=15,me["enum-member"]=16,me.enumMember=16,me.keyword=17,me.snippet=25,me.text=18,me.color=19,me.file=20,me.reference=21,me.customcolor=22,me.folder=23,me["type-parameter"]=24,me.typeParameter=24,function(ge,we){var Re=me[ge];return typeof Re=="undefined"&&!we&&(Re=9),Re}}(),c;(function(me){me[me.Invoke=1]="Invoke",me[me.TriggerCharacter=2]="TriggerCharacter",me[me.ContentChange=3]="ContentChange"})(c||(c={}));var s;(function(me){me[me.Text=0]="Text",me[me.Read=1]="Read",me[me.Write=2]="Write"})(s||(s={}));function l(me){return me&&re.a.isUri(me.uri)&&J.a.isIRange(me.range)&&(J.a.isIRange(me.originSelectionRange)||J.a.isIRange(me.targetSelectionRange))}var d;(function(me){var ge=new Map;ge.set("file",0),ge.set("module",1),ge.set("namespace",2),ge.set("package",3),ge.set("class",4),ge.set("method",5),ge.set("property",6),ge.set("field",7),ge.set("constructor",8),ge.set("enum",9),ge.set("interface",10),ge.set("function",11),ge.set("variable",12),ge.set("constant",13),ge.set("string",14),ge.set("number",15),ge.set("boolean",16),ge.set("array",17),ge.set("object",18),ge.set("key",19),ge.set("null",20),ge.set("enum-member",21),ge.set("struct",22),ge.set("event",23),ge.set("operator",24),ge.set("type-parameter",25);var we=new Map;we.set(0,"file"),we.set(1,"module"),we.set(2,"namespace"),we.set(3,"package"),we.set(4,"class"),we.set(5,"method"),we.set(6,"property"),we.set(7,"field"),we.set(8,"constructor"),we.set(9,"enum"),we.set(10,"interface"),we.set(11,"function"),we.set(12,"variable"),we.set(13,"constant"),we.set(14,"string"),we.set(15,"number"),we.set(16,"boolean"),we.set(17,"array"),we.set(18,"object"),we.set(19,"key"),we.set(20,"null"),we.set(21,"enum-member"),we.set(22,"struct"),we.set(23,"event"),we.set(24,"operator"),we.set(25,"type-parameter");function Re(Q){return ge.get(Q)}me.fromString=Re;function Ee(Q){return we.get(Q)}me.toString=Ee;function ve(Q,C){return"codicon "+(C?"inline":"block")+" codicon-symbol-"+(we.get(Q)||"property")}me.toCssClassName=ve})(d||(d={}));var m=function(){function me(ge){this.value=ge}return me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me}(),E;(function(me){function ge(we){return Object(T.i)(we)&&(Boolean(we.newUri)||Boolean(we.oldUri))}me.is=ge})(E||(E={}));var L;(function(me){function ge(we){return Object(T.i)(we)&&re.a.isUri(we.resource)&&Object(T.i)(we.edit)}me.is=ge})(L||(L={}));var A=new u,k=new u,R=new u,$=new u,ie=new u,W=new u,B=new u,le=new u,Ce=new u,Me=new u,Te=new u,Fe=new u,Ue=new u,Pe=new u,ne=new u,ee=new u,ae=new u,q=new u,ue=new u,X=new u,he=new u,je=new u,Xe=new _},uACm:function(Lt,j,e){"use strict";e.d(j,"d",function(){return z}),e.d(j,"b",function(){return H}),e.d(j,"a",function(){return x}),e.d(j,"c",function(){return w});var T=function(){var p=function(s,l){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,m){d.__proto__=m}||function(d,m){for(var E in m)m.hasOwnProperty(E)&&(d[E]=m[E])},p(s,l)};return function(c,s){p(c,s);function l(){this.constructor=c}c.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}}(),re=function(){for(var p=0,c=0,s=arguments.length;c=48&&c<=57},p.isVariableCharacter=function(c){return c===95||c>=97&&c<=122||c>=65&&c<=90},p.prototype.text=function(c){this.value=c,this.pos=0},p.prototype.tokenText=function(c){return this.value.substr(c.pos,c.len)},p.prototype.next=function(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};var c=this.pos,s=0,l=this.value.charCodeAt(c),d;if(d=p._table[l],typeof d=="number")return this.pos+=1,{type:d,pos:c,len:1};if(p.isDigitCharacter(l)){d=8;do s+=1,l=this.value.charCodeAt(c+s);while(p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}if(p.isVariableCharacter(l)){d=9;do l=this.value.charCodeAt(c+ ++s);while(p.isVariableCharacter(l)||p.isDigitCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}}d=10;do s+=1,l=this.value.charCodeAt(c+s);while(!isNaN(l)&&typeof p._table[l]=="undefined"&&!p.isDigitCharacter(l)&&!p.isVariableCharacter(l));return this.pos+=s,{type:d,pos:c,len:s}},p._table=(J={},J[36]=0,J[58]=1,J[44]=2,J[123]=3,J[125]=4,J[92]=5,J[47]=6,J[124]=7,J[43]=11,J[45]=12,J[63]=13,J),p}(),U=function(){function p(){this._children=[]}return p.prototype.appendChild=function(c){return c instanceof z&&this._children[this._children.length-1]instanceof z?this._children[this._children.length-1].value+=c.value:(c.parent=this,this._children.push(c)),this},p.prototype.replace=function(c,s){var l=c.parent,d=l.children.indexOf(c),m=l.children.slice(0);m.splice.apply(m,re([d,1],s)),l._children=m,function E(L,A){for(var k=0,R=L;kl.index?1:0},Object.defineProperty(c.prototype,"isFinalTabstop",{get:function(){return this.index===0},enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"choice",{get:function(){return this._children.length===1&&this._children[0]instanceof x?this._children[0]:void 0},enumerable:!0,configurable:!0}),c.prototype.clone=function(){var s=new c(this.index);return this.transform&&(s.transform=this.transform.clone()),s._children=this.children.map(function(l){return l.clone()}),s},c}(O),x=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.options=[],s}return c.prototype.appendChild=function(s){return s instanceof z&&(s.parent=this,this.options.push(s)),this},c.prototype.toString=function(){return this.options[0].value},c.prototype.len=function(){return this.options[0].len()},c.prototype.clone=function(){var s=new c;return this.options.forEach(s.appendChild,s),s},c}(U),u=function(p){T(c,p);function c(){var s=p!==null&&p.apply(this,arguments)||this;return s.regexp=new RegExp(""),s}return c.prototype.resolve=function(s){var l=this,d=!1,m=s.replace(this.regexp,function(){return d=!0,l._replace(Array.prototype.slice.call(arguments,0,-2))});return!d&&this._children.some(function(E){return E instanceof y&&Boolean(E.elseValue)})&&(m=this._replace([])),m},c.prototype._replace=function(s){for(var l="",d=0,m=this._children;d0;){var l=s.shift(),d=c(l);if(!d)break;s.unshift.apply(s,l.children)}}var v=function(p){T(c,p);function c(){return p!==null&&p.apply(this,arguments)||this}return Object.defineProperty(c.prototype,"placeholderInfo",{get:function(){if(!this._placeholders){var l=[],d;this.walk(function(m){return m instanceof H&&(l.push(m),d=!d||d.index0?m.set(Ce.index,Ce.children):E.push(Ce)),!0});for(var A=0,k=E;A0&&s),!m.has(0)&&l&&d.appendChild(new H(0)),d},p.prototype._accept=function(c,s){if(c===void 0||this._token.type===c){var l=s?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),l}return!1},p.prototype._backTo=function(c){return this._scanner.pos=c.pos+c.len,this._token=c,!1},p.prototype._until=function(c){for(var s=this._token;this._token.type!==c;){if(this._token.type===14)return!1;if(this._token.type===5){var l=this._scanner.next();if(l.type!==0&&l.type!==4&&l.type!==5)return!1}this._token=this._scanner.next()}var d=this._scanner.value.substring(s.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),d},p.prototype._parse=function(c){return this._parseEscaped(c)||this._parseTabstopOrVariableName(c)||this._parseComplexPlaceholder(c)||this._parseComplexVariable(c)||this._parseAnything(c)},p.prototype._parseEscaped=function(c){var s;return(s=this._accept(5,!0))?(s=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||s,c.appendChild(new z(s)),!0):!1},p.prototype._parseTabstopOrVariableName=function(c){var s,l=this._token,d=this._accept(0)&&(s=this._accept(9,!0)||this._accept(8,!0));return d?(c.appendChild(/^\d+$/.test(s)?new H(Number(s)):new _(s)),!0):this._backTo(l)},p.prototype._parseComplexPlaceholder=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(8,!0));if(!d)return this._backTo(l);var m=new H(Number(s));if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else if(m.index>0&&this._accept(7))for(var E=new x;;){if(this._parseChoiceElement(E)){if(this._accept(2))continue;if(this._accept(7)&&(m.appendChild(E),this._accept(4)))return c.appendChild(m),!0}return this._backTo(l),!1}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseChoiceElement=function(c){for(var s=this._token,l=[];!(this._token.type===2||this._token.type===7);){var d=void 0;if((d=this._accept(5,!0))?d=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||d:d=this._accept(void 0,!0),!d)return this._backTo(s),!1;l.push(d)}return l.length===0?(this._backTo(s),!1):(c.appendChild(new z(l.join(""))),!0)},p.prototype._parseComplexVariable=function(c){var s,l=this._token,d=this._accept(0)&&this._accept(3)&&(s=this._accept(9,!0));if(!d)return this._backTo(l);var m=new _(s);if(this._accept(1))for(;;){if(this._accept(4))return c.appendChild(m),!0;if(this._parse(m))continue;return c.appendChild(new z("${"+s+":")),m.children.forEach(c.appendChild,c),!0}else return this._accept(6)?this._parseTransform(m)?(c.appendChild(m),!0):(this._backTo(l),!1):this._accept(4)?(c.appendChild(m),!0):this._backTo(l)},p.prototype._parseTransform=function(c){for(var s=new u,l="",d="";!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(6,!0)||m,l+=m;continue}if(this._token.type!==14){l+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){var m=void 0;if(m=this._accept(5,!0)){m=this._accept(5,!0)||this._accept(6,!0)||m,s.appendChild(new z(m));continue}if(this._parseFormatString(s)||this._parseAnything(s))continue;return!1}for(;!this._accept(4);){if(this._token.type!==14){d+=this._accept(void 0,!0);continue}return!1}try{s.regexp=new RegExp(l,d)}catch(E){return!1}return c.transform=s,!0},p.prototype._parseFormatString=function(c){var s=this._token;if(!this._accept(0))return!1;var l=!1;this._accept(3)&&(l=!0);var d=this._accept(8,!0);if(d)if(l){if(this._accept(4))return c.appendChild(new y(Number(d))),!0;if(!this._accept(1))return this._backTo(s),!1}else return c.appendChild(new y(Number(d))),!0;else return this._backTo(s),!1;if(this._accept(6)){var m=this._accept(9,!0);return!m||!this._accept(4)?(this._backTo(s),!1):(c.appendChild(new y(Number(d),m)),!0)}else if(this._accept(11)){var E=this._until(4);if(E)return c.appendChild(new y(Number(d),void 0,E,void 0)),!0}else if(this._accept(12)){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}else if(this._accept(13)){var E=this._until(1);if(E){var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,E,L)),!0}}else{var L=this._until(4);if(L)return c.appendChild(new y(Number(d),void 0,void 0,L)),!0}return this._backTo(s),!1},p.prototype._parseAnything=function(c){return this._token.type!==14?(c.appendChild(new z(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1},p}()},uAX5:function(Lt,j,e){},uDWl:function(Lt,j,e){"use strict";e.d(j,"a",function(){return y});var T=e("D3Dy"),re=e("/kV6"),J=e("MNsG"),I=new Array(230),U=new Array(112);(function(){for(var _=0;_0){d=E[0].getStartPosition();var L=l.getTopForPosition(d.lineNumber,d.column);m=l.getScrollTop()-L}}return new s(d,m)},s.prototype.restore=function(l){if(this._visiblePosition){var d=l.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);l.setScrollTop(d+this._visiblePositionScrollDelta)}},s}()},vMFT:function(Lt,j,e){},vRMv:function(Lt,j,e){"use strict";e.d(j,"b",function(){return x}),e.d(j,"a",function(){return u}),e.d(j,"c",function(){return y}),e.d(j,"e",function(){return _}),e.d(j,"d",function(){return f});var T=e("6OMU"),re=e("JQT/"),J=e("/cxE"),I=e("sswD"),U=e("twdY"),z=function(v,w,p,c){function s(l){return l instanceof p?l:new p(function(d){d(l)})}return new(p||(p=Promise))(function(l,d){function m(A){try{L(c.next(A))}catch(k){d(k)}}function E(A){try{L(c.throw(A))}catch(k){d(k)}}function L(A){A.done?l(A.value):s(A.value).then(m,E)}L((c=c.apply(v,w||[])).next())})},O=function(v,w){var p={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,s,l,d;return d={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function m(L){return function(A){return E([L,A])}}function E(L){if(c)throw new TypeError("Generator is already executing.");for(;p;)try{if(c=1,s&&(l=L[0]&2?s.return:L[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,L[1])).done)return l;(s=0,l)&&(L=[L[0]&2,l.value]);switch(L[0]){case 0:case 1:l=L;break;case 4:return p.label++,{value:L[1],done:!1};case 5:p.label++,s=L[1],L=[0];continue;case 7:L=p.ops.pop(),p.trys.pop();continue;default:if(!(l=p.trys,l=l.length>0&&l[l.length-1])&&(L[0]===6||L[0]===2)){p=0;continue}if(L[0]===3&&(!l||L[1]>l[0]&&L[1]0)for(var s=0,l=c;s1){var A=re.a.visibleColumnFromColumn(E,L+1,w);if(A%p!==0&&u.isCheapToTokenize(m-1)){var k=U.a.getEnterAction(this._opts.autoIndent,u,new J.a(m-1,u.getLineMaxColumn(m-1),m-1,u.getLineMaxColumn(m-1)));if(k){if(d=l,k.appendText)for(var R=0,$=k.appendText.length;R<$&&d0){w=Math.min(p<=.5?c/(2*p):c/(2-2*p),1);switch(_){case H:v=(x-u)/c+(x1&&(x-=1),x<1/6?O+(H-O)*6*x:x<1/2?H:x<2/3?O+(H-O)*(2/3-x)*6:O},z.toRGBA=function(O){var H=O.h/360,x=O.s,u=O.l,y=O.a,_,f,v;if(x===0)_=f=v=u;else{var w=u<.5?u*(1+x):u+x-u*x,p=2*u-w;_=z._hue2rgb(p,w,H+1/3),f=z._hue2rgb(p,w,H),v=z._hue2rgb(p,w,H-1/3)}return new re(Math.round(_*255),Math.round(f*255),Math.round(v*255),y)},z}(),I=function(){function z(O,H,x,u){this.h=Math.max(Math.min(360,O),0)|0,this.s=T(Math.max(Math.min(1,H),0),3),this.v=T(Math.max(Math.min(1,x),0),3),this.a=T(Math.max(Math.min(1,u),0),3)}return z.equals=function(O,H){return O.h===H.h&&O.s===H.s&&O.v===H.v&&O.a===H.a},z.fromRGBA=function(O){var H=O.r/255,x=O.g/255,u=O.b/255,y=Math.max(H,x,u),_=Math.min(H,x,u),f=y-_,v=y===0?0:f/y,w;return f===0?w=0:y===H?w=((x-u)/f%6+6)%6:y===x?w=(u-H)/f+2:w=(H-x)/f+4,new z(Math.round(w*60),v,y,O.a)},z.toRGBA=function(O){var H=O.h,x=O.s,u=O.v,y=O.a,_=u*x,f=_*(1-Math.abs(H/60%2-1)),v=u-_,w=[0,0,0],p=w[0],c=w[1],s=w[2];return H<60?(p=_,c=f):H<120?(p=f,c=_):H<180?(c=_,s=f):H<240?(c=f,s=_):H<300?(p=f,s=_):H<360&&(p=_,s=f),p=Math.round((p+v)*255),c=Math.round((c+v)*255),s=Math.round((s+v)*255),new re(p,c,s,y)},z}(),U=function(){function z(O){if(O)if(O instanceof re)this.rgba=O;else if(O instanceof J)this._hsla=O,this.rgba=J.toRGBA(O);else if(O instanceof I)this._hsva=O,this.rgba=I.toRGBA(O);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}return z.fromHex=function(O){return z.Format.CSS.parseHex(O)||z.red},Object.defineProperty(z.prototype,"hsla",{get:function(){return this._hsla?this._hsla:J.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),Object.defineProperty(z.prototype,"hsva",{get:function(){return this._hsva?this._hsva:I.fromRGBA(this.rgba)},enumerable:!0,configurable:!0}),z.prototype.equals=function(O){return!!O&&re.equals(this.rgba,O.rgba)&&J.equals(this.hsla,O.hsla)&&I.equals(this.hsva,O.hsva)},z.prototype.getRelativeLuminance=function(){var O=z._relativeLuminanceForComponent(this.rgba.r),H=z._relativeLuminanceForComponent(this.rgba.g),x=z._relativeLuminanceForComponent(this.rgba.b),u=.2126*O+.7152*H+.0722*x;return T(u,4)},z._relativeLuminanceForComponent=function(O){var H=O/255;return H<=.03928?H/12.92:Math.pow((H+.055)/1.055,2.4)},z.prototype.isLighter=function(){var O=(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3;return O>=128},z.prototype.isLighterThan=function(O){var H=this.getRelativeLuminance(),x=O.getRelativeLuminance();return H>x},z.prototype.isDarkerThan=function(O){var H=this.getRelativeLuminance(),x=O.getRelativeLuminance();return H2*1024*1024){y.b.info("\u4EC5\u652F\u6301\u6587\u4EF6\u5927\u5C0F\u5C0F\u4E8E2M\u7684\u6587\u4EF6");return}var s=new FileReader;s.onload=function(){d(s.result)},s.readAsDataURL(u[0])},G=function(){var p=Object(I.a)(S.a.mark(function i(){var f,u,x;return S.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return u=L.current.getCroppedCanvas().toDataURL("image/jpeg"),u||y.b.info("\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),P.next=4,M({type:"account/updateAvatar",payload:{image:u,login:(f=c.userInfo)===null||f===void 0?void 0:f.login}});case 4:x=P.sent,O(),x.status===0&&(y.b.info("\u4FEE\u6539\u5934\u50CF\u6210\u529F"),M({type:"user/getUserInfo"}));case 7:case"end":return P.stop()}},i)}));return function(){return p.apply(this,arguments)}}(),O=function(){h()};return e.a.createElement(W.a,{centered:!0,keyboard:!1,closable:!1,visible:v,title:"\u4E0A\u4F20\u5934\u50CF",width:550,forceRender:!0,confirmLoading:R["account/updateAvatar"],onOk:G,onCancel:O},e.a.createElement($.a,{spinning:!!R["account/updateAvatar"]},e.a.createElement("div",{className:U.a.modal},e.a.createElement("div",null,e.a.createElement("div",{className:U.a.avatarWrap},e.a.createElement(Y.a,{style:{height:320,width:320},ref:L,src:_,guides:!1,aspectRatio:1,preview:"#updateAvatarImg"})),e.a.createElement("span",{className:U.a.tip},"\u4EC5\u652F\u6301JPG\u3001GIF\u3001PNG\uFF0C\u4E14\u6587\u4EF6\u5C0F\u4E8E2M")),e.a.createElement("div",{className:U.a.previewWrap},e.a.createElement("div",null,e.a.createElement("div",{className:U.a.previewImg,id:"updateAvatarImg"}),e.a.createElement("div",{className:"".concat(U.a.tip," tc")},"\u5934\u50CF\u9884\u89C8")),e.a.createElement("label",{className:U.a.uploadButton,id:"uploadBtn",htmlFor:"inputImage"},e.a.createElement("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",style:{display:"none"},onChange:E}),"\u70B9\u51FB\u4E0A\u4F20")))))},Z=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.effects}})(V),H=a("10oi"),n=a.n(H),m;(function(o){o.Profile="profile",o.Certification="certification",o.Secure="secure",o.Group="teach-group",o.Binding="binding",o.Results="Results"})(m||(m={}));var K=function(t){var c,l,r,R,M,v,h,g,A=t.user,_=t.account,d=t.globalSetting,L=t.loading,E=t.dispatch,G=Object(T.a)(t,["user","account","globalSetting","loading","dispatch"]),O=Object(C.useState)(),p=Object(D.a)(O,2),i=p[0],f=p[1],u=Object(B.l)();Object(C.useEffect)(function(){var s,P=(s=u.pathname.split("/"))===null||s===void 0?void 0:s[2];f(P)},[u.pathname]);var x="".concat(w.a.IMG_SERVER,"/images/").concat((c=A.userInfo)===null||c===void 0?void 0:c.image_url);return e.a.createElement("section",{className:n.a.wrap},e.a.createElement("div",{className:n.a.avatarWrap},e.a.createElement("div",{className:n.a.avatar},e.a.createElement("div",{className:n.a.updateAvatarWrap},e.a.createElement("img",{className:n.a.img,src:x}),e.a.createElement("div",{className:n.a.updateAvatar,onClick:function(){E({type:"account/setActionTabs",payload:{key:"Account-UpdateAvatar"}})}},"\u4FEE\u6539\u5934\u50CF"))),e.a.createElement("span",{className:n.a.name},(l=A.userInfo)===null||l===void 0?void 0:l.username),e.a.createElement("span",{className:n.a.role},(r=A.userInfo)===null||r===void 0?void 0:r.user_identity)),e.a.createElement("div",null,e.a.createElement("div",{className:n.a.title},"\u8D26\u53F7\u7BA1\u7406"),e.a.createElement("ul",{className:"pl0"},e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Profile?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Profile))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-jibenxinxi font16 mr5 ".concat(n.a.colorGary)}),"\u57FA\u672C\u4FE1\u606F"),e.a.createElement("i",{className:"iconfont font16 mr25 ".concat(((R=_.basicInfo)===null||R===void 0?void 0:R.base_info_completed)?"".concat(n.a.colorGreen," icon-wancheng"):"".concat(n.a.colorRed," icon-tishi"))})),e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Certification?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Certification))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-renzhengxinxi font16 mr5 ".concat(n.a.colorGary)}),"\u8BA4\u8BC1\u4FE1\u606F"),e.a.createElement("i",{className:"iconfont font16 mr25 ".concat(((M=_.basicInfo)===null||M===void 0?void 0:M.professional_certification)==="certified"&&((v=_.basicInfo)===null||v===void 0?void 0:v.authentication)==="certified"?"".concat(n.a.colorGreen," icon-wancheng"):"".concat(n.a.colorRed," icon-tishi"))})),e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Secure?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Secure))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-anquanshezhi font16 mr5 ".concat(n.a.colorGary)}),"\u5B89\u5168\u8BBE\u7F6E")),!(d==null||((h=d.setting)===null||h===void 0)?void 0:h.is_local)&&e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Binding?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Binding))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-lianjie font16 mr5 ".concat(n.a.colorGary)}),"\u7ED1\u5B9A\u767B\u5F55\u8D26\u53F7")))),e.a.createElement(Z,{visible:((g=_.actionTabs)===null||g===void 0?void 0:g.key)==="Account-UpdateAvatar",onClose:function(){E({type:"account/setActionTabs"})}}))},k=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.models.index}})(K),Q=a("n6JY"),F=a.n(Q),q=function(t){var c,l=t.user,r=t.account,R=t.globalSetting,M=t.loading,v=t.dispatch,h=Object(T.a)(t,["user","account","globalSetting","loading","dispatch"]);return Object(C.useEffect)(function(){var g;if(!((g=l.userInfo)===null||g===void 0?void 0:g.login))return;Object(I.a)(S.a.mark(function A(){var _,d;return S.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,v({type:"account/getBasicInfo",payload:{login:(_=l.userInfo)===null||_===void 0?void 0:_.login}});case 2:d=E.sent,(d==null?void 0:d.base_info_completed)||b.c.push("/account/profile/edit");case 4:case"end":return E.stop()}},A)}))()},[(c=l.userInfo)===null||c===void 0?void 0:c.login]),e.a.createElement("section",{className:F.a.bg},e.a.createElement("div",{className:F.a.wrap},e.a.createElement(k,null),h.children))},oe=N.default=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.models.index}})(q)},n6JY:function(j,N,a){j.exports={bg:"bg___wq3H6",wrap:"wrap___13xuI"}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[33],{"10oi":function(j,N,a){j.exports={wrap:"wrap___15YxZ",avatarWrap:"avatarWrap___1SK7M",avatar:"avatar___aE2NE",updateAvatarWrap:"updateAvatarWrap___1fuUU",img:"img___1hVau",updateAvatar:"updateAvatar___3eO7J",name:"name___3A4CD",role:"role___2fZYJ",title:"title___BMo5O",colorGary:"colorGary___1xzwA",colorGreen:"colorGreen___1cWMZ",colorRed:"colorRed___3vds7",item:"item___3kvAY",active:"active___2NtTm"}},"5sM0":function(j,N,a){j.exports={modal:"modal___2DX0z",avatarWrap:"avatarWrap___2lmFf",tip:"tip___220u_",previewWrap:"previewWrap___2BJLo",previewImg:"previewImg___29S6d",uploadButton:"uploadButton___30_6b"}},m3a9:function(j,N,a){"use strict";a.r(N);var B=a("WmNS"),S=a.n(B),T=a("9og8"),I=a("PpiC"),C=a("q1tI"),e=a.n(C),b=a("9kvl"),D=a("tJVT"),G=a("Ty5D"),w=a("m3rI"),ee=a("2qtc"),W=a("kLXV"),ae=a("T2oS"),$=a("W9HT"),te=a("miYZ"),y=a("tsqr"),J=a("wyMu"),Y=a.n(J),z=a("5sM0"),U=a.n(z),ne=a("YQfW"),V=function(t){var c=t.user,l=t.account,r=t.globalSetting,R=t.loading,M=t.dispatch,v=t.visible,h=t.onClose,g=Object(C.useState)(),A=Object(D.a)(g,2),_=A[0],d=A[1],L=Object(C.useRef)();Object(C.useEffect)(function(){if(v){var E;d("".concat(w.a.IMG_SERVER,"/images/").concat((E=c.userInfo)===null||E===void 0?void 0:E.image_url))}},[c.userInfo,v]);var p=function(i){var f,u;if(i.dataTransfer?u=i.dataTransfer.files:i.target&&(u=i.target.files),!((f=u)===null||f===void 0?void 0:f.length))return;var x=u[0];if(!/^image\/\w+/.test(x.type)){y.b.info("\u8BF7\u9009\u62E9\u4E00\u4E2A\u56FE\u7247\u683C\u5F0F\u7684\u6587\u4EF6");return}if(x.size>2*1024*1024){y.b.info("\u4EC5\u652F\u6301\u6587\u4EF6\u5927\u5C0F\u5C0F\u4E8E2M\u7684\u6587\u4EF6");return}var s=new FileReader;s.onload=function(){d(s.result)},s.readAsDataURL(u[0])},X=function(){var E=Object(T.a)(S.a.mark(function i(){var f,u,x;return S.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return u=L.current.getCroppedCanvas().toDataURL("image/jpeg"),u||y.b.info("\u8BF7\u5148\u4E0A\u4F20\u56FE\u7247"),P.next=4,M({type:"account/updateAvatar",payload:{image:u,login:(f=c.userInfo)===null||f===void 0?void 0:f.login}});case 4:x=P.sent,O(),x.status===0&&(y.b.info("\u4FEE\u6539\u5934\u50CF\u6210\u529F"),M({type:"user/getUserInfo"}));case 7:case"end":return P.stop()}},i)}));return function(){return E.apply(this,arguments)}}(),O=function(){h()};return e.a.createElement(W.a,{centered:!0,keyboard:!1,closable:!1,visible:v,title:"\u4E0A\u4F20\u5934\u50CF",width:550,forceRender:!0,confirmLoading:R["account/updateAvatar"],onOk:X,onCancel:O},e.a.createElement($.a,{spinning:!!R["account/updateAvatar"]},e.a.createElement("div",{className:U.a.modal},e.a.createElement("div",null,e.a.createElement("div",{className:U.a.avatarWrap},e.a.createElement(Y.a,{style:{height:320,width:320},ref:L,src:_,guides:!1,aspectRatio:1,preview:"#updateAvatarImg"})),e.a.createElement("span",{className:U.a.tip},"\u4EC5\u652F\u6301JPG\u3001GIF\u3001PNG\uFF0C\u4E14\u6587\u4EF6\u5C0F\u4E8E2M")),e.a.createElement("div",{className:U.a.previewWrap},e.a.createElement("div",null,e.a.createElement("div",{className:U.a.previewImg,id:"updateAvatarImg"}),e.a.createElement("div",{className:"".concat(U.a.tip," tc")},"\u5934\u50CF\u9884\u89C8")),e.a.createElement("label",{className:U.a.uploadButton,id:"uploadBtn",htmlFor:"inputImage"},e.a.createElement("input",{type:"file",className:"sr-only",id:"inputImage",name:"file",accept:"image/*",style:{display:"none"},onChange:p}),"\u70B9\u51FB\u4E0A\u4F20")))))},Z=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.effects}})(V),K=a("10oi"),n=a.n(K),m;(function(o){o.Profile="profile",o.Certification="certification",o.Secure="secure",o.Group="teach-group",o.Binding="binding",o.Results="Results"})(m||(m={}));var H=function(t){var c,l,r,R,M,v,h,g,A=t.user,_=t.account,d=t.globalSetting,L=t.loading,p=t.dispatch,X=Object(I.a)(t,["user","account","globalSetting","loading","dispatch"]),O=Object(C.useState)(),E=Object(D.a)(O,2),i=E[0],f=E[1],u=Object(G.l)();Object(C.useEffect)(function(){var s,P=(s=u.pathname.split("/"))===null||s===void 0?void 0:s[2];f(P)},[u.pathname]);var x="".concat(w.a.IMG_SERVER,"/images/").concat((c=A.userInfo)===null||c===void 0?void 0:c.image_url);return e.a.createElement("section",{className:n.a.wrap},e.a.createElement("div",{className:n.a.avatarWrap},e.a.createElement("div",{className:n.a.avatar},e.a.createElement("div",{className:n.a.updateAvatarWrap},e.a.createElement("img",{className:n.a.img,src:x}),e.a.createElement("div",{className:n.a.updateAvatar,onClick:function(){p({type:"account/setActionTabs",payload:{key:"Account-UpdateAvatar"}})}},"\u4FEE\u6539\u5934\u50CF"))),e.a.createElement("span",{className:n.a.name},(l=A.userInfo)===null||l===void 0?void 0:l.username),e.a.createElement("span",{className:n.a.role},(r=A.userInfo)===null||r===void 0?void 0:r.user_identity)),e.a.createElement("div",null,e.a.createElement("div",{className:n.a.title},"\u8D26\u53F7\u7BA1\u7406"),e.a.createElement("ul",{className:"pl0"},e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Profile?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Profile))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-jibenxinxi font16 mr5 ".concat(n.a.colorGary)}),"\u57FA\u672C\u4FE1\u606F"),e.a.createElement("i",{className:"iconfont font16 mr25 ".concat(((R=_.basicInfo)===null||R===void 0?void 0:R.base_info_completed)?"".concat(n.a.colorGreen," icon-wancheng"):"".concat(n.a.colorRed," icon-tishi"))})),e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Certification?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Certification))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-renzhengxinxi font16 mr5 ".concat(n.a.colorGary)}),"\u8BA4\u8BC1\u4FE1\u606F"),e.a.createElement("i",{className:"iconfont font16 mr25 ".concat(((M=_.basicInfo)===null||M===void 0?void 0:M.professional_certification)==="certified"&&((v=_.basicInfo)===null||v===void 0?void 0:v.authentication)==="certified"?"".concat(n.a.colorGreen," icon-wancheng"):"".concat(n.a.colorRed," icon-tishi"))})),e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Secure?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Secure))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-anquanshezhi font16 mr5 ".concat(n.a.colorGary)}),"\u5B89\u5168\u8BBE\u7F6E")),!(d==null||((h=d.setting)===null||h===void 0)?void 0:h.is_local)&&e.a.createElement("li",{className:"".concat(n.a.item," ").concat(i===m.Binding?n.a.active:""),onClick:function(){return b.c.push("/account/".concat(m.Binding))}},e.a.createElement("span",null,e.a.createElement("i",{className:"iconfont icon-lianjie font16 mr5 ".concat(n.a.colorGary)}),"\u7ED1\u5B9A\u767B\u5F55\u8D26\u53F7")))),e.a.createElement(Z,{visible:((g=_.actionTabs)===null||g===void 0?void 0:g.key)==="Account-UpdateAvatar",onClose:function(){p({type:"account/setActionTabs"})}}))},Q=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.models.index}})(H),k=a("n6JY"),F=a.n(k),q=function(t){var c,l=t.user,r=t.account,R=t.globalSetting,M=t.loading,v=t.dispatch,h=Object(I.a)(t,["user","account","globalSetting","loading","dispatch"]);return Object(C.useEffect)(function(){var g;if(!((g=l.userInfo)===null||g===void 0?void 0:g.login))return;Object(T.a)(S.a.mark(function A(){var _,d;return S.a.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,v({type:"account/getBasicInfo",payload:{login:(_=l.userInfo)===null||_===void 0?void 0:_.login}});case 2:d=p.sent,(d==null?void 0:d.base_info_completed)||b.c.push("/account/profile/edit");case 4:case"end":return p.stop()}},A)}))()},[(c=l.userInfo)===null||c===void 0?void 0:c.login]),e.a.createElement("section",{className:F.a.bg},e.a.createElement("div",{className:F.a.wrap},e.a.createElement(Q,null),h.children))},oe=N.default=Object(b.a)(function(o){var t=o.user,c=o.account,l=o.loading,r=o.globalSetting;return{user:t,account:c,globalSetting:r,loading:l.models.index}})(q)},n6JY:function(j,N,a){j.exports={bg:"bg___wq3H6",wrap:"wrap___13xuI"}}}]); diff --git a/p__Account__Binding__index.b68aa69a.async.js b/p__Account__Binding__index.b68aa69a.async.js new file mode 100644 index 0000000000..11ff33fbdc --- /dev/null +++ b/p__Account__Binding__index.b68aa69a.async.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{JMrj:function(f,b,e){"use strict";e.r(b);var D=e("WmNS"),g=e.n(D),Z=e("miYZ"),R=e("tsqr"),U=e("9og8"),ee=e("2qtc"),x=e("kLXV"),M=e("tJVT"),T=e("PpiC"),p=e("q1tI"),t=e.n(p),B=e("9kvl"),S=e("cPYB"),n=e.n(S),te=e("+L6B"),Q=e("2/Rp"),I=e("TJni"),L=e.n(I),A=e("m3rI"),W=function(a){var E=a.visible,i=a.onClose,v=i===void 0?function(){}:i;return t.a.createElement(x.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:L.a.modal,visible:E,title:null,width:"530px",footer:null},t.a.createElement("div",{className:L.a.wrap},t.a.createElement("iframe",{className:L.a.iframe,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=account,").concat(window.location.host,"#wechat_redirect")}),t.a.createElement("div",{className:"clearfix pagemancenter"},t.a.createElement(Q.a,{type:"link",onClick:v},"\u53D6\u6D88"))))},F=e("1vsH"),h;(function(c){c.Wechat="wechat",c.QQ="qq"})(h||(h={}));var X=function(a){var E=a.user,i=a.account,v=a.globalSetting,oe=a.loading,C=a.dispatch,ae=Object(T.a)(a,["user","account","globalSetting","loading","dispatch"]),q=Object(p.useState)({}),O=Object(M.a)(q,2),j=O[0],$=O[1],J=Object(p.useState)({}),y=Object(M.a)(J,2),w=y[0],Y=y[1],V=Object(p.useState)(),N=Object(M.a)(V,2),G=N[0],P=N[1];Object(p.useEffect)(function(){var d,l,u=((d=i.basicInfo)===null||d===void 0?void 0:d.open_users.find(function(o){return o.en_type===h.Wechat}))||{};$(u);var r=((l=i.basicInfo)===null||l===void 0?void 0:l.open_users.find(function(o){return o.en_type===h.QQ}))||{};Y(r)},[i.basicInfo]);var K=function(){if(j.id){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u89E3\u7ED1\u5FAE\u4FE1\u8D26\u53F7\uFF1F",className:n.a.modal,onOk:function(){var l=Object(U.a)(g.a.mark(function r(){var o,_,m;return g.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,C({type:"account/unbindAccount",payload:{basicInfoId:(o=i.basicInfo)===null||o===void 0?void 0:o.id,id:j.id}});case 2:_=s.sent,_&&(R.b.info("\u89E3\u7ED1\u6210\u529F\uFF01"),C({type:"account/getBasicInfo",payload:{login:(m=E.userInfo)===null||m===void 0?void 0:m.login}}));case 4:case"end":return s.stop()}},r)}));function u(){return l.apply(this,arguments)}return u}()});return}P(!0)},k=function(){if(w.id){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u89E3\u7ED1QQ\u8D26\u53F7\uFF1F",className:n.a.modal,onOk:function(){var l=Object(U.a)(g.a.mark(function r(){var o,_,m;return g.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,C({type:"account/unbindAccount",payload:{basicInfoId:(o=i.basicInfo)===null||o===void 0?void 0:o.id,id:w.id}});case 2:_=s.sent,_&&(R.b.info("\u89E3\u7ED1\u6210\u529F\uFF01"),C({type:"account/getBasicInfo",payload:{login:(m=E.userInfo)===null||m===void 0?void 0:m.login}}));case 4:case"end":return s.stop()}},r)}));function u(){return l.apply(this,arguments)}return u}()});return}z()},z=function(){var l=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],u=navigator.userAgent,r=l.some(function(o){return u.includes(o)});r?Object(F.L)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginqq&state=account,").concat(window.location.host,"&response_type=code")):window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginqq&state=account,").concat(window.location.host,"&response_type=code")};return t.a.createElement("section",{className:n.a.wrap},t.a.createElement("div",{className:n.a.content},t.a.createElement("div",{className:"".concat(n.a.titleWrap," mt10")},t.a.createElement("div",{className:n.a.title},"\u7ED1\u5B9A\u767B\u5F55\u8D26\u53F7")),t.a.createElement("div",{className:n.a.bind},t.a.createElement("div",{className:n.a.flexRow},t.a.createElement("i",{className:"iconfont icon-weixin2 mr10 ".concat(n.a.wechatLogo)}),"\u5FAE\u4FE1"),t.a.createElement("span",{className:"".concat(n.a.action," current"),onClick:K},j.id?"\u89E3\u7ED1":"\u7ED1\u5B9A")),t.a.createElement("div",{className:n.a.bind},t.a.createElement("div",{className:n.a.flexRow},t.a.createElement("i",{className:"iconfont icon-QQ mr10 ".concat(n.a.qqLogo)}),"QQ"),t.a.createElement("span",{className:"".concat(n.a.action," current"),onClick:k},w.id?"\u89E3\u7ED1":"\u7ED1\u5B9A"))),t.a.createElement("div",{className:"".concat(n.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),t.a.createElement(W,{visible:G,onClose:function(){return P(!1)}}))},ne=b.default=Object(B.a)(function(c){var a=c.user,E=c.account,i=c.loading,v=c.globalSetting;return{user:a,account:E,globalSetting:v,loading:i.models.index}})(X)},TJni:function(f,b,e){f.exports={wrap:"wrap___1CFIP",iframe:"iframe___3dd3K"}},cPYB:function(f,b,e){f.exports={wrap:"wrap___3WotC",content:"content___3MMcY",hint:"hint___CtVJ2",titleWrap:"titleWrap___2iFn9",title:"title___1U3LO",bind:"bind___2rafm",flexRow:"flexRow___2LUKT",wechatLogo:"wechatLogo___3WUMY",qqLogo:"qqLogo___3jjYt",action:"action___1tqKS",modal:"modal___MVq7X"}}}]); diff --git a/p__Account__Binding__index.e6141793.async.js b/p__Account__Binding__index.e6141793.async.js deleted file mode 100644 index 3576862880..0000000000 --- a/p__Account__Binding__index.e6141793.async.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[34],{JMrj:function(f,g,e){"use strict";e.r(g);var D=e("c1Ei"),h=e.n(D),Z=e("miYZ"),R=e("tsqr"),U=e("5Tp6"),ee=e("2qtc"),x=e("kLXV"),M=e("k16G"),T=e("SIvP"),_=e("q1tI"),n=e.n(_),B=e("9kvl"),S=e("cPYB"),t=e.n(S),ne=e("+L6B"),Q=e("2/Rp"),I=e("TJni"),L=e.n(I),A=e("m3rI"),W=function(a){var E=a.visible,i=a.onClose,b=i===void 0?function(){}:i;return n.a.createElement(x.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,className:L.a.modal,visible:E,title:null,width:"530px",footer:null},n.a.createElement("div",{className:L.a.wrap},n.a.createElement("iframe",{className:L.a.iframe,frameBorder:"0",sandbox:"allow-scripts allow-same-origin allow-top-navigation",scrolling:"no",src:"https://open.weixin.qq.com/connect/qrconnect?appid=wx6b119e2d829c13fa&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginstart&response_type=code&scope=snsapi_login&state=account,").concat(window.location.host,"#wechat_redirect")}),n.a.createElement("div",{className:"clearfix pagemancenter"},n.a.createElement(Q.a,{type:"link",onClick:b},"\u53D6\u6D88"))))},F=e("1vsH"),v;(function(c){c.Wechat="wechat",c.QQ="qq"})(v||(v={}));var X=function(a){var E=a.user,i=a.account,b=a.globalSetting,oe=a.loading,C=a.dispatch,ae=Object(T.a)(a,["user","account","globalSetting","loading","dispatch"]),q=Object(_.useState)({}),O=Object(M.a)(q,2),j=O[0],$=O[1],J=Object(_.useState)({}),y=Object(M.a)(J,2),w=y[0],Y=y[1],G=Object(_.useState)(),N=Object(M.a)(G,2),V=N[0],P=N[1];Object(_.useEffect)(function(){var d,l,u=((d=i.basicInfo)===null||d===void 0?void 0:d.open_users.find(function(o){return o.en_type===v.Wechat}))||{};$(u);var r=((l=i.basicInfo)===null||l===void 0?void 0:l.open_users.find(function(o){return o.en_type===v.QQ}))||{};Y(r)},[i.basicInfo]);var K=function(){if(j.id){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u89E3\u7ED1\u5FAE\u4FE1\u8D26\u53F7\uFF1F",className:t.a.modal,onOk:function(){var l=Object(U.a)(h.a.mark(function r(){var o,p,m;return h.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,C({type:"account/unbindAccount",payload:{basicInfoId:(o=i.basicInfo)===null||o===void 0?void 0:o.id,id:j.id}});case 2:p=s.sent,p&&(R.b.info("\u89E3\u7ED1\u6210\u529F\uFF01"),C({type:"account/getBasicInfo",payload:{login:(m=E.userInfo)===null||m===void 0?void 0:m.login}}));case 4:case"end":return s.stop()}},r)}));function u(){return l.apply(this,arguments)}return u}()});return}P(!0)},k=function(){if(w.id){x.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u5B9A\u89E3\u7ED1QQ\u8D26\u53F7\uFF1F",className:t.a.modal,onOk:function(){var l=Object(U.a)(h.a.mark(function r(){var o,p,m;return h.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,C({type:"account/unbindAccount",payload:{basicInfoId:(o=i.basicInfo)===null||o===void 0?void 0:o.id,id:w.id}});case 2:p=s.sent,p&&(R.b.info("\u89E3\u7ED1\u6210\u529F\uFF01"),C({type:"account/getBasicInfo",payload:{login:(m=E.userInfo)===null||m===void 0?void 0:m.login}}));case 4:case"end":return s.stop()}},r)}));function u(){return l.apply(this,arguments)}return u}()});return}z()},z=function(){var l=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],u=navigator.userAgent,r=l.some(function(o){return u.includes(o)});r?Object(F.L)("https://xui.ptlogin2.qq.com/cgi-bin/xlogin?appid=716027609&pt_3rd_aid=101508858&daid=383&pt_skey_valid=0&style=35&s_url=http%3A%2F%2Fconnect.qq.com&refer_cgi=authorize&which=&client_id=101508858&response_type=code&scope=get_user_info&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginqq&state=account,").concat(window.location.host,"&response_type=code")):window.location.href="https://graph.qq.com/oauth2.0/show?which=Login&display=pc&client_id=101508858&redirect_uri=".concat(A.a.QQLoginCB,"%2fotherloginqq&state=account,").concat(window.location.host,"&response_type=code")};return n.a.createElement("section",{className:t.a.wrap},n.a.createElement("div",{className:t.a.content},n.a.createElement("div",{className:"".concat(t.a.titleWrap," mt10")},n.a.createElement("div",{className:t.a.title},"\u7ED1\u5B9A\u767B\u5F55\u8D26\u53F7")),n.a.createElement("div",{className:t.a.bind},n.a.createElement("div",{className:t.a.flexRow},n.a.createElement("i",{className:"iconfont icon-weixin2 mr10 ".concat(t.a.wechatLogo)}),"\u5FAE\u4FE1"),n.a.createElement("span",{className:"".concat(t.a.action," current"),onClick:K},j.id?"\u89E3\u7ED1":"\u7ED1\u5B9A")),n.a.createElement("div",{className:t.a.bind},n.a.createElement("div",{className:t.a.flexRow},n.a.createElement("i",{className:"iconfont icon-QQ mr10 ".concat(t.a.qqLogo)}),"QQ"),n.a.createElement("span",{className:"".concat(t.a.action," current"),onClick:k},w.id?"\u89E3\u7ED1":"\u7ED1\u5B9A"))),n.a.createElement("div",{className:"".concat(t.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),n.a.createElement(W,{visible:V,onClose:function(){return P(!1)}}))},te=g.default=Object(B.a)(function(c){var a=c.user,E=c.account,i=c.loading,b=c.globalSetting;return{user:a,account:E,globalSetting:b,loading:i.models.index}})(X)},TJni:function(f,g,e){f.exports={wrap:"wrap___1CFIP",iframe:"iframe___3dd3K"}},cPYB:function(f,g,e){f.exports={wrap:"wrap___3WotC",content:"content___3MMcY",hint:"hint___CtVJ2",titleWrap:"titleWrap___2iFn9",title:"title___1U3LO",bind:"bind___2rafm",flexRow:"flexRow___2LUKT",wechatLogo:"wechatLogo___3WUMY",qqLogo:"qqLogo___3jjYt",action:"action___1tqKS",modal:"modal___MVq7X"}}}]); diff --git a/p__Account__Certification__index.9bc4a616.async.js b/p__Account__Certification__index.68aaf409.async.js similarity index 82% rename from p__Account__Certification__index.9bc4a616.async.js rename to p__Account__Certification__index.68aaf409.async.js index 7a523a81c3..1368cd3780 100644 --- a/p__Account__Certification__index.9bc4a616.async.js +++ b/p__Account__Certification__index.68aaf409.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{"+kOI":function(I,Q,a){I.exports={wrap:"wrap___3wWRf",content:"content___XD5hF",hint:"hint___1nYz_",titleWrap:"titleWrap___p_kaI",title:"title___ceStY",flexRow:"flexRow___Y7ggL",actionWrap:"actionWrap___22H8R",color999:"color999___321My",colorCDCDCD:"colorCDCDCD___3so-p",colorOrange:"colorOrange___ZMNSN",color28AC7F:"color28AC7F___1cDJi",auth:"auth___Svtoa",reauth:"reauth___2xYaD",modal:"modal___3q3gD"}},"48zC":function(I,Q,a){I.exports={modal:"modal___1Lr4I",colorBlue:"colorBlue___3eONV",formWrap:"formWrap___3AiHg",flexRow:"flexRow___1YwTQ",flexColumn:"flexColumn___3nOoX",example:"example___2y_Eg",exampleImg:"exampleImg___U3B1A",colorOrange:"colorOrange___1rEcQ",uploader:"uploader___26Dck",uploadImg:"uploadImg___XPpzY",imageTip:"imageTip___1psEv",uploadTipIcon:"uploadTipIcon___3GZay",uploadTip:"uploadTip___-Z_zB",color05101a:"color05101a___3XaPD",viewLargerImg:"viewLargerImg___2PLbo",footerWrap:"footerWrap___3BFRQ",note:"note___JVOeM",schoolHintWrap:"schoolHintWrap___2ze3y",colorCDCDCD:"colorCDCDCD___3A_Cr",color4CACFF:"color4CACFF___1oQk3"}},Dgm7:function(I,Q,a){I.exports=a.p+"static/auth.ea067b42.png"},KXlV:function(I,Q,a){I.exports=a.p+"static/job.65c6034f.png"},doOU:function(I,Q,a){"use strict";a.r(Q);var ea=a("c1Ei"),g=a.n(ea),Ra=a("miYZ"),T=a("tsqr"),z=a("5Tp6"),ba=a("2qtc"),pe=a("kLXV"),Oe=a("SIvP"),r=a("q1tI"),e=a.n(r),Ce=a("9kvl"),aa=a("+kOI"),s=a.n(aa),Da=a("T2oS"),We=a("W9HT"),Ua=a("+L6B"),Fe=a("2/Rp"),$e=a("IIKO"),Pa=a("7Kak"),ye=a("9yH6"),ja=a("5NDa"),xe=a("5rEg"),w=a("XEnU"),Na=a("y8nQ"),m=a("Vl3Y"),_=a("k16G"),Oa=a("DZo9"),ze=a("8z0m"),ee=a("1vsH"),ua=a("Dgm7"),ta=a.n(ua),He=a("m3rI"),na=a("48zC"),t=a.n(na),oa=ze.a.Dragger,Me=10,la=function(c){var F,A=c.user,f=c.account,H=c.globalSetting,B=c.loading,X=c.dispatch,ae=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),P=m.a.useForm(),ue=Object(_.a)(P,1),y=ue[0],Y=Object(r.useState)({}),C=Object(_.a)(Y,2),Z=C[0],N=C[1],l=Object(r.useState)(!0),x=Object(_.a)(l,2),O=x[0],V=x[1],h=Object(r.useState)(),te=Object(_.a)(h,2),M=te[0],ne=te[1],oe=Object(r.useState)(),he=Object(_.a)(oe,2),le=he[0],ve=he[1],G=Object(r.useState)(),se=Object(_.a)(G,2),Se=se[0],ge=se[1],ce=Object(r.useState)(),Be=Object(_.a)(ce,2),Le=Be[0],ie=Be[1];Object(r.useEffect)(function(){if(!f.basicInfo)return;var v=f.basicInfo,i={name:v.show_realname?v.name:Object(ee.z)(v.name),gender:v.gender};ne(v.name),V(v.show_realname),y.setFieldsValue(i),N(i)},[f.basicInfo]);var re=function(i){if(i.file.status==="uploading"){ie(!0);return}if(i.file.status==="done"){var R;console.log(i.file,i.file.response),ge((R=i.file.response)===null||R===void 0?void 0:R.id),Object(ee.x)(i.file.originFileObj,function(W){ve(W),ie(!1)})}},Re=function(i){N(Object(w.a)({},y.getFieldsValue())),"name"in i&&ne(i.name)},Ie=function(){var i=!O;V(i);var R=i?M:Object(ee.z)(M);y.setFieldsValue({name:R})},be=function(){var v=Object(z.a)(g.a.mark(function i(R){var W,de,k,Ue,Ee,Pe,$,_e;return g.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(k=R||{},Ue=k.name,Ee=k.gender,Pe=k.idNumber,le){j.next=4;break}return T.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),j.abrupt("return");case 4:return j.next=6,X({type:"account/applyRealNameAuth",payload:{id:((W=f.basicInfo)===null||W===void 0?void 0:W.id)||((de=A.userInfo)===null||de===void 0?void 0:de.login),name:Ue,gender:Ee,id_number:Pe,show_realname:O,attachment_ids:[Se]}});case 6:if($=j.sent,!(($==null?void 0:$.status)===-1)){j.next=9;break}return j.abrupt("return");case 9:De(),$&&(T.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),X({type:"account/getBasicInfo",payload:{login:(_e=A.userInfo)===null||_e===void 0?void 0:_e.login}}));case 11:case"end":return j.stop()}},i)}));return function(R){return v.apply(this,arguments)}}(),De=function(){X({type:"account/setActionTabs",payload:{}})},Te={data:{type:"real_name"},multiple:!0,withCredentials:!0,showUploadList:!1,action:"".concat(He.a.API_SERVER,"/api/attachments.json"),className:t.a.uploader,onChange:re,beforeUpload:function(i){var R=i.type==="image/jpeg"||i.type==="image/png"||i.type==="image/jpg"||i.type==="image/bmp";return R||T.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),R}};return e.a.createElement(pe.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f.actionTabs.key==="Account-RealNameAuth",title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},e.a.createElement(We.a,{spinning:!!Le},e.a.createElement(m.a,{className:t.a.formWrap,form:y,layout:"horizontal",onValuesChange:Re,onFinish:be},e.a.createElement(m.a.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Me,"\u4E2A\u5B57\u7B26")},{validator:ee.B}],extra:e.a.createElement("span",null,O?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},e.a.createElement(xe.a,{disabled:!O,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Me,"\u4E2A\u5B57\u7B26"),maxLength:Me,addonAfter:e.a.createElement("i",{className:"iconfont ".concat(O?"icon-xianshi":"icon-yincang"," font18 ").concat(t.a.color4CACFF),onClick:Ie})})),e.a.createElement(m.a.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(ye.a.Group,null,e.a.createElement(ye.a,{value:0},"\u7537"),e.a.createElement(ye.a,{value:1},"\u5973"))),e.a.createElement(m.a.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},e.a.createElement(xe.a,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),e.a.createElement(m.a.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},e.a.createElement("div",{className:t.a.flexRow},e.a.createElement("div",{className:"".concat(t.a.flexColumn," ").concat(t.a.example)},e.a.createElement("span",{className:t.a.exampleImg},e.a.createElement("img",{src:ta.a})),e.a.createElement("span",{className:"tc"},e.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),e.a.createElement("p",{className:"".concat(t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),e.a.createElement("div",{className:t.a.flexColumn},e.a.createElement(oa,Object($e.a)({},Te,{accept:".png,.jpg,.bmp,.jpeg"}),le?e.a.createElement("img",{src:le,className:t.a.uploadImg}):e.a.createElement("div",{className:t.a.imageTip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(t.a.uploadTipIcon)})),e.a.createElement("p",{className:t.a.uploadTip},e.a.createElement("a",{className:t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),e.a.createElement("span",{className:"tc"},e.a.createElement("p",{className:t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),e.a.createElement("div",{className:t.a.footerWrap},e.a.createElement(m.a.Item,null,e.a.createElement(Fe.a,{className:"mr5",size:"large",onClick:De},"\u53D6\u6D88"),e.a.createElement(Fe.a,{size:"large",type:"primary",htmlType:"submit",loading:B["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),e.a.createElement("div",{className:t.a.note},e.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),e.a.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),e.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),e.a.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),e.a.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),e.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),e.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(H==null||((F=H.setting)===null||F===void 0)?void 0:F.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),e.a.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))},sa=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.effects}})(la),ya=a("O3gP"),Ye=a("lrIw"),xa=a("14J3"),ca=a("BMrR"),Ma=a("jCWc"),fe=a("kPKH"),Sa=a("OaEy"),Ae=a("2fM7"),ia=a("HoYA"),ra=a("4nbu"),da=a("KXlV"),Ea=a.n(da),U=Ae.a.Option,_a=ze.a.Dragger,ma=function(c){var F,A,f,H=c.user,B=c.account,X=c.globalSetting,ae=c.loading,P=c.dispatch,ue=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),y=m.a.useForm(),Y=Object(_.a)(y,1),C=Y[0],Z=Object(r.useState)({}),N=Object(_.a)(Z,2),l=N[0],x=N[1],O=Object(r.useState)([]),V=Object(_.a)(O,2),h=V[0],te=V[1],M=Object(r.useState)([]),ne=Object(_.a)(M,2),oe=ne[0],he=ne[1],le=Object(r.useState)([]),ve=Object(_.a)(le,2),G=ve[0],se=ve[1],Se=Object(r.useState)([]),ge=Object(_.a)(Se,2),ce=ge[0],Be=ge[1],Le=Object(r.useState)(),ie=Object(_.a)(Le,2),re=ie[0],Re=ie[1],Ie=Object(r.useState)(),be=Object(_.a)(Ie,2),De=be[0],Te=be[1],v=Object(r.useState)(),i=Object(_.a)(v,2),R=i[0],W=i[1],de=Object(r.useState)(),k=Object(_.a)(de,2),Ue=k[0],Ee=k[1],Pe=Object(r.useState)(),$=Object(_.a)(Pe,2),_e=$[0],we=$[1];Object(r.useEffect)(function(){j()},[]),Object(r.useEffect)(function(){var n;if(!((n=B.basicInfo)===null||n===void 0?void 0:n.school_id))return;Object(z.a)(g.a.mark(function u(){var o,d;return g.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,Ge((o=B.basicInfo)===null||o===void 0?void 0:o.school_id);case 2:d=b.sent,se(d==null?void 0:d.departments);case 4:case"end":return b.stop()}},u)}))()},[(F=B.basicInfo)===null||F===void 0?void 0:F.school_id]);var j=function(){var n=Object(z.a)(g.a.mark(function u(){var o;return g.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,P({type:"account/getSchoolOption"});case 2:o=E.sent,te(o==null?void 0:o.schools);case 4:case"end":return E.stop()}},u)}));return function(){return n.apply(this,arguments)}}(),Ge=function(u){return P({type:"account/getDepartmentOption",payload:{id:u}})};Object(r.useEffect)(function(){if(!B.basicInfo)return;var n=B.basicInfo,u={identity:n.identity,school:n.school_name,department:n.department_name,studentNo:n.student_id,jobTitle:n.identity=="teacher"?n.technical_title:"\u6559\u6388",manager:n.identity=="professional"?n.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};C.setFieldsValue(u),x(u)},[B.basicInfo]);var Fa=function(){Ee(!0)},fa=function(){if(!h.find(function(u){return u.name===l.school})){T.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}we(!0)},Aa=function(u){if(x(Object(w.a)({},C.getFieldsValue())),"school"in u){he(h.filter(function(d){return d.name.includes(u.school)}));var o=(h.find(function(d){return d.name===u.school})||{}).id;o?ke(u.school):(C.setFieldsValue({department:""}),x(Object(w.a)(Object(w.a)({},l),{school:u.school,department:""})))}},ke=function(){var n=Object(z.a)(g.a.mark(function u(o,d){var E,b,J,S,L,q;return g.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return S=(E=h.find(function(je){return je.name===o}))===null||E===void 0?void 0:E.id,D.next=3,Ge(S);case 3:if(D.t0=D.sent,D.t0){D.next=6;break}D.t0={};case 6:L=D.t0,se(L==null?void 0:L.departments),q=d||(L==null||((b=L.departments)===null||b===void 0||((J=b[0])===null||J===void 0))?void 0:J.name),C.setFieldsValue({department:q}),x(Object(w.a)(Object(w.a)({},l),{school:o,department:q}));case 11:case"end":return D.stop()}},u)}));return function(o,d){return n.apply(this,arguments)}}(),ha=function(){var n=Object(z.a)(g.a.mark(function u(o){return g.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j();case 2:C.setFieldsValue({school:o,department:""}),x(Object(w.a)(Object(w.a)({},l),{school:o,department:""}));case 4:case"end":return E.stop()}},u)}));return function(o){return n.apply(this,arguments)}}(),va=function(u){if(u.file.status==="uploading"){W(!0);return}if(u.file.status==="done"){var o;console.log(u.file,u.file.response),Te((o=u.file.response)===null||o===void 0?void 0:o.id),Object(ee.x)(u.file.originFileObj,function(d){Re(d),W(!1)})}},ga=function(){var n=Object(z.a)(g.a.mark(function u(o){var d,E,b,J,S,L,q,me,D,je,Ke,Qe,Ze,Ne,qe,Xe;return g.a.wrap(function(K){for(;;)switch(K.prev=K.next){case 0:if(S=o||{},L=S.school,q=S.department,me=S.identity,D=S.studentNo,je=S.jobTitle,Ke=S.manager,re){K.next=4;break}return T.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),K.abrupt("return");case 4:return Qe=(d=h.find(function(Ve){return Ve.name===L}))===null||d===void 0?void 0:d.id,Ze=(E=G.find(function(Ve){return Ve.name===q}))===null||E===void 0?void 0:E.id,me==="student"?Ne=D:me==="teacher"?Ne=je:Ne=Ke,K.next=9,P({type:"account/applyProfessionalAuth",payload:{id:((b=B.basicInfo)===null||b===void 0?void 0:b.id)||((J=H.userInfo)===null||J===void 0?void 0:J.login),school_id:Qe,department_id:Ze,identity:me,extra:Ne,attachment_ids:[De]}});case 9:qe=K.sent,Je(),qe&&(T.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),Re(""),P({type:"account/getBasicInfo",payload:{login:(Xe=H.userInfo)===null||Xe===void 0?void 0:Xe.login}}));case 12:case"end":return K.stop()}},u)}));return function(o){return n.apply(this,arguments)}}(),Je=function(){P({type:"account/setActionTabs",payload:{}})},Ba={data:{type:"professional"},multiple:!0,withCredentials:!0,showUploadList:!1,action:"".concat(He.a.API_SERVER,"/api/attachments.json"),className:t.a.uploader,onChange:va,beforeUpload:function(u){var o=u.type==="image/jpeg"||u.type==="image/png"||u.type==="image/jpg"||u.type==="image/bmp";return o||T.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),o}};return e.a.createElement(pe.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,forceRender:!0,className:t.a.modal,visible:B.actionTabs.key==="Account-ProfessionalAuth",title:e.a.createElement("div",null,e.a.createElement("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(t.a.colorBlue)}),"\u804C\u4E1A\u8BA4\u8BC1"),width:"660px",footer:null},e.a.createElement(We.a,{spinning:!!R},e.a.createElement(m.a,{className:t.a.formWrap,form:C,layout:"horizontal",onValuesChange:Aa,onFinish:ga},e.a.createElement(ca.a,{gutter:[10,0]},e.a.createElement(fe.a,{flex:"300px"},e.a.createElement(m.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(U,{value:"student"},"\u5B66\u751F"),e.a.createElement(U,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),l.identity==="student"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(xe.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),l.identity==="teacher"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(U,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(U,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(U,{value:"\u52A9\u6559"},"\u52A9\u6559")))),l.identity==="professional"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(U,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(U,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(U,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(U,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),e.a.createElement(m.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:l.school&&!(h==null?void 0:h.find(function(n){return n.name===l.school}))&&e.a.createElement("div",{className:t.a.schoolHintWrap},e.a.createElement("span",{className:t.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",l.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(t.a.color4CACFF," current"),onClick:Fa},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(Ye.a,{showSearch:!0,options:oe==null?void 0:oe.map(function(n){return{value:n.name}})})),e.a.createElement(m.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:l.department&&!(G==null?void 0:G.find(function(n){return n.name===l.department}))&&e.a.createElement("div",{className:t.a.schoolHintWrap},e.a.createElement("span",{className:t.a.colorCDCDCD},l.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(l.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(t.a.color4CACFF," current"),onClick:fa},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(Ye.a,{showSearch:!0,onChange:function(u){return Be(G.filter(function(o){return o.name.includes(u)}))},options:ce==null?void 0:ce.map(function(n){return{value:n.name}})})),e.a.createElement(m.a.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},e.a.createElement("div",{className:t.a.flexRow},e.a.createElement("div",{className:"".concat(t.a.flexColumn," ").concat(t.a.example)},e.a.createElement("span",{className:t.a.exampleImg},e.a.createElement("img",{src:Ea.a})),e.a.createElement("span",{className:"tc"},e.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),e.a.createElement("p",{className:"".concat(t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),e.a.createElement("div",{className:t.a.flexColumn},e.a.createElement(_a,Object($e.a)({},Ba,{accept:".png,.jpg,.bmp,.jpeg"}),re?e.a.createElement("img",{src:re,className:t.a.uploadImg}):e.a.createElement("div",{className:t.a.imageTip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(t.a.uploadTipIcon)})),e.a.createElement("p",{className:t.a.uploadTip},e.a.createElement("a",{className:t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),e.a.createElement("span",{className:"tc"},e.a.createElement("p",{className:t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),e.a.createElement("div",{className:t.a.footerWrap},e.a.createElement(m.a.Item,null,e.a.createElement(Fe.a,{className:"mr5",size:"large",onClick:Je},"\u53D6\u6D88"),e.a.createElement(Fe.a,{size:"large",type:"primary",htmlType:"submit",loading:ae["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),e.a.createElement("div",{className:t.a.note},e.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),e.a.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),e.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),e.a.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),e.a.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),e.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),e.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(X==null||((A=X.setting)===null||A===void 0)?void 0:A.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),e.a.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),e.a.createElement(ia.a,{visible:Ue,onClose:function(){return Ee(!1)},schoolName:l.school,onSuccess:ha}),e.a.createElement(ra.a,{visible:_e,onClose:function(){return we(!1)},schoolId:(f=h.find(function(n){return n.name===l.school}))===null||f===void 0?void 0:f.id,schoolName:l.school,departmentName:l.department,onSuccess:function(u){return ke(l.school,u)}}))},pa=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.effects}})(ma),Ca=function(c){var F=c.user,A=c.account,f=c.globalSetting,H=c.loading,B=c.dispatch,X=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),ae=function(Z){pe.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8BA4\u8BC1\uFF1F",className:s.a.modal,onOk:function(){var N=Object(z.a)(g.a.mark(function x(){var O,V,h;return g.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,B({type:Z?"account/cancelRealNameAuth":"account/cancelProfessionalAuth",payload:{login:(O=F.userInfo)===null||O===void 0?void 0:O.login}});case 2:V=M.sent,V&&(T.b.info("\u64A4\u9500\u6210\u529F\uFF01"),B({type:"account/getBasicInfo",payload:{login:(h=F.userInfo)===null||h===void 0?void 0:h.login}}));case 4:case"end":return M.stop()}},x)}));function l(){return N.apply(this,arguments)}return l}()})},P=function(Z){var N;if(!((N=A.basicInfo)===null||N===void 0?void 0:N.base_info_completed)){pe.a.confirm({centered:!0,content:"\u8BF7\u5148\u5B8C\u5584\u57FA\u672C\u4FE1\u606F",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Ce.c.push("/account/profile/edit")}});return}B({type:"account/setActionTabs",payload:{key:Z?"Account-RealNameAuth":"Account-ProfessionalAuth"}})},ue=A.basicInfo||{},y=ue.authentication,Y=ue.professional_certification;return e.a.createElement("section",{className:s.a.wrap},e.a.createElement("div",{className:s.a.content},e.a.createElement("div",{className:"".concat(s.a.titleWrap," mt10")},e.a.createElement("div",{className:s.a.title},"\u8BA4\u8BC1\u4FE1\u606F")),e.a.createElement("div",{className:"".concat(s.a.flexRow," mt10 font14")},e.a.createElement("div",{className:s.a.color999},"\u5B9E\u540D\u8BA4\u8BC1"),e.a.createElement("div",{className:"".concat(s.a.actionWrap," ").concat(s.a.colorCDCDCD)},e.a.createElement("div",null,"\u5B9E\u540D\u8BA4\u8BC1\u53EF\u4EE5\u589E\u5F3A\u4F60\u5728\u5E73\u53F0\u7684\u6C5F\u6E56\u5730\u4F4D\uFF0C\u8FD8\u53EF\u4EE5\u83B7\u5F97500\u91D1\u5E01\u7684\u5956\u52B1~"),y==="uncertified"&&e.a.createElement("a",{className:s.a.auth,onClick:function(){return P(!0)}},"\u7ACB\u5373\u8BA4\u8BC1"),y==="applying"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.color999," pr20"),onClick:function(){return ae(!0)}},"\u64A4\u9500\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.colorOrange},"\u5F85\u5BA1\u6838")),y==="certified"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.reauth," ").concat(s.a.color999," pr20"),onClick:function(){return P(!0)}},"\u91CD\u65B0\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.color28AC7F},e.a.createElement("i",{className:"iconfont icon-wancheng font16 mr3"}),"\u5DF2\u8BA4\u8BC1")))),e.a.createElement("div",{className:"".concat(s.a.flexRow," mt10 font14")},e.a.createElement("div",{className:s.a.color999},"\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",{className:"".concat(s.a.actionWrap," ").concat(s.a.colorCDCDCD)},e.a.createElement("div",null,"\u6559\u5E08\u901A\u8FC7\u8BA4\u8BC1\uFF0C\u53EF\u4EE5\u514B\u9686\u5B9E\u8BAD\u3001\u514D\u91D1\u5E01\u67E5\u770B\u5B9E\u8BAD\u7B54\u6848\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6..."),Y==="uncertified"&&e.a.createElement("a",{className:s.a.auth,onClick:function(){return P(!1)}},"\u7ACB\u5373\u8BA4\u8BC1"),Y==="applying"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.color999," pr20"),onClick:function(){return ae(!1)}},"\u64A4\u9500\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.colorOrange},"\u5F85\u5BA1\u6838")),Y==="certified"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.reauth," ").concat(s.a.color999," pr20"),onClick:function(){return P(!1)}},"\u91CD\u65B0\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.color28AC7F},e.a.createElement("i",{className:"iconfont icon-wancheng font16 mr3"}),"\u5DF2\u8BA4\u8BC1"))))),e.a.createElement("div",{className:"".concat(s.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(sa,null),e.a.createElement(pa,null))},La=Q.default=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.models.index}})(Ca)}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{"+kOI":function(T,Z,a){T.exports={wrap:"wrap___3wWRf",content:"content___XD5hF",hint:"hint___1nYz_",titleWrap:"titleWrap___p_kaI",title:"title___ceStY",flexRow:"flexRow___Y7ggL",actionWrap:"actionWrap___22H8R",color999:"color999___321My",colorCDCDCD:"colorCDCDCD___3so-p",colorOrange:"colorOrange___ZMNSN",color28AC7F:"color28AC7F___1cDJi",auth:"auth___Svtoa",reauth:"reauth___2xYaD",modal:"modal___3q3gD"}},"48zC":function(T,Z,a){T.exports={modal:"modal___1Lr4I",colorBlue:"colorBlue___3eONV",formWrap:"formWrap___3AiHg",flexRow:"flexRow___1YwTQ",flexColumn:"flexColumn___3nOoX",example:"example___2y_Eg",exampleImg:"exampleImg___U3B1A",colorOrange:"colorOrange___1rEcQ",uploader:"uploader___26Dck",uploadImg:"uploadImg___XPpzY",imageTip:"imageTip___1psEv",uploadTipIcon:"uploadTipIcon___3GZay",uploadTip:"uploadTip___-Z_zB",color05101a:"color05101a___3XaPD",viewLargerImg:"viewLargerImg___2PLbo",footerWrap:"footerWrap___3BFRQ",note:"note___JVOeM",schoolHintWrap:"schoolHintWrap___2ze3y",colorCDCDCD:"colorCDCDCD___3A_Cr",color4CACFF:"color4CACFF___1oQk3"}},Dgm7:function(T,Z,a){T.exports=a.p+"static/auth.ea067b42.png"},KXlV:function(T,Z,a){T.exports=a.p+"static/job.65c6034f.png"},doOU:function(T,Z,a){"use strict";a.r(Z);var ea=a("WmNS"),g=a.n(ea),ba=a("miYZ"),I=a("tsqr"),z=a("9og8"),Ra=a("2qtc"),pe=a("kLXV"),Oe=a("PpiC"),r=a("q1tI"),e=a.n(r),Ce=a("9kvl"),aa=a("+kOI"),s=a.n(aa),Da=a("T2oS"),We=a("W9HT"),Ua=a("+L6B"),Fe=a("2/Rp"),$e=a("0Owb"),Pa=a("7Kak"),ye=a("9yH6"),ja=a("5NDa"),xe=a("5rEg"),w=a("k1fw"),Na=a("y8nQ"),m=a("Vl3Y"),_=a("tJVT"),Oa=a("DZo9"),ze=a("8z0m"),ee=a("1vsH"),ua=a("Dgm7"),ta=a.n(ua),He=a("m3rI"),na=a("48zC"),t=a.n(na),oa=ze.a.Dragger,Me=10,la=function(c){var F,A=c.user,f=c.account,H=c.globalSetting,B=c.loading,X=c.dispatch,ae=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),P=m.a.useForm(),ue=Object(_.a)(P,1),y=ue[0],Y=Object(r.useState)({}),C=Object(_.a)(Y,2),K=C[0],N=C[1],l=Object(r.useState)(!0),x=Object(_.a)(l,2),O=x[0],V=x[1],h=Object(r.useState)(),te=Object(_.a)(h,2),M=te[0],ne=te[1],oe=Object(r.useState)(),he=Object(_.a)(oe,2),le=he[0],ve=he[1],J=Object(r.useState)(),se=Object(_.a)(J,2),Se=se[0],ge=se[1],ce=Object(r.useState)(),Be=Object(_.a)(ce,2),Le=Be[0],ie=Be[1];Object(r.useEffect)(function(){if(!f.basicInfo)return;var v=f.basicInfo,i={name:v.show_realname?v.name:Object(ee.z)(v.name),gender:v.gender};ne(v.name),V(v.show_realname),y.setFieldsValue(i),N(i)},[f.basicInfo]);var re=function(i){if(i.file.status==="uploading"){ie(!0);return}if(i.file.status==="done"){var b;console.log(i.file,i.file.response),ge((b=i.file.response)===null||b===void 0?void 0:b.id),Object(ee.x)(i.file.originFileObj,function(W){ve(W),ie(!1)})}},be=function(i){N(Object(w.a)({},y.getFieldsValue())),"name"in i&&ne(i.name)},Te=function(){var i=!O;V(i);var b=i?M:Object(ee.z)(M);y.setFieldsValue({name:b})},Re=function(){var v=Object(z.a)(g.a.mark(function i(b){var W,de,k,Ue,Ee,Pe,$,_e;return g.a.wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(k=b||{},Ue=k.name,Ee=k.gender,Pe=k.idNumber,le){j.next=4;break}return I.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),j.abrupt("return");case 4:return j.next=6,X({type:"account/applyRealNameAuth",payload:{id:((W=f.basicInfo)===null||W===void 0?void 0:W.id)||((de=A.userInfo)===null||de===void 0?void 0:de.login),name:Ue,gender:Ee,id_number:Pe,show_realname:O,attachment_ids:[Se]}});case 6:if($=j.sent,!(($==null?void 0:$.status)===-1)){j.next=9;break}return j.abrupt("return");case 9:De(),$&&(I.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),X({type:"account/getBasicInfo",payload:{login:(_e=A.userInfo)===null||_e===void 0?void 0:_e.login}}));case 11:case"end":return j.stop()}},i)}));return function(b){return v.apply(this,arguments)}}(),De=function(){X({type:"account/setActionTabs",payload:{}})},Ie={data:{type:"real_name"},multiple:!0,withCredentials:!0,showUploadList:!1,action:"".concat(He.a.API_SERVER,"/api/attachments.json"),className:t.a.uploader,onChange:re,beforeUpload:function(i){var b=i.type==="image/jpeg"||i.type==="image/png"||i.type==="image/jpg"||i.type==="image/bmp";return b||I.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),b}};return e.a.createElement(pe.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f.actionTabs.key==="Account-RealNameAuth",title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},e.a.createElement(We.a,{spinning:!!Le},e.a.createElement(m.a,{className:t.a.formWrap,form:y,layout:"horizontal",onValuesChange:be,onFinish:Re},e.a.createElement(m.a.Item,{label:"\u59D3\u540D",name:"name",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Me,"\u4E2A\u5B57\u7B26")},{validator:ee.B}],extra:e.a.createElement("span",null,O?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")},e.a.createElement(xe.a,{disabled:!O,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(Me,"\u4E2A\u5B57\u7B26"),maxLength:Me,addonAfter:e.a.createElement("i",{className:"iconfont ".concat(O?"icon-xianshi":"icon-yincang"," font18 ").concat(t.a.color4CACFF),onClick:Te})})),e.a.createElement(m.a.Item,{label:"\u6027\u522B\uFF1A",name:"gender",labelCol:{span:3},wrapperCol:{span:12},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(ye.a.Group,null,e.a.createElement(ye.a,{value:0},"\u7537"),e.a.createElement(ye.a,{value:1},"\u5973"))),e.a.createElement(m.a.Item,{label:"\u8BC1\u4EF6\u53F7\uFF1A",labelCol:{span:3},name:"idNumber",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"}]},e.a.createElement(xe.a,{placeholder:"\u8BF7\u8F93\u5165\u8BC1\u4EF6\u53F7"})),e.a.createElement(m.a.Item,{label:"\u8EAB\u4EFD\u8BC1\u4E0A\u4F20",labelCol:{span:3}},e.a.createElement("div",{className:t.a.flexRow},e.a.createElement("div",{className:"".concat(t.a.flexColumn," ").concat(t.a.example)},e.a.createElement("span",{className:t.a.exampleImg},e.a.createElement("img",{src:ta.a})),e.a.createElement("span",{className:"tc"},e.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),e.a.createElement("p",{className:"".concat(t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),e.a.createElement("div",{className:t.a.flexColumn},e.a.createElement(oa,Object($e.a)({},Ie,{accept:".png,.jpg,.bmp,.jpeg"}),le?e.a.createElement("img",{src:le,className:t.a.uploadImg}):e.a.createElement("div",{className:t.a.imageTip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(t.a.uploadTipIcon)})),e.a.createElement("p",{className:t.a.uploadTip},e.a.createElement("a",{className:t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),e.a.createElement("span",{className:"tc"},e.a.createElement("p",{className:t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),e.a.createElement("div",{className:t.a.footerWrap},e.a.createElement(m.a.Item,null,e.a.createElement(Fe.a,{className:"mr5",size:"large",onClick:De},"\u53D6\u6D88"),e.a.createElement(Fe.a,{size:"large",type:"primary",htmlType:"submit",loading:B["account/applyRealNameAuth"]},"\u4FDD\u5B58"))),e.a.createElement("div",{className:t.a.note},e.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),e.a.createElement("p",null,"1.\u4F60\u9700\u8981\u51C6\u5907\u6709\u6548\u7684\u8EAB\u4EFD\u8BC1\u6B63\u9762\uFF08\u4EBA\u50CF\u9762\uFF09\u7684\u8BC1\u4EF6\u7167\u7167\u7247\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u7247\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),e.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u8BA4\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),e.a.createElement("p",null,"3.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B"),e.a.createElement("p",null,"4.\u5B9E\u540D\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),e.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),e.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u8BC1\u4EF6\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u5B9E\u540D\u8BA4\u8BC1\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(H==null||((F=H.setting)===null||F===void 0)?void 0:F.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),e.a.createElement("p",null,"7.\u63D0\u4EA4\u5B9E\u540D\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u5B9E\u540D\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))))},sa=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.effects}})(la),ya=a("O3gP"),Ye=a("lrIw"),xa=a("14J3"),ca=a("BMrR"),Ma=a("jCWc"),fe=a("kPKH"),Sa=a("OaEy"),Ae=a("2fM7"),ia=a("HoYA"),ra=a("4nbu"),da=a("KXlV"),Ea=a.n(da),U=Ae.a.Option,_a=ze.a.Dragger,ma=function(c){var F,A,f,H=c.user,B=c.account,X=c.globalSetting,ae=c.loading,P=c.dispatch,ue=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),y=m.a.useForm(),Y=Object(_.a)(y,1),C=Y[0],K=Object(r.useState)({}),N=Object(_.a)(K,2),l=N[0],x=N[1],O=Object(r.useState)([]),V=Object(_.a)(O,2),h=V[0],te=V[1],M=Object(r.useState)([]),ne=Object(_.a)(M,2),oe=ne[0],he=ne[1],le=Object(r.useState)([]),ve=Object(_.a)(le,2),J=ve[0],se=ve[1],Se=Object(r.useState)([]),ge=Object(_.a)(Se,2),ce=ge[0],Be=ge[1],Le=Object(r.useState)(),ie=Object(_.a)(Le,2),re=ie[0],be=ie[1],Te=Object(r.useState)(),Re=Object(_.a)(Te,2),De=Re[0],Ie=Re[1],v=Object(r.useState)(),i=Object(_.a)(v,2),b=i[0],W=i[1],de=Object(r.useState)(),k=Object(_.a)(de,2),Ue=k[0],Ee=k[1],Pe=Object(r.useState)(),$=Object(_.a)(Pe,2),_e=$[0],we=$[1];Object(r.useEffect)(function(){j()},[]),Object(r.useEffect)(function(){var n;if(!((n=B.basicInfo)===null||n===void 0?void 0:n.school_id))return;Object(z.a)(g.a.mark(function u(){var o,d;return g.a.wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,Je((o=B.basicInfo)===null||o===void 0?void 0:o.school_id);case 2:d=R.sent,se(d==null?void 0:d.departments);case 4:case"end":return R.stop()}},u)}))()},[(F=B.basicInfo)===null||F===void 0?void 0:F.school_id]);var j=function(){var n=Object(z.a)(g.a.mark(function u(){var o;return g.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,P({type:"account/getSchoolOption"});case 2:o=E.sent,te(o==null?void 0:o.schools);case 4:case"end":return E.stop()}},u)}));return function(){return n.apply(this,arguments)}}(),Je=function(u){return P({type:"account/getDepartmentOption",payload:{id:u}})};Object(r.useEffect)(function(){if(!B.basicInfo)return;var n=B.basicInfo,u={identity:n.identity,school:n.school_name,department:n.department_name,studentNo:n.student_id,jobTitle:n.identity=="teacher"?n.technical_title:"\u6559\u6388",manager:n.identity=="professional"?n.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};C.setFieldsValue(u),x(u)},[B.basicInfo]);var Fa=function(){Ee(!0)},fa=function(){if(!h.find(function(u){return u.name===l.school})){I.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}we(!0)},Aa=function(u){if(x(Object(w.a)({},C.getFieldsValue())),"school"in u){he(h.filter(function(d){return d.name.includes(u.school)}));var o=(h.find(function(d){return d.name===u.school})||{}).id;o?ke(u.school):(C.setFieldsValue({department:""}),x(Object(w.a)(Object(w.a)({},l),{school:u.school,department:""})))}},ke=function(){var n=Object(z.a)(g.a.mark(function u(o,d){var E,R,G,S,L,q;return g.a.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return S=(E=h.find(function(je){return je.name===o}))===null||E===void 0?void 0:E.id,D.next=3,Je(S);case 3:if(D.t0=D.sent,D.t0){D.next=6;break}D.t0={};case 6:L=D.t0,se(L==null?void 0:L.departments),q=d||(L==null||((R=L.departments)===null||R===void 0||((G=R[0])===null||G===void 0))?void 0:G.name),C.setFieldsValue({department:q}),x(Object(w.a)(Object(w.a)({},l),{school:o,department:q}));case 11:case"end":return D.stop()}},u)}));return function(o,d){return n.apply(this,arguments)}}(),ha=function(){var n=Object(z.a)(g.a.mark(function u(o){return g.a.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j();case 2:C.setFieldsValue({school:o,department:""}),x(Object(w.a)(Object(w.a)({},l),{school:o,department:""}));case 4:case"end":return E.stop()}},u)}));return function(o){return n.apply(this,arguments)}}(),va=function(u){if(u.file.status==="uploading"){W(!0);return}if(u.file.status==="done"){var o;console.log(u.file,u.file.response),Ie((o=u.file.response)===null||o===void 0?void 0:o.id),Object(ee.x)(u.file.originFileObj,function(d){be(d),W(!1)})}},ga=function(){var n=Object(z.a)(g.a.mark(function u(o){var d,E,R,G,S,L,q,me,D,je,Qe,Ze,Ke,Ne,qe,Xe;return g.a.wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(S=o||{},L=S.school,q=S.department,me=S.identity,D=S.studentNo,je=S.jobTitle,Qe=S.manager,re){Q.next=4;break}return I.b.info("\u8BF7\u5148\u4E0A\u4F20\u7167\u7247\uFF01"),Q.abrupt("return");case 4:return Ze=(d=h.find(function(Ve){return Ve.name===L}))===null||d===void 0?void 0:d.id,Ke=(E=J.find(function(Ve){return Ve.name===q}))===null||E===void 0?void 0:E.id,me==="student"?Ne=D:me==="teacher"?Ne=je:Ne=Qe,Q.next=9,P({type:"account/applyProfessionalAuth",payload:{id:((R=B.basicInfo)===null||R===void 0?void 0:R.id)||((G=H.userInfo)===null||G===void 0?void 0:G.login),school_id:Ze,department_id:Ke,identity:me,extra:Ne,attachment_ids:[De]}});case 9:qe=Q.sent,Ge(),qe&&(I.b.info("\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838!"),be(""),P({type:"account/getBasicInfo",payload:{login:(Xe=H.userInfo)===null||Xe===void 0?void 0:Xe.login}}));case 12:case"end":return Q.stop()}},u)}));return function(o){return n.apply(this,arguments)}}(),Ge=function(){P({type:"account/setActionTabs",payload:{}})},Ba={data:{type:"professional"},multiple:!0,withCredentials:!0,showUploadList:!1,action:"".concat(He.a.API_SERVER,"/api/attachments.json"),className:t.a.uploader,onChange:va,beforeUpload:function(u){var o=u.type==="image/jpeg"||u.type==="image/png"||u.type==="image/jpg"||u.type==="image/bmp";return o||I.b.info("\u8BF7\u4E0A\u4F20\u6B63\u786E\u6587\u4EF6\u683C\u5F0F"),o}};return e.a.createElement(pe.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,forceRender:!0,className:t.a.modal,visible:B.actionTabs.key==="Account-ProfessionalAuth",title:e.a.createElement("div",null,e.a.createElement("i",{className:"iconfont icon-zhiyerenzheng font18 mr5 ".concat(t.a.colorBlue)}),"\u804C\u4E1A\u8BA4\u8BC1"),width:"660px",footer:null},e.a.createElement(We.a,{spinning:!!b},e.a.createElement(m.a,{className:t.a.formWrap,form:C,layout:"horizontal",onValuesChange:Aa,onFinish:ga},e.a.createElement(ca.a,{gutter:[10,0]},e.a.createElement(fe.a,{flex:"300px"},e.a.createElement(m.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(U,{value:"student"},"\u5B66\u751F"),e.a.createElement(U,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB")))),l.identity==="student"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(xe.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),l.identity==="teacher"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(U,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(U,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(U,{value:"\u52A9\u6559"},"\u52A9\u6559")))),l.identity==="professional"&&e.a.createElement(fe.a,{flex:"200px"},e.a.createElement(m.a.Item,{initialValue:l.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(Ae.a,null,e.a.createElement(U,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(U,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(U,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(U,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(U,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08"))))),e.a.createElement(m.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",extra:l.school&&!(h==null?void 0:h.find(function(n){return n.name===l.school}))&&e.a.createElement("div",{className:t.a.schoolHintWrap},e.a.createElement("span",{className:t.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",l.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(t.a.color4CACFF," current"),onClick:Fa},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(Ye.a,{showSearch:!0,options:oe==null?void 0:oe.map(function(n){return{value:n.name}})})),e.a.createElement(m.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",extra:l.department&&!(J==null?void 0:J.find(function(n){return n.name===l.department}))&&e.a.createElement("div",{className:t.a.schoolHintWrap},e.a.createElement("span",{className:t.a.colorCDCDCD},l.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(l.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(t.a.color4CACFF," current"),onClick:fa},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(Ye.a,{showSearch:!0,onChange:function(u){return Be(J.filter(function(o){return o.name.includes(u)}))},options:ce==null?void 0:ce.map(function(n){return{value:n.name}})})),e.a.createElement(m.a.Item,{label:"\u804C\u4E1A\u8BC1\u4E0A\u4F20"},e.a.createElement("div",{className:t.a.flexRow},e.a.createElement("div",{className:"".concat(t.a.flexColumn," ").concat(t.a.example)},e.a.createElement("span",{className:t.a.exampleImg},e.a.createElement("img",{src:Ea.a})),e.a.createElement("span",{className:"tc"},e.a.createElement("p",null,"\u793A\u4F8B\u56FE\u7247"),e.a.createElement("p",{className:"".concat(t.a.colorOrange," font12")},"\uFF08png/jpg/bmp\u683C\u5F0F\uFF0C\u4E0D\u8D85\u8FC72MB\uFF09"))),e.a.createElement("div",{className:t.a.flexColumn},e.a.createElement(_a,Object($e.a)({},Ba,{accept:".png,.jpg,.bmp,.jpeg"}),re?e.a.createElement("img",{src:re,className:t.a.uploadImg}):e.a.createElement("div",{className:t.a.imageTip},e.a.createElement("p",null,e.a.createElement("i",{className:"iconfont icon-cuban2shangchuanyunduan ".concat(t.a.uploadTipIcon)})),e.a.createElement("p",{className:t.a.uploadTip},e.a.createElement("a",{className:t.a.color05101a},"\u70B9\u51FB\u6216\u62D6\u62FD\u4E0A\u4F20\u56FE\u7247")))),e.a.createElement("span",{className:"tc"},e.a.createElement("p",{className:t.a.viewLargerImg},"\u67E5\u770B\u5927\u56FE"))))),e.a.createElement("div",{className:t.a.footerWrap},e.a.createElement(m.a.Item,null,e.a.createElement(Fe.a,{className:"mr5",size:"large",onClick:Ge},"\u53D6\u6D88"),e.a.createElement(Fe.a,{size:"large",type:"primary",htmlType:"submit",loading:ae["account/applyProfessionalAuth"]},"\u4FDD\u5B58"))),e.a.createElement("div",{className:t.a.note},e.a.createElement("p",null,"\u8BA4\u8BC1\u987B\u77E5\uFF1A"),e.a.createElement("p",null,"1.\u6839\u636E\u804C\u4E1A\u4E0A\u4F20\u76F8\u5E94\u7684\u8BC1\u4EF6\u7167\uFF1A\u6559\u5E08\uFF08\u6559\u5E08\u8BC1\uFF09\uFF0C\u4E13\u4E1A\u4EBA\u58EB\uFF08\u5458\u5DE5\u8BC1\uFF09\u3001\u5B66\u751F\uFF08\u5B66\u751F\u8BC1\uFF09\uFF0C\u8BF7\u786E\u4FDD\u8BC1\u4EF6\u7167\u5185\u5BB9\u5B8C\u6574\u5E76\u4E14\u6E05\u6670\u53EF\u89C1\uFF0C\u4E25\u7981PS\uFF1B"),e.a.createElement("p",null,"2.\u6211\u4EEC\u5C06\u5728\u4F60\u63D0\u4EA4\u804C\u4E1A\u8BC1\u4FE1\u606F\u540E\u768424\u5C0F\u65F6\uFF08\u4E0D\u5305\u542B\u8282\u5047\u65E5\uFF09\u5185\u5B8C\u6210\u5BA1\u6838\uFF0C\u5BA1\u6838\u7ED3\u679C\u5C06\u4F1A\u4EE5\u7CFB\u7EDF\u6D88\u606F\u7684\u5F62\u5F0F\u53D1\u9001\u7ED9\u4F60\uFF1B"),e.a.createElement("p",null,"3.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u65E0\u6CD5\u5220\u9664\uFF0C\u8BF7\u8C28\u614E\u586B\u5199\uFF1B\u804C\u4E1A\u53D8\u66F4\u8BF7\u9009\u62E9\u91CD\u65B0\u8BA4\u8BC1\uFF1B"),e.a.createElement("p",null,"4.\u804C\u4E1A\u8BA4\u8BC1\u5BA1\u6838\u5B8C\u6210\u540E\uFF0C\u7CFB\u7EDF\u5C06\u81EA\u52A8\u53D1\u653E500\u4E2A\u91D1\u5E01\u4F5C\u4E3A\u5956\u52B1\uFF1B"),e.a.createElement("p",null,"5.\u6211\u4EEC\u4F1A\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u7684\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732\uFF1B"),e.a.createElement("p",null,"6.\u5982\u5B58\u5728\u6076\u610F\u4E71\u586B\u5199\u59D3\u540D\uFF0C\u5B66\u53F7\uFF0C\u53CA\u4E0A\u4F20\u4E0E\u804C\u4E1A\u8BC1\u4EF6\u65E0\u5173\u56FE\u7247\u8005\uFF0C\u4E00\u7ECF\u53D1\u73B0\u5C06\u51BB\u7ED3",!(X==null||((A=X.setting)===null||A===void 0)?void 0:A.is_local)&&"EduCoder","\u8D26\u53F7\u3002"),e.a.createElement("p",null,"7.\u975E\u8001\u5E08\u8EAB\u4EFD\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1\u540E\u7CFB\u7EDF\u4F1A\u81EA\u52A8\u5C06\u72B6\u6001\u6539\u4E3A\u5DF2\u8BA4\u8BC1\uFF0C\u4F60\u5C06\u53EF\u4EE5\u4F53\u9A8C\u5E73\u53F0\u9700\u8981\u804C\u4E1A\u8BA4\u8BC1\u7684\u529F\u80FD\uFF1B\u5982\u679C\u5728\u8BA4\u8BC1\u540E\u7684\u4F7F\u7528\u8FC7\u7A0B\u4E2D\u672A\u901A\u8FC7\u5BA1\u6838\uFF0C\u4F60\u5C06\u4E0D\u80FD\u7EE7\u7EED\u4F53\u9A8C\u9700\u8981\u8BA4\u8BC1\u7684\u529F\u80FD\u3002")))),e.a.createElement(ia.a,{visible:Ue,onClose:function(){return Ee(!1)},schoolName:l.school,onSuccess:ha}),e.a.createElement(ra.a,{visible:_e,onClose:function(){return we(!1)},schoolId:(f=h.find(function(n){return n.name===l.school}))===null||f===void 0?void 0:f.id,schoolName:l.school,departmentName:l.department,onSuccess:function(u){return ke(l.school,u)}}))},pa=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.effects}})(ma),Ca=function(c){var F=c.user,A=c.account,f=c.globalSetting,H=c.loading,B=c.dispatch,X=Object(Oe.a)(c,["user","account","globalSetting","loading","dispatch"]),ae=function(K){pe.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u8BA4\u8BC1\uFF1F",className:s.a.modal,onOk:function(){var N=Object(z.a)(g.a.mark(function x(){var O,V,h;return g.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,B({type:K?"account/cancelRealNameAuth":"account/cancelProfessionalAuth",payload:{login:(O=F.userInfo)===null||O===void 0?void 0:O.login}});case 2:V=M.sent,V&&(I.b.info("\u64A4\u9500\u6210\u529F\uFF01"),B({type:"account/getBasicInfo",payload:{login:(h=F.userInfo)===null||h===void 0?void 0:h.login}}));case 4:case"end":return M.stop()}},x)}));function l(){return N.apply(this,arguments)}return l}()})},P=function(K){var N;if(!((N=A.basicInfo)===null||N===void 0?void 0:N.base_info_completed)){pe.a.confirm({centered:!0,content:"\u8BF7\u5148\u5B8C\u5584\u57FA\u672C\u4FE1\u606F",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Ce.c.push("/account/profile/edit")}});return}B({type:"account/setActionTabs",payload:{key:K?"Account-RealNameAuth":"Account-ProfessionalAuth"}})},ue=A.basicInfo||{},y=ue.authentication,Y=ue.professional_certification;return e.a.createElement("section",{className:s.a.wrap},e.a.createElement("div",{className:s.a.content},e.a.createElement("div",{className:"".concat(s.a.titleWrap," mt10")},e.a.createElement("div",{className:s.a.title},"\u8BA4\u8BC1\u4FE1\u606F")),e.a.createElement("div",{className:"".concat(s.a.flexRow," mt10 font14")},e.a.createElement("div",{className:s.a.color999},"\u5B9E\u540D\u8BA4\u8BC1"),e.a.createElement("div",{className:"".concat(s.a.actionWrap," ").concat(s.a.colorCDCDCD)},e.a.createElement("div",null,"\u5B9E\u540D\u8BA4\u8BC1\u53EF\u4EE5\u589E\u5F3A\u4F60\u5728\u5E73\u53F0\u7684\u6C5F\u6E56\u5730\u4F4D\uFF0C\u8FD8\u53EF\u4EE5\u83B7\u5F97500\u91D1\u5E01\u7684\u5956\u52B1~"),y==="uncertified"&&e.a.createElement("a",{className:s.a.auth,onClick:function(){return P(!0)}},"\u7ACB\u5373\u8BA4\u8BC1"),y==="applying"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.color999," pr20"),onClick:function(){return ae(!0)}},"\u64A4\u9500\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.colorOrange},"\u5F85\u5BA1\u6838")),y==="certified"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.reauth," ").concat(s.a.color999," pr20"),onClick:function(){return P(!0)}},"\u91CD\u65B0\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.color28AC7F},e.a.createElement("i",{className:"iconfont icon-wancheng font16 mr3"}),"\u5DF2\u8BA4\u8BC1")))),e.a.createElement("div",{className:"".concat(s.a.flexRow," mt10 font14")},e.a.createElement("div",{className:s.a.color999},"\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",{className:"".concat(s.a.actionWrap," ").concat(s.a.colorCDCDCD)},e.a.createElement("div",null,"\u6559\u5E08\u901A\u8FC7\u8BA4\u8BC1\uFF0C\u53EF\u4EE5\u514B\u9686\u5B9E\u8BAD\u3001\u514D\u91D1\u5E01\u67E5\u770B\u5B9E\u8BAD\u7B54\u6848\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6..."),Y==="uncertified"&&e.a.createElement("a",{className:s.a.auth,onClick:function(){return P(!1)}},"\u7ACB\u5373\u8BA4\u8BC1"),Y==="applying"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.color999," pr20"),onClick:function(){return ae(!1)}},"\u64A4\u9500\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.colorOrange},"\u5F85\u5BA1\u6838")),Y==="certified"&&e.a.createElement("div",null,e.a.createElement("a",{className:"".concat(s.a.reauth," ").concat(s.a.color999," pr20"),onClick:function(){return P(!1)}},"\u91CD\u65B0\u8BA4\u8BC1"),e.a.createElement("span",{className:s.a.color28AC7F},e.a.createElement("i",{className:"iconfont icon-wancheng font16 mr3"}),"\u5DF2\u8BA4\u8BC1"))))),e.a.createElement("div",{className:"".concat(s.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(sa,null),e.a.createElement(pa,null))},La=Z.default=Object(Ce.a)(function(p){var c=p.user,F=p.account,A=p.loading,f=p.globalSetting;return{user:c,account:F,globalSetting:f,loading:A.models.index}})(Ca)}}]); diff --git a/p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.076c50b0.async.js b/p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.429f0457.async.js similarity index 89% rename from p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.076c50b0.async.js rename to p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.429f0457.async.js index c6ab478998..a955f96c05 100644 --- a/p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.076c50b0.async.js +++ b/p__Account__Certification__index.p__Account__Profile__Edit__index.p__Account__Profile__index.429f0457.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"4nbu":function(d,o,l){"use strict";var N=l("2qtc"),$=l("kLXV"),tl=l("+L6B"),p=l("2/Rp"),Q=l("c1Ei"),R=l.n(Q),X=l("miYZ"),U=l("tsqr"),Z=l("5Tp6"),w=l("y8nQ"),_=l("Vl3Y"),k=l("k16G"),v=l("SIvP"),q=l("5NDa"),g=l("5rEg"),h=l("q1tI"),u=l.n(h),C=l("9kvl"),e=l("JzwI"),A=l.n(e),z=g.a.TextArea,G=function(t){var n=t.account,B=t.globalSetting,J=t.loading,V=t.dispatch,s=t.schoolName,a=t.departmentName,i=t.visible,r=t.onClose,F=r===void 0?function(){}:r,I=t.onSuccess,W=I===void 0?function(){}:I,T=Object(v.a)(t,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),x=_.a.useForm(),L=Object(k.a)(x,1),D=L[0],j=Object(h.useRef)();Object(h.useEffect)(function(){j.current=T.schoolId},[T.schoolId]),Object(h.useEffect)(function(){D.setFieldsValue({department:a})},[a]);var ll=function(){var K=Object(Z.a)(R.a.mark(function S(P){var y,c,f,O;return R.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return y=P||{},c=y.department,f=y.remarks,b.next=3,V({type:"account/appplyDepartment",payload:{school_id:j.current,name:c,remarks:f}});case 3:O=b.sent,F(),O&&(U.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),W(c));case 6:case"end":return b.stop()}},S)}));return function(P){return K.apply(this,arguments)}}();return u.a.createElement($.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:i,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},u.a.createElement(_.a,{className:A.a.formWrap,form:D,labelCol:{span:4},wrapperCol:{span:20},onFinish:ll},u.a.createElement(_.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},s),u.a.createElement(_.a.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},u.a.createElement(g.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),u.a.createElement(_.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},u.a.createElement(z,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),u.a.createElement("div",{className:A.a.footerWrap},u.a.createElement(_.a.Item,null,u.a.createElement(p.a,{className:"mr5",size:"large",onClick:function(){F()}},"\u53D6\u6D88"),u.a.createElement(p.a,{size:"large",type:"primary",htmlType:"submit",loading:J["account/appplyDepartment"]},"\u4FDD\u5B58")))))};o.a=Object(C.a)(function(m){var t=m.account,n=m.loading,B=m.globalSetting;return{account:t,globalSetting:B,loading:n.effects}})(G)},HoYA:function(d,o,l){"use strict";var N=l("2qtc"),$=l("kLXV"),tl=l("+L6B"),p=l("2/Rp"),Q=l("6UJt"),R=l("DFOY"),X=l("c1Ei"),U=l.n(X),Z=l("miYZ"),w=l("tsqr"),_=l("5Tp6"),k=l("y8nQ"),v=l("Vl3Y"),q=l("k16G"),g=l("SIvP"),h=l("5NDa"),u=l("5rEg"),C=l("q1tI"),e=l.n(C),A=l("9kvl"),z=l("jO45"),G=l("jN4g"),m=l("gJ3r"),t=l("RuH0"),n=l.n(t),B=function(a,i){return i.some(function(r){return r.label.toLowerCase().indexOf(a.toLowerCase())>-1})},J=u.a.TextArea,V=function(a){var i=a.account,r=a.globalSetting,F=a.loading,I=a.dispatch,W=a.schoolName,T=a.visible,x=a.onClose,L=x===void 0?function(){}:x,D=a.onSuccess,j=D===void 0?function(){}:D,ll=Object(g.a)(a,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),K=v.a.useForm(),S=Object(q.a)(K,1),P=S[0];Object(C.useEffect)(function(){P.setFieldsValue({name:W})},[W]);var y=function(){var c=Object(_.a)(U.a.mark(function f(O){var E,b,Y,H,el,al,ul;return U.a.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return E=O||{},b=E.name,Y=E.city,H=Y===void 0?[]:Y,el=E.address,al=E.remarks,M.next=3,I({type:"account/appplySchool",payload:{name:b,province:H[0],city:H[1],address:el,remarks:al}});case 3:ul=M.sent,L(),ul&&(w.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),j(b));case 6:case"end":return M.stop()}},f)}));return function(O){return c.apply(this,arguments)}}();return e.a.createElement($.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:T,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},e.a.createElement(v.a,{className:n.a.formWrap,form:P,labelCol:{span:4},wrapperCol:{span:20},onFinish:y},e.a.createElement(v.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},e.a.createElement(u.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),e.a.createElement("div",{className:"".concat(n.a.flexRow," ").concat(n.a.example)},e.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),e.a.createElement("div",{className:n.a.flexColumn},e.a.createElement("div",null,e.a.createElement(z.a,{style:{color:"rgb(82, 196, 26)"}}),e.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),e.a.createElement("div",null,e.a.createElement(G.a,{style:{color:"red"}}),e.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),e.a.createElement(v.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},e.a.createElement(R.a,{allowClear:!0,size:"large",options:m.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:B}})),e.a.createElement(v.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},e.a.createElement(u.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),e.a.createElement(v.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},e.a.createElement(J,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),e.a.createElement("div",{className:n.a.footerWrap},e.a.createElement(v.a.Item,null,e.a.createElement(p.a,{className:"mr5",size:"large",onClick:function(){L()}},"\u53D6\u6D88"),e.a.createElement(p.a,{size:"large",type:"primary",htmlType:"submit",loading:F["account/appplySchool"]},"\u4FDD\u5B58")))))};o.a=Object(A.a)(function(s){var a=s.account,i=s.loading,r=s.globalSetting;return{account:a,globalSetting:r,loading:i.effects}})(V)},JzwI:function(d,o,l){d.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},RuH0:function(d,o,l){d.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},gJ3r:function(d,o,l){"use strict";l.d(o,"a",function(){return N});var N=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{"4nbu":function(m,o,l){"use strict";var N=l("2qtc"),z=l("kLXV"),bl=l("+L6B"),p=l("2/Rp"),Q=l("WmNS"),M=l.n(Q),X=l("miYZ"),R=l("tsqr"),Z=l("9og8"),k=l("y8nQ"),_=l("Vl3Y"),w=l("tJVT"),v=l("PpiC"),q=l("5NDa"),U=l("5rEg"),h=l("q1tI"),u=l.n(h),C=l("9kvl"),e=l("JzwI"),A=l.n(e),$=U.a.TextArea,J=function(b){var n=b.account,B=b.globalSetting,V=b.loading,Y=b.dispatch,s=b.schoolName,a=b.departmentName,i=b.visible,r=b.onClose,F=r===void 0?function(){}:r,W=b.onSuccess,I=W===void 0?function(){}:W,T=Object(v.a)(b,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),x=_.a.useForm(),L=Object(w.a)(x,1),D=L[0],K=Object(h.useRef)();Object(h.useEffect)(function(){K.current=T.schoolId},[T.schoolId]),Object(h.useEffect)(function(){D.setFieldsValue({department:a})},[a]);var ll=function(){var j=Object(Z.a)(M.a.mark(function S(P){var y,c,f,g;return M.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return y=P||{},c=y.department,f=y.remarks,t.next=3,Y({type:"account/appplyDepartment",payload:{school_id:K.current,name:c,remarks:f}});case 3:g=t.sent,F(),g&&(R.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),I(c));case 6:case"end":return t.stop()}},S)}));return function(P){return j.apply(this,arguments)}}();return u.a.createElement(z.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:i,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},u.a.createElement(_.a,{className:A.a.formWrap,form:D,labelCol:{span:4},wrapperCol:{span:20},onFinish:ll},u.a.createElement(_.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},s),u.a.createElement(_.a.Item,{label:"\u90E8\u95E8\u540D\u79F0\uFF1A",name:"department",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"}]},u.a.createElement(U.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),u.a.createElement(_.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},u.a.createElement($,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),u.a.createElement("div",{className:A.a.footerWrap},u.a.createElement(_.a.Item,null,u.a.createElement(p.a,{className:"mr5",size:"large",onClick:function(){F()}},"\u53D6\u6D88"),u.a.createElement(p.a,{size:"large",type:"primary",htmlType:"submit",loading:V["account/appplyDepartment"]},"\u4FDD\u5B58")))))};o.a=Object(C.a)(function(d){var b=d.account,n=d.loading,B=d.globalSetting;return{account:b,globalSetting:B,loading:n.effects}})(J)},HoYA:function(m,o,l){"use strict";var N=l("2qtc"),z=l("kLXV"),bl=l("+L6B"),p=l("2/Rp"),Q=l("6UJt"),M=l("DFOY"),X=l("WmNS"),R=l.n(X),Z=l("miYZ"),k=l("tsqr"),_=l("9og8"),w=l("y8nQ"),v=l("Vl3Y"),q=l("tJVT"),U=l("PpiC"),h=l("5NDa"),u=l("5rEg"),C=l("q1tI"),e=l.n(C),A=l("9kvl"),$=l("jO45"),J=l("jN4g"),d=l("gJ3r"),b=l("RuH0"),n=l.n(b),B=function(a,i){return i.some(function(r){return r.label.toLowerCase().indexOf(a.toLowerCase())>-1})},V=u.a.TextArea,Y=function(a){var i=a.account,r=a.globalSetting,F=a.loading,W=a.dispatch,I=a.schoolName,T=a.visible,x=a.onClose,L=x===void 0?function(){}:x,D=a.onSuccess,K=D===void 0?function(){}:D,ll=Object(U.a)(a,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),j=v.a.useForm(),S=Object(q.a)(j,1),P=S[0];Object(C.useEffect)(function(){P.setFieldsValue({name:I})},[I]);var y=function(){var c=Object(_.a)(R.a.mark(function f(g){var E,t,G,H,el,al,ul;return R.a.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return E=g||{},t=E.name,G=E.city,H=G===void 0?[]:G,el=E.address,al=E.remarks,O.next=3,W({type:"account/appplySchool",payload:{name:t,province:H[0],city:H[1],address:el,remarks:al}});case 3:ul=O.sent,L(),ul&&(k.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),K(t));case 6:case"end":return O.stop()}},f)}));return function(g){return c.apply(this,arguments)}}();return e.a.createElement(z.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:T,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},e.a.createElement(v.a,{className:n.a.formWrap,form:P,labelCol:{span:4},wrapperCol:{span:20},onFinish:y},e.a.createElement(v.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},e.a.createElement(u.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),e.a.createElement("div",{className:"".concat(n.a.flexRow," ").concat(n.a.example)},e.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),e.a.createElement("div",{className:n.a.flexColumn},e.a.createElement("div",null,e.a.createElement($.a,{style:{color:"rgb(82, 196, 26)"}}),e.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),e.a.createElement("div",null,e.a.createElement(J.a,{style:{color:"red"}}),e.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),e.a.createElement(v.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},e.a.createElement(M.a,{allowClear:!0,size:"large",options:d.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:B}})),e.a.createElement(v.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},e.a.createElement(u.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),e.a.createElement(v.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},e.a.createElement(V,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),e.a.createElement("div",{className:n.a.footerWrap},e.a.createElement(v.a.Item,null,e.a.createElement(p.a,{className:"mr5",size:"large",onClick:function(){L()}},"\u53D6\u6D88"),e.a.createElement(p.a,{size:"large",type:"primary",htmlType:"submit",loading:F["account/appplySchool"]},"\u4FDD\u5B58")))))};o.a=Object(A.a)(function(s){var a=s.account,i=s.loading,r=s.globalSetting;return{account:a,globalSetting:r,loading:i.effects}})(Y)},JzwI:function(m,o,l){m.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},RuH0:function(m,o,l){m.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},gJ3r:function(m,o,l){"use strict";l.d(o,"a",function(){return N});var N=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]}}]); diff --git a/p__Account__Profile__Edit__index.3dbf501f.async.js b/p__Account__Profile__Edit__index.fc1e5aa0.async.js similarity index 64% rename from p__Account__Profile__Edit__index.3dbf501f.async.js rename to p__Account__Profile__Edit__index.fc1e5aa0.async.js index 9c6c2400c7..038a716a65 100644 --- a/p__Account__Profile__Edit__index.3dbf501f.async.js +++ b/p__Account__Profile__Edit__index.fc1e5aa0.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{Lo1I:function(Y,K,a){Y.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color4CACFF:"color4CACFF___3pNG0",submitButton:"submitButton___2RxzB"}},O7MS:function(Y,K,a){Y.exports=a.p+"static/AssistantCode.61c5ef8d.png"},Z3SC:function(Y,K,a){"use strict";a.r(K),a.d(K,"identityMap",function(){return tt});var Ot=a("+L6B"),se=a("2/Rp"),Ft=a("O3gP"),ce=a("lrIw"),gt=a("14J3"),de=a("BMrR"),Mt=a("jCWc"),x=a("kPKH"),g=a("IIKO"),It=a("6UJt"),Ve=a("DFOY"),jt=a("7Kak"),q=a("9yH6"),St=a("5Dmo"),A=a("3S7+"),Tt=a("2qtc"),me=a("kLXV"),M=a("XEnU"),Lt=a("miYZ"),ee=a("tsqr"),ze=a("c1Ei"),E=a.n(ze),I=a("5Tp6"),Wt=a("y8nQ"),o=a("Vl3Y"),h=a("k16G"),Ge=a("SIvP"),Nt=a("5NDa"),X=a("5rEg"),Kt=a("OaEy"),L=a("2fM7"),p=a("q1tI"),e=a.n(p),Z=a("9kvl"),Je=a("gJ3r"),Ye=a("Lo1I"),c=a.n(Ye),Xe=a("HoYA"),Ze=a("4nbu"),Qe=a("O7MS"),qe=a.n(Qe),W=a("1vsH"),Ee=a("l04A"),i=L.a.Option,et=X.a.TextArea,tt={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},te=10,ae=20,at=function(R){var $,w,H,Q=R.user,D=R.account,xt=R.globalSetting,ut=R.loading,C=R.dispatch,kt=Object(Ge.a)(R,["user","account","globalSetting","loading","dispatch"]),nt=o.a.useForm(),lt=Object(h.a)(nt,1),j=lt[0],_t=Object(p.useState)({}),pe=Object(h.a)(_t,2),_=pe[0],V=pe[1],ot=Object(p.useState)([]),fe=Object(h.a)(ot,2),U=fe[0],rt=fe[1],it=Object(p.useState)([]),Pe=Object(h.a)(it,2),ue=Pe[0],st=Pe[1],ct=Object(p.useState)([]),he=Object(h.a)(ct,2),z=he[0],De=he[1],dt=Object(p.useState)([]),Ce=Object(h.a)(dt,2),ne=Ce[0],mt=Ce[1],Et=Object(p.useState)(!0),ve=Object(h.a)(Et,2),b=ve[0],Ae=ve[1],pt=Object(p.useState)(!1),Ue=Object(h.a)(pt,2),ft=Ue[0],ye=Ue[1],Pt=Object(p.useState)(),Re=Object(h.a)(Pt,2),le=Re[0],be=Re[1],ht=Object(p.useState)(null),Be=Object(h.a)(ht,2),Dt=Be[0],Ct=Be[1],vt=Object(p.useState)(!0),Oe=Object(h.a)(vt,2),Fe=Oe[0],ge=Oe[1];Object(p.useEffect)(function(){Me()},[]),Object(p.useEffect)(function(){Object(I.a)(E.a.mark(function t(){var u,n;return E.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Ie((u=D.basicInfo)===null||u===void 0?void 0:u.school_id);case 2:n=l.sent,De(n==null?void 0:n.departments);case 4:case"end":return l.stop()}},t)}))()},[($=D.basicInfo)===null||$===void 0?void 0:$.school_id]);var Me=function(){var t=Object(I.a)(E.a.mark(function u(){var n;return E.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return ge(!0),l.next=3,C({type:"account/getSchoolOption"});case 3:n=l.sent,ge(!1),rt(n==null?void 0:n.schools);case 6:case"end":return l.stop()}},u)}));return function(){return t.apply(this,arguments)}}(),Ie=function(u){return u?C({type:"account/getDepartmentOption",payload:{id:u}}):void 0};Object(p.useEffect)(function(){if(!D.basicInfo)return;var t=D.basicInfo,u={nickname:t.nickname,name:t.show_realname?t.name:Object(W.z)(t.name),gender:t.gender,city:[t.location,t.location_city],identity:t.identity,school:t.school_name,department:t.department_name,studentNo:t.student_id,edu_entry_year:t.edu_entry_year,edu_background:t.edu_background,brief_introduction:t.brief_introduction,jobTitle:t.identity=="teacher"?t.technical_title:"\u6559\u6388",manager:t.identity=="professional"?t.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};be(t.name),Ae(t.show_realname),Ct(t.identity),j.setFieldsValue(u),V(u)},[D.basicInfo]);var At=function(){C({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},Ut=function(){if(!U.find(function(u){return u.name===_.school})){ee.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}C({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},yt=function(u){if(V(Object(M.a)({},j.getFieldsValue())),"school"in u){st(U.filter(function(r){return r.name.includes(u.school)}));var n=(U.find(function(r){return r.name===u.school})||{}).id;n?Se(u.school):(j.setFieldsValue({department:""}),V(Object(M.a)(Object(M.a)({},_),{school:u.school,department:""})))}"name"in u&&be(u.name)},je=function(){var u=!b;Ae(u);var n=u?le:Object(W.z)(le);j.setFieldsValue({name:n})},Se=function(){var t=Object(I.a)(E.a.mark(function u(n,r){var l,y,F,T,f,P;return E.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return T=(l=U.find(function(G){return G.name===n}))===null||l===void 0?void 0:l.id,s.next=3,Ie(T);case 3:if(s.t0=s.sent,s.t0){s.next=6;break}s.t0={};case 6:f=s.t0,De(f==null?void 0:f.departments),P=r||(f==null||((y=f.departments)===null||y===void 0||((F=y[0])===null||F===void 0))?void 0:F.name),j.setFieldsValue({department:P}),V(Object(M.a)(Object(M.a)({},_),{school:n,department:P}));case 11:case"end":return s.stop()}},u)}));return function(n,r){return t.apply(this,arguments)}}(),Rt=function(){var t=Object(I.a)(E.a.mark(function u(n){return E.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Me();case 2:j.setFieldsValue({school:n,department:""}),V(Object(M.a)(Object(M.a)({},_),{school:n,department:""}));case 4:case"end":return l.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),B=function(){var t=Object(I.a)(E.a.mark(function u(n){return E.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:me.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:n?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var y=Object(I.a)(E.a.mark(function T(){var f,P,N,s;return E.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!n){m.next=6;break}return m.next=3,Object(Ee.g)({login:(f=Q.userInfo)===null||f===void 0?void 0:f.login});case 3:m.t0=m.sent,m.next=9;break;case 6:return m.next=8,Object(Ee.i)({login:(P=Q.userInfo)===null||P===void 0?void 0:P.login});case 8:m.t0=m.sent;case 9:N=m.t0,N&&(ee.b.success(n?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),C({type:"account/getBasicInfo",payload:{login:(s=Q.userInfo)===null||s===void 0?void 0:s.login}}));case 11:case"end":return m.stop()}},T)}));function F(){return y.apply(this,arguments)}return F}()});case 1:case"end":return l.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),bt=function(){var u=new Date().getFullYear();return Array(31).fill({}).map(function(n,r){return e.a.createElement(i,{key:r,value:u-r},e.a.createElement("span",null,u-r))})},Bt=function(){var t=Object(I.a)(E.a.mark(function u(n){var r,l,y,F,T,f,P,N,s,G,m,We,Ne,Ke,xe,ke,$e,_e,we,He,J,oe,re;return E.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return F=n.nickname,T=n.gender,f=n.city,P=n.identity,N=n.studentNo,s=n.jobTitle,G=n.manager,m=n.school,We=n.department,Ne=n.edu_background,Ke=n.edu_entry_year,xe=n.brief_introduction,ke=(r=z.find(function(ie){return ie.name===We}))===null||r===void 0?void 0:r.id,$e=(l=U.find(function(ie){return ie.name===m}))===null||l===void 0?void 0:l.id,_e=Object(h.a)(f,2),we=_e[0],He=_e[1],v.next=6,C({type:"account/updateAccount",payload:{id:(y=D.basicInfo)===null||y===void 0?void 0:y.id,department_id:ke,gender:T,identity:P,location:we,location_city:He,name:le,nickname:F,school_id:$e,edu_background:Ne,edu_entry_year:Ke,show_realname:b,brief_introduction:xe,student_id:P==="student"?N:null,technical_title:s||G}});case 6:if(J=v.sent,!((J==null?void 0:J.status)===-1)){v.next=9;break}return v.abrupt("return");case 9:if(!J){v.next=17;break}if(ee.b.info("\u4FDD\u5B58\u6210\u529F"),((oe=D.basicInfo)===null||oe===void 0?void 0:oe.base_info_completed)||C({type:"user/getUserInfo"}),C({type:"account/getBasicInfo",payload:{login:(re=Q.userInfo)===null||re===void 0?void 0:re.login}}),!(P!==Dt&&P==="teacher")){v.next=16;break}return ye(!0),v.abrupt("return");case 16:Z.c.push("/account/profile");case 17:case"end":return v.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),Te=function(){ye(!1),Z.c.push("/account/profile")},Le=D.basicInfo,O=Le===void 0?{}:Le,d=O&&O.professional_certification=="certified",S=d?{}:{visible:!1};return e.a.createElement("section",{className:c.a.wrap},e.a.createElement("div",{className:c.a.content},e.a.createElement("div",{className:c.a.titleWrap},e.a.createElement("div",{className:c.a.title},"\u57FA\u672C\u4FE1\u606F")),e.a.createElement(o.a,{form:j,className:c.a.formWrap,layout:"horizontal",onValuesChange:yt,onFinish:Bt},e.a.createElement(o.a.Item,{label:"\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0"},{validator:W.C}],validateTrigger:"onSubmit"},e.a.createElement(X.a,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0\uFF0C\u6700\u5927\u9650\u5236".concat(ae,"\u4E2A\u5B57\u7B26"),maxLength:ae,addonAfter:"".concat(((w=_.nickname)===null||w===void 0?void 0:w.length)||0,"/").concat(ae)})),O.authentication=="uncertified"?e.a.createElement(o.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(te,"\u4E2A\u5B57\u7B26")},{validator:W.B}],extra:e.a.createElement("span",null,b?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0")},e.a.createElement(X.a,{disabled:!b,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(te,"\u4E2A\u5B57\u7B26"),maxLength:te,addonAfter:e.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(b?"icon-xianshi":"icon-yincang"," font18 ").concat(c.a.color4CACFF),onClick:je})})):e.a.createElement(o.a.Item,{label:"\u59D3\u540D"},e.a.createElement(A.a,{title:"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"},e.a.createElement("span",{className:"mr5",onClick:function(){B(!0)}},b?Object(W.z)(O.name):O.name)),e.a.createElement("i",{className:"iconfont ".concat(b?"icon-xianshi":"icon-yincang"," font18 ").concat(c.a.color4CACFF),onClick:je}),e.a.createElement("span",null,b?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")),e.a.createElement(o.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},e.a.createElement(A.a,{title:O.authentication!=="uncertified"?"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1":"",placement:"bottom"},e.a.createElement(o.a.Item,{name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(q.a.Group,null,e.a.createElement(q.a,{value:0,disabled:O.authentication!=="uncertified"},"\u7537"),e.a.createElement(q.a,{value:1,disabled:O.authentication!=="uncertified"},"\u5973"))))),e.a.createElement(de.a,null,e.a.createElement(x.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{label:"\u6240\u5728\u5730",name:"city",rules:[{type:"array",required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6240\u5728\u5730"}]},e.a.createElement(Ve.a,{onClick:function(){d&&B(!1)},disabled:d,size:"large",style:{width:190},options:Je.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"}))))),e.a.createElement(de.a,{gutter:[10,0]},e.a.createElement(x.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(i,{value:"student"},"\u5B66\u751F"),e.a.createElement(i,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB"))))),_.identity==="student"&&e.a.createElement(x.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{initialValue:_.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(X.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7",onClick:function(){d&&B(!1)},disabled:d})))),_.identity==="teacher"&&e.a.createElement(x.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{initialValue:_.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),_.identity==="professional"&&e.a.createElement(x.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{initialValue:_.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(i,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(i,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(i,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(i,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08")))))),e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",wrapperCol:{span:10},extra:!Fe&&_.school&&!(U==null?void 0:U.find(function(t){return t.name===_.school}))&&e.a.createElement("div",{className:c.a.schoolHintWrap},e.a.createElement("span",{className:c.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",_.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(c.a.color4CACFF," current"),onClick:At},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(ce.a,{onClick:function(){d&&B(!1)},disabled:d,showSearch:!0,options:ue==null?void 0:ue.map(function(t){return{value:t.name}})}))),e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},S),e.a.createElement(o.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!Fe&&_.department&&!(z==null?void 0:z.find(function(t){return t.name===_.department}))&&e.a.createElement("div",{className:c.a.schoolHintWrap},e.a.createElement("span",{className:c.a.colorCDCDCD},_.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(_.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(c.a.color4CACFF," current"),onClick:Ut},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(ce.a,{onClick:function(){d&&B(!1)},disabled:d,showSearch:!0,onChange:function(u){return mt(z.filter(function(n){return n.name.includes(u)}))},options:ne==null?void 0:ne.map(function(t){return{value:t.name}})}))),e.a.createElement(o.a.Item,{label:"\u6700\u9AD8\u5B66\u5386",wrapperCol:{span:10},name:"edu_background",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"}]},e.a.createElement(L.a,{placeholder:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"},W.t.map(function(t,u){return e.a.createElement(i,{key:u,value:t.id},t.name)}))),e.a.createElement(o.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD",name:"edu_entry_year",wrapperCol:{span:10},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"}]},e.a.createElement(L.a,{placeholder:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"},bt())),e.a.createElement(o.a.Item,{label:"\u7B80\u4ECB",name:"brief_introduction",wrapperCol:{span:20},rules:[{required:!1}]},e.a.createElement(et,{maxLength:500})),e.a.createElement(o.a.Item,null,e.a.createElement(se.a,{className:"".concat(c.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:ut["account/editAccount"]},"\u4FDD\u5B58"),e.a.createElement(se.a,{className:c.a.submitButton,size:"large",onClick:function(){return Z.c.push("/account/profile")}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(c.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(Xe.a,{visible:D.actionTabs.key==="Account-AppplySchool",onClose:function(){C({type:"account/setActionTabs",payload:{}})},schoolName:_.school,onSuccess:Rt}),e.a.createElement(Ze.a,{visible:D.actionTabs.key==="Account-AppplyDepartment",onClose:function(){C({type:"account/setActionTabs",payload:{}})},schoolId:(H=U.find(function(t){return t.name===_.school}))===null||H===void 0?void 0:H.id,schoolName:_.school,departmentName:_.department,onSuccess:function(u){return Se(_.school,u)}}),e.a.createElement(me.a,{centered:!0,destroyOnClose:!0,visible:ft,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:Te,onOk:Te},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("aside",{style:{padding:"8px 70px"}},e.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),e.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),e.a.createElement("img",{src:qe.a,width:162,height:162}))))};K.default=Object(Z.a)(function(k){var R=k.user,$=k.account,w=k.loading,H=k.globalSetting;return{user:R,account:$,globalSetting:H,loading:w.effects}})(at)}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[36],{Lo1I:function(Y,K,a){Y.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color4CACFF:"color4CACFF___3pNG0",submitButton:"submitButton___2RxzB"}},O7MS:function(Y,K,a){Y.exports=a.p+"static/AssistantCode.61c5ef8d.png"},Z3SC:function(Y,K,a){"use strict";a.r(K),a.d(K,"identityMap",function(){return tt});var Ot=a("+L6B"),se=a("2/Rp"),Ft=a("O3gP"),ce=a("lrIw"),gt=a("14J3"),de=a("BMrR"),Mt=a("jCWc"),k=a("kPKH"),g=a("0Owb"),It=a("6UJt"),Ve=a("DFOY"),St=a("7Kak"),q=a("9yH6"),jt=a("5Dmo"),A=a("3S7+"),Tt=a("2qtc"),me=a("kLXV"),M=a("k1fw"),Lt=a("miYZ"),ee=a("tsqr"),He=a("WmNS"),E=a.n(He),I=a("9og8"),Wt=a("y8nQ"),o=a("Vl3Y"),h=a("tJVT"),Ge=a("PpiC"),Nt=a("5NDa"),X=a("5rEg"),Kt=a("OaEy"),L=a("2fM7"),f=a("q1tI"),e=a.n(f),Z=a("9kvl"),Je=a("gJ3r"),Ye=a("Lo1I"),c=a.n(Ye),Xe=a("HoYA"),Ze=a("4nbu"),Qe=a("O7MS"),qe=a.n(Qe),W=a("1vsH"),Ee=a("l04A"),i=L.a.Option,et=X.a.TextArea,tt={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},te=10,ae=20,at=function(b){var $,w,z,Q=b.user,D=b.account,kt=b.globalSetting,ut=b.loading,C=b.dispatch,xt=Object(Ge.a)(b,["user","account","globalSetting","loading","dispatch"]),nt=o.a.useForm(),_t=Object(h.a)(nt,1),S=_t[0],lt=Object(f.useState)({}),fe=Object(h.a)(lt,2),l=fe[0],V=fe[1],ot=Object(f.useState)([]),pe=Object(h.a)(ot,2),y=pe[0],rt=pe[1],it=Object(f.useState)([]),Pe=Object(h.a)(it,2),ue=Pe[0],st=Pe[1],ct=Object(f.useState)([]),he=Object(h.a)(ct,2),H=he[0],De=he[1],dt=Object(f.useState)([]),Ce=Object(h.a)(dt,2),ne=Ce[0],mt=Ce[1],Et=Object(f.useState)(!0),ve=Object(h.a)(Et,2),R=ve[0],Ae=ve[1],ft=Object(f.useState)(!1),ye=Object(h.a)(ft,2),pt=ye[0],Ue=ye[1],Pt=Object(f.useState)(),be=Object(h.a)(Pt,2),_e=be[0],Re=be[1],ht=Object(f.useState)(null),Be=Object(h.a)(ht,2),Dt=Be[0],Ct=Be[1],vt=Object(f.useState)(!0),Oe=Object(h.a)(vt,2),Fe=Oe[0],ge=Oe[1];Object(f.useEffect)(function(){Me()},[]),Object(f.useEffect)(function(){Object(I.a)(E.a.mark(function t(){var u,n;return E.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Ie((u=D.basicInfo)===null||u===void 0?void 0:u.school_id);case 2:n=_.sent,De(n==null?void 0:n.departments);case 4:case"end":return _.stop()}},t)}))()},[($=D.basicInfo)===null||$===void 0?void 0:$.school_id]);var Me=function(){var t=Object(I.a)(E.a.mark(function u(){var n;return E.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return ge(!0),_.next=3,C({type:"account/getSchoolOption"});case 3:n=_.sent,ge(!1),rt(n==null?void 0:n.schools);case 6:case"end":return _.stop()}},u)}));return function(){return t.apply(this,arguments)}}(),Ie=function(u){return u?C({type:"account/getDepartmentOption",payload:{id:u}}):void 0};Object(f.useEffect)(function(){if(!D.basicInfo)return;var t=D.basicInfo,u={nickname:t.nickname,name:t.show_realname?t.name:Object(W.z)(t.name),gender:t.gender,city:[t.location,t.location_city],identity:t.identity,school:t.school_name,department:t.department_name,studentNo:t.student_id,edu_entry_year:t.edu_entry_year,edu_background:t.edu_background,brief_introduction:t.brief_introduction,jobTitle:t.identity=="teacher"?t.technical_title:"\u6559\u6388",manager:t.identity=="professional"?t.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};Re(t.name),Ae(t.show_realname),Ct(t.identity),S.setFieldsValue(u),V(u)},[D.basicInfo]);var At=function(){C({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},yt=function(){if(!y.find(function(u){return u.name===l.school})){ee.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}C({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},Ut=function(u){if(V(Object(M.a)({},S.getFieldsValue())),"school"in u){st(y.filter(function(r){return r.name.includes(u.school)}));var n=(y.find(function(r){return r.name===u.school})||{}).id;n?je(u.school):(S.setFieldsValue({department:""}),V(Object(M.a)(Object(M.a)({},l),{school:u.school,department:""})))}"name"in u&&Re(u.name)},Se=function(){var u=!R;Ae(u);var n=u?_e:Object(W.z)(_e);S.setFieldsValue({name:n})},je=function(){var t=Object(I.a)(E.a.mark(function u(n,r){var _,U,F,T,p,P;return E.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return T=(_=y.find(function(G){return G.name===n}))===null||_===void 0?void 0:_.id,s.next=3,Ie(T);case 3:if(s.t0=s.sent,s.t0){s.next=6;break}s.t0={};case 6:p=s.t0,De(p==null?void 0:p.departments),P=r||(p==null||((U=p.departments)===null||U===void 0||((F=U[0])===null||F===void 0))?void 0:F.name),S.setFieldsValue({department:P}),V(Object(M.a)(Object(M.a)({},l),{school:n,department:P}));case 11:case"end":return s.stop()}},u)}));return function(n,r){return t.apply(this,arguments)}}(),bt=function(){var t=Object(I.a)(E.a.mark(function u(n){return E.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Me();case 2:S.setFieldsValue({school:n,department:""}),V(Object(M.a)(Object(M.a)({},l),{school:n,department:""}));case 4:case"end":return _.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),B=function(){var t=Object(I.a)(E.a.mark(function u(n){return E.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:me.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:n?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var U=Object(I.a)(E.a.mark(function T(){var p,P,N,s;return E.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(!n){m.next=6;break}return m.next=3,Object(Ee.g)({login:(p=Q.userInfo)===null||p===void 0?void 0:p.login});case 3:m.t0=m.sent,m.next=9;break;case 6:return m.next=8,Object(Ee.i)({login:(P=Q.userInfo)===null||P===void 0?void 0:P.login});case 8:m.t0=m.sent;case 9:N=m.t0,N&&(ee.b.success(n?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),C({type:"account/getBasicInfo",payload:{login:(s=Q.userInfo)===null||s===void 0?void 0:s.login}}));case 11:case"end":return m.stop()}},T)}));function F(){return U.apply(this,arguments)}return F}()});case 1:case"end":return _.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),Rt=function(){var u=new Date().getFullYear();return Array(31).fill({}).map(function(n,r){return e.a.createElement(i,{key:r,value:u-r},e.a.createElement("span",null,u-r))})},Bt=function(){var t=Object(I.a)(E.a.mark(function u(n){var r,_,U,F,T,p,P,N,s,G,m,We,Ne,Ke,ke,xe,$e,le,we,ze,J,oe,re;return E.a.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return F=n.nickname,T=n.gender,p=n.city,P=n.identity,N=n.studentNo,s=n.jobTitle,G=n.manager,m=n.school,We=n.department,Ne=n.edu_background,Ke=n.edu_entry_year,ke=n.brief_introduction,xe=(r=H.find(function(ie){return ie.name===We}))===null||r===void 0?void 0:r.id,$e=(_=y.find(function(ie){return ie.name===m}))===null||_===void 0?void 0:_.id,le=Object(h.a)(p,2),we=le[0],ze=le[1],v.next=6,C({type:"account/updateAccount",payload:{id:(U=D.basicInfo)===null||U===void 0?void 0:U.id,department_id:xe,gender:T,identity:P,location:we,location_city:ze,name:_e,nickname:F,school_id:$e,edu_background:Ne,edu_entry_year:Ke,show_realname:R,brief_introduction:ke,student_id:P==="student"?N:null,technical_title:s||G}});case 6:if(J=v.sent,!((J==null?void 0:J.status)===-1)){v.next=9;break}return v.abrupt("return");case 9:if(!J){v.next=17;break}if(ee.b.info("\u4FDD\u5B58\u6210\u529F"),((oe=D.basicInfo)===null||oe===void 0?void 0:oe.base_info_completed)||C({type:"user/getUserInfo"}),C({type:"account/getBasicInfo",payload:{login:(re=Q.userInfo)===null||re===void 0?void 0:re.login}}),!(P!==Dt&&P==="teacher")){v.next=16;break}return Ue(!0),v.abrupt("return");case 16:Z.c.push("/account/profile");case 17:case"end":return v.stop()}},u)}));return function(n){return t.apply(this,arguments)}}(),Te=function(){Ue(!1),Z.c.push("/account/profile")},Le=D.basicInfo,O=Le===void 0?{}:Le,d=O&&O.professional_certification=="certified",j=d?{}:{visible:!1};return e.a.createElement("section",{className:c.a.wrap},e.a.createElement("div",{className:c.a.content},e.a.createElement("div",{className:c.a.titleWrap},e.a.createElement("div",{className:c.a.title},"\u57FA\u672C\u4FE1\u606F")),e.a.createElement(o.a,{form:S,className:c.a.formWrap,layout:"horizontal",onValuesChange:Ut,onFinish:Bt},e.a.createElement(o.a.Item,{label:"\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0"},{validator:W.C}],validateTrigger:"onSubmit"},e.a.createElement(X.a,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0\uFF0C\u6700\u5927\u9650\u5236".concat(ae,"\u4E2A\u5B57\u7B26"),maxLength:ae,addonAfter:"".concat(((w=l.nickname)===null||w===void 0?void 0:w.length)||0,"/").concat(ae)})),O.authentication=="uncertified"?e.a.createElement(o.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(te,"\u4E2A\u5B57\u7B26")},{validator:W.B}],extra:e.a.createElement("span",null,R?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0")},e.a.createElement(X.a,{disabled:!R,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(te,"\u4E2A\u5B57\u7B26"),maxLength:te,addonAfter:e.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(R?"icon-xianshi":"icon-yincang"," font18 ").concat(c.a.color4CACFF),onClick:Se})})):e.a.createElement(o.a.Item,{label:"\u59D3\u540D"},e.a.createElement(A.a,{title:"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"},e.a.createElement("span",{className:"mr5",onClick:function(){B(!0)}},R?Object(W.z)(O.name):O.name)),e.a.createElement("i",{className:"iconfont ".concat(R?"icon-xianshi":"icon-yincang"," font18 ").concat(c.a.color4CACFF),onClick:Se}),e.a.createElement("span",null,R?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")),e.a.createElement(o.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},e.a.createElement(A.a,{title:O.authentication!=="uncertified"?"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1":"",placement:"bottom"},e.a.createElement(o.a.Item,{name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(q.a.Group,null,e.a.createElement(q.a,{value:0,disabled:O.authentication!=="uncertified"},"\u7537"),e.a.createElement(q.a,{value:1,disabled:O.authentication!=="uncertified"},"\u5973"))))),e.a.createElement(de.a,null,e.a.createElement(k.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{label:"\u6240\u5728\u5730",name:"city",rules:[{type:"array",required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6240\u5728\u5730"}]},e.a.createElement(Ve.a,{onClick:function(){d&&B(!1)},disabled:d,size:"large",style:{width:190},options:Je.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"}))))),e.a.createElement(de.a,{gutter:[10,0]},e.a.createElement(k.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(i,{value:"student"},"\u5B66\u751F"),e.a.createElement(i,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB"))))),l.identity==="student"&&e.a.createElement(k.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{initialValue:l.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(X.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7",onClick:function(){d&&B(!1)},disabled:d})))),l.identity==="teacher"&&e.a.createElement(k.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{initialValue:l.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),e.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),l.identity==="professional"&&e.a.createElement(k.a,{flex:"300px"},e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{initialValue:l.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(L.a,{onClick:function(){d&&B(!1)},disabled:d},e.a.createElement(i,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(i,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(i,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(i,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(i,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08")))))),e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",wrapperCol:{span:10},extra:!Fe&&l.school&&!(y==null?void 0:y.find(function(t){return t.name===l.school}))&&e.a.createElement("div",{className:c.a.schoolHintWrap},e.a.createElement("span",{className:c.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",l.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(c.a.color4CACFF," current"),onClick:At},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(ce.a,{onClick:function(){d&&B(!1)},disabled:d,showSearch:!0,options:ue==null?void 0:ue.map(function(t){return{value:t.name}})}))),e.a.createElement(A.a,Object(g.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},j),e.a.createElement(o.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!Fe&&l.department&&!(H==null?void 0:H.find(function(t){return t.name===l.department}))&&e.a.createElement("div",{className:c.a.schoolHintWrap},e.a.createElement("span",{className:c.a.colorCDCDCD},l.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(l.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(c.a.color4CACFF," current"),onClick:yt},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(ce.a,{onClick:function(){d&&B(!1)},disabled:d,showSearch:!0,onChange:function(u){return mt(H.filter(function(n){return n.name.includes(u)}))},options:ne==null?void 0:ne.map(function(t){return{value:t.name}})}))),e.a.createElement(o.a.Item,{label:"\u6700\u9AD8\u5B66\u5386",wrapperCol:{span:10},name:"edu_background",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"}]},e.a.createElement(L.a,{placeholder:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"},W.t.map(function(t,u){return e.a.createElement(i,{key:u,value:t.id},t.name)}))),e.a.createElement(o.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD",name:"edu_entry_year",wrapperCol:{span:10},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"}]},e.a.createElement(L.a,{placeholder:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"},Rt())),e.a.createElement(o.a.Item,{label:"\u7B80\u4ECB",name:"brief_introduction",wrapperCol:{span:20},rules:[{required:!1}]},e.a.createElement(et,{maxLength:500})),e.a.createElement(o.a.Item,null,e.a.createElement(se.a,{className:"".concat(c.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:ut["account/editAccount"]},"\u4FDD\u5B58"),e.a.createElement(se.a,{className:c.a.submitButton,size:"large",onClick:function(){return Z.c.push("/account/profile")}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(c.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(Xe.a,{visible:D.actionTabs.key==="Account-AppplySchool",onClose:function(){C({type:"account/setActionTabs",payload:{}})},schoolName:l.school,onSuccess:bt}),e.a.createElement(Ze.a,{visible:D.actionTabs.key==="Account-AppplyDepartment",onClose:function(){C({type:"account/setActionTabs",payload:{}})},schoolId:(z=y.find(function(t){return t.name===l.school}))===null||z===void 0?void 0:z.id,schoolName:l.school,departmentName:l.department,onSuccess:function(u){return je(l.school,u)}}),e.a.createElement(me.a,{centered:!0,destroyOnClose:!0,visible:pt,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:Te,onOk:Te},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("aside",{style:{padding:"8px 70px"}},e.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),e.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),e.a.createElement("img",{src:qe.a,width:162,height:162}))))};K.default=Object(Z.a)(function(x){var b=x.user,$=x.account,w=x.loading,z=x.globalSetting;return{user:b,account:$,globalSetting:z,loading:w.effects}})(at)}}]); diff --git a/p__Account__Profile__index.49209aa0.async.js b/p__Account__Profile__index.3bea1363.async.js similarity index 75% rename from p__Account__Profile__index.49209aa0.async.js rename to p__Account__Profile__index.3bea1363.async.js index 44d40092e3..74265d5958 100644 --- a/p__Account__Profile__index.49209aa0.async.js +++ b/p__Account__Profile__index.3bea1363.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[37,36],{"4w5S":function(T,b,a){"use strict";a.r(b);var qe=a("y8nQ"),v=a("Vl3Y"),et=a("+L6B"),ue=a("2/Rp"),De=a("SIvP"),ne=a("q1tI"),r=a.n(ne),g=a("9kvl"),B=a("vjIP"),K=a.n(B),se=a("Z3SC"),Ce=a("1vsH"),z=function(c){var le=c.account,Y=c.globalSetting,M=c.loading,tt=c.dispatch,_e=Object(De.a)(c,["account","globalSetting","loading","dispatch"]),u=le.basicInfo;return r.a.createElement("section",{className:K.a.wrap},r.a.createElement("div",{className:K.a.content},r.a.createElement("div",{className:K.a.titleWrap},r.a.createElement("div",{className:K.a.title},"\u57FA\u672C\u4FE1\u606F"),r.a.createElement(ue.a,{type:"primary",ghost:!0,onClick:function(){return g.c.push("/account/profile/edit")}},"\u4FEE\u6539")),r.a.createElement(v.a,{className:K.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},r.a.createElement(v.a.Item,{label:"\u6635\u79F0"},u==null?void 0:u.nickname),r.a.createElement(v.a.Item,{label:"\u59D3\u540D"},(u==null?void 0:u.show_realname)==!0?u==null?void 0:u.name:Object(Ce.z)(u==null?void 0:u.name)),r.a.createElement(v.a.Item,{label:"\u6027\u522B"},(u==null?void 0:u.gender)==0?"\u7537":"\u5973"),r.a.createElement(v.a.Item,{label:"\u6240\u5728\u5730"},u==null?void 0:u.location,"\u3000",u==null?void 0:u.location_city),r.a.createElement(v.a.Item,{label:"\u804C\u4E1A"},se.identityMap[u==null?void 0:u.identity],"\u3000",(u==null?void 0:u.technical_title)||(u==null?void 0:u.student_id)),r.a.createElement(v.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D"},u==null?void 0:u.school_name),r.a.createElement(v.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},u==null?void 0:u.department_name),r.a.createElement(v.a.Item,{label:"\u6700\u9AD8\u5B66\u5386"},u==null?void 0:u.edu_background),r.a.createElement(v.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD"},u==null?void 0:u.edu_entry_year),r.a.createElement(v.a.Item,{label:"\u7B80\u4ECB"},u==null?void 0:u.brief_introduction))),r.a.createElement("div",{className:"".concat(K.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};b.default=Object(g.a)(function(G){var c=G.account,le=G.loading,Y=G.globalSetting;return{account:c,globalSetting:Y,loading:le.models.index}})(z)},Lo1I:function(T,b,a){T.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color4CACFF:"color4CACFF___3pNG0",submitButton:"submitButton___2RxzB"}},O7MS:function(T,b,a){T.exports=a.p+"static/AssistantCode.61c5ef8d.png"},Z3SC:function(T,b,a){"use strict";a.r(b),a.d(b,"identityMap",function(){return st});var qe=a("+L6B"),v=a("2/Rp"),et=a("O3gP"),ue=a("lrIw"),De=a("14J3"),ne=a("BMrR"),r=a("jCWc"),g=a("kPKH"),B=a("IIKO"),K=a("6UJt"),se=a("DFOY"),Ce=a("7Kak"),z=a("9yH6"),G=a("5Dmo"),c=a("3S7+"),le=a("2qtc"),Y=a("kLXV"),M=a("XEnU"),tt=a("miYZ"),_e=a("tsqr"),u=a("c1Ei"),p=a.n(u),N=a("5Tp6"),Tt=a("y8nQ"),i=a("Vl3Y"),U=a("k16G"),at=a("SIvP"),Kt=a("5NDa"),oe=a("5rEg"),Nt=a("OaEy"),H=a("2fM7"),h=a("q1tI"),e=a.n(h),re=a("9kvl"),ut=a("gJ3r"),nt=a("Lo1I"),E=a.n(nt),lt=a("HoYA"),_t=a("4nbu"),ot=a("O7MS"),rt=a.n(ot),w=a("1vsH"),Ue=a("l04A"),d=H.a.Option,it=oe.a.TextArea,st={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},ce=10,de=20,ct=function(I){var X,Z,Q,ie=I.user,y=I.account,xt=I.globalSetting,dt=I.loading,R=I.dispatch,kt=Object(at.a)(I,["user","account","globalSetting","loading","dispatch"]),mt=i.a.useForm(),Et=Object(U.a)(mt,1),x=Et[0],pt=Object(h.useState)({}),ye=Object(U.a)(pt,2),o=ye[0],q=ye[1],ft=Object(h.useState)([]),Re=Object(U.a)(ft,2),O=Re[0],Pt=Re[1],vt=Object(h.useState)([]),Ae=Object(U.a)(vt,2),me=Ae[0],ht=Ae[1],Dt=Object(h.useState)([]),be=Object(U.a)(Dt,2),ee=be[0],Be=be[1],Ct=Object(h.useState)([]),Oe=Object(U.a)(Ct,2),Ee=Oe[0],Ut=Oe[1],yt=Object(h.useState)(!0),Fe=Object(U.a)(yt,2),S=Fe[0],ge=Fe[1],Rt=Object(h.useState)(!1),Me=Object(U.a)(Rt,2),At=Me[0],Ie=Me[1],bt=Object(h.useState)(),Se=Object(U.a)(bt,2),pe=Se[0],je=Se[1],Bt=Object(h.useState)(null),We=Object(U.a)(Bt,2),Ot=We[0],Ft=We[1],gt=Object(h.useState)(!0),Le=Object(U.a)(gt,2),Te=Le[0],Ke=Le[1];Object(h.useEffect)(function(){Ne()},[]),Object(h.useEffect)(function(){Object(N.a)(p.a.mark(function t(){var n,l;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,xe((n=y.basicInfo)===null||n===void 0?void 0:n.school_id);case 2:l=_.sent,Be(l==null?void 0:l.departments);case 4:case"end":return _.stop()}},t)}))()},[(X=y.basicInfo)===null||X===void 0?void 0:X.school_id]);var Ne=function(){var t=Object(N.a)(p.a.mark(function n(){var l;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return Ke(!0),_.next=3,R({type:"account/getSchoolOption"});case 3:l=_.sent,Ke(!1),Pt(l==null?void 0:l.schools);case 6:case"end":return _.stop()}},n)}));return function(){return t.apply(this,arguments)}}(),xe=function(n){return n?R({type:"account/getDepartmentOption",payload:{id:n}}):void 0};Object(h.useEffect)(function(){if(!y.basicInfo)return;var t=y.basicInfo,n={nickname:t.nickname,name:t.show_realname?t.name:Object(w.z)(t.name),gender:t.gender,city:[t.location,t.location_city],identity:t.identity,school:t.school_name,department:t.department_name,studentNo:t.student_id,edu_entry_year:t.edu_entry_year,edu_background:t.edu_background,brief_introduction:t.brief_introduction,jobTitle:t.identity=="teacher"?t.technical_title:"\u6559\u6388",manager:t.identity=="professional"?t.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};je(t.name),ge(t.show_realname),Ft(t.identity),x.setFieldsValue(n),q(n)},[y.basicInfo]);var Mt=function(){R({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},It=function(){if(!O.find(function(n){return n.name===o.school})){_e.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}R({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},St=function(n){if(q(Object(M.a)({},x.getFieldsValue())),"school"in n){ht(O.filter(function(s){return s.name.includes(n.school)}));var l=(O.find(function(s){return s.name===n.school})||{}).id;l?$e(n.school):(x.setFieldsValue({department:""}),q(Object(M.a)(Object(M.a)({},o),{school:n.school,department:""})))}"name"in n&&je(n.name)},ke=function(){var n=!S;ge(n);var l=n?pe:Object(w.z)(pe);x.setFieldsValue({name:l})},$e=function(){var t=Object(N.a)(p.a.mark(function n(l,s){var _,F,L,$,D,C;return p.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return $=(_=O.find(function(te){return te.name===l}))===null||_===void 0?void 0:_.id,m.next=3,xe($);case 3:if(m.t0=m.sent,m.t0){m.next=6;break}m.t0={};case 6:D=m.t0,Be(D==null?void 0:D.departments),C=s||(D==null||((F=D.departments)===null||F===void 0||((L=F[0])===null||L===void 0))?void 0:L.name),x.setFieldsValue({department:C}),q(Object(M.a)(Object(M.a)({},o),{school:l,department:C}));case 11:case"end":return m.stop()}},n)}));return function(l,s){return t.apply(this,arguments)}}(),jt=function(){var t=Object(N.a)(p.a.mark(function n(l){return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Ne();case 2:x.setFieldsValue({school:l,department:""}),q(Object(M.a)(Object(M.a)({},o),{school:l,department:""}));case 4:case"end":return _.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),j=function(){var t=Object(N.a)(p.a.mark(function n(l){return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:Y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:l?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var F=Object(N.a)(p.a.mark(function $(){var D,C,V,m;return p.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!l){P.next=6;break}return P.next=3,Object(Ue.g)({login:(D=ie.userInfo)===null||D===void 0?void 0:D.login});case 3:P.t0=P.sent,P.next=9;break;case 6:return P.next=8,Object(Ue.i)({login:(C=ie.userInfo)===null||C===void 0?void 0:C.login});case 8:P.t0=P.sent;case 9:V=P.t0,V&&(_e.b.success(l?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),R({type:"account/getBasicInfo",payload:{login:(m=ie.userInfo)===null||m===void 0?void 0:m.login}}));case 11:case"end":return P.stop()}},$)}));function L(){return F.apply(this,arguments)}return L}()});case 1:case"end":return _.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),Wt=function(){var n=new Date().getFullYear();return Array(31).fill({}).map(function(l,s){return e.a.createElement(d,{key:s,value:n-s},e.a.createElement("span",null,n-s))})},Lt=function(){var t=Object(N.a)(p.a.mark(function n(l){var s,_,F,L,$,D,C,V,m,te,P,Ve,ze,Ge,Ye,Je,Xe,fe,Ze,Qe,ae,Pe,ve;return p.a.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return L=l.nickname,$=l.gender,D=l.city,C=l.identity,V=l.studentNo,m=l.jobTitle,te=l.manager,P=l.school,Ve=l.department,ze=l.edu_background,Ge=l.edu_entry_year,Ye=l.brief_introduction,Je=(s=ee.find(function(he){return he.name===Ve}))===null||s===void 0?void 0:s.id,Xe=(_=O.find(function(he){return he.name===P}))===null||_===void 0?void 0:_.id,fe=Object(U.a)(D,2),Ze=fe[0],Qe=fe[1],A.next=6,R({type:"account/updateAccount",payload:{id:(F=y.basicInfo)===null||F===void 0?void 0:F.id,department_id:Je,gender:$,identity:C,location:Ze,location_city:Qe,name:pe,nickname:L,school_id:Xe,edu_background:ze,edu_entry_year:Ge,show_realname:S,brief_introduction:Ye,student_id:C==="student"?V:null,technical_title:m||te}});case 6:if(ae=A.sent,!((ae==null?void 0:ae.status)===-1)){A.next=9;break}return A.abrupt("return");case 9:if(!ae){A.next=17;break}if(_e.b.info("\u4FDD\u5B58\u6210\u529F"),((Pe=y.basicInfo)===null||Pe===void 0?void 0:Pe.base_info_completed)||R({type:"user/getUserInfo"}),R({type:"account/getBasicInfo",payload:{login:(ve=ie.userInfo)===null||ve===void 0?void 0:ve.login}}),!(C!==Ot&&C==="teacher")){A.next=16;break}return Ie(!0),A.abrupt("return");case 16:re.c.push("/account/profile");case 17:case"end":return A.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),He=function(){Ie(!1),re.c.push("/account/profile")},we=y.basicInfo,W=we===void 0?{}:we,f=W&&W.professional_certification=="certified",k=f?{}:{visible:!1};return e.a.createElement("section",{className:E.a.wrap},e.a.createElement("div",{className:E.a.content},e.a.createElement("div",{className:E.a.titleWrap},e.a.createElement("div",{className:E.a.title},"\u57FA\u672C\u4FE1\u606F")),e.a.createElement(i.a,{form:x,className:E.a.formWrap,layout:"horizontal",onValuesChange:St,onFinish:Lt},e.a.createElement(i.a.Item,{label:"\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0"},{validator:w.C}],validateTrigger:"onSubmit"},e.a.createElement(oe.a,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0\uFF0C\u6700\u5927\u9650\u5236".concat(de,"\u4E2A\u5B57\u7B26"),maxLength:de,addonAfter:"".concat(((Z=o.nickname)===null||Z===void 0?void 0:Z.length)||0,"/").concat(de)})),W.authentication=="uncertified"?e.a.createElement(i.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(ce,"\u4E2A\u5B57\u7B26")},{validator:w.B}],extra:e.a.createElement("span",null,S?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0")},e.a.createElement(oe.a,{disabled:!S,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(ce,"\u4E2A\u5B57\u7B26"),maxLength:ce,addonAfter:e.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(S?"icon-xianshi":"icon-yincang"," font18 ").concat(E.a.color4CACFF),onClick:ke})})):e.a.createElement(i.a.Item,{label:"\u59D3\u540D"},e.a.createElement(c.a,{title:"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"},e.a.createElement("span",{className:"mr5",onClick:function(){j(!0)}},S?Object(w.z)(W.name):W.name)),e.a.createElement("i",{className:"iconfont ".concat(S?"icon-xianshi":"icon-yincang"," font18 ").concat(E.a.color4CACFF),onClick:ke}),e.a.createElement("span",null,S?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")),e.a.createElement(i.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},e.a.createElement(c.a,{title:W.authentication!=="uncertified"?"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1":"",placement:"bottom"},e.a.createElement(i.a.Item,{name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(z.a.Group,null,e.a.createElement(z.a,{value:0,disabled:W.authentication!=="uncertified"},"\u7537"),e.a.createElement(z.a,{value:1,disabled:W.authentication!=="uncertified"},"\u5973"))))),e.a.createElement(ne.a,null,e.a.createElement(g.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u6240\u5728\u5730",name:"city",rules:[{type:"array",required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6240\u5728\u5730"}]},e.a.createElement(se.a,{onClick:function(){f&&j(!1)},disabled:f,size:"large",style:{width:190},options:ut.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"}))))),e.a.createElement(ne.a,{gutter:[10,0]},e.a.createElement(g.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(H.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(d,{value:"student"},"\u5B66\u751F"),e.a.createElement(d,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB"))))),o.identity==="student"&&e.a.createElement(g.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(oe.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7",onClick:function(){f&&j(!1)},disabled:f})))),o.identity==="teacher"&&e.a.createElement(g.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(H.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(d,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(d,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(d,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),o.identity==="professional"&&e.a.createElement(g.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(H.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(d,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(d,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(d,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(d,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08")))))),e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",wrapperCol:{span:10},extra:!Te&&o.school&&!(O==null?void 0:O.find(function(t){return t.name===o.school}))&&e.a.createElement("div",{className:E.a.schoolHintWrap},e.a.createElement("span",{className:E.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",o.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(E.a.color4CACFF," current"),onClick:Mt},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(ue.a,{onClick:function(){f&&j(!1)},disabled:f,showSearch:!0,options:me==null?void 0:me.map(function(t){return{value:t.name}})}))),e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!Te&&o.department&&!(ee==null?void 0:ee.find(function(t){return t.name===o.department}))&&e.a.createElement("div",{className:E.a.schoolHintWrap},e.a.createElement("span",{className:E.a.colorCDCDCD},o.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(o.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(E.a.color4CACFF," current"),onClick:It},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(ue.a,{onClick:function(){f&&j(!1)},disabled:f,showSearch:!0,onChange:function(n){return Ut(ee.filter(function(l){return l.name.includes(n)}))},options:Ee==null?void 0:Ee.map(function(t){return{value:t.name}})}))),e.a.createElement(i.a.Item,{label:"\u6700\u9AD8\u5B66\u5386",wrapperCol:{span:10},name:"edu_background",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"}]},e.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"},w.t.map(function(t,n){return e.a.createElement(d,{key:n,value:t.id},t.name)}))),e.a.createElement(i.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD",name:"edu_entry_year",wrapperCol:{span:10},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"}]},e.a.createElement(H.a,{placeholder:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"},Wt())),e.a.createElement(i.a.Item,{label:"\u7B80\u4ECB",name:"brief_introduction",wrapperCol:{span:20},rules:[{required:!1}]},e.a.createElement(it,{maxLength:500})),e.a.createElement(i.a.Item,null,e.a.createElement(v.a,{className:"".concat(E.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:dt["account/editAccount"]},"\u4FDD\u5B58"),e.a.createElement(v.a,{className:E.a.submitButton,size:"large",onClick:function(){return re.c.push("/account/profile")}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(E.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(lt.a,{visible:y.actionTabs.key==="Account-AppplySchool",onClose:function(){R({type:"account/setActionTabs",payload:{}})},schoolName:o.school,onSuccess:jt}),e.a.createElement(_t.a,{visible:y.actionTabs.key==="Account-AppplyDepartment",onClose:function(){R({type:"account/setActionTabs",payload:{}})},schoolId:(Q=O.find(function(t){return t.name===o.school}))===null||Q===void 0?void 0:Q.id,schoolName:o.school,departmentName:o.department,onSuccess:function(n){return $e(o.school,n)}}),e.a.createElement(Y.a,{centered:!0,destroyOnClose:!0,visible:At,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:He,onOk:He},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("aside",{style:{padding:"8px 70px"}},e.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),e.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),e.a.createElement("img",{src:rt.a,width:162,height:162}))))};b.default=Object(re.a)(function(J){var I=J.user,X=J.account,Z=J.loading,Q=J.globalSetting;return{user:I,account:X,globalSetting:Q,loading:Z.effects}})(ct)},vjIP:function(T,b,a){T.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[37,36],{"4w5S":function(T,A,a){"use strict";a.r(A);var qe=a("y8nQ"),v=a("Vl3Y"),et=a("+L6B"),ue=a("2/Rp"),De=a("PpiC"),ne=a("q1tI"),r=a.n(ne),F=a("9kvl"),B=a("vjIP"),N=a.n(B),se=a("Z3SC"),Ce=a("1vsH"),V=function(c){var le=c.account,Y=c.globalSetting,M=c.loading,tt=c.dispatch,_e=Object(De.a)(c,["account","globalSetting","loading","dispatch"]),u=le.basicInfo;return r.a.createElement("section",{className:N.a.wrap},r.a.createElement("div",{className:N.a.content},r.a.createElement("div",{className:N.a.titleWrap},r.a.createElement("div",{className:N.a.title},"\u57FA\u672C\u4FE1\u606F"),r.a.createElement(ue.a,{type:"primary",ghost:!0,onClick:function(){return F.c.push("/account/profile/edit")}},"\u4FEE\u6539")),r.a.createElement(v.a,{className:N.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},r.a.createElement(v.a.Item,{label:"\u6635\u79F0"},u==null?void 0:u.nickname),r.a.createElement(v.a.Item,{label:"\u59D3\u540D"},(u==null?void 0:u.show_realname)==!0?u==null?void 0:u.name:Object(Ce.z)(u==null?void 0:u.name)),r.a.createElement(v.a.Item,{label:"\u6027\u522B"},(u==null?void 0:u.gender)==0?"\u7537":"\u5973"),r.a.createElement(v.a.Item,{label:"\u6240\u5728\u5730"},u==null?void 0:u.location,"\u3000",u==null?void 0:u.location_city),r.a.createElement(v.a.Item,{label:"\u804C\u4E1A"},se.identityMap[u==null?void 0:u.identity],"\u3000",(u==null?void 0:u.technical_title)||(u==null?void 0:u.student_id)),r.a.createElement(v.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D"},u==null?void 0:u.school_name),r.a.createElement(v.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},u==null?void 0:u.department_name),r.a.createElement(v.a.Item,{label:"\u6700\u9AD8\u5B66\u5386"},u==null?void 0:u.edu_background),r.a.createElement(v.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD"},u==null?void 0:u.edu_entry_year),r.a.createElement(v.a.Item,{label:"\u7B80\u4ECB"},u==null?void 0:u.brief_introduction))),r.a.createElement("div",{className:"".concat(N.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};A.default=Object(F.a)(function(G){var c=G.account,le=G.loading,Y=G.globalSetting;return{account:c,globalSetting:Y,loading:le.models.index}})(V)},Lo1I:function(T,A,a){T.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color4CACFF:"color4CACFF___3pNG0",submitButton:"submitButton___2RxzB"}},O7MS:function(T,A,a){T.exports=a.p+"static/AssistantCode.61c5ef8d.png"},Z3SC:function(T,A,a){"use strict";a.r(A),a.d(A,"identityMap",function(){return st});var qe=a("+L6B"),v=a("2/Rp"),et=a("O3gP"),ue=a("lrIw"),De=a("14J3"),ne=a("BMrR"),r=a("jCWc"),F=a("kPKH"),B=a("0Owb"),N=a("6UJt"),se=a("DFOY"),Ce=a("7Kak"),V=a("9yH6"),G=a("5Dmo"),c=a("3S7+"),le=a("2qtc"),Y=a("kLXV"),M=a("k1fw"),tt=a("miYZ"),_e=a("tsqr"),u=a("WmNS"),p=a.n(u),K=a("9og8"),Tt=a("y8nQ"),i=a("Vl3Y"),U=a("tJVT"),at=a("PpiC"),Nt=a("5NDa"),oe=a("5rEg"),Kt=a("OaEy"),w=a("2fM7"),h=a("q1tI"),e=a.n(h),re=a("9kvl"),ut=a("gJ3r"),nt=a("Lo1I"),E=a.n(nt),lt=a("HoYA"),_t=a("4nbu"),ot=a("O7MS"),rt=a.n(ot),z=a("1vsH"),Ue=a("l04A"),d=w.a.Option,it=oe.a.TextArea,st={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},ce=10,de=20,ct=function(I){var Z,X,Q,ie=I.user,y=I.account,xt=I.globalSetting,dt=I.loading,R=I.dispatch,kt=Object(at.a)(I,["user","account","globalSetting","loading","dispatch"]),mt=i.a.useForm(),Et=Object(U.a)(mt,1),x=Et[0],pt=Object(h.useState)({}),ye=Object(U.a)(pt,2),o=ye[0],q=ye[1],ft=Object(h.useState)([]),Re=Object(U.a)(ft,2),O=Re[0],Pt=Re[1],vt=Object(h.useState)([]),be=Object(U.a)(vt,2),me=be[0],ht=be[1],Dt=Object(h.useState)([]),Ae=Object(U.a)(Dt,2),ee=Ae[0],Be=Ae[1],Ct=Object(h.useState)([]),Oe=Object(U.a)(Ct,2),Ee=Oe[0],Ut=Oe[1],yt=Object(h.useState)(!0),ge=Object(U.a)(yt,2),S=ge[0],Fe=ge[1],Rt=Object(h.useState)(!1),Me=Object(U.a)(Rt,2),bt=Me[0],Ie=Me[1],At=Object(h.useState)(),Se=Object(U.a)(At,2),pe=Se[0],je=Se[1],Bt=Object(h.useState)(null),We=Object(U.a)(Bt,2),Ot=We[0],gt=We[1],Ft=Object(h.useState)(!0),Le=Object(U.a)(Ft,2),Te=Le[0],Ne=Le[1];Object(h.useEffect)(function(){Ke()},[]),Object(h.useEffect)(function(){Object(K.a)(p.a.mark(function t(){var n,l;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,xe((n=y.basicInfo)===null||n===void 0?void 0:n.school_id);case 2:l=_.sent,Be(l==null?void 0:l.departments);case 4:case"end":return _.stop()}},t)}))()},[(Z=y.basicInfo)===null||Z===void 0?void 0:Z.school_id]);var Ke=function(){var t=Object(K.a)(p.a.mark(function n(){var l;return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return Ne(!0),_.next=3,R({type:"account/getSchoolOption"});case 3:l=_.sent,Ne(!1),Pt(l==null?void 0:l.schools);case 6:case"end":return _.stop()}},n)}));return function(){return t.apply(this,arguments)}}(),xe=function(n){return n?R({type:"account/getDepartmentOption",payload:{id:n}}):void 0};Object(h.useEffect)(function(){if(!y.basicInfo)return;var t=y.basicInfo,n={nickname:t.nickname,name:t.show_realname?t.name:Object(z.z)(t.name),gender:t.gender,city:[t.location,t.location_city],identity:t.identity,school:t.school_name,department:t.department_name,studentNo:t.student_id,edu_entry_year:t.edu_entry_year,edu_background:t.edu_background,brief_introduction:t.brief_introduction,jobTitle:t.identity=="teacher"?t.technical_title:"\u6559\u6388",manager:t.identity=="professional"?t.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};je(t.name),Fe(t.show_realname),gt(t.identity),x.setFieldsValue(n),q(n)},[y.basicInfo]);var Mt=function(){R({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},It=function(){if(!O.find(function(n){return n.name===o.school})){_e.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}R({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},St=function(n){if(q(Object(M.a)({},x.getFieldsValue())),"school"in n){ht(O.filter(function(s){return s.name.includes(n.school)}));var l=(O.find(function(s){return s.name===n.school})||{}).id;l?$e(n.school):(x.setFieldsValue({department:""}),q(Object(M.a)(Object(M.a)({},o),{school:n.school,department:""})))}"name"in n&&je(n.name)},ke=function(){var n=!S;Fe(n);var l=n?pe:Object(z.z)(pe);x.setFieldsValue({name:l})},$e=function(){var t=Object(K.a)(p.a.mark(function n(l,s){var _,g,L,$,D,C;return p.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return $=(_=O.find(function(te){return te.name===l}))===null||_===void 0?void 0:_.id,m.next=3,xe($);case 3:if(m.t0=m.sent,m.t0){m.next=6;break}m.t0={};case 6:D=m.t0,Be(D==null?void 0:D.departments),C=s||(D==null||((g=D.departments)===null||g===void 0||((L=g[0])===null||L===void 0))?void 0:L.name),x.setFieldsValue({department:C}),q(Object(M.a)(Object(M.a)({},o),{school:l,department:C}));case 11:case"end":return m.stop()}},n)}));return function(l,s){return t.apply(this,arguments)}}(),jt=function(){var t=Object(K.a)(p.a.mark(function n(l){return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Ke();case 2:x.setFieldsValue({school:l,department:""}),q(Object(M.a)(Object(M.a)({},o),{school:l,department:""}));case 4:case"end":return _.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),j=function(){var t=Object(K.a)(p.a.mark(function n(l){return p.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:Y.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:l?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var g=Object(K.a)(p.a.mark(function $(){var D,C,H,m;return p.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!l){P.next=6;break}return P.next=3,Object(Ue.g)({login:(D=ie.userInfo)===null||D===void 0?void 0:D.login});case 3:P.t0=P.sent,P.next=9;break;case 6:return P.next=8,Object(Ue.i)({login:(C=ie.userInfo)===null||C===void 0?void 0:C.login});case 8:P.t0=P.sent;case 9:H=P.t0,H&&(_e.b.success(l?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),R({type:"account/getBasicInfo",payload:{login:(m=ie.userInfo)===null||m===void 0?void 0:m.login}}));case 11:case"end":return P.stop()}},$)}));function L(){return g.apply(this,arguments)}return L}()});case 1:case"end":return _.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),Wt=function(){var n=new Date().getFullYear();return Array(31).fill({}).map(function(l,s){return e.a.createElement(d,{key:s,value:n-s},e.a.createElement("span",null,n-s))})},Lt=function(){var t=Object(K.a)(p.a.mark(function n(l){var s,_,g,L,$,D,C,H,m,te,P,He,Ve,Ge,Ye,Je,Ze,fe,Xe,Qe,ae,Pe,ve;return p.a.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return L=l.nickname,$=l.gender,D=l.city,C=l.identity,H=l.studentNo,m=l.jobTitle,te=l.manager,P=l.school,He=l.department,Ve=l.edu_background,Ge=l.edu_entry_year,Ye=l.brief_introduction,Je=(s=ee.find(function(he){return he.name===He}))===null||s===void 0?void 0:s.id,Ze=(_=O.find(function(he){return he.name===P}))===null||_===void 0?void 0:_.id,fe=Object(U.a)(D,2),Xe=fe[0],Qe=fe[1],b.next=6,R({type:"account/updateAccount",payload:{id:(g=y.basicInfo)===null||g===void 0?void 0:g.id,department_id:Je,gender:$,identity:C,location:Xe,location_city:Qe,name:pe,nickname:L,school_id:Ze,edu_background:Ve,edu_entry_year:Ge,show_realname:S,brief_introduction:Ye,student_id:C==="student"?H:null,technical_title:m||te}});case 6:if(ae=b.sent,!((ae==null?void 0:ae.status)===-1)){b.next=9;break}return b.abrupt("return");case 9:if(!ae){b.next=17;break}if(_e.b.info("\u4FDD\u5B58\u6210\u529F"),((Pe=y.basicInfo)===null||Pe===void 0?void 0:Pe.base_info_completed)||R({type:"user/getUserInfo"}),R({type:"account/getBasicInfo",payload:{login:(ve=ie.userInfo)===null||ve===void 0?void 0:ve.login}}),!(C!==Ot&&C==="teacher")){b.next=16;break}return Ie(!0),b.abrupt("return");case 16:re.c.push("/account/profile");case 17:case"end":return b.stop()}},n)}));return function(l){return t.apply(this,arguments)}}(),we=function(){Ie(!1),re.c.push("/account/profile")},ze=y.basicInfo,W=ze===void 0?{}:ze,f=W&&W.professional_certification=="certified",k=f?{}:{visible:!1};return e.a.createElement("section",{className:E.a.wrap},e.a.createElement("div",{className:E.a.content},e.a.createElement("div",{className:E.a.titleWrap},e.a.createElement("div",{className:E.a.title},"\u57FA\u672C\u4FE1\u606F")),e.a.createElement(i.a,{form:x,className:E.a.formWrap,layout:"horizontal",onValuesChange:St,onFinish:Lt},e.a.createElement(i.a.Item,{label:"\u6635\u79F0",name:"nickname",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0"},{validator:z.C}],validateTrigger:"onSubmit"},e.a.createElement(oe.a,{placeholder:"\u8BF7\u8F93\u5165\u60A8\u7684\u6635\u79F0\uFF0C\u6700\u5927\u9650\u5236".concat(de,"\u4E2A\u5B57\u7B26"),maxLength:de,addonAfter:"".concat(((X=o.nickname)===null||X===void 0?void 0:X.length)||0,"/").concat(de)})),W.authentication=="uncertified"?e.a.createElement(i.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(ce,"\u4E2A\u5B57\u7B26")},{validator:z.B}],extra:e.a.createElement("span",null,S?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0")},e.a.createElement(oe.a,{disabled:!S,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(ce,"\u4E2A\u5B57\u7B26"),maxLength:ce,addonAfter:e.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(S?"icon-xianshi":"icon-yincang"," font18 ").concat(E.a.color4CACFF),onClick:ke})})):e.a.createElement(i.a.Item,{label:"\u59D3\u540D"},e.a.createElement(c.a,{title:"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1"},e.a.createElement("span",{className:"mr5",onClick:function(){j(!0)}},S?Object(z.z)(W.name):W.name)),e.a.createElement("i",{className:"iconfont ".concat(S?"icon-xianshi":"icon-yincang"," font18 ").concat(E.a.color4CACFF),onClick:ke}),e.a.createElement("span",null,S?"\uFF08\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09":"\uFF08\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0\uFF09")),e.a.createElement(i.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},e.a.createElement(c.a,{title:W.authentication!=="uncertified"?"\u5DF2\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1":"",placement:"bottom"},e.a.createElement(i.a.Item,{name:"gender",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6027\u522B"}]},e.a.createElement(V.a.Group,null,e.a.createElement(V.a,{value:0,disabled:W.authentication!=="uncertified"},"\u7537"),e.a.createElement(V.a,{value:1,disabled:W.authentication!=="uncertified"},"\u5973"))))),e.a.createElement(ne.a,null,e.a.createElement(F.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u6240\u5728\u5730",name:"city",rules:[{type:"array",required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6240\u5728\u5730"}]},e.a.createElement(se.a,{onClick:function(){f&&j(!1)},disabled:f,size:"large",style:{width:190},options:ut.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730"}))))),e.a.createElement(ne.a,{gutter:[10,0]},e.a.createElement(F.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},e.a.createElement(w.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"teacher"},"\u6559\u5E08"),e.a.createElement(d,{value:"student"},"\u5B66\u751F"),e.a.createElement(d,{value:"professional"},"\u4E13\u4E1A\u4EBA\u58EB"))))),o.identity==="student"&&e.a.createElement(F.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},e.a.createElement(oe.a,{type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7",onClick:function(){f&&j(!1)},disabled:f})))),o.identity==="teacher"&&e.a.createElement(F.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(w.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"\u6559\u6388"},"\u6559\u6388"),e.a.createElement(d,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),e.a.createElement(d,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),e.a.createElement(d,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),e.a.createElement(d,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),o.identity==="professional"&&e.a.createElement(F.a,{flex:"300px"},e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{initialValue:o.manager,name:"manager",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},e.a.createElement(w.a,{onClick:function(){f&&j(!1)},disabled:f},e.a.createElement(d,{value:"\u4F01\u4E1A\u7BA1\u7406\u8005"},"\u4F01\u4E1A\u7BA1\u7406\u8005"),e.a.createElement(d,{value:"\u90E8\u95E8\u7BA1\u7406\u8005"},"\u90E8\u95E8\u7BA1\u7406\u8005"),e.a.createElement(d,{value:"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"},"\u9AD8\u7EA7\u5DE5\u7A0B\u5E08"),e.a.createElement(d,{value:"\u5DE5\u7A0B\u5E08"},"\u5DE5\u7A0B\u5E08"),e.a.createElement(d,{value:"\u52A9\u7406\u5DE5\u7A0B\u5E08"},"\u52A9\u7406\u5DE5\u7A0B\u5E08")))))),e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u5B66\u6821/\u5355\u4F4D",name:"school",wrapperCol:{span:10},extra:!Te&&o.school&&!(O==null?void 0:O.find(function(t){return t.name===o.school}))&&e.a.createElement("div",{className:E.a.schoolHintWrap},e.a.createElement("span",{className:E.a.colorCDCDCD},"\u672A\u627E\u5230\u5305\u542B\u201C",o.school,"\u201D\u7684\u9AD8\u6821\uFF0C"),e.a.createElement("span",{className:"".concat(E.a.color4CACFF," current"),onClick:Mt},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u5B66\u6821/\u5355\u4F4D"}]},e.a.createElement(ue.a,{onClick:function(){f&&j(!1)},disabled:f,showSearch:!0,options:me==null?void 0:me.map(function(t){return{value:t.name}})}))),e.a.createElement(c.a,Object(B.a)({placement:"bottom",title:function(){return e.a.createElement("div",null,e.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),e.a.createElement("div",null,"\u53EF\u5728",e.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},k),e.a.createElement(i.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!Te&&o.department&&!(ee==null?void 0:ee.find(function(t){return t.name===o.department}))&&e.a.createElement("div",{className:E.a.schoolHintWrap},e.a.createElement("span",{className:E.a.colorCDCDCD},o.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(o.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),e.a.createElement("span",{className:"".concat(E.a.color4CACFF," current"),onClick:It},"\u7533\u8BF7\u65B0\u589E")),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u9662\u7CFB/\u90E8\u95E8"}]},e.a.createElement(ue.a,{onClick:function(){f&&j(!1)},disabled:f,showSearch:!0,onChange:function(n){return Ut(ee.filter(function(l){return l.name.includes(n)}))},options:Ee==null?void 0:Ee.map(function(t){return{value:t.name}})}))),e.a.createElement(i.a.Item,{label:"\u6700\u9AD8\u5B66\u5386",wrapperCol:{span:10},name:"edu_background",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"}]},e.a.createElement(w.a,{placeholder:"\u8BF7\u9009\u62E9\u6700\u9AD8\u5B66\u5386"},z.t.map(function(t,n){return e.a.createElement(d,{key:n,value:t.id},t.name)}))),e.a.createElement(i.a.Item,{label:"\u5165\u5B66\u5E74\u4EFD",name:"edu_entry_year",wrapperCol:{span:10},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"}]},e.a.createElement(w.a,{placeholder:"\u8BF7\u9009\u62E9\u5165\u5B66\u5E74\u4EFD"},Wt())),e.a.createElement(i.a.Item,{label:"\u7B80\u4ECB",name:"brief_introduction",wrapperCol:{span:20},rules:[{required:!1}]},e.a.createElement(it,{maxLength:500})),e.a.createElement(i.a.Item,null,e.a.createElement(v.a,{className:"".concat(E.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:dt["account/editAccount"]},"\u4FDD\u5B58"),e.a.createElement(v.a,{className:E.a.submitButton,size:"large",onClick:function(){return re.c.push("/account/profile")}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(E.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"),e.a.createElement(lt.a,{visible:y.actionTabs.key==="Account-AppplySchool",onClose:function(){R({type:"account/setActionTabs",payload:{}})},schoolName:o.school,onSuccess:jt}),e.a.createElement(_t.a,{visible:y.actionTabs.key==="Account-AppplyDepartment",onClose:function(){R({type:"account/setActionTabs",payload:{}})},schoolId:(Q=O.find(function(t){return t.name===o.school}))===null||Q===void 0?void 0:Q.id,schoolName:o.school,departmentName:o.department,onSuccess:function(n){return $e(o.school,n)}}),e.a.createElement(Y.a,{centered:!0,destroyOnClose:!0,visible:bt,title:"\u5934\u6B4C\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:we,onOk:we},e.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},e.a.createElement("aside",{style:{padding:"8px 70px"}},e.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),e.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),e.a.createElement("img",{src:rt.a,width:162,height:162}))))};A.default=Object(re.a)(function(J){var I=J.user,Z=J.account,X=J.loading,Q=J.globalSetting;return{user:I,account:Z,globalSetting:Q,loading:X.effects}})(ct)},vjIP:function(T,A,a){T.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}}}]); diff --git a/p__Account__Results__index.274080f9.async.js b/p__Account__Results__index.274080f9.async.js new file mode 100644 index 0000000000..31efd4c6bd --- /dev/null +++ b/p__Account__Results__index.274080f9.async.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{"9ryg":function(h,i,e){h.exports={wrap:"wrap___3-UaI",content:"content___3E-as",hint:"hint___3otcH",titleWrap:"titleWrap___3zROb",title:"title___2jI7q",bind:"bind___1czD7",flexRow:"flexRow___1MeAa",wechatLogo:"wechatLogo___3pmnJ",qqLogo:"qqLogo___12-6e",action:"action___1a_9A",modal:"modal___3aSrG"}},"a90+":function(h,i,e){"use strict";e.r(i);var k=e("miYZ"),A=e("tsqr"),B=e("WmNS"),l=e.n(B),G=e("/zsF"),F=e("PArb"),$=e("+L6B"),d=e("2/Rp"),P=e("9og8"),m=e("tJVT"),T=e("PpiC"),V=e("5NDa"),j=e("5rEg"),o=e("q1tI"),t=e.n(o),L=e("9kvl"),W=e("9ryg"),s=e.n(W),D=e("ErOA"),I=j.a.TextArea,x=function(_){var b=_.user,y=_.account,O=_.globalSetting,Y=_.loading,Z=_.dispatch,Q=Object(T.a)(_,["user","account","globalSetting","loading","dispatch"]),K=Object(o.useState)(),f=Object(m.a)(K,2),C=f[0],S=f[1],z=Object(o.useState)(),U=Object(m.a)(z,2),c=U[0],v=U[1],w=Object(o.useState)(!1),R=Object(m.a)(w,2),H=R[0],E=R[1];Object(o.useEffect)(function(){M()},[]);function M(){return p.apply(this,arguments)}function p(){return p=Object(P.a)(l.a.mark(function u(){var a;return l.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(D.a)("/api/users/honor.json",{method:"get"});case 2:a=n.sent,a&&(S(a==null?void 0:a.honor),v(a==null?void 0:a.honor));case 4:case"end":return n.stop()}},u)})),p.apply(this,arguments)}function N(){return g.apply(this,arguments)}function g(){return g=Object(P.a)(l.a.mark(function u(){var a;return l.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(c){n.next=3;break}return A.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),n.abrupt("return");case 3:return n.next=5,Object(D.a)("/api/users/brief_introduction.json",{method:"post",body:{honor:c}});case 5:a=n.sent,a&&(M(),E(!1));case 7:case"end":return n.stop()}},u)})),g.apply(this,arguments)}return t.a.createElement("section",{className:s.a.wrap},t.a.createElement("div",{className:s.a.content},t.a.createElement("div",{className:"".concat(s.a.titleWrap," mt10")},t.a.createElement("div",{className:s.a.title,style:{width:"100%",display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("span",null,"\u6210\u679C\u8363\u8A89"),t.a.createElement("span",{style:{fontSize:"14px",color:"#888888"}},"\uFF08\u6559\u5E08\u53EF\u4EE5\u5728\u8FD9\u91CC\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u3001\u8363\u8A89\u79F0\u53F7\uFF0C\u8FD9\u4E9B\u4FE1\u606F\u5C06\u5728\u8BFE\u7A0B\u4E2D\u5C55\u793A\uFF09")),t.a.createElement(d.a,{onClick:function(){return E(!0)}},"\u7F16\u8F91"))),t.a.createElement(F.a,null),H?t.a.createElement("div",null,t.a.createElement(I,{value:c,onChange:function(a){return v(a.target.value)},placeholder:"\u8BF7\u7F16\u64B0\u4E0D\u8D85\u8FC7300\u5B57\u7684\u6210\u679C\u3001\u8363\u8A89\u4ECB\u7ECD",maxLength:300}),t.a.createElement(d.a,{type:"primary",style:{marginRight:"10px",marginTop:"10px"},onClick:function(){return N()}},"\u786E\u8BA4"),t.a.createElement(d.a,{style:{marginTop:"10px"},onClick:function(){return E(!1)}},"\u53D6\u6D88")):C||"\u60A8\u5C1A\u672A\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u548C\u8363\u8A89\u79F0\u53F7\u54E6~"),t.a.createElement("div",{className:"".concat(s.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};i.default=Object(L.a)(function(r){var _=r.user,b=r.account,y=r.loading,O=r.globalSetting;return{user:_,account:b,globalSetting:O,loading:y.models.index}})(x)}}]); diff --git a/p__Account__Results__index.e68266ad.async.js b/p__Account__Results__index.e68266ad.async.js deleted file mode 100644 index b3b6509550..0000000000 --- a/p__Account__Results__index.e68266ad.async.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[38],{"9ryg":function(P,i,e){P.exports={wrap:"wrap___3-UaI",content:"content___3E-as",hint:"hint___3otcH",titleWrap:"titleWrap___3zROb",title:"title___2jI7q",bind:"bind___1czD7",flexRow:"flexRow___1MeAa",wechatLogo:"wechatLogo___3pmnJ",qqLogo:"qqLogo___12-6e",action:"action___1a_9A",modal:"modal___3aSrG"}},"a90+":function(P,i,e){"use strict";e.r(i);var J=e("miYZ"),A=e("tsqr"),B=e("c1Ei"),l=e.n(B),$=e("/zsF"),j=e("PArb"),Y=e("+L6B"),d=e("2/Rp"),D=e("5Tp6"),m=e("k16G"),F=e("SIvP"),Z=e("5NDa"),T=e("5rEg"),o=e("q1tI"),t=e.n(o),L=e("9kvl"),I=e("9ryg"),s=e.n(I),g=e("ErOA"),W=T.a.TextArea,x=function(_){var y=_.user,O=_.account,b=_.globalSetting,Q=_.loading,V=_.dispatch,X=Object(F.a)(_,["user","account","globalSetting","loading","dispatch"]),K=Object(o.useState)(),f=Object(m.a)(K,2),v=f[0],S=f[1],w=Object(o.useState)(),U=Object(m.a)(w,2),c=U[0],C=U[1],H=Object(o.useState)(!1),R=Object(m.a)(H,2),N=R[0],E=R[1];Object(o.useEffect)(function(){M()},[]);function M(){return p.apply(this,arguments)}function p(){return p=Object(D.a)(l.a.mark(function u(){var n;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(g.a)("/api/users/honor.json",{method:"get"});case 2:n=a.sent,n&&(S(n==null?void 0:n.honor),C(n==null?void 0:n.honor));case 4:case"end":return a.stop()}},u)})),p.apply(this,arguments)}function z(){return h.apply(this,arguments)}function h(){return h=Object(D.a)(l.a.mark(function u(){var n;return l.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c){a.next=3;break}return A.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),a.abrupt("return");case 3:return a.next=5,Object(g.a)("/api/users/brief_introduction.json",{method:"post",body:{honor:c}});case 5:n=a.sent,n&&(M(),E(!1));case 7:case"end":return a.stop()}},u)})),h.apply(this,arguments)}return t.a.createElement("section",{className:s.a.wrap},t.a.createElement("div",{className:s.a.content},t.a.createElement("div",{className:"".concat(s.a.titleWrap," mt10")},t.a.createElement("div",{className:s.a.title,style:{width:"100%",display:"flex"}},t.a.createElement("span",{style:{flex:"1"}},t.a.createElement("span",null,"\u6210\u679C\u8363\u8A89"),t.a.createElement("span",{style:{fontSize:"14px",color:"#888888"}},"\uFF08\u6559\u5E08\u53EF\u4EE5\u5728\u8FD9\u91CC\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u3001\u8363\u8A89\u79F0\u53F7\uFF0C\u8FD9\u4E9B\u4FE1\u606F\u5C06\u5728\u8BFE\u7A0B\u4E2D\u5C55\u793A\uFF09")),t.a.createElement(d.a,{onClick:function(){return E(!0)}},"\u7F16\u8F91"))),t.a.createElement(j.a,null),N?t.a.createElement("div",null,t.a.createElement(W,{value:c,onChange:function(n){return C(n.target.value)},placeholder:"\u8BF7\u7F16\u64B0\u4E0D\u8D85\u8FC7300\u5B57\u7684\u6210\u679C\u3001\u8363\u8A89\u4ECB\u7ECD",maxLength:300}),t.a.createElement(d.a,{type:"primary",style:{marginRight:"10px",marginTop:"10px"},onClick:function(){return z()}},"\u786E\u8BA4"),t.a.createElement(d.a,{style:{marginTop:"10px"},onClick:function(){return E(!1)}},"\u53D6\u6D88")):v||"\u60A8\u5C1A\u672A\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u548C\u8363\u8A89\u79F0\u53F7\u54E6~"),t.a.createElement("div",{className:"".concat(s.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};i.default=Object(L.a)(function(r){var _=r.user,y=r.account,O=r.loading,b=r.globalSetting;return{user:_,account:y,globalSetting:b,loading:O.models.index}})(x)}}]); diff --git a/p__Account__Secure__index.601d7802.async.js b/p__Account__Secure__index.4226d5d8.async.js similarity index 91% rename from p__Account__Secure__index.601d7802.async.js rename to p__Account__Secure__index.4226d5d8.async.js index 2569c9c240..40a344dfb8 100644 --- a/p__Account__Secure__index.601d7802.async.js +++ b/p__Account__Secure__index.4226d5d8.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[39,15],{"0NIp":function(fe,G,r){"use strict";r.r(G);var ca=r("2qtc"),k=r("kLXV"),da=r("+L6B"),C=r("2/Rp"),_a=r("5NDa"),w=r("5rEg"),Oe=r("y1t/"),Se=r("c1Ei"),b=r.n(Se),Ea=r("miYZ"),v=r("tsqr"),M=r("5Tp6"),ma=r("y8nQ"),h=r("Vl3Y"),R=r("k16G"),Ne=r("SIvP"),c=r("q1tI"),e=r.n(c),pe=r("uYtH"),Me=r("9kvl"),xe=r("bu1o"),t=r.n(xe);function Le(E,g){var U=Object(c.useRef)(),B=Object(c.useRef)();Object(c.useEffect)(function(){U.current=E}),Object(c.useEffect)(function(){function L(){U.current()}if(g!==null){var T=setInterval(L,g);return B.current=T,function(){return clearInterval(T)}}},[g])}var be=r("1vsH"),X=r("ErOA"),p;(function(E){E[E.Phone=1]="Phone",E[E.Email=2]="Email",E[E.Password=3]="Password"})(p||(p={}));var Q=/^1\d{10}$/,ve=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,Te=function(g,U,B){U?U.length<8||U.length>16?B("\u8BF7\u8F93\u51658-16\u4F4D\u5B57\u7B26\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\uFF01"):B():B("\u8BF7\u8F93\u51658-16\u4F4D\u5B57\u7B26\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\uFF01")},V;(function(E){E.Wechat="wechat",E.QQ="qq"})(V||(V={}));var $e=function(g){var U,B,L,T,Y,Z,H,J,K,q,ee,ae,te,ue,ne,oe,le,m=g.user,d=g.account,I=g.globalSetting,pa=g.loading,y=g.dispatch,ba=Object(Ne.a)(g,["user","account","globalSetting","loading","dispatch"]),ke=h.a.useForm(),Xe=Object(R.a)(ke,1),O=Xe[0],Ve=Object(c.useState)(),Fe=Object(R.a)(Ve,2),P=Fe[0],j=Fe[1],ze=Object(c.useState)(60),Ce=Object(R.a)(ze,2),$=Ce[0],se=Ce[1],We=Object(c.useState)(),he=Object(R.a)(We,2),S=he[0],x=he[1],z=Object(c.useRef)(),Ge=Object(c.useState)({}),Pe=Object(R.a)(Ge,2),re=Pe[0],Qe=Pe[1],Ye=Object(c.useState)({}),ge=Object(R.a)(Ye,2),ie=ge[0],Ze=ge[1],He=Object(c.useState)(!1),Re=Object(R.a)(He,2),Je=Re[0],W=Re[1],Ke=Object(c.useState)(!1),Ue=Object(R.a)(Ke,2),qe=Ue[0],ce=Ue[1],ea=Object(c.useState)(!1),Be=Object(R.a)(ea,2),aa=Be[0],de=Be[1],ta=Object(c.useState)(!1),De=Object(R.a)(ta,2),ua=De[0],_e=De[1],na=Object(c.useState)(""),Ae=Object(R.a)(na,2),Ee=Ae[0],ye=Ae[1],oa=Object(c.useState)(""),je=Object(R.a)(oa,2),me=je[0],we=je[1];Object(c.useEffect)(function(){var u,a,n=((u=d.basicInfo)===null||u===void 0?void 0:u.open_users.find(function(l){return l.en_type===V.Wechat}))||{};Qe(n);var o=((a=d.basicInfo)===null||a===void 0?void 0:a.open_users.find(function(l){return l.en_type===V.QQ}))||{};Ze(o)},[d.basicInfo]),Object(c.useEffect)(function(){return function(){z.current&&clearInterval(z.current)}},[]),Le(function(){if(S)se(60);else return;$>0?se($-1):(se(60),x(!1),z.current&&clearInterval(z.current))},1e3);var Ie=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F;return b.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!n){i.next=16;break}if(l=3,o=O.getFieldValue("phone"),Q.test(o)){i.next=6;break}return v.b.info("\u8BF7\u5148\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),i.abrupt("return");case 6:return i.next=8,Object(X.a)("/api/users/accounts/".concat((s=m.userInfo)===null||s===void 0?void 0:s.login,"/valid_phone.json"),{method:"get",params:{phone:o}});case 8:if(f=i.sent,!((f==null?void 0:f.status)===-1)){i.next=11;break}return i.abrupt("return");case 11:if(!(f==null?void 0:f.is_exists)){i.next=14;break}return de(!0),i.abrupt("return");case 14:i.next=21;break;case 16:if(l=4,o=O.getFieldValue("email"),ve.test(o)){i.next=21;break}return v.b.info("\u8BF7\u5148\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),i.abrupt("return");case 21:return D=Object(be.O)(o),i.next=24,y({type:"account/getCode",payload:{login:o,type:l,smscode:D}});case 24:F=i.sent,F.status===1&&(v.b.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),x(!0));case 26:case"end":return i.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),la=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A;return b.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o=n||{},l=o.phone,s=o.phoneValidateCode,f=m.userInfo||{},D=f.login,Q.test(l)){_.next=5;break}return v.b.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801"),_.abrupt("return");case 5:return _.next=7,y({type:"account/bindPhone",payload:{login:D,phone:l,code:s}});case 7:F=_.sent,(F==null?void 0:F.status)===0&&(v.b.info("\u624B\u673A\u53F7\u7801\u7ED1\u5B9A\u6210\u529F!"),j(null),x(!1),y({type:"account/getBasicInfo",payload:{login:(A=m.userInfo)===null||A===void 0?void 0:A.login}}));case 9:case"end":return _.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),sa=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A;return b.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o=n||{},l=o.email,s=o.emailValidateCode,f=m.userInfo||{},D=f.login,ve.test(l)){_.next=5;break}return v.b.info("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),_.abrupt("return");case 5:return _.next=7,y({type:"account/bindEmail",payload:{login:D,email:l,code:s}});case 7:F=_.sent,(F==null?void 0:F.status)===0&&(v.b.info("\u90AE\u7BB1\u5730\u5740\u7ED1\u5B9A\u6210\u529F!"),j(null),x(!1),y({type:"account/getBasicInfo",payload:{login:(A=m.userInfo)===null||A===void 0?void 0:A.login}}));case 9:case"end":return _.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),ra=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A,i,_;return b.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(l=n||{},s=l.oldPassword,f=l.newPassword,D=l.againPassword,F=m.userInfo||{},A=F.login,!(((o=d.basicInfo)===null||o===void 0?void 0:o.has_password)&&s===f)){N.next=5;break}return v.b.info("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u65E7\u5BC6\u7801\u76F8\u540C\uFF01"),N.abrupt("return");case 5:if(!(f!==D)){N.next=8;break}return v.b.info("\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u5FC5\u987B\u4E00\u81F4\uFF01"),N.abrupt("return");case 8:return N.next=10,y({type:"account/updatePassword",payload:{login:A,old_password:s,password:f}});case 10:i=N.sent,i&&(v.b.info("\u5BC6\u7801\u66F4\u65B0\u6210\u529F\uFF01"),j(null),y({type:"account/getBasicInfo",payload:{login:(_=m.userInfo)===null||_===void 0?void 0:_.login}}));case 12:case"end":return N.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),ia=function(a){var n=a||{};Object(Oe.a)(n),console.log("handleFinish values: ",a),P===p.Phone&&la(a),P===p.Email&&sa(a),P===p.Password&&ra(a)};return Object(c.useEffect)(function(){P||O.setFieldsValue({phone:"",phoneValidateCode:"",email:"",emailValidateCode:"",oldPassword:"",newPassword:"",againPassword:""})},[P]),e.a.createElement("section",{className:t.a.wrap},e.a.createElement("div",null,e.a.createElement("div",{className:t.a.content},e.a.createElement("div",{className:"".concat(t.a.titleWrap," mt10")},e.a.createElement("div",{className:t.a.title},"\u5B89\u5168\u8BBE\u7F6E")),e.a.createElement(h.a,{form:O,className:t.a.formWrap,labelCol:{span:6},wrapperCol:{span:10},onFinish:ia},e.a.createElement("div",{className:"".concat(t.a.row," ").concat(P===p.Phone?"":t.a.rowBorder)},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u624B\u673A"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},((U=d.basicInfo)===null||U===void 0?void 0:U.phone)?e.a.createElement("span",{className:"".concat(t.a.status," mr20")},(B=d.basicInfo)===null||B===void 0?void 0:B.phone):e.a.createElement("span",{className:"".concat(t.a.status," ").concat(t.a.colorRed," mr20")},"\u672A\u7ED1\u5B9A"),((L=d.basicInfo)===null||L===void 0?void 0:L.phone)?"\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u624B\u673A\u53F7\u7801\u767B\u5F55EduCoder":"\u7ED1\u5B9A\u624B\u673A\u53F7\u7801\uFF0C\u5C06\u83B7\u5F97500\u91D1\u5E01\u7684\u5956\u52B1\u54DF\uFF5E\uFF0C\u624B\u673A\u53F7\u7801\u4EC5\u81EA\u5DF1\u53EF\u89C1~"),((T=d.basicInfo)===null||T===void 0?void 0:T.phone)&&P!==p.Phone&&e.a.createElement("span",{className:t.a.active,style:{marginRight:"30px",cursor:"pointer"},onClick:function(){var a;!(re==null?void 0:re.id)&&!(ie==null?void 0:ie.id)&&!((a=d.basicInfo)===null||a===void 0?void 0:a.mail)?W(!0):ce(!0)}},"\u89E3\u7ED1\u624B\u673A\u53F7"),P!==p.Phone&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Phone)}},((Y=d.basicInfo)===null||Y===void 0?void 0:Y.phone)?"\u66F4\u6362":"\u7ACB\u5373\u7ED1\u5B9A")),P===p.Phone&&e.a.createElement(e.a.Fragment,null,e.a.createElement(h.a.Item,{label:"\u4F60\u7684\u624B\u673A\u53F7",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8981".concat(((Z=d.basicInfo)===null||Z===void 0?void 0:Z.phone)?"\u66F4\u6362":"\u7ED1\u5B9A","\u7684\u624B\u673A\u53F7\u7801")},{validator:function(a,n,o){Q.test(n)&&o(),o("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801")}}]},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u8981".concat(((H=d.basicInfo)===null||H===void 0?void 0:H.phone)?"\u66F4\u6362":"\u7ED1\u5B9A","\u7684\u624B\u673A\u53F7\u7801")})),!(I==null||((J=I.setting)===null||J===void 0)?void 0:J.is_local)&&e.a.createElement(h.a.Item,{label:"\u624B\u673A\u9A8C\u8BC1\u7801"},e.a.createElement(h.a.Item,{name:"phoneValidateCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801"}],noStyle:!0},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801"})),e.a.createElement(C.a,{type:"primary",className:"ml5",disabled:S,onClick:function(){return Ie(!0)}},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(t.a.row," ").concat(P===p.Email?"":t.a.rowBorder)},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u90AE\u7BB1"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},((K=d.basicInfo)===null||K===void 0?void 0:K.mail)?e.a.createElement("span",{className:"".concat(t.a.status," mr20")},(q=d.basicInfo)===null||q===void 0?void 0:q.mail):e.a.createElement("span",{className:"".concat(t.a.status," ").concat(t.a.colorRed," mr20")},"\u672A\u7ED1\u5B9A"),"\u90AE\u7BB1\u8D26\u53F7\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u4E8E\u90AE\u7BB1\u8D26\u53F7\u767B\u5F55",!(I==null||((ee=I.setting)===null||ee===void 0)?void 0:ee.is_local)&&"EduCoder"),P!==p.Email&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Email)}},((ae=d.basicInfo)===null||ae===void 0?void 0:ae.mail)?"\u66F4\u6362":"\u7ACB\u5373\u7ED1\u5B9A")),P===p.Email&&e.a.createElement(e.a.Fragment,null,e.a.createElement(h.a.Item,{label:"\u90AE\u7BB1\u5730\u5740",name:"email",rules:[{required:!0,message:((te=d.basicInfo)===null||te===void 0?void 0:te.mail)?"\u8BF7\u8F93\u5165\u8981\u66F4\u6362\u7684\u65B0\u90AE\u7BB1\u5730\u5740":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740"}]},e.a.createElement(w.a,{placeholder:((ue=d.basicInfo)===null||ue===void 0?void 0:ue.mail)?"\u8BF7\u8F93\u5165\u8981\u66F4\u6362\u7684\u65B0\u90AE\u7BB1\u5730\u5740":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740"})),!(I==null||((ne=I.setting)===null||ne===void 0)?void 0:ne.is_local)&&e.a.createElement(h.a.Item,{label:"\u90AE\u7BB1\u9A8C\u8BC1\u7801"},e.a.createElement(h.a.Item,{name:"emailValidateCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u6536\u5230\u7684\u9A8C\u8BC1\u7801"}],noStyle:!0},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u6536\u5230\u7684\u9A8C\u8BC1\u7801"})),e.a.createElement(C.a,{type:"primary",className:"ml5",disabled:S,onClick:function(){return Ie(!1)}},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))),e.a.createElement("div",{className:t.a.row},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u5BC6\u7801"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},e.a.createElement("span",{className:"".concat(t.a.status," mr20")},"**********"),"\u7528\u4E8E\u4FDD\u62A4\u8D26\u6237\u4FE1\u606F\u548C\u767B\u5F55\u5B89\u5168"),P!==p.Password&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Password)}},"\u4FEE\u6539")),P===p.Password&&e.a.createElement(e.a.Fragment,null,((oe=d.basicInfo)===null||oe===void 0?void 0:oe.has_password)&&e.a.createElement(h.a.Item,{label:"\u65E7\u5BC6\u7801",name:"oldPassword",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})),e.a.createElement(h.a.Item,{label:"\u65B0\u5BC6\u7801",name:"newPassword",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"},{validator:Te}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u8F93\u51658\uFF5E16\u4F4D\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})),e.a.createElement(h.a.Item,{label:"\u518D\u6B21\u8F93\u5165",name:"againPassword",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"},{validator:function(a,n,o){n!=O.getFieldsValue().newPassword?o("\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u5FC5\u987B\u4E00\u81F4\uFF01"):o()}}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"})),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))))),e.a.createElement("div",{className:"".concat(t.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732")),e.a.createElement(k.a,{title:"\u63D0\u793A",visible:Je,onCancel:function(){W(!1)},footer:e.a.createElement("div",null,e.a.createElement(C.a,{style:{textAlign:"end"},type:"primary",onClick:function(){return W(!1)}},"\u786E \u5B9A"))},e.a.createElement("div",{style:{padding:"7px 24px"}},e.a.createElement("span",null,"\u60A8\u76EE\u524D\u53EA\u6709\u624B\u673A\u53F7\u767B\u5F55\u4E00\u79CD\u65B9\u5F0F\uFF0C\u89E3\u7ED1\u540E\u5C06\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u5E73\u53F0\uFF0C\u9700\u8981\u60A8\u5148\u7ED1\u5B9A\u4EE5\u4E0B\u7684\u4EFB\u610F\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u518D\u8FDB\u884C\u89E3\u7ED1\u3002"),e.a.createElement("br",null),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"1\u3001\u7ED1\u5B9A\u90AE\u7BB1 ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,onClick:function(){return W(!1)},style:{borderRadius:"12px",height:"26px",width:"93px",cursor:"pointer"}},"\u524D\u5F80\u7ED1\u5B9A")),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"2\u3001\u7ED1\u5B9A\u5FAE\u4FE1 ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},e.a.createElement(pe.Link,{to:"/account/binding"},"\u524D\u5F80\u7ED1\u5B9A"))),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"3\u3001\u7ED1\u5B9AQQ ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},e.a.createElement(pe.Link,{to:"/account/binding"},"\u524D\u5F80\u7ED1\u5B9A"))))),e.a.createElement(k.a,{title:"\u624B\u673A\u53F7\u89E3\u7ED1",visible:qe,onCancel:function(){return ce(!1)},onOk:Object(M.a)(b.a.mark(function u(){var a,n,o;return b.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(Ee){s.next=3;break}return v.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A"),s.abrupt("return");case 3:return s.next=5,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/phone_unbind.json"),{method:"POST",body:{code:Ee}});case 5:n=s.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u89E3\u7ED1\u6210\u529F"),x(!1),ce(!1),ye(""),y({type:"account/getBasicInfo",payload:{login:(o=m.userInfo)===null||o===void 0?void 0:o.login}}));case 7:case"end":return s.stop()}},u)}))},e.a.createElement("div",{style:{padding:"8px 24px"}},e.a.createElement("p",null,"\u624B\u673A\u53F7\u89E3\u7ED1\u540E\uFF0C\u5C06\u65E0\u6CD5\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\uFF0C\u8BF7\u77E5\u6089"),e.a.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",(le=d.basicInfo)===null||le===void 0?void 0:le.phone),e.a.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",e.a.createElement(w.a,{size:"large",value:Ee,onChange:function(a){return ye(a.target.value)},style:{width:"240px"}})," ",e.a.createElement(C.a,{disabled:S,type:"primary",size:"large",onClick:Object(M.a)(b.a.mark(function u(){var a,n;return b.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/get_phone_code.json"),{method:"get"});case 2:n=l.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u9A8C\u8BC1\u7801\u53D1\u9001\u6210\u529F"),x(!0));case 4:case"end":return l.stop()}},u)}))},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),e.a.createElement(k.a,{title:"\u5F3A\u5236\u89E3\u7ED1",visible:ua,onCancel:function(){return _e(!1)},onOk:Object(M.a)(b.a.mark(function u(){var a,n,o;return b.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(me){s.next=3;break}return v.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A"),s.abrupt("return");case 3:return s.next=5,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/phone_force_unbind.json"),{method:"POST",body:{code:me,phone:O.getFieldValue("phone")}});case 5:n=s.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u89E3\u7ED1\u6210\u529F"),x(!1),_e(!1),j(null),we(""),y({type:"account/getBasicInfo",payload:{login:(o=m.userInfo)===null||o===void 0?void 0:o.login}}));case 7:case"end":return s.stop()}},u)}))},e.a.createElement("div",{style:{padding:"8px 24px"}},e.a.createElement("p",null,"\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"),e.a.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",O.getFieldValue("phone")),e.a.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",e.a.createElement(w.a,{value:me,size:"large",onChange:function(a){return we(a.target.value)},style:{width:"240px"}})," ",e.a.createElement(C.a,{disabled:S,type:"primary",size:"large",onClick:Object(M.a)(b.a.mark(function u(){var a,n;return b.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=Object(be.O)(O.getFieldValue("phone")),l.next=3,y({type:"account/getCode",payload:{login:O.getFieldValue("phone"),type:10,smscode:a}});case 3:n=l.sent,n.status===1&&(v.b.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),x(!0));case 5:case"end":return l.stop()}},u)}))},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),e.a.createElement(k.a,{title:"\u63D0\u793A",visible:aa,onCancel:function(){de(!1)},okText:"\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){_e(!0),de(!1)}},e.a.createElement("div",{style:{padding:"7px 24px"}},e.a.createElement("span",null,"\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"),e.a.createElement("br",null),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002")),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09")))))},fa=G.default=Object(Me.a)(function(E){var g=E.user,U=E.account,B=E.loading,L=E.globalSetting;return{user:g,account:U,globalSetting:L,loading:B.models.index}})($e)},bu1o:function(fe,G,r){fe.exports={wrap:"wrap___L0XY0",content:"content___1FZI4",hint:"hint___2Mhin",titleWrap:"titleWrap___3-5ea",title:"title___3dpg1",formWrap:"formWrap___1-_oA",row:"row___10m9D",rowBorder:"rowBorder___1KLaz",name:"name___3A1ha",status:"status___jLEgn",description:"description___GYT0j",active:"active___UNwEo",color999:"color999___1O3Pw",colorCDCDCD:"colorCDCDCD___Xw3Dl",colorRed:"colorRed___Tupja",submitButton:"submitButton___1_t-q",buttonWrap:"buttonWrap___Q18CA"}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[39,15],{"0NIp":function(fe,Q,r){"use strict";r.r(Q);var ca=r("2qtc"),k=r("kLXV"),da=r("+L6B"),C=r("2/Rp"),_a=r("5NDa"),w=r("5rEg"),Oe=r("CiB2"),Se=r("WmNS"),b=r.n(Se),Ea=r("miYZ"),v=r("tsqr"),M=r("9og8"),ma=r("y8nQ"),h=r("Vl3Y"),R=r("tJVT"),Ne=r("PpiC"),c=r("q1tI"),e=r.n(c),pe=r("55Ip"),Me=r("9kvl"),xe=r("bu1o"),t=r.n(xe);function Le(E,g){var U=Object(c.useRef)(),B=Object(c.useRef)();Object(c.useEffect)(function(){U.current=E}),Object(c.useEffect)(function(){function L(){U.current()}if(g!==null){var T=setInterval(L,g);return B.current=T,function(){return clearInterval(T)}}},[g])}var be=r("1vsH"),X=r("ErOA"),p;(function(E){E[E.Phone=1]="Phone",E[E.Email=2]="Email",E[E.Password=3]="Password"})(p||(p={}));var G=/^1\d{10}$/,ve=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,Te=function(g,U,B){U?U.length<8||U.length>16?B("\u8BF7\u8F93\u51658-16\u4F4D\u5B57\u7B26\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\uFF01"):B():B("\u8BF7\u8F93\u51658-16\u4F4D\u5B57\u7B26\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199\uFF01")},V;(function(E){E.Wechat="wechat",E.QQ="qq"})(V||(V={}));var $e=function(g){var U,B,L,T,Y,Z,J,H,K,q,ee,ae,te,ue,ne,oe,le,m=g.user,d=g.account,I=g.globalSetting,pa=g.loading,y=g.dispatch,ba=Object(Ne.a)(g,["user","account","globalSetting","loading","dispatch"]),ke=h.a.useForm(),Xe=Object(R.a)(ke,1),O=Xe[0],Ve=Object(c.useState)(),Fe=Object(R.a)(Ve,2),P=Fe[0],j=Fe[1],We=Object(c.useState)(60),Ce=Object(R.a)(We,2),$=Ce[0],se=Ce[1],ze=Object(c.useState)(),he=Object(R.a)(ze,2),S=he[0],x=he[1],W=Object(c.useRef)(),Qe=Object(c.useState)({}),Pe=Object(R.a)(Qe,2),re=Pe[0],Ge=Pe[1],Ye=Object(c.useState)({}),ge=Object(R.a)(Ye,2),ie=ge[0],Ze=ge[1],Je=Object(c.useState)(!1),Re=Object(R.a)(Je,2),He=Re[0],z=Re[1],Ke=Object(c.useState)(!1),Ue=Object(R.a)(Ke,2),qe=Ue[0],ce=Ue[1],ea=Object(c.useState)(!1),Be=Object(R.a)(ea,2),aa=Be[0],de=Be[1],ta=Object(c.useState)(!1),De=Object(R.a)(ta,2),ua=De[0],_e=De[1],na=Object(c.useState)(""),Ae=Object(R.a)(na,2),Ee=Ae[0],ye=Ae[1],oa=Object(c.useState)(""),je=Object(R.a)(oa,2),me=je[0],we=je[1];Object(c.useEffect)(function(){var u,a,n=((u=d.basicInfo)===null||u===void 0?void 0:u.open_users.find(function(l){return l.en_type===V.Wechat}))||{};Ge(n);var o=((a=d.basicInfo)===null||a===void 0?void 0:a.open_users.find(function(l){return l.en_type===V.QQ}))||{};Ze(o)},[d.basicInfo]),Object(c.useEffect)(function(){return function(){W.current&&clearInterval(W.current)}},[]),Le(function(){if(S)se(60);else return;$>0?se($-1):(se(60),x(!1),W.current&&clearInterval(W.current))},1e3);var Ie=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F;return b.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(!n){i.next=16;break}if(l=3,o=O.getFieldValue("phone"),G.test(o)){i.next=6;break}return v.b.info("\u8BF7\u5148\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),i.abrupt("return");case 6:return i.next=8,Object(X.a)("/api/users/accounts/".concat((s=m.userInfo)===null||s===void 0?void 0:s.login,"/valid_phone.json"),{method:"get",params:{phone:o}});case 8:if(f=i.sent,!((f==null?void 0:f.status)===-1)){i.next=11;break}return i.abrupt("return");case 11:if(!(f==null?void 0:f.is_exists)){i.next=14;break}return de(!0),i.abrupt("return");case 14:i.next=21;break;case 16:if(l=4,o=O.getFieldValue("email"),ve.test(o)){i.next=21;break}return v.b.info("\u8BF7\u5148\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),i.abrupt("return");case 21:return D=Object(be.O)(o),i.next=24,y({type:"account/getCode",payload:{login:o,type:l,smscode:D}});case 24:F=i.sent,F.status===1&&(v.b.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),x(!0));case 26:case"end":return i.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),la=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A;return b.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o=n||{},l=o.phone,s=o.phoneValidateCode,f=m.userInfo||{},D=f.login,G.test(l)){_.next=5;break}return v.b.info("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801"),_.abrupt("return");case 5:return _.next=7,y({type:"account/bindPhone",payload:{login:D,phone:l,code:s}});case 7:F=_.sent,(F==null?void 0:F.status)===0&&(v.b.info("\u624B\u673A\u53F7\u7801\u7ED1\u5B9A\u6210\u529F!"),j(null),x(!1),y({type:"account/getBasicInfo",payload:{login:(A=m.userInfo)===null||A===void 0?void 0:A.login}}));case 9:case"end":return _.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),sa=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A;return b.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(o=n||{},l=o.email,s=o.emailValidateCode,f=m.userInfo||{},D=f.login,ve.test(l)){_.next=5;break}return v.b.info("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u5730\u5740"),_.abrupt("return");case 5:return _.next=7,y({type:"account/bindEmail",payload:{login:D,email:l,code:s}});case 7:F=_.sent,(F==null?void 0:F.status)===0&&(v.b.info("\u90AE\u7BB1\u5730\u5740\u7ED1\u5B9A\u6210\u529F!"),j(null),x(!1),y({type:"account/getBasicInfo",payload:{login:(A=m.userInfo)===null||A===void 0?void 0:A.login}}));case 9:case"end":return _.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),ra=function(){var u=Object(M.a)(b.a.mark(function a(n){var o,l,s,f,D,F,A,i,_;return b.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(l=n||{},s=l.oldPassword,f=l.newPassword,D=l.againPassword,F=m.userInfo||{},A=F.login,!(((o=d.basicInfo)===null||o===void 0?void 0:o.has_password)&&s===f)){N.next=5;break}return v.b.info("\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u65E7\u5BC6\u7801\u76F8\u540C\uFF01"),N.abrupt("return");case 5:if(!(f!==D)){N.next=8;break}return v.b.info("\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u5FC5\u987B\u4E00\u81F4\uFF01"),N.abrupt("return");case 8:return N.next=10,y({type:"account/updatePassword",payload:{login:A,old_password:s,password:f}});case 10:i=N.sent,i&&(v.b.info("\u5BC6\u7801\u66F4\u65B0\u6210\u529F\uFF01"),j(null),y({type:"account/getBasicInfo",payload:{login:(_=m.userInfo)===null||_===void 0?void 0:_.login}}));case 12:case"end":return N.stop()}},a)}));return function(n){return u.apply(this,arguments)}}(),ia=function(a){var n=a||{};Object(Oe.a)(n),console.log("handleFinish values: ",a),P===p.Phone&&la(a),P===p.Email&&sa(a),P===p.Password&&ra(a)};return Object(c.useEffect)(function(){P||O.setFieldsValue({phone:"",phoneValidateCode:"",email:"",emailValidateCode:"",oldPassword:"",newPassword:"",againPassword:""})},[P]),e.a.createElement("section",{className:t.a.wrap},e.a.createElement("div",null,e.a.createElement("div",{className:t.a.content},e.a.createElement("div",{className:"".concat(t.a.titleWrap," mt10")},e.a.createElement("div",{className:t.a.title},"\u5B89\u5168\u8BBE\u7F6E")),e.a.createElement(h.a,{form:O,className:t.a.formWrap,labelCol:{span:6},wrapperCol:{span:10},onFinish:ia},e.a.createElement("div",{className:"".concat(t.a.row," ").concat(P===p.Phone?"":t.a.rowBorder)},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u624B\u673A"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},((U=d.basicInfo)===null||U===void 0?void 0:U.phone)?e.a.createElement("span",{className:"".concat(t.a.status," mr20")},(B=d.basicInfo)===null||B===void 0?void 0:B.phone):e.a.createElement("span",{className:"".concat(t.a.status," ").concat(t.a.colorRed," mr20")},"\u672A\u7ED1\u5B9A"),((L=d.basicInfo)===null||L===void 0?void 0:L.phone)?"\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u624B\u673A\u53F7\u7801\u767B\u5F55EduCoder":"\u7ED1\u5B9A\u624B\u673A\u53F7\u7801\uFF0C\u5C06\u83B7\u5F97500\u91D1\u5E01\u7684\u5956\u52B1\u54DF\uFF5E\uFF0C\u624B\u673A\u53F7\u7801\u4EC5\u81EA\u5DF1\u53EF\u89C1~"),((T=d.basicInfo)===null||T===void 0?void 0:T.phone)&&P!==p.Phone&&e.a.createElement("span",{className:t.a.active,style:{marginRight:"30px",cursor:"pointer"},onClick:function(){var a;!(re==null?void 0:re.id)&&!(ie==null?void 0:ie.id)&&!((a=d.basicInfo)===null||a===void 0?void 0:a.mail)?z(!0):ce(!0)}},"\u89E3\u7ED1\u624B\u673A\u53F7"),P!==p.Phone&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Phone)}},((Y=d.basicInfo)===null||Y===void 0?void 0:Y.phone)?"\u66F4\u6362":"\u7ACB\u5373\u7ED1\u5B9A")),P===p.Phone&&e.a.createElement(e.a.Fragment,null,e.a.createElement(h.a.Item,{label:"\u4F60\u7684\u624B\u673A\u53F7",name:"phone",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8981".concat(((Z=d.basicInfo)===null||Z===void 0?void 0:Z.phone)?"\u66F4\u6362":"\u7ED1\u5B9A","\u7684\u624B\u673A\u53F7\u7801")},{validator:function(a,n,o){G.test(n)&&o(),o("\u8BF7\u8F93\u5165\u6709\u6548\u768411\u4F4D\u624B\u673A\u53F7\u7801")}}]},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u8981".concat(((J=d.basicInfo)===null||J===void 0?void 0:J.phone)?"\u66F4\u6362":"\u7ED1\u5B9A","\u7684\u624B\u673A\u53F7\u7801")})),!(I==null||((H=I.setting)===null||H===void 0)?void 0:H.is_local)&&e.a.createElement(h.a.Item,{label:"\u624B\u673A\u9A8C\u8BC1\u7801"},e.a.createElement(h.a.Item,{name:"phoneValidateCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801"}],noStyle:!0},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u624B\u673A\u83B7\u53D6\u7684\u9A8C\u8BC1\u7801"})),e.a.createElement(C.a,{type:"primary",className:"ml5",disabled:S,onClick:function(){return Ie(!0)}},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))),e.a.createElement("div",{className:"".concat(t.a.row," ").concat(P===p.Email?"":t.a.rowBorder)},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u90AE\u7BB1"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},((K=d.basicInfo)===null||K===void 0?void 0:K.mail)?e.a.createElement("span",{className:"".concat(t.a.status," mr20")},(q=d.basicInfo)===null||q===void 0?void 0:q.mail):e.a.createElement("span",{className:"".concat(t.a.status," ").concat(t.a.colorRed," mr20")},"\u672A\u7ED1\u5B9A"),"\u90AE\u7BB1\u8D26\u53F7\u4EC5\u81EA\u5DF1\u53EF\u89C1\uFF0C\u53EF\u7528\u4E8E\u90AE\u7BB1\u8D26\u53F7\u767B\u5F55",!(I==null||((ee=I.setting)===null||ee===void 0)?void 0:ee.is_local)&&"EduCoder"),P!==p.Email&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Email)}},((ae=d.basicInfo)===null||ae===void 0?void 0:ae.mail)?"\u66F4\u6362":"\u7ACB\u5373\u7ED1\u5B9A")),P===p.Email&&e.a.createElement(e.a.Fragment,null,e.a.createElement(h.a.Item,{label:"\u90AE\u7BB1\u5730\u5740",name:"email",rules:[{required:!0,message:((te=d.basicInfo)===null||te===void 0?void 0:te.mail)?"\u8BF7\u8F93\u5165\u8981\u66F4\u6362\u7684\u65B0\u90AE\u7BB1\u5730\u5740":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740"}]},e.a.createElement(w.a,{placeholder:((ue=d.basicInfo)===null||ue===void 0?void 0:ue.mail)?"\u8BF7\u8F93\u5165\u8981\u66F4\u6362\u7684\u65B0\u90AE\u7BB1\u5730\u5740":"\u8BF7\u8F93\u5165\u90AE\u7BB1\u5730\u5740"})),!(I==null||((ne=I.setting)===null||ne===void 0)?void 0:ne.is_local)&&e.a.createElement(h.a.Item,{label:"\u90AE\u7BB1\u9A8C\u8BC1\u7801"},e.a.createElement(h.a.Item,{name:"emailValidateCode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u6536\u5230\u7684\u9A8C\u8BC1\u7801"}],noStyle:!0},e.a.createElement(w.a,{placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1\u6536\u5230\u7684\u9A8C\u8BC1\u7801"})),e.a.createElement(C.a,{type:"primary",className:"ml5",disabled:S,onClick:function(){return Ie(!1)}},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))),e.a.createElement("div",{className:t.a.row},e.a.createElement("span",{className:"".concat(t.a.name," ").concat(t.a.color999)},"\u5BC6\u7801"),e.a.createElement("div",{className:"".concat(t.a.description," ").concat(t.a.colorCDCDCD)},e.a.createElement("span",{className:"".concat(t.a.status," mr20")},"**********"),"\u7528\u4E8E\u4FDD\u62A4\u8D26\u6237\u4FE1\u606F\u548C\u767B\u5F55\u5B89\u5168"),P!==p.Password&&e.a.createElement("span",{className:t.a.active,onClick:function(){return j(p.Password)}},"\u4FEE\u6539")),P===p.Password&&e.a.createElement(e.a.Fragment,null,((oe=d.basicInfo)===null||oe===void 0?void 0:oe.has_password)&&e.a.createElement(h.a.Item,{label:"\u65E7\u5BC6\u7801",name:"oldPassword",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})),e.a.createElement(h.a.Item,{label:"\u65B0\u5BC6\u7801",name:"newPassword",rules:[{required:!0,message:"\u8BF7\u8BBE\u7F6E8\uFF5E16\u4F4D\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"},{validator:Te}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u8F93\u51658\uFF5E16\u4F4D\u7684\u65B0\u5BC6\u7801\uFF0C\u533A\u5206\u5927\u5C0F\u5199"})),e.a.createElement(h.a.Item,{label:"\u518D\u6B21\u8F93\u5165",name:"againPassword",rules:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"},{validator:function(a,n,o){n!=O.getFieldsValue().newPassword?o("\u4E24\u6B21\u8F93\u5165\u7684\u65B0\u5BC6\u7801\u5FC5\u987B\u4E00\u81F4\uFF01"):o()}}]},e.a.createElement(w.a,{type:"password",placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801"})),e.a.createElement(h.a.Item,{noStyle:!0},e.a.createElement("div",{className:t.a.buttonWrap},e.a.createElement(C.a,{className:"".concat(t.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786E\u5B9A"),e.a.createElement(C.a,{className:t.a.submitButton,size:"large",onClick:function(){return j(null)}},"\u53D6\u6D88")))))),e.a.createElement("div",{className:"".concat(t.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732")),e.a.createElement(k.a,{title:"\u63D0\u793A",visible:He,onCancel:function(){z(!1)},footer:e.a.createElement("div",null,e.a.createElement(C.a,{style:{textAlign:"end"},type:"primary",onClick:function(){return z(!1)}},"\u786E \u5B9A"))},e.a.createElement("div",{style:{padding:"7px 24px"}},e.a.createElement("span",null,"\u60A8\u76EE\u524D\u53EA\u6709\u624B\u673A\u53F7\u767B\u5F55\u4E00\u79CD\u65B9\u5F0F\uFF0C\u89E3\u7ED1\u540E\u5C06\u65E0\u6CD5\u6B63\u5E38\u4F7F\u7528\u5E73\u53F0\uFF0C\u9700\u8981\u60A8\u5148\u7ED1\u5B9A\u4EE5\u4E0B\u7684\u4EFB\u610F\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u518D\u8FDB\u884C\u89E3\u7ED1\u3002"),e.a.createElement("br",null),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"1\u3001\u7ED1\u5B9A\u90AE\u7BB1 ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,onClick:function(){return z(!1)},style:{borderRadius:"12px",height:"26px",width:"93px",cursor:"pointer"}},"\u524D\u5F80\u7ED1\u5B9A")),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"2\u3001\u7ED1\u5B9A\u5FAE\u4FE1 ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},e.a.createElement(pe.Link,{to:"/account/binding"},"\u524D\u5F80\u7ED1\u5B9A"))),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"3\u3001\u7ED1\u5B9AQQ ")," ",e.a.createElement(C.a,{type:"primary",ghost:!0,style:{borderRadius:"12px",height:"26px",width:"93px"}},e.a.createElement(pe.Link,{to:"/account/binding"},"\u524D\u5F80\u7ED1\u5B9A"))))),e.a.createElement(k.a,{title:"\u624B\u673A\u53F7\u89E3\u7ED1",visible:qe,onCancel:function(){return ce(!1)},onOk:Object(M.a)(b.a.mark(function u(){var a,n,o;return b.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(Ee){s.next=3;break}return v.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A"),s.abrupt("return");case 3:return s.next=5,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/phone_unbind.json"),{method:"POST",body:{code:Ee}});case 5:n=s.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u89E3\u7ED1\u6210\u529F"),x(!1),ce(!1),ye(""),y({type:"account/getBasicInfo",payload:{login:(o=m.userInfo)===null||o===void 0?void 0:o.login}}));case 7:case"end":return s.stop()}},u)}))},e.a.createElement("div",{style:{padding:"8px 24px"}},e.a.createElement("p",null,"\u624B\u673A\u53F7\u89E3\u7ED1\u540E\uFF0C\u5C06\u65E0\u6CD5\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\uFF0C\u8BF7\u77E5\u6089"),e.a.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",(le=d.basicInfo)===null||le===void 0?void 0:le.phone),e.a.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",e.a.createElement(w.a,{size:"large",value:Ee,onChange:function(a){return ye(a.target.value)},style:{width:"240px"}})," ",e.a.createElement(C.a,{disabled:S,type:"primary",size:"large",onClick:Object(M.a)(b.a.mark(function u(){var a,n;return b.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/get_phone_code.json"),{method:"get"});case 2:n=l.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u9A8C\u8BC1\u7801\u53D1\u9001\u6210\u529F"),x(!0));case 4:case"end":return l.stop()}},u)}))},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),e.a.createElement(k.a,{title:"\u5F3A\u5236\u89E3\u7ED1",visible:ua,onCancel:function(){return _e(!1)},onOk:Object(M.a)(b.a.mark(function u(){var a,n,o;return b.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(me){s.next=3;break}return v.b.info("\u9A8C\u8BC1\u7801\u4E0D\u80FD\u4E3A\u7A7A"),s.abrupt("return");case 3:return s.next=5,Object(X.a)("/api/users/accounts/".concat(m==null||((a=m.userInfo)===null||a===void 0)?void 0:a.login,"/phone_force_unbind.json"),{method:"POST",body:{code:me,phone:O.getFieldValue("phone")}});case 5:n=s.sent,(n==null?void 0:n.status)===0&&(v.b.info("\u89E3\u7ED1\u6210\u529F"),x(!1),_e(!1),j(null),we(""),y({type:"account/getBasicInfo",payload:{login:(o=m.userInfo)===null||o===void 0?void 0:o.login}}));case 7:case"end":return s.stop()}},u)}))},e.a.createElement("div",{style:{padding:"8px 24px"}},e.a.createElement("p",null,"\u82E5\u539F\u8D26\u53F7\u53EA\u6709\u7ED1\u5B9A\u4E86\u624B\u673A\u53F7\u4E00\u79CD\u767B\u5F55\u65B9\u5F0F\uFF0C\u5F3A\u5236\u89E3\u7ED1\u540E\u4F1A\u5BFC\u81F4\u539F\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u5F3A\u5236\u89E3\u7ED1"),e.a.createElement("p",null,"\u4F60\u7684\u624B\u673A\u53F7\uFF1A",O.getFieldValue("phone")),e.a.createElement("p",null,"\u624B\u673A\u9A8C\u8BC1\u7801\uFF1A",e.a.createElement(w.a,{value:me,size:"large",onChange:function(a){return we(a.target.value)},style:{width:"240px"}})," ",e.a.createElement(C.a,{disabled:S,type:"primary",size:"large",onClick:Object(M.a)(b.a.mark(function u(){var a,n;return b.a.wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return a=Object(be.O)(O.getFieldValue("phone")),l.next=3,y({type:"account/getCode",payload:{login:O.getFieldValue("phone"),type:10,smscode:a}});case 3:n=l.sent,n.status===1&&(v.b.info("\u9A8C\u8BC1\u7801\u5DF2\u53D1\u9001\uFF0C\u8BF7\u6CE8\u610F\u67E5\u6536"),x(!0));case 5:case"end":return l.stop()}},u)}))},S?"\u91CD\u65B0\u53D1\u9001".concat($,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")))),e.a.createElement(k.a,{title:"\u63D0\u793A",visible:aa,onCancel:function(){de(!1)},okText:"\u8FDB\u884C\u5F3A\u5236\u89E3\u7ED1",okButtonProps:{type:"primary",ghost:!0,style:{width:"124px"}},onOk:function(){_e(!0),de(!1)}},e.a.createElement("div",{style:{padding:"7px 24px"}},e.a.createElement("span",null,"\u8BE5\u624B\u673A\u53F7\u5DF2\u7ECF\u88AB\u7ED1\u5B9A\u8D26\u53F7\uFF0C\u5982\u679C\u9700\u8981\u5C06\u8BE5\u624B\u673A\u53F7\u7ED1\u5B9A\u5728\u5F53\u524D\u8D26\u53F7\u4E0A\uFF0C\u4F60\u53EF\u4EE5\u8FDB\u884C\u4E0B\u65B9\u4EFB\u610F\u4E00\u79CD\u89E3\u7ED1\u64CD\u4F5C\uFF1A"),e.a.createElement("br",null),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"1\u3001\u4F7F\u7528\u8BE5\u624B\u673A\u53F7\u767B\u5F55\u5E73\u53F0\u8FDB\u884C\u89E3\u7ED1\uFF0C\u518D\u5C06\u624B\u673A\u53F7\u7ED1\u5B9A\u5F53\u524D\u8D26\u53F7\u4E0A\u3002")),e.a.createElement("p",{style:{marginTop:"1em",display:"flex"}},e.a.createElement("span",{style:{flex:"1"}},"2\u3001\u5F3A\u5236\u89E3\u7ED1\uFF08\u5F3A\u5236\u89E3\u7ED1\u53EF\u80FD\u4F1A\u5BFC\u81F4\u89E3\u7ED1\u8D26\u53F7\u65E0\u6CD5\u767B\u5F55\uFF09")))))},fa=Q.default=Object(Me.a)(function(E){var g=E.user,U=E.account,B=E.loading,L=E.globalSetting;return{user:g,account:U,globalSetting:L,loading:B.models.index}})($e)},bu1o:function(fe,Q,r){fe.exports={wrap:"wrap___L0XY0",content:"content___1FZI4",hint:"hint___2Mhin",titleWrap:"titleWrap___3-5ea",title:"title___3dpg1",formWrap:"formWrap___1-_oA",row:"row___10m9D",rowBorder:"rowBorder___1KLaz",name:"name___3A1ha",status:"status___jLEgn",description:"description___GYT0j",active:"active___UNwEo",color999:"color999___1O3Pw",colorCDCDCD:"colorCDCDCD___Xw3Dl",colorRed:"colorRed___Tupja",submitButton:"submitButton___1_t-q",buttonWrap:"buttonWrap___Q18CA"}}}]); diff --git a/p__Api.f19f7d12.async.js b/p__Api.d30a6e62.async.js similarity index 52% rename from p__Api.f19f7d12.async.js rename to p__Api.d30a6e62.async.js index 975c86ef52..f58ac0110b 100644 --- a/p__Api.f19f7d12.async.js +++ b/p__Api.d30a6e62.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{y3wM:function(u,t,e){"use strict";e.r(t);var s=e("IIKO"),n=e("q1tI"),r=e.n(n),a=e("m3rI");t.default=function(l){var o=Object(s.a)({},l);return Object(n.useEffect)(function(){window.location.href=a.a.API_SERVER+o.location.pathname+o.location.search},[o.location.pathname]),r.a.createElement("div",null)}}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[40],{y3wM:function(d,t,e){"use strict";e.r(t);var r=e("0Owb"),n=e("q1tI"),s=e.n(n),a=e("m3rI");t.default=function(_){var o=Object(r.a)({},_);return Object(n.useEffect)(function(){window.location.href=a.a.API_SERVER+o.location.pathname+o.location.search},[o.location.pathname]),s.a.createElement("div",null)}}}]); diff --git a/p__Classrooms__Index.cd9de0a9.async.js b/p__Classrooms__Index.b5e57254.async.js similarity index 79% rename from p__Classrooms__Index.cd9de0a9.async.js rename to p__Classrooms__Index.b5e57254.async.js index e8f2a46736..b7d864283e 100644 --- a/p__Classrooms__Index.cd9de0a9.async.js +++ b/p__Classrooms__Index.b5e57254.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{Bwvj:function(u,x,t){u.exports={flex_box_center:"flex_box_center___3hzEC",flex_space_between:"flex_space_between___3p82r",flex_box_vertical_center:"flex_box_vertical_center___3z2QM",flex_box_center_end:"flex_box_center_end___2IVE_",flex_box_column:"flex_box_column___3BKwv",banner:"banner___3bzNx",container:"container___1oO0l",link:"link___1SMhS",left:"left___3WAPf",search:"search___3WZ8y",hotSearch:"hotSearch___38RL5"}},J6DQ:function(u,x,t){u.exports={flex_box_center:"flex_box_center___2oGJ4",flex_space_between:"flex_space_between___u8hEL",flex_box_vertical_center:"flex_box_vertical_center___qEuDv",flex_box_center_end:"flex_box_center_end___2YgZ6",flex_box_column:"flex_box_column___31ZoE",wrp:"wrp___aC1DO",menu:"menu___3inoD",actived:"actived___2Hsoh",actived2:"actived2___KsiQD",search:"search___3rfQp"}},MMDQ:function(u,x,t){u.exports={flex_box_center:"flex_box_center___3T7zx",flex_space_between:"flex_space_between___1Un1-",flex_box_vertical_center:"flex_box_vertical_center___19AKr",flex_box_center_end:"flex_box_center_end___2ngNa",flex_box_column:"flex_box_column___cSCbk",wrp:"wrp___1tbhs",banner:"banner____ZkDp",bg:"bg___2N5MZ"}},OLqU:function(u,x,t){"use strict";t.r(x);var xe=t("cWXX"),z=t("/ezw"),fe=t("+L6B"),C=t("2/Rp"),$=t("c1Ei"),w=t.n($),I=t("XEnU"),H=t("5Tp6"),D=t("k16G"),X=t("SIvP"),b=t("q1tI"),e=t.n(b),O=t("9kvl"),pe=t("14J3"),W=t("BMrR"),Ce=t("jCWc"),Q=t("kPKH"),K=t("J6DQ"),Z=t.n(K),v=t("1vsH"),Y=function(o){var n=o.classroomList,r=o.dispatch,i=Object(X.a)(o,["classroomList","dispatch"]),s=[{name:"\u6700\u65B0",id:"created_at"},{name:"\u6700\u70ED",id:"visits"}];return e.a.createElement("section",null,e.a.createElement("aside",{className:"edu-container pb20 mt20"},e.a.createElement(W.a,{className:Z.a.search},e.a.createElement(Q.a,{flex:"1"},s.map(function(c,E){return e.a.createElement(C.a,{className:"mr10 border-raduis-50",type:n.listParams.order===c.id?"primary":"default",onClick:function(){n.listParams.order=c.id,n.listParams.page=1,Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875",c.name]),r({type:"classroomList/getClassroom",payload:Object(I.a)({},n.listParams)})}},c.name)})))))},q=Object(O.a)(function(l){var o=l.classroomList;return{classroomList:o}})(Y),be=t("miYZ"),B=t("tsqr"),ve=t("5NDa"),ee=t("5rEg"),k=t("uYtH"),te=t("Bwvj"),L=t.n(te),P=t("NLgs"),ae=t("Jky8"),ne=ee.a.Search,g;(function(l){l.Projects="projects",l.Shixuns="shixuns",l.Classrooms="classrooms"})(g||(g={}));var oe=function(o){var n,r=o.img,i=o.dispatch,s=o.user,c=Object(b.useState)(!1),E=Object(D.a)(c,2),a=E[0],p=E[1],S=[{id:1,name:"Vue"},{id:2,name:"Python"},{id:3,name:"Java"},{id:4,name:"flutter"},{id:5,name:"\u4E91\u8BA1\u7B97\u548C\u5927\u6570\u636E"}],M=function(_,m){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u641C\u7D22"]),O.c.push("/search?value=".concat(_,"&tabs=course"))},G=function(){if(!Object(P.e)(i))return;Object(P.c)()&&(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u65B0\u5EFA\u9879\u76EE"]),O.c.push("/shixuns/new"))},T=function(_){var m;if(!Object(P.e)(i))return;if(_===g.Projects&&!((m=s.userInfo)===null||m===void 0?void 0:m.email)){B.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}_===g.Classrooms&&p(!0)},F=function(_,m){var h,R;if(!Object(P.e)(i))return;if((s==null||((h=s.userInfo)===null||h===void 0)?void 0:h.user_identity)==="\u5B66\u751F"){B.b.warn("\u5B66\u751F\u4E0D\u53EF\u4EE5\u521B\u5EFA\u8BFE\u5802\u54E6\uFF01\u8BF7\u52A0\u5165\u60A8\u7684\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u5802\u3002");return}if(m===g.Projects&&!((R=s.userInfo)===null||R===void 0?void 0:R.email)){B.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(m===g.Shixuns&&!Object(P.c)())return;_&&(window.location.href=_)};return e.a.createElement("div",{className:L.a.banner},e.a.createElement("img",{src:r,alt:""}),e.a.createElement("div",{className:L.a.container},e.a.createElement("aside",{className:L.a.link},e.a.createElement("div",{className:L.a.left},e.a.createElement("span",null,"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",null,"\u652F\u6301SPOC\uFF0C\u8BA9\u6559\u5B66\u7BA1\u7406\u66F4\u7B80\u5355")),(s==null||((n=s.userInfo)===null||n===void 0)?void 0:n.identity)!=="student"&&e.a.createElement(C.a,{type:"primary",onClick:function(){return F("/classrooms/new")}},"\u65B0\u5EFA\u8BFE\u5802"),e.a.createElement(C.a,{type:"primary",onClick:function(){return T(g.Classrooms)}},"\u52A0\u5165\u8BFE\u5802"),e.a.createElement(C.a,{style:{background:"#2fa34f",borderColor:"#2fa34f"},type:"primary",onClick:function(){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u65B0\u624B\u6307\u5F15"])}},e.a.createElement(k.Link,{to:"/classrooms/guidance",target:"_blank"},"\u65B0\u624B\u6307\u5F15"))),e.a.createElement("aside",{className:L.a.search},e.a.createElement(ne,{placeholder:"\u641C\u7D22\u60A8\u611F\u5174\u8DA3\u7684\u6559\u5B66\u8BFE\u5802",allowClear:!1,enterButton:" \u641C\u7D22",style:{width:450,marginTop:40},onSearch:M}))),e.a.createElement(ae.a,{visible:a,onCancel:function(){return p(!1)}}))},se=oe,ge=t("2qtc"),le=t("kLXV"),Me=t("IzEo"),J=t("bx4M"),he=t("5Dmo"),N=t("3S7+"),V=t("m3rI"),ue=t("aVk/"),f=t.n(ue),re=t("aura"),ce=t.n(re),ie=function(o){var n=o.data,r=o.user,i=Object(b.useState)(!1),s=Object(D.a)(i,2),c=s[0],E=s[1];return e.a.createElement("aside",{className:f.a.courseItems},n&&n.map(function(a,p){return e.a.createElement(k.Link,{className:"lock-item-wrp",key:p,to:a.is_accessible&&a.first_category_url,onClick:function(M){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u5217\u8868","\u67E5\u770B\u8BFE\u5802\u8BE6\u60C5"]),a.is_accessible||(M.preventDefault(),console.log("-----------",r),r.is_teacher&&E(!0))}},e.a.createElement(J.a,null,e.a.createElement(J.a.Meta,{title:e.a.createElement(N.a,{title:a.name},e.a.createElement("div",null,a.name)),description:e.a.createElement("div",{className:"tc"},!a.is_accessible&&e.a.createElement("div",{className:"lock-item"},e.a.createElement("div",null,e.a.createElement("img",{src:t("TGq3")}),"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE")),a.is_public!=0&&a.is_public&&e.a.createElement("div",null,e.a.createElement("span",{className:f.a.tabBadge}),e.a.createElement("span",{className:f.a.smalltrangle}),e.a.createElement("span",{className:f.a.publicword},"\u516C\u5F00")),a.excellent&&e.a.createElement("div",{className:f.a.openTag},"\u5F00\u653E\u8BFE\u7A0B"),a.is_end&&e.a.createElement("div",{className:f.a.overTag},"\u5DF2\u7ED3\u675F"),e.a.createElement("img",{alt:a.name,src:V.a.IMG_SERVER+"/images/"+a.avatar_url}),e.a.createElement("p",{className:[f.a.creator,"c-black"].join(" ")},a.creator),e.a.createElement("p",{className:f.a.visits},a.visits>0&&e.a.createElement(N.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-liulanyan mr5 font18 c-grey-ccc"}),e.a.createElement("span",null,a.visits))),a.course_members_count>0&&e.a.createElement(N.a,{title:"\u6210\u5458",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-chengyuan mr5 font18 c-grey-ccc"}),a.course_members_count)),a.tasks_count>0&&e.a.createElement(N.a,{title:"\u4F5C\u4E1A",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-zuoye mr5 font18 c-grey-ccc"}),a.tasks_count))))})))}),e.a.createElement(le.a,{title:"\u63D0\u793A",visible:c,onCancel:function(){E(!1)},footer:e.a.createElement("div",null,e.a.createElement(C.a,{type:"primary",onClick:function(p){E(!1)}},"\u77E5\u9053\u4E86"))},e.a.createElement("div",null,e.a.createElement("p",{style:{textAlign:"center"}},"\u8BE5\u8BFE\u7A0B\u672A\u516C\u5F00\u5C55\u793A\uFF0C\u60A8\u53EF\u4EE5\u6DFB\u52A0\u6559\u5B66\u52A9\u6559\u83B7\u53D6\u516C\u5F00\u8BFE\u5802\u8D44\u6599"),e.a.createElement("p",{style:{textAlign:"center"}},e.a.createElement("img",{src:ce.a})),e.a.createElement("p",{style:{textAlign:"center"}},"\u514D\u8D39\u6559\u5B66\u52A9\u7406\uFF0C\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),e.a.createElement("div",{style:{padding:"0px 70px"}},e.a.createElement("p",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),e.a.createElement("p",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),e.a.createElement("p",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))},de=t("MMDQ"),_e=t.n(de),me=function(o){var n=o.classroomList,r=o.globalSetting,i=o.loading,s=o.dispatch,c=o.user,E=Object(X.a)(o,["classroomList","globalSetting","loading","dispatch","user"]),a=Object(b.useState)(!1),p=Object(D.a)(a,2),S=p[0],M=p[1],G=Object(b.useState)(!1),T=Object(D.a)(G,2),F=T[0],d=T[1],_;Object(b.useEffect)(function(){document.title="\u6559\u5B66\u8BFE\u5802",n.listParams.order="created_at",h()},[n.name]);var m=function(U){document.body.scrollIntoView(),U==="prev"?(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u4E0A\u4E00\u9875"]),R(n.listParams.page-1)):(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u4E0B\u4E00\u9875"]),R(n.listParams.page+1)),h()},h=function(){var j=Object(H.a)(w.a.mark(function U(){var A;return w.a.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,s({type:"classroomList/getClassroom",payload:Object(I.a)({},n.listParams)});case 2:A=y.sent,(A==null?void 0:A.courses_count)&&(_=Math.ceil(A.courses_count/16),n.listParams.page>=_?d(!0):d(!1),n.listParams.page<2?M(!0):M(!1));case 4:case"end":return y.stop()}},U)}));return function(){return j.apply(this,arguments)}}();Object(b.useEffect)(function(){return s({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){s({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}},[]);var R=function(U){n.listParams.page=U},Ee=V.a.IMG_SERVER+"/"+(r.setting&&r.setting.course_banner_url);return e.a.createElement("section",{className:_e.a.bg},e.a.createElement(se,{img:Ee,dispatch:s,user:c}),e.a.createElement(q,E),e.a.createElement("aside",{className:"edu-container minH500"},e.a.createElement(z.a,{loading:i,active:!0,avatar:{size:40},paragraph:{rows:5}},e.a.createElement(ie,{data:n.courses,user:c.userInfo}),n.courses_count>16&&e.a.createElement("aside",{className:"tc mb50"},e.a.createElement(C.a,{onClick:function(){return m("prev")},disabled:S},"\u4E0A\u4E00\u9875"),e.a.createElement(C.a,{onClick:function(){return m("next")},disabled:F,className:"ml8"},"\u4E0B\u4E00\u9875")))))},Re=x.default=Object(O.a)(function(l){var o=l.classroomList,n=l.loading,r=l.globalSetting,i=l.user;return{user:i,classroomList:o,globalSetting:r,loading:n.models.classroomList}})(me)},TGq3:function(u,x,t){u.exports=t.p+"static/lockclose.365036e8.svg"},"aVk/":function(u,x,t){u.exports={flex_box_center:"flex_box_center___1CNjs",flex_space_between:"flex_space_between___1FtoN",flex_box_vertical_center:"flex_box_vertical_center___3dMG1",flex_box_center_end:"flex_box_center_end___2egRo",flex_box_column:"flex_box_column___3KOTY",courseItems:"courseItems___3PhxO",tabBadge:"tabBadge___k9fHK",publicword:"publicword___PG-OA",openTag:"openTag___3CWAL",overTag:"overTag___2guuN",smalltrangle:"smalltrangle___S_9F2",teacher:"teacher___38ms7",creator:"creator___9nSkw",school:"school___3dPsc",visits:"visits___2DyBb"}},aura:function(u,x,t){u.exports=t.p+"static/ewm.3e90fd60.png"}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[41],{Bwvj:function(u,x,t){u.exports={flex_box_center:"flex_box_center___3hzEC",flex_space_between:"flex_space_between___3p82r",flex_box_vertical_center:"flex_box_vertical_center___3z2QM",flex_box_center_end:"flex_box_center_end___2IVE_",flex_box_column:"flex_box_column___3BKwv",banner:"banner___3bzNx",container:"container___1oO0l",link:"link___1SMhS",left:"left___3WAPf",search:"search___3WZ8y",hotSearch:"hotSearch___38RL5"}},J6DQ:function(u,x,t){u.exports={flex_box_center:"flex_box_center___2oGJ4",flex_space_between:"flex_space_between___u8hEL",flex_box_vertical_center:"flex_box_vertical_center___qEuDv",flex_box_center_end:"flex_box_center_end___2YgZ6",flex_box_column:"flex_box_column___31ZoE",wrp:"wrp___aC1DO",menu:"menu___3inoD",actived:"actived___2Hsoh",actived2:"actived2___KsiQD",search:"search___3rfQp"}},MMDQ:function(u,x,t){u.exports={flex_box_center:"flex_box_center___3T7zx",flex_space_between:"flex_space_between___1Un1-",flex_box_vertical_center:"flex_box_vertical_center___19AKr",flex_box_center_end:"flex_box_center_end___2ngNa",flex_box_column:"flex_box_column___cSCbk",wrp:"wrp___1tbhs",banner:"banner____ZkDp",bg:"bg___2N5MZ"}},OLqU:function(u,x,t){"use strict";t.r(x);var xe=t("cWXX"),z=t("/ezw"),pe=t("+L6B"),C=t("2/Rp"),$=t("WmNS"),w=t.n($),I=t("k1fw"),W=t("9og8"),D=t("tJVT"),X=t("PpiC"),b=t("q1tI"),e=t.n(b),O=t("9kvl"),fe=t("14J3"),H=t("BMrR"),Ce=t("jCWc"),Q=t("kPKH"),K=t("J6DQ"),Z=t.n(K),v=t("1vsH"),Y=function(o){var n=o.classroomList,r=o.dispatch,i=Object(X.a)(o,["classroomList","dispatch"]),s=[{name:"\u6700\u65B0",id:"created_at"},{name:"\u6700\u70ED",id:"visits"}];return e.a.createElement("section",null,e.a.createElement("aside",{className:"edu-container pb20 mt20"},e.a.createElement(H.a,{className:Z.a.search},e.a.createElement(Q.a,{flex:"1"},s.map(function(c,E){return e.a.createElement(C.a,{className:"mr10 border-raduis-50",type:n.listParams.order===c.id?"primary":"default",onClick:function(){n.listParams.order=c.id,n.listParams.page=1,Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875",c.name]),r({type:"classroomList/getClassroom",payload:Object(I.a)({},n.listParams)})}},c.name)})))))},q=Object(O.a)(function(l){var o=l.classroomList;return{classroomList:o}})(Y),be=t("miYZ"),B=t("tsqr"),ve=t("5NDa"),ee=t("5rEg"),k=t("55Ip"),te=t("Bwvj"),L=t.n(te),P=t("NLgs"),ae=t("Jky8"),ne=ee.a.Search,g;(function(l){l.Projects="projects",l.Shixuns="shixuns",l.Classrooms="classrooms"})(g||(g={}));var oe=function(o){var n,r=o.img,i=o.dispatch,s=o.user,c=Object(b.useState)(!1),E=Object(D.a)(c,2),a=E[0],f=E[1],S=[{id:1,name:"Vue"},{id:2,name:"Python"},{id:3,name:"Java"},{id:4,name:"flutter"},{id:5,name:"\u4E91\u8BA1\u7B97\u548C\u5927\u6570\u636E"}],M=function(m,_){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u641C\u7D22"]),O.c.push("/search?value=".concat(m,"&tabs=course"))},G=function(){if(!Object(P.e)(i))return;Object(P.c)()&&(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u65B0\u5EFA\u9879\u76EE"]),O.c.push("/shixuns/new"))},T=function(m){var _;if(!Object(P.e)(i))return;if(m===g.Projects&&!((_=s.userInfo)===null||_===void 0?void 0:_.email)){B.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}m===g.Classrooms&&f(!0)},F=function(m,_){var h,R;if(!Object(P.e)(i))return;if((s==null||((h=s.userInfo)===null||h===void 0)?void 0:h.user_identity)==="\u5B66\u751F"){B.b.warn("\u5B66\u751F\u4E0D\u53EF\u4EE5\u521B\u5EFA\u8BFE\u5802\u54E6\uFF01\u8BF7\u52A0\u5165\u60A8\u7684\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u5802\u3002");return}if(_===g.Projects&&!((R=s.userInfo)===null||R===void 0?void 0:R.email)){B.b.info("\u8BF7\u5148\u7ED1\u5B9A\u90AE\u7BB1\uFF0C\u8C22\u8C22");return}if(_===g.Shixuns&&!Object(P.c)())return;m&&(window.location.href=m)};return e.a.createElement("div",{className:L.a.banner},e.a.createElement("img",{src:r,alt:""}),e.a.createElement("div",{className:L.a.container},e.a.createElement("aside",{className:L.a.link},e.a.createElement("div",{className:L.a.left},e.a.createElement("span",null,"\u6559\u5B66\u8BFE\u5802"),e.a.createElement("span",null,"\u652F\u6301SPOC\uFF0C\u8BA9\u6559\u5B66\u7BA1\u7406\u66F4\u7B80\u5355")),(s==null||((n=s.userInfo)===null||n===void 0)?void 0:n.identity)!=="student"&&e.a.createElement(C.a,{type:"primary",onClick:function(){return F("/classrooms/new")}},"\u65B0\u5EFA\u8BFE\u5802"),e.a.createElement(C.a,{type:"primary",onClick:function(){return T(g.Classrooms)}},"\u52A0\u5165\u8BFE\u5802"),e.a.createElement(C.a,{style:{background:"#2fa34f",borderColor:"#2fa34f"},type:"primary",onClick:function(){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u65B0\u624B\u6307\u5F15"])}},e.a.createElement(k.Link,{to:"/classrooms/guidance",target:"_blank"},"\u65B0\u624B\u6307\u5F15"))),e.a.createElement("aside",{className:L.a.search},e.a.createElement(ne,{placeholder:"\u641C\u7D22\u60A8\u611F\u5174\u8DA3\u7684\u6559\u5B66\u8BFE\u5802",allowClear:!1,enterButton:" \u641C\u7D22",style:{width:450,marginTop:40},onSearch:M}))),e.a.createElement(ae.a,{visible:a,onCancel:function(){return f(!1)}}))},se=oe,ge=t("2qtc"),le=t("kLXV"),Me=t("IzEo"),J=t("bx4M"),he=t("5Dmo"),N=t("3S7+"),V=t("m3rI"),ue=t("aVk/"),p=t.n(ue),re=t("aura"),ce=t.n(re),ie=function(o){var n=o.data,r=o.user,i=Object(b.useState)(!1),s=Object(D.a)(i,2),c=s[0],E=s[1];return e.a.createElement("aside",{className:p.a.courseItems},n&&n.map(function(a,f){return e.a.createElement(k.Link,{className:"lock-item-wrp",key:f,to:a.is_accessible&&a.first_category_url,onClick:function(M){Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u8BFE\u5802\u5217\u8868","\u67E5\u770B\u8BFE\u5802\u8BE6\u60C5"]),a.is_accessible||(M.preventDefault(),console.log("-----------",r),r.is_teacher&&E(!0))}},e.a.createElement(J.a,null,e.a.createElement(J.a.Meta,{title:e.a.createElement(N.a,{title:a.name},e.a.createElement("div",null,a.name)),description:e.a.createElement("div",{className:"tc"},!a.is_accessible&&e.a.createElement("div",{className:"lock-item"},e.a.createElement("div",null,e.a.createElement("img",{src:t("TGq3")}),"\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE")),a.is_public!=0&&a.is_public&&e.a.createElement("div",null,e.a.createElement("span",{className:p.a.tabBadge}),e.a.createElement("span",{className:p.a.smalltrangle}),e.a.createElement("span",{className:p.a.publicword},"\u516C\u5F00")),a.excellent&&e.a.createElement("div",{className:p.a.openTag},"\u5F00\u653E\u8BFE\u7A0B"),a.is_end&&e.a.createElement("div",{className:p.a.overTag},"\u5DF2\u7ED3\u675F"),e.a.createElement("img",{alt:a.name,src:V.a.IMG_SERVER+"/images/"+a.avatar_url}),e.a.createElement("p",{className:[p.a.creator,"c-black"].join(" ")},a.creator),e.a.createElement("p",{className:p.a.visits},a.visits>0&&e.a.createElement(N.a,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-liulanyan mr5 font18 c-grey-ccc"}),e.a.createElement("span",null,a.visits))),a.course_members_count>0&&e.a.createElement(N.a,{title:"\u6210\u5458",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-chengyuan mr5 font18 c-grey-ccc"}),a.course_members_count)),a.tasks_count>0&&e.a.createElement(N.a,{title:"\u4F5C\u4E1A",placement:"bottom"},e.a.createElement("span",null,e.a.createElement("span",{className:"iconfont icon-zuoye mr5 font18 c-grey-ccc"}),a.tasks_count))))})))}),e.a.createElement(le.a,{title:"\u63D0\u793A",visible:c,onCancel:function(){E(!1)},footer:e.a.createElement("div",null,e.a.createElement(C.a,{type:"primary",onClick:function(f){E(!1)}},"\u77E5\u9053\u4E86"))},e.a.createElement("div",null,e.a.createElement("p",{style:{textAlign:"center"}},"\u8BE5\u8BFE\u7A0B\u672A\u516C\u5F00\u5C55\u793A\uFF0C\u60A8\u53EF\u4EE5\u6DFB\u52A0\u6559\u5B66\u52A9\u6559\u83B7\u53D6\u516C\u5F00\u8BFE\u5802\u8D44\u6599"),e.a.createElement("p",{style:{textAlign:"center"}},e.a.createElement("img",{src:ce.a})),e.a.createElement("p",{style:{textAlign:"center"}},"\u514D\u8D39\u6559\u5B66\u52A9\u7406\uFF0C\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),e.a.createElement("div",{style:{padding:"0px 70px"}},e.a.createElement("p",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),e.a.createElement("p",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),e.a.createElement("p",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))},de=t("MMDQ"),me=t.n(de),_e=function(o){var n=o.classroomList,r=o.globalSetting,i=o.loading,s=o.dispatch,c=o.user,E=Object(X.a)(o,["classroomList","globalSetting","loading","dispatch","user"]),a=Object(b.useState)(!1),f=Object(D.a)(a,2),S=f[0],M=f[1],G=Object(b.useState)(!1),T=Object(D.a)(G,2),F=T[0],d=T[1],m;Object(b.useEffect)(function(){document.title="\u6559\u5B66\u8BFE\u5802",n.listParams.order="created_at",h()},[n.name]);var _=function(U){document.body.scrollIntoView(),U==="prev"?(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u4E0A\u4E00\u9875"]),R(n.listParams.page-1)):(Object(v.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u4E0B\u4E00\u9875"]),R(n.listParams.page+1)),h()},h=function(){var j=Object(W.a)(w.a.mark(function U(){var A;return w.a.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,s({type:"classroomList/getClassroom",payload:Object(I.a)({},n.listParams)});case 2:A=y.sent,(A==null?void 0:A.courses_count)&&(m=Math.ceil(A.courses_count/16),n.listParams.page>=m?d(!0):d(!1),n.listParams.page<2?M(!0):M(!1));case 4:case"end":return y.stop()}},U)}));return function(){return j.apply(this,arguments)}}();Object(b.useEffect)(function(){return s({type:"globalSetting/onlyShowBackTopToggle",payload:!1}),function(){s({type:"globalSetting/onlyShowBackTopToggle",payload:!0})}},[]);var R=function(U){n.listParams.page=U},Ee=V.a.IMG_SERVER+"/"+(r.setting&&r.setting.course_banner_url);return e.a.createElement("section",{className:me.a.bg},e.a.createElement(se,{img:Ee,dispatch:s,user:c}),e.a.createElement(q,E),e.a.createElement("aside",{className:"edu-container minH500"},e.a.createElement(z.a,{loading:i,active:!0,avatar:{size:40},paragraph:{rows:5}},e.a.createElement(ie,{data:n.courses,user:c.userInfo}),n.courses_count>16&&e.a.createElement("aside",{className:"tc mb50"},e.a.createElement(C.a,{onClick:function(){return _("prev")},disabled:S},"\u4E0A\u4E00\u9875"),e.a.createElement(C.a,{onClick:function(){return _("next")},disabled:F,className:"ml8"},"\u4E0B\u4E00\u9875")))))},Re=x.default=Object(O.a)(function(l){var o=l.classroomList,n=l.loading,r=l.globalSetting,i=l.user;return{user:i,classroomList:o,globalSetting:r,loading:n.models.classroomList}})(_e)},TGq3:function(u,x,t){u.exports=t.p+"static/lockclose.365036e8.svg"},"aVk/":function(u,x,t){u.exports={flex_box_center:"flex_box_center___1CNjs",flex_space_between:"flex_space_between___1FtoN",flex_box_vertical_center:"flex_box_vertical_center___3dMG1",flex_box_center_end:"flex_box_center_end___2egRo",flex_box_column:"flex_box_column___3KOTY",courseItems:"courseItems___3PhxO",tabBadge:"tabBadge___k9fHK",publicword:"publicword___PG-OA",openTag:"openTag___3CWAL",overTag:"overTag___2guuN",smalltrangle:"smalltrangle___S_9F2",teacher:"teacher___38ms7",creator:"creator___9nSkw",school:"school___3dPsc",visits:"visits___2DyBb"}},aura:function(u,x,t){u.exports=t.p+"static/ewm.3e90fd60.png"}}]); diff --git a/p__Classrooms__Index.p__Paths__Index.730588b2.async.js b/p__Classrooms__Index.p__Paths__Index.8b342e7e.async.js similarity index 83% rename from p__Classrooms__Index.p__Paths__Index.730588b2.async.js rename to p__Classrooms__Index.p__Paths__Index.8b342e7e.async.js index 36728ad16b..38f912d120 100644 --- a/p__Classrooms__Index.p__Paths__Index.730588b2.async.js +++ b/p__Classrooms__Index.p__Paths__Index.8b342e7e.async.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"1XHU":function(c,s,e){"use strict";var K=e("2qtc"),M=e("kLXV"),W=e("q1tI"),d=e.n(W),x=e("9kvl"),y=e("3wET"),v=e.n(y),b=e("bUJZ"),n=e.n(b),R=e("Ct/S"),l=e.n(R),h=function(a){var C=a.visible,D=a.occupationValue,F=a.onCancel,B=F===void 0?function(){}:F,m=function(){return d.a.createElement("div",{className:l.a.flexColumn},d.a.createElement("img",{className:l.a.img,src:n.a}),d.a.createElement("span",{className:l.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},j=function(){return d.a.createElement("div",{className:l.a.flexColumn},d.a.createElement("img",{className:l.a.img,src:v.a}),d.a.createElement("span",{className:l.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},f=function(){return D===3?d.a.createElement(d.a.Fragment,null,j(),m()):D===2?m():j()};return d.a.createElement(M.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:C,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){B(),x.c.push("/account/certification")},onCancel:function(){B()}},d.a.createElement("div",{className:l.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),d.a.createElement("div",{className:l.a.flexRow},f()))};s.a=Object(x.a)(function(i){var a=i.paperlibrary,C=i.loading,D=i.globalSetting;return{paperlibrary:a,globalSetting:D,loading:C.effects}})(h)},"1ZF9":function(c,s,e){c.exports=e.p+"static/Authorize.cc9c212f.png"},"3wET":function(c,s){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"Ct/S":function(c,s,e){c.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Jky8:function(c,s,e){"use strict";var K=e("sRBo"),M=e("kaz8"),W=e("5NDa"),d=e("5rEg"),x=e("c1Ei"),y=e.n(x),v=e("miYZ"),b=e("tsqr"),n=e("5Tp6"),R=e("2qtc"),l=e("kLXV"),h=e("k16G"),i=e("q1tI"),a=e.n(i),C=e("9kvl"),D=e("6CvP"),F=e("1XHU"),B=e("1vsH"),m;(function(f){f[f.Professor=1]="Professor",f[f.AssistantProfessor=2]="AssistantProfessor",f[f.Student=3]="Student"})(m||(m={}));var j=function(p){var z=p.visible,E=p.user,u=p.onCancel,g=u===void 0?function(){}:u,O=Object(i.useState)(),t=Object(h.a)(O,2),I=t[0],G=t[1],J=Object(i.useState)([]),T=Object(h.a)(J,2),P=T[0],V=T[1],U=Object(i.useState)(!1),Q=Object(h.a)(U,2),k=Q[0],w=Q[1],X=Object(i.useState)(!1),Z=Object(h.a)(X,2),q=Z[0],S=Z[1],$=Object(i.useState)(),N=Object(h.a)($,2),ee=N[0],Y=N[1];Object(i.useEffect)(function(){var A;if(E==null||((A=E.userInfo)===null||A===void 0)?void 0:A.identity){var r;V([(E==null||((r=E.userInfo)===null||r===void 0)?void 0:r.identity)==="student"?3:1])}},[E]);var te=function(r,o){if(P.includes(m.Professor)){l.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc"},o||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){C.c.push("/classrooms/".concat(r,"/students"))}});return}C.c.push("/classrooms/".concat(r,"/students"))},ne=function(){var A=Object(n.a)(y.a.mark(function r(){var o;return y.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(I){_.next=3;break}return b.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),_.abrupt("return");case 3:return w(!0),_.next=6,Object(D.c)({invite_code:I,professor:P.includes(m.Professor)?1:null,assistant_professor:P.includes(m.AssistantProfessor)?1:null,student:P.includes(m.Student)?1:null});case 6:if(o=_.sent,w(!1),!((o==null?void 0:o.status)===-2)){_.next=22;break}if(H(),!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){_.next=14;break}return S(!0),Y(1),_.abrupt("return");case 14:if(!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){_.next=18;break}return S(!0),Y(2),_.abrupt("return");case 18:if(!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){_.next=22;break}return S(!0),Y(3),_.abrupt("return");case 22:if(!((o==null?void 0:o.status)===0)){_.next=27;break}return Object(B.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),H(),(o==null?void 0:o.course_id)&&te(o.course_id,o.message),_.abrupt("return");case 27:case"end":return _.stop()}},r)}));return function(){return A.apply(this,arguments)}}(),H=function(){var A=Object(n.a)(y.a.mark(function r(){return y.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:g();case 1:case"end":return L.stop()}},r)}));return function(){return A.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:z,confirmLoading:k,onOk:ne,onCancel:H},a.a.createElement("div",{className:"tc"},a.a.createElement("div",null,a.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),a.a.createElement(d.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:I,onChange:function(r){if(r.target.value.length>=7){b.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}G(r.target.value)}})),a.a.createElement("div",{className:"mt10 font14"},a.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),a.a.createElement(M.a.Group,{value:P,onChange:function(r){return V(r)}},a.a.createElement(M.a,{value:m.Professor,disabled:P.includes(2)},"\u6559\u5E08"),a.a.createElement(M.a,{value:m.AssistantProfessor,disabled:P.includes(1)},"\u52A9\u6559"),a.a.createElement(M.a,{value:m.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(F.a,{visible:q,onCancel:function(){return S(!1)},occupationValue:ee}))};s.a=Object(C.a)(function(f){var p=f.user;return{user:p}})(j)},NLgs:function(c,s,e){"use strict";e.d(s,"e",function(){return F}),e.d(s,"f",function(){return B}),e.d(s,"d",function(){return j}),e.d(s,"c",function(){return f}),e.d(s,"a",function(){return p}),e.d(s,"b",function(){return z});var K=e("c1Ei"),M=e.n(K),W=e("miYZ"),d=e("tsqr"),x=e("5Tp6"),y=e("2qtc"),v=e("kLXV"),b=e("q1tI"),n=e.n(b),R=e("9kvl"),l=e("xKgJ"),h=e("1vsH"),i=e("RCxd"),a=e("mOS8"),C=e.n(a),D=e("m3rI"),F=function(u){return!!(B(u)&&m())},B=function(u){return Object(l.q)()?!0:(u({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},m=function(){var u,g=Object(R.b)()._store.getState(),O=g.user;return((u=O.userInfo)===null||u===void 0?void 0:u.profile_completed)?!0:(v.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:n.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){R.c.push("/account/profile/edit")}}),!1)},j=function(){var u,g=Object(R.b)()._store.getState(),O=g.user;return((u=O.userInfo)===null||u===void 0?void 0:u.professional_certification)?!0:(v.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(h.L)("/account/certification")}}),!1)},f=function(){return Object(l.b)()?!0:(v.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:Object(l.u)()?e("WdTA"):"".concat(D.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(l.u)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.L)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},p=function(u,g){return u?!0:(v.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,g||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:e("1ZF9"),width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.L)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},z=function(u){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=Object(R.b)()._store.getState(),t=O.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(v.a.info({centered:!0,icon:n.a.createElement(i.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",g,"\u3002"),n.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),n.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:C.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(v.a.confirm({centered:!0,icon:n.a.createElement(i.a,null),title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",g,"\u3002"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){v.a.confirm({width:440,centered:!0,icon:n.a.createElement(i.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5C06\u65E0\u6CD5\u5728\u7EC4\u5EFA\u8BD5\u5377\u65F6\u9009\u7528\u8BE5\u5B9E\u8BAD\u9898\u3002",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var G=Object(x.a)(M.a.mark(function T(){var P;return M.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,u({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:P=U.sent,P.status!==401&&(d.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),u({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),u({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return U.stop()}},T)}));function J(){return G.apply(this,arguments)}return J}()})}}),!0):!1}},WdTA:function(c,s,e){c.exports=e.p+"static/studnetqun.a5754d96.png"},bUJZ:function(c,s){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},mOS8:function(c,s,e){c.exports=e.p+"static/403Qrcode.6c17b6f4.png"}}]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"1XHU":function(c,s,e){"use strict";var z=e("2qtc"),M=e("kLXV"),K=e("q1tI"),d=e.n(K),x=e("9kvl"),y=e("3wET"),A=e.n(y),b=e("bUJZ"),n=e.n(b),R=e("Ct/S"),l=e.n(R),h=function(a){var C=a.visible,D=a.occupationValue,F=a.onCancel,B=F===void 0?function(){}:F,m=function(){return d.a.createElement("div",{className:l.a.flexColumn},d.a.createElement("img",{className:l.a.img,src:n.a}),d.a.createElement("span",{className:l.a.content},"\u672A\u804C\u4E1A\u8BA4\u8BC1"))},L=function(){return d.a.createElement("div",{className:l.a.flexColumn},d.a.createElement("img",{className:l.a.img,src:A.a}),d.a.createElement("span",{className:l.a.content},"\u672A\u5B9E\u540D\u8BA4\u8BC1"))},f=function(){return D===3?d.a.createElement(d.a.Fragment,null,L(),m()):D===2?m():L()};return d.a.createElement(M.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:C,title:"\u56E0\u4E3A\u4EE5\u4E0B\u539F\u56E0\uFF0C\u60A8\u6682\u65F6\u4E0D\u80FD\u8FDB\u884C\u64CD\u4F5C",okText:"\u7ACB\u5373\u8BA4\u8BC1",cancelText:"\u53D6\u6D88",width:"600px",onOk:function(){B(),x.c.push("/account/certification")},onCancel:function(){B()}},d.a.createElement("div",{className:l.a.tilte},"\u8BF7\u5728\u5B8C\u6210\u6761\u4EF6\u540E\u91CD\u8BD5"),d.a.createElement("div",{className:l.a.flexRow},f()))};s.a=Object(x.a)(function(i){var a=i.paperlibrary,C=i.loading,D=i.globalSetting;return{paperlibrary:a,globalSetting:D,loading:C.effects}})(h)},"1ZF9":function(c,s,e){c.exports=e.p+"static/Authorize.cc9c212f.png"},"3wET":function(c,s){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+KbFk1VN2b8Fa5ky8QvojhEVDAh9C1DAH2NYIdFwMNM3TCIsT5wwOnbH45SlgIufDG8arv+RnsQb0SPe/rzdd0lYrAmr+s23PWzznxdXfyRzK1gEPrgU+cbHBa5MWr07KmsHq+RaXLTAYGAe29wFDMyVb6RC62YmxJjKbBj/td5+rJ1LJzeL+ihWUbHkuzpe5GYM9lwsM8MSbwLcGDMZmqc1cWlhrsOsyi20rgTubDb45YDGl0MZNPio1yS1yec2NdsldDq18jEUvzzqjjVj2UMF9i/JRDpFeMc/ihqUWT71p8fU+i3fO0eisRZ4hOjNl8f1/MWxvG3wha/GxedKVntct0SB3tM1hCIAwix0+YZWEVKRhPYF3SRjLxa+tN6hlGX56hHky7RNXyevHAe/OWPxpyCoUuKpem0F9frGBaqGBd5QYOAI1Kw7aBjuFDuWbckQt0DQfYr5srhuGkXdJ5cG4JZP+P+pjWzIn9gR5Vx746ajrLc3Fc7BDWCJM4EZu0xoXkmJ4OLqMl9HYY6Svj3vgrQ00SI9Z5Y+ewJOua/BjBrjj5IEybzjbmkN2YyoMxBJR0OmF5UreSDAmygmoLHqY5/kb3FlfWgWsJygdAu4giOnVlG39KHCcO63/HfXRd/HkgQZbgcquKaAz85GbvrMTBduEApFqUYGKTz2mIH8D4zMGs+Q/swK4Zhkno+w8vbCEpeCLBPmNq4HFDOuP+4G/vBHblN3UIz1LmajnzShD5e8yHO4BcE4HxAnKX/STE0TUPsyJjjUBG5YC937ccE2hz+DEWYs9PNN/N0hjBc0mo2waIz4ey7xxcznq+pGtYf5wc/oW95eqZcjiosRiOYvebWssNrMOLb7IYHSaRXEUGGMBHJ0G/j5icZS16QTDZQjcY/AzsHw54MKoFrAFvBRla2xeFz3fUgugMED1dDUT9YFrgdalBi++Rf6IxaFTrENTCiHcExblLIYP0lpWvFuvZLjPA799+QLzcd8oZCMEUu+HlCCE70DXLAEeuN5g1SLgJ89b/PwYcPoce90yw6hy/RCSWh6fX+Ex87UNwKkJ4DfMLdcI1EVPwH0bUciGWRdW6ztZR+IBjlzCg/NHvBk1EvZ9h4BH+lmV6bQwXkUyp4RNeMQpckwdD6fbrgJ2f5IX7bME1cMebfVqLcJwZHK8kMfb0m098qJ6pDiHS7j3U8Dliw26/0Yw9EyBVVw6GjOHbtjUaFGrpbp646n4OoZ8+zrgbl5+jzPPup4AnmeIHSDaZrr4UhLzZrZwMioU8GSpcGkSDeJS4wlX8zTvbAaO0NCv/0Exz6zk+C0twE8/b3B7qyE4r6t+VgB8dYNBF8G8+jaw6zHgRR4nwa5bcGoBNh/11GQKOJjPubXRueU+l/0tTMT5LP8PHy1gbJKAKSuGnEw/i+QwQ3F3h/4VsfjZEYMMd9fOjcAdGw3+yR131x+BV1ggK1rZdCYXZfC4s738u/Zp5tG1aYV6LvNXtwDLmcg3/4ITaytzkEC5pjAxqdfw5P/hTbwLXcLb1iGL+XUG2wmoj7Xqrj8Ag6fD8PIrb3Lf89r7zNC3zXX0Clse+1gxCSis30+5gMnc1GDwylvAmQkaUxgJItyZg68Ghgx2/p4Xtpt5B7qGt0CiPnqSYA4wd04HmzEoT/w7rI6U69onIasDz6X7zAEeC71lhx0nj5iw2rITU8AMjwuf6J6K97nk6ctDwM79zBN65a/HPX+ctcrbFE3yRED7ShRRLrRXGIRFGF3L7rHtVHou6QHxlzKpx3gBm2AVDttcVI1QijIn4KuZ9WqaJ//QmDdOGKVJXM2iRJStOFfGbBr+nr/CFgFpQOOd+b08M3cVk0S9CYvvB6iyvwRK9uNzxFMncCHqHnow0xV/+pCFj7aN0W7DrRfqhLs5qlZc8AZJ26pXcn1iC/twSq5weuqvvxrH77j+mELUoznD/KJlHpKgqcsumjlve2mqJeWg0nIrtKSpVqHhxcU3wZTGvFRXa9pO7C3/77WqaYE6P23380rRGaaQzcqQVOZQce73YLhLe+rmmq1pMFJxuyytq4Ht15nP8ljpdpX7QiFRyU+EIIQiUJUJ8aKOp51MIereRNvVwAhHVQ8lAWZv588xBf0cY6v8HJMcSXCxQVG14F1ReqWXpeWe4Yf+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"Ct/S":function(c,s,e){c.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Jky8:function(c,s,e){"use strict";var z=e("sRBo"),M=e("kaz8"),K=e("5NDa"),d=e("5rEg"),x=e("WmNS"),y=e.n(x),A=e("miYZ"),b=e("tsqr"),n=e("9og8"),R=e("2qtc"),l=e("kLXV"),h=e("tJVT"),i=e("q1tI"),a=e.n(i),C=e("9kvl"),D=e("6CvP"),F=e("1XHU"),B=e("1vsH"),m;(function(f){f[f.Professor=1]="Professor",f[f.AssistantProfessor=2]="AssistantProfessor",f[f.Student=3]="Student"})(m||(m={}));var L=function(p){var W=p.visible,E=p.user,u=p.onCancel,v=u===void 0?function(){}:u,O=Object(i.useState)(),t=Object(h.a)(O,2),j=t[0],G=t[1],J=Object(i.useState)([]),T=Object(h.a)(J,2),P=T[0],V=T[1],U=Object(i.useState)(!1),Q=Object(h.a)(U,2),k=Q[0],w=Q[1],X=Object(i.useState)(!1),N=Object(h.a)(X,2),q=N[0],S=N[1],$=Object(i.useState)(),Z=Object(h.a)($,2),ee=Z[0],Y=Z[1];Object(i.useEffect)(function(){var g;if(E==null||((g=E.userInfo)===null||g===void 0)?void 0:g.identity){var r;V([(E==null||((r=E.userInfo)===null||r===void 0)?void 0:r.identity)==="student"?3:1])}},[E]);var te=function(r,o){if(P.includes(m.Professor)){l.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:a.a.createElement("div",{className:"tc"},o||"\u7533\u8BF7\u5DF2\u63D0\u4EA4\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838"),onOk:function(){C.c.push("/classrooms/".concat(r,"/students"))}});return}C.c.push("/classrooms/".concat(r,"/students"))},ne=function(){var g=Object(n.a)(y.a.mark(function r(){var o;return y.a.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(j){_.next=3;break}return b.b.info("\u9080\u8BF7\u7801\u4E0D\u80FD\u4E3A\u7A7A"),_.abrupt("return");case 3:return w(!0),_.next=6,Object(D.c)({invite_code:j,professor:P.includes(m.Professor)?1:null,assistant_professor:P.includes(m.AssistantProfessor)?1:null,student:P.includes(m.Student)?1:null});case 6:if(o=_.sent,w(!1),!((o==null?void 0:o.status)===-2)){_.next=22;break}if(H(),!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u8BA4\u8BC1")){_.next=14;break}return S(!0),Y(1),_.abrupt("return");case 14:if(!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u804C\u4E1A\u8BA4\u8BC1")){_.next=18;break}return S(!0),Y(2),_.abrupt("return");case 18:if(!(o.message==="\u8BE5\u8BFE\u5802\u8981\u6C42\u6210\u5458\u5B8C\u6210\u5B9E\u540D\u548C\u804C\u4E1A\u8BA4\u8BC1")){_.next=22;break}return S(!0),Y(3),_.abrupt("return");case 22:if(!((o==null?void 0:o.status)===0)){_.next=27;break}return Object(B.T)(["\u6559\u5B66\u8BFE\u5802","\u9996\u9875","\u52A0\u5165\u8BFE\u5802"]),H(),(o==null?void 0:o.course_id)&&te(o.course_id,o.message),_.abrupt("return");case 27:case"end":return _.stop()}},r)}));return function(){return g.apply(this,arguments)}}(),H=function(){var g=Object(n.a)(y.a.mark(function r(){return y.a.wrap(function(I){for(;;)switch(I.prev=I.next){case 0:v();case 1:case"end":return I.stop()}},r)}));return function(){return g.apply(this,arguments)}}();return a.a.createElement(a.a.Fragment,null,a.a.createElement(l.a,{centered:!0,keyboard:!1,closable:!1,title:"\u52A0\u5165\u8BFE\u5802",visible:W,confirmLoading:k,onOk:ne,onCancel:H},a.a.createElement("div",{className:"tc"},a.a.createElement("div",null,a.a.createElement("span",null,"\u8BFE\u5802\u9080\u8BF7\u7801\uFF1A"),a.a.createElement(d.a,{placeholder:"\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801",style:{width:270},value:j,onChange:function(r){if(r.target.value.length>=7){b.b.info("\u8BF7\u8F93\u51655\u4F4D\u8BFE\u5802\u9080\u8BF7\u7801\u62166\u4F4D\u5206\u73ED\u9080\u8BF7\u7801\uFF01");return}G(r.target.value)}})),a.a.createElement("div",{className:"mt10 font14"},a.a.createElement("span",null,"\u8EAB\u4EFD\uFF1A"),a.a.createElement(M.a.Group,{value:P,onChange:function(r){return V(r)}},a.a.createElement(M.a,{value:m.Professor,disabled:P.includes(2)},"\u6559\u5E08"),a.a.createElement(M.a,{value:m.AssistantProfessor,disabled:P.includes(1)},"\u52A9\u6559"),a.a.createElement(M.a,{value:m.Student},"\u5B66\u751F/\u53C2\u8D5B\u8005"))))),a.a.createElement(F.a,{visible:q,onCancel:function(){return S(!1)},occupationValue:ee}))};s.a=Object(C.a)(function(f){var p=f.user;return{user:p}})(L)},NLgs:function(c,s,e){"use strict";e.d(s,"e",function(){return F}),e.d(s,"f",function(){return B}),e.d(s,"d",function(){return L}),e.d(s,"c",function(){return f}),e.d(s,"a",function(){return p}),e.d(s,"b",function(){return W});var z=e("WmNS"),M=e.n(z),K=e("miYZ"),d=e("tsqr"),x=e("9og8"),y=e("2qtc"),A=e("kLXV"),b=e("q1tI"),n=e.n(b),R=e("9kvl"),l=e("xKgJ"),h=e("1vsH"),i=e("RCxd"),a=e("mOS8"),C=e.n(a),D=e("m3rI"),F=function(u){return!!(B(u)&&m())},B=function(u){return Object(l.q)()?!0:(u({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},m=function(){var u,v=Object(R.b)()._store.getState(),O=v.user;return((u=O.userInfo)===null||u===void 0?void 0:u.profile_completed)?!0:(A.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:n.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){R.c.push("/account/profile/edit")}}),!1)},L=function(){var u,v=Object(R.b)()._store.getState(),O=v.user;return((u=O.userInfo)===null||u===void 0?void 0:u.professional_certification)?!0:(A.a.confirm({title:"\u63D0\u793A",centered:!0,content:n.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(h.L)("/account/certification")}}),!1)},f=function(){return Object(l.b)()?!0:(A.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),n.a.createElement("img",{src:Object(l.u)()?e("WdTA"):"".concat(D.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),n.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(l.u)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.L)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},p=function(u,v){return u?!0:(A.a.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("p",null,v||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),n.a.createElement("div",{style:{marginLeft:"110px"}},n.a.createElement("img",{src:e("1ZF9"),width:200}),n.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(h.L)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},W=function(u){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",O=Object(R.b)()._store.getState(),t=O.shixunsDetail.detail;return(t==null?void 0:t.public)===2||(t==null?void 0:t.public)===1||(t==null?void 0:t.shixun_status)===3?(A.a.info({centered:!0,icon:n.a.createElement(i.a,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:n.a.createElement("div",{className:"tc",style:{marginLeft:-38}},n.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",(t==null?void 0:t.public)===2?"\u5DF2\u516C\u5F00":(t==null?void 0:t.public)===1?"\u5F85\u5BA1\u6838":"\u5DF2\u5173\u95ED","\uFF0C",v,"\u3002"),n.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),n.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:C.a,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0):(t==null?void 0:t.shixun_status)===2?(A.a.confirm({centered:!0,icon:n.a.createElement(i.a,null),title:"\u63D0\u793A",content:n.a.createElement("div",null,n.a.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",v,"\u3002"),n.a.createElement("br",null),n.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){A.a.confirm({width:440,centered:!0,icon:n.a.createElement(i.a,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5C06\u65E0\u6CD5\u5728\u7EC4\u5EFA\u8BD5\u5377\u65F6\u9009\u7528\u8BE5\u5B9E\u8BAD\u9898\u3002",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:function(){var G=Object(x.a)(M.a.mark(function T(){var P;return M.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.next=2,u({type:"shixunsDetail/cancelRelease",payload:{id:t==null?void 0:t.identifier}});case 2:P=U.sent,P.status!==401&&(d.b.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),u({type:"shixunsDetail/getShixunsDetail",payload:{id:t==null?void 0:t.identifier}}),u({type:"practiceSetting/getCommonData",payload:{id:t==null?void 0:t.identifier}}));case 4:case"end":return U.stop()}},T)}));function J(){return G.apply(this,arguments)}return J}()})}}),!0):!1}},WdTA:function(c,s,e){c.exports=e.p+"static/studnetqun.a5754d96.png"},bUJZ:function(c,s){c.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3VnlcsHosixEIleZrNa+cCF/3hzGhOq2bFBq2am7NJ3q2l1GZgSDQTMw9U2gqsmty/0pXQTOrmVMQ950xp4xXZjevthPX3RadMl/u1kzmTTpnM/Dy9xsDZ2FwBXWqG7L+aPJukepHQBF6oE6I5Ex7RCfwCpVUVOwx5/jabJ7dSKX+xucvBxoeBw4vRG4djBSl1M1kcFMfRHo5ym/9H3aTLYGNYVBsMDc8YU7fdxGTMXiBhR5bZTYhOe1kAdD5MIv/RgtrH+MY6IgTebqGaQl799DW7G+8LwmdpxOaYOG4RCyfz3DS89+p8Jx8xlvEZF7GcyN8pKgGhjkmTj9QVk2nl5gnjJ3ftsZ1VBxeIU7EAqhFkUWYv+iEydnPgcmd7BTJaOIBJ0LOyKkVZZw2b/mXbrsJzaxgpJOY48va8bg0FkO0gVOQQUli+PS8w1WKN+0oIj6idMKGBjsYNBRMBq8cKHMhlI7ijSAFhZwze06Aq6fBE5+FI/HMJi2z1iGOgoYLrVrhnIdll1VBjihFZjCB39xgCm6yszVAZMeAM7/AFz9hyvTHsvpinecjTcotRd4Yma6QMRxxXqu0DS5eSpommRc/6D8Akff5n10GGheBMxmodc9xMI+yomsx4yDzJAHa6YE1JIEpM6EC2UXRNLyb8PDRGeQzhmMXID9vzAGHuVGBtT7VY6BMQJkARR4d7REOyn7GVcvqGV6eOQv/sR0xce+xNQN/k7k7qEJ3uSlK2lTFRvOIA7DgMJhCytQCGV3EElzfxtZKwHPwsWf6ZioOOJ6GTfcz6Dm8vgz2MRmrJJiGX/G2IDGTrnbWW5od3PGXG9R5dmbtukR+qLBCxIQ17jGwM67JwAg8ypL5lVPOfUTHdc/VWBAvTR8VypwHWhBCxfyIW+eB1z+k6fpDCfieWEDR3j0z/HC5LxsQmQChKMKRMo2Zd6glwgVTyTPIjEgz6QEDdmJ7oJ9N0deMwuonR6hoTIfBUFpwjTqtMYIxIiornBp7rkY8+jZeSLgK8SeCDZxGDsXLs0tiLn0xalw2b3Que5IpvpuQ9QXuZCipPPF4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},mOS8:function(c,s,e){c.exports=e.p+"static/403Qrcode.6c17b6f4.png"}}]); diff --git a/p__Classrooms__Lists__Announcement__index.93ae0682.async.js b/p__Classrooms__Lists__Announcement__index.fd97d1e8.async.js similarity index 61% rename from p__Classrooms__Lists__Announcement__index.93ae0682.async.js rename to p__Classrooms__Lists__Announcement__index.fd97d1e8.async.js index 0f369f7546..69381bff7a 100644 --- a/p__Classrooms__Lists__Announcement__index.93ae0682.async.js +++ b/p__Classrooms__Lists__Announcement__index.fd97d1e8.async.js @@ -1,15 +1,15 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[42,6],{"7ahc":function(q,R,e){"use strict";e.d(R,"a",function(){return a});var k=e("XEnU"),G=e("IIKO"),Q=e("+L6B"),_=e("2/Rp"),v=e("y8nQ"),o=e("Vl3Y"),t=e("k16G"),b=e("OaEy"),M=e("2fM7"),E=e("q1tI"),u=e.n(E),p=e("VrN/"),Y=e.n(p),j=e("p77/"),ue=e.n(j),ae=e("c5Ni"),_e=e.n(ae),g=M.a.Option,de={labelCol:{span:4},wrapperCol:{span:20}},S={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};R.b=function(I){var ee=I.callback,oe=I.onCancel,fe=Object(E.useState)("python"),le=Object(t.a)(fe,2),ye=le[0],T=le[1];function he(x){T(S[x][1])}function me(x){ee(x)}return u.a.createElement(o.a,Object(G.a)({},de,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me}),u.a.createElement(o.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},u.a.createElement(M.a,{onChange:he},Object.keys(S).map(function(x){return u.a.createElement(g,{key:x,value:x},S[x][0])}))),u.a.createElement(o.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},u.a.createElement(a,{mode:ye})),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(_.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),u.a.createElement(_.a,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function a(I){var ee=I.value,oe=I.onChange,fe=I.mode,le=I.options,ye=le===void 0?{}:le,T=Object(E.useRef)(),he=Object(E.useState)(),me=Object(t.a)(he,2),x=me[0],Ae=me[1];return Object(E.useEffect)(function(){if(x){var be=function(l){var h=l.getValue();oe&&oe(h)};return x.on("change",be),function(){x.off("change",be)}}},[x,oe]),Object(E.useEffect)(function(){x&&x.setOption("mode",fe)},[x,fe]),Object(E.useEffect)(function(){x&&((ee!==x.getValue()||ee==="")&&setTimeout(function(){x.setValue(ee||" ")},300))},[x,ee]),Object(E.useEffect)(function(){if(T.current&&!x){var be=Y.a.fromTextArea(T.current,Object(k.a)({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ye));Ae(be)}},[T.current,x]),u.a.createElement("div",{className:"my-codemirror-container"},u.a.createElement("textarea",{ref:T}))}},"9Bee":function(q,R,e){"use strict";var k=e("q1tI"),G=e.n(k),Q=e("vg9a"),_=e("k16G"),v=e("DlQD"),o=e.n(v),t=e("rUJ1");function b(d,l){var h=d.match(/^(\s+)(?:```)/);if(h===null)return l;var A=h[1];return l.split(` -`).map(function(z){var re=z.match(/^\s+/);if(re===null)return z;var ie=Object(_.a)(re,1),X=ie[0];return X.length>=A.length?z.slice(A.length):z}).join(` -`)}var M=[],E=["